Mercurial > octave
annotate configure.ac @ 31625:b26b768f23a4
eliminate base_qobject argument from release_notes constructor
* release-notes.h, release-notes.cc (release_notes::release_notes):
Eliminate unused base_qobject argument from constructor. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 03 Dec 2022 00:52:02 -0500 |
parents | 9436924b09a2 |
children | 5f11de0e7440 |
rev | line source |
---|---|
5 | 1 dnl Process this file with autoconf to produce a configure script. |
2 dnl | |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
3 ######################################################################## |
29357
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
4 ## |
30564
796f54d4ddbf
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
30539
diff
changeset
|
5 ## Copyright (C) 1993-2022 The Octave Project Developers |
29357
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
6 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
7 ## See the file COPYRIGHT.md in the top-level directory of this |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
8 ## distribution or <https://octave.org/copyright/>. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
9 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
10 ## This file is part of Octave. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
11 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
12 ## Octave is free software: you can redistribute it and/or modify it |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
13 ## under the terms of the GNU General Public License as published by |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
14 ## the Free Software Foundation, either version 3 of the License, or |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
15 ## (at your option) any later version. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
16 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
17 ## Octave is distributed in the hope that it will be useful, but |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
18 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
19 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
20 ## GNU General Public License for more details. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
21 ## |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
22 ## You should have received a copy of the GNU General Public License |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
23 ## along with Octave; see the file COPYING. If not, see |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
24 ## <https://www.gnu.org/licenses/>. |
bbbe4dcc7200
use the same comment style for copyright headers in .m files and shell scripts
John W. Eaton <jwe@octave.org>
parents:
29114
diff
changeset
|
25 ## |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
26 ######################################################################## |
869 | 27 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
28 ### Initialize Autoconf |
23505
021d0ea8fa00
* configure.ac (AC_PREREQ): Require autoconf version 2.65.
John W. Eaton <jwe@octave.org>
parents:
23495
diff
changeset
|
29 AC_PREREQ([2.65]) |
31438
9436924b09a2
maint: Bump versions to begin active development of Octave 9.
Rik <rik@octave.org>
parents:
31436
diff
changeset
|
30 AC_INIT([GNU Octave], [9.0.0], [https://octave.org/bugs.html], [octave], |
25137
f18f4700aded
configure: override default project URL with https URL
Mike Miller <mtmiller@octave.org>
parents:
25098
diff
changeset
|
31 [https://www.gnu.org/software/octave/]) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
32 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
33 ### Declare version numbers |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
34 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
35 dnl Note that the version number is duplicated here and in AC_INIT because |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
36 dnl AC_INIT requires it to be static, not computed from shell variables. |
24881
086e6a86f83f
maint: merge default to stable in preparation for upcoming 4.4 release
John W. Eaton <jwe@octave.org>
diff
changeset
|
37 |
25590
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25589
diff
changeset
|
38 ## The description of the Octave version number in the etc/HACKING.md |
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25589
diff
changeset
|
39 ## explains how to update these numbers for release and development |
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25589
diff
changeset
|
40 ## versions. |
02766a14c461
add info about version numbers in etc/HACKING.md file
John W. Eaton <jwe@octave.org>
parents:
25589
diff
changeset
|
41 |
31438
9436924b09a2
maint: Bump versions to begin active development of Octave 9.
Rik <rik@octave.org>
parents:
31436
diff
changeset
|
42 OCTAVE_MAJOR_VERSION=9 |
25145
dfc6ccc2a3e8
set dev branch version to 5.0.0
John W. Eaton <jwe@octave.org>
parents:
25141
diff
changeset
|
43 OCTAVE_MINOR_VERSION=0 |
31438
9436924b09a2
maint: Bump versions to begin active development of Octave 9.
Rik <rik@octave.org>
parents:
31436
diff
changeset
|
44 OCTAVE_PATCH_VERSION=0 |
18229
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
45 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
46 dnl PACKAGE_VERSION is set by the AC_INIT VERSION argument. |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
47 OCTAVE_VERSION="$PACKAGE_VERSION" |
18229
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
48 |
30618
6967a1aadd54
Adapt copyright range to start with year of first commit in repository.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30599
diff
changeset
|
49 OCTAVE_COPYRIGHT="Copyright (C) 1993-2022 The Octave Project Developers." |
30334
8f8fab4c93ae
maint: Bump version for pre-release (see etc/HACKING.md)
John W. Eaton <jwe@octave.org>
parents:
30305
diff
changeset
|
50 |
31436
f990f14d4b0c
maint: Bump version numbers for pre-release (see etc/HACKING.md)
Rik <rik@octave.org>
parents:
31424
diff
changeset
|
51 OCTAVE_RELEASE_DATE="2022-11-15" |
18229
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
52 |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
53 ## The "API version" is used as a way of checking that interfaces in the |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
54 ## liboctave and libinterp libraries haven't changed in a backwardly |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
55 ## incompatible way when loading .oct files. A better way to do this is with |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
56 ## library versioning, but not all systems support it. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
57 ## |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
58 ## NOTE: This macro will be removed in a future version of Octave! |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
59 ## If you insist on checking for features using a version number, use the |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
60 ## OCTAVE_MAJOR_VERSION, OCTAVE_MINOR_VERSION, and OCTAVE_PATCH_VERSION |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
61 ## macros instead. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
62 dnl |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
63 dnl FIXME: Since we also set libtool versions for liboctave and libinterp, |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
64 dnl perhaps we should be computing the "api version" from those versions numbers |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
65 dnl in some way instead of setting it independently here. |
30598 | 66 OCTAVE_API_VERSION="api-v57+" |
18229
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
67 |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
68 AC_SUBST(OCTAVE_MAJOR_VERSION) |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
69 AC_SUBST(OCTAVE_MINOR_VERSION) |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
70 AC_SUBST(OCTAVE_PATCH_VERSION) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
71 AC_SUBST(OCTAVE_VERSION) |
18229
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
72 AC_SUBST(OCTAVE_COPYRIGHT) |
b6b6e0dc700e
provide version number macros (bug #41045)
John W. Eaton <jwe@octave.org>
parents:
18175
diff
changeset
|
73 AC_SUBST(OCTAVE_RELEASE_DATE) |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
74 AC_SUBST(OCTAVE_API_VERSION) |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
75 |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
76 dnl FIXME: We should auto-insert the Mercurial changeset ID into the |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
77 dnl AC_REVISION field whenever configure.ac is modified. |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
78 dnl AC_REVISION($Revision: 1.603 $) |
15195 | 79 AC_CONFIG_SRCDIR([libinterp/octave.cc]) |
16330
306e0ac231d0
move AH_BOTTOM output to separate header file
John W. Eaton <jwe@octave.org>
parents:
16329
diff
changeset
|
80 AC_CONFIG_HEADERS([config.h:config.in.h]) |
9946 | 81 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
|
82 AC_CONFIG_MACRO_DIR([m4]) |
869 | 83 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
84 ### Initialize Automake |
24162
312c00dd723a
use markdown for README and etc/HACKING files
John W. Eaton <jwe@octave.org>
parents:
24150
diff
changeset
|
85 AM_INIT_AUTOMAKE([1.14 -Wno-portability -Wno-override tar-ustar subdir-objects dist-lzip dist-xz]) |
9946 | 86 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
87 ## Add option to enable silent rules and make silent the default behavior. |
19801
c1654224bc99
enable silent makefile rules by default
John W. Eaton <jwe@octave.org>
parents:
19744
diff
changeset
|
88 AM_SILENT_RULES([yes]) |
17375
bc018154e46a
build: Support optional Automake silent rules
Mike Miller <mtmiller@ieee.org>
parents:
17330
diff
changeset
|
89 |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
90 OCTAVE_CANONICAL_HOST |
5844 | 91 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
92 AC_DEFINE(OCTAVE_SOURCE, 1, [Define to 1 if this is Octave.]) |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19349
diff
changeset
|
93 |
9091
45c832e9976d
configure.in: require autoconf 2.60; eliminate some obsolete macros
John W. Eaton <jwe@octave.org>
parents:
9090
diff
changeset
|
94 AC_USE_SYSTEM_EXTENSIONS |
1667 | 95 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
96 ### Make configure args available in variable form for other uses. |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
97 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
98 config_opts=$ac_configure_args |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
99 AC_SUBST(config_opts) |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
100 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
101 ### Set default file locations. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
102 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
103 ## Where to install libraries like liboctave.a, liboctinterp.a, and other |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
104 ## architecture-dependent binaries. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
105 OCTAVE_SET_DEFAULT([octlibdir], '${libdir}/octave/${version}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
106 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
107 ## Where to put executables to be run by Octave, rather than the user. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
108 ## This path usually includes the Octave version and configuration name, so |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
109 ## that configurations for multiple versions of Octave may be installed at once. |
30305
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
110 ## Windows search paths and relocation oddities require all binaries must be |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
111 ## installed in the same directory. |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
112 case $host_os in |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
113 mingw* | msdosmsvc) |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
114 OCTAVE_SET_DEFAULT([archlibdir], '${bindir}') ;; |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
115 *) |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
116 OCTAVE_SET_DEFAULT([archlibdir], |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
117 '${libexecdir}/octave/${version}/exec/${canonical_host_type}') ;; |
c13204f823a6
build: Install all octave binaries to bindir on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30290
diff
changeset
|
118 esac |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
119 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
120 ## Where to put executables to be run by Octave, rather than the user, that |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
121 ## are specific to this site. |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
122 OCTAVE_SET_DEFAULT([localarchlibdir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
123 '${libexecdir}/octave/site/exec/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
124 |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
125 OCTAVE_SET_DEFAULT([localapiarchlibdir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
126 '${libexecdir}/octave/${api_version}/site/exec/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
127 |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
128 OCTAVE_SET_DEFAULT([localverarchlibdir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
129 '${libexecdir}/octave/${version}/site/exec/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
130 |
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
131 ## Where to put object files that will by dynamically loaded. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
132 ## This path includes the Octave version and configuration name, so that |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
133 ## configurations for multiple versions of Octave may be installed at once. |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
134 OCTAVE_SET_DEFAULT([octfiledir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
135 '${libdir}/octave/${version}/oct/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
136 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
137 ## Directories that Octave should search for object files that will be |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
138 ## dynamically loaded and that are specific to this site (i.e., customizations), |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
139 ## before consulting ${octfiledir}. This should be a colon-separated list of |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
140 ## directories. |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
141 OCTAVE_SET_DEFAULT([localoctfiledir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
142 '${libdir}/octave/site/oct/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
143 |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
144 OCTAVE_SET_DEFAULT([localapioctfiledir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
145 '${libdir}/octave/site/oct/${api_version}/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
146 |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
147 OCTAVE_SET_DEFAULT([localveroctfiledir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
148 '${libdir}/octave/${version}/site/oct/${canonical_host_type}') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
149 |
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
150 ## Where to install Octave's include files. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
151 OCTAVE_SET_DEFAULT([octincludedir], '${includedir}/octave-${version}/octave') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
152 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
153 ## Where to install the function files distributed with Octave. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
154 ## This includes the Octave version, so that the function files for different |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
155 ## versions of Octave will be installed in separate directories. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
156 OCTAVE_SET_DEFAULT([fcnfiledir], '${datadir}/octave/${version}/m') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
157 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
158 ## Directories that Octave should search for function files specific to this |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
159 ## site (i.e., customizations), before consulting ${fcnfiledir}. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
160 ## This should be a colon-separated list of directories. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
161 OCTAVE_SET_DEFAULT([localfcnfiledir], '${datadir}/octave/site/m') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
162 |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
163 OCTAVE_SET_DEFAULT([localapifcnfiledir], |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
164 '${datadir}/octave/site/${api_version}/m') |
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
165 |
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
166 OCTAVE_SET_DEFAULT([localverfcnfiledir], '${datadir}/octave/${version}/site/m') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
167 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
168 ## Where to install extra files like NEWS and doc-cache. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
169 OCTAVE_SET_DEFAULT([octetcdir], '${datadir}/octave/${version}/etc') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
170 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
171 ## Where to install the language files for the GUI. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
172 OCTAVE_SET_DEFAULT([octlocaledir], '${datadir}/octave/${version}/locale') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
173 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
174 ## The full path to the default doc-cache file. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
175 OCTAVE_SET_DEFAULT([doc_cache_file], '${octetcdir}/doc-cache') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
176 |
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
177 ## Where to install test files. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
178 OCTAVE_SET_DEFAULT([octtestsdir], '${octetcdir}/tests') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
179 |
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
180 ## The full path to the default texi macros file. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
181 OCTAVE_SET_DEFAULT([texi_macros_file], '${octetcdir}/macros.texi') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
182 |
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
183 ## Where Octave will search to find image files. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
184 OCTAVE_SET_DEFAULT([imagedir], '${datadir}/octave/${version}/imagelib') |
21392
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
185 |
bd0fcc69e48a
maint: eliminate unnecessary explicit Makefile variable substitutions
John W. Eaton <jwe@octave.org>
parents:
21381
diff
changeset
|
186 ## Where Octave will search for example data files shipped with distribution. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
187 OCTAVE_SET_DEFAULT([octdatadir], '${datadir}/octave/${version}/data') |
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
188 |
24875
7c7b60dd4d4c
Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
24873
diff
changeset
|
189 ## Where Octave will search for Qt help files shipped with distribution. |
7c7b60dd4d4c
Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
24873
diff
changeset
|
190 OCTAVE_SET_DEFAULT([octdocdir], '${datadir}/octave/${version}/doc') |
7c7b60dd4d4c
Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
24873
diff
changeset
|
191 |
24899
1a46d174a483
include a proper definition of Octave's private font fallback directory
Mike Miller <mtmiller@octave.org>
parents:
24890
diff
changeset
|
192 ## Where Octave will search for fallback font files shipped with distribution. |
1a46d174a483
include a proper definition of Octave's private font fallback directory
Mike Miller <mtmiller@octave.org>
parents:
24890
diff
changeset
|
193 OCTAVE_SET_DEFAULT([octfontsdir], '${datadir}/octave/${version}/fonts') |
24935
c27398f0601c
maint: revert inadvertent changes from merge revision ff80c319e664
Mike Miller <mtmiller@octave.org>
parents:
24927
diff
changeset
|
194 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
195 ## Where Octave will look for startup files. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
196 OCTAVE_SET_DEFAULT([startupfiledir], '${fcnfiledir}/startup') |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
197 OCTAVE_SET_DEFAULT([localstartupfiledir], '${localfcnfiledir}/startup') |
24935
c27398f0601c
maint: revert inadvertent changes from merge revision ff80c319e664
Mike Miller <mtmiller@octave.org>
parents:
24927
diff
changeset
|
198 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
199 ## Where Octave will look for man and info files. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
200 OCTAVE_SET_DEFAULT([man1dir], '${mandir}/man1') |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
201 OCTAVE_SET_DEFAULT([man1ext], '.1') |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
202 OCTAVE_SET_DEFAULT([infofile], '${infodir}/octave.info') |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
203 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
204 ### Check for programs used in building, installing, and running Octave. |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
205 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
206 ## Programs used in configuring Octave. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
207 dnl Find pkg-config executable (sets $PKG_CONFIG) |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
208 PKG_PROG_PKG_CONFIG |
25391
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
209 ## And where we will install our own .pc files. |
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
210 PKG_INSTALLDIR |
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
211 AC_SUBST([liboctave_pkgconfigdir], [$pkgconfigdir]) |
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
212 AC_SUBST([libinterp_pkgconfigdir], [$pkgconfigdir]) |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
213 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
214 ## Programs used in Makefiles. |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
215 AC_PROG_AWK |
16132
43e6415393ff
build: check for grep in configure and then use it in build process.
Rik <rik@octave.org>
parents:
16090
diff
changeset
|
216 AC_PROG_GREP |
31344
989ebec75ff0
build: Use Autoconf macro to find egrep executable.
Rik <rik@octave.org>
parents:
31163
diff
changeset
|
217 AC_PROG_EGREP |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
218 OCTAVE_PROG_FIND |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
219 OCTAVE_PROG_SED |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
220 OCTAVE_PROG_PERL |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
221 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
222 ## Programs used to build parts of Octave. |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
223 OCTAVE_PROG_GPERF |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
224 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
225 OCTAVE_PROG_FLEX |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
226 AC_SUBST([LEX_OUTPUT_ROOT], [lex.octave_]) |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
227 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
228 OCTAVE_PROG_BISON |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
229 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
230 OCTAVE_PROG_MAKEINFO |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
231 OCTAVE_PROG_TEXI2DVI |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
232 OCTAVE_PROG_TEXI2PDF |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
233 |
24077
e483dcb5777d
build the source distribution archives reproducibly
Mike Miller <mtmiller@octave.org>
parents:
23993
diff
changeset
|
234 OCTAVE_PROG_TAR_REPRODUCIBLE |
e483dcb5777d
build the source distribution archives reproducibly
Mike Miller <mtmiller@octave.org>
parents:
23993
diff
changeset
|
235 |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
236 ## Programs used when installing Octave. |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
237 AC_PROG_LN_S |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
238 AC_PROG_MKDIR_P |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
239 |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
240 AC_PROG_INSTALL |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
241 INSTALL_SCRIPT="${INSTALL}" |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
242 AC_SUBST(INSTALL_SCRIPT) |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
243 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
244 ## Programs used when running Octave. |
15857
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
245 OCTAVE_PROG_GHOSTSCRIPT |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
246 OCTAVE_PROG_GNUPLOT |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
247 OCTAVE_PROG_PAGER |
715d324b1b72
configure.ac: Move tests for programs necessary to build Octave close to top of file.
Rik <rik@octave.org>
parents:
15856
diff
changeset
|
248 OCTAVE_PROG_PYTHON |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
249 |
19744
1687269e31e4
build: Generate Octave logo icons from SVG source (bug #37062)
Mike Miller <mtmiller@ieee.org>
parents:
19733
diff
changeset
|
250 ## Programs used to generate icons file formats. |
1687269e31e4
build: Generate Octave logo icons from SVG source (bug #37062)
Mike Miller <mtmiller@ieee.org>
parents:
19733
diff
changeset
|
251 OCTAVE_PROG_ICOTOOL |
1687269e31e4
build: Generate Octave logo icons from SVG source (bug #37062)
Mike Miller <mtmiller@ieee.org>
parents:
19733
diff
changeset
|
252 OCTAVE_PROG_RSVG_CONVERT |
1687269e31e4
build: Generate Octave logo icons from SVG source (bug #37062)
Mike Miller <mtmiller@ieee.org>
parents:
19733
diff
changeset
|
253 AM_CONDITIONAL([AMCOND_HAVE_ICON_TOOLS], |
1687269e31e4
build: Generate Octave logo icons from SVG source (bug #37062)
Mike Miller <mtmiller@ieee.org>
parents:
19733
diff
changeset
|
254 [test -n "$ICOTOOL" && test -n "$RSVG_CONVERT"]) |
1687269e31e4
build: Generate Octave logo icons from SVG source (bug #37062)
Mike Miller <mtmiller@ieee.org>
parents:
19733
diff
changeset
|
255 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
256 ### Determine path separator. |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
257 |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
258 sepchar=':' |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
259 AC_ARG_WITH([sepchar], |
5842 | 260 [AS_HELP_STRING([--with-sepchar=<char>], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
261 [use <char> as the path separation character])]) |
5451 | 262 case $with_sepchar in |
263 yes | "") | |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
264 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
265 mingw* | msdosmsvc) |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
266 sepchar=';' ;; |
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
267 esac |
18352
c460566106f0
configure.ac: Find Qt libs in framework option for Macs (bug #41236)
Michael C. Grant <mcg@cvxr.com>
parents:
18342
diff
changeset
|
268 ;; |
5451 | 269 no) |
270 AC_MSG_ERROR([You are required to define a path separation character]) | |
271 ;; | |
272 *) | |
273 sepchar=$with_sepchar | |
18352
c460566106f0
configure.ac: Find Qt libs in framework option for Macs (bug #41236)
Michael C. Grant <mcg@cvxr.com>
parents:
18342
diff
changeset
|
274 ;; |
5451 | 275 esac |
276 AC_SUBST(sepchar) | |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
277 AC_DEFINE_UNQUOTED(SEPCHAR, ['$sepchar'], |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
278 [Define this to be the path separator for your system, as a character constant.]) |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
279 AC_DEFINE_UNQUOTED(SEPCHAR_STR, ["$sepchar"], |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
280 [Define this to be the path separator for your system, as a string.]) |
5451 | 281 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
282 ### Define the path to the shell on the host system. |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
283 dnl Most systems will ensure /bin/sh is the default shell so this can be safely |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
284 dnl ignored by almost everyone. However, there are exceptions, such as |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
285 dnl Android, where this will need to be set. |
15756
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
286 SHELL_PATH=/bin/sh |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
287 AC_ARG_WITH([shell], |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
288 [AS_HELP_STRING([--with-shell=SHELL], |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
289 [use SHELL as the shell interpreter (default: /bin/sh)])]) |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
290 case $with_shell in |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
291 no) |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
292 AC_MSG_ERROR([A shell interpreter is required]) |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
293 ;; |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
294 yes | "") |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
295 ;; |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
296 *) |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
297 SHELL_PATH=$with_shell |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
298 ;; |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
299 esac |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
300 AC_DEFINE_UNQUOTED([SHELL_PATH], ["$SHELL_PATH"], |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
301 [Define this to be the path to the shell command interpreter.]) |
ea1a1fb00744
Make the path to the shell interpreter configuable
Mike Miller <mtmiller@ieee.org>
parents:
15739
diff
changeset
|
302 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
303 ### Determine which C++ compiler to use (we expect to find g++). |
869 | 304 |
405 | 305 AC_PROG_CXX |
306 AC_PROG_CXXCPP | |
869 | 307 |
30671
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
308 ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=no |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
309 AC_ARG_ENABLE(std-pmr-polymorphic-allocator, |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
310 [AS_HELP_STRING([--enable-std-pmr-polymorphic-allocator], |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
311 [build libraries requiring std::pmr::polymorphic_allocator if possible. This allows more efficient transfer of arrays at the .mex file interface. That also means that all libraries including Octave headers (e.g., .oct files) must be able to compile with that C++17 feature.])], |
30671
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
312 [case $enableval in |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
313 yes) ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=yes ;; |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
314 no) ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR=no ;; |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
315 *) AC_MSG_ERROR([bad value $enableval for --enable-std-pmr-polymorphic-allocator]) ;; |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
316 esac]) |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
317 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
318 ### Determine compiler capabilities. |
30671
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
319 |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
320 if test $ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR = yes; then |
30674
3ca33008c4a9
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30671
diff
changeset
|
321 ## Test for flags to fully support C++17. |
3ca33008c4a9
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30671
diff
changeset
|
322 ## Preferably with GNU extensions if flags are required. |
3ca33008c4a9
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30671
diff
changeset
|
323 AX_CXX_COMPILE_STDCXX(17, [], []) |
30671
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
324 else |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
325 HAVE_CXX17=0 |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
326 fi |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
327 if test "$HAVE_CXX17" = 0; then |
30674
3ca33008c4a9
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30671
diff
changeset
|
328 ## Ensure that the C++ compiler fully supports C++11. |
3ca33008c4a9
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30671
diff
changeset
|
329 ## Preferably with GNU extensions if flags are required. |
3ca33008c4a9
build: Don't force adding compiler flags to select a C++ dialect (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30671
diff
changeset
|
330 AX_CXX_COMPILE_STDCXX(11, [], mandatory) |
30671
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
331 fi |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
332 |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
333 if test $ENABLE_STD_PMR_POLYMORPHIC_ALLOCATOR = yes; then |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
334 OCTAVE_CHECK_STD_PMR_POLYMORPHIC_ALLOCATOR |
9c98df2035a3
build: Check for compiler option to enable GNU extensions (bug #61812).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30618
diff
changeset
|
335 fi |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
336 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
337 ### Determine which C compiler to use (we expect to find gcc). |
869 | 338 |
5 | 339 AC_PROG_CC |
405 | 340 AC_PROG_CPP |
832 | 341 AC_PROG_GCC_TRADITIONAL |
869 | 342 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
343 ## Save and restore CFLAGS and CXXFLAGS globally. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
344 dnl These variables are for users, so we shouldn't be touching them. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
345 dnl Instead, we should set the corresponding AM_ flags (currently by way of the |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
346 dnl XTRA_ variables). However, for the duration of the configure script, we |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
347 dnl may set CFLAGS and CXXFLAGS so that subsequent tests succeed. Temporary |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
348 dnl settings like this are currently done for pthreads and openmp, for example. |
19839
d3dcc62512d7
do a better job of saving and restoring compiler flags (bug #44353)
John W. Eaton <jwe@octave.org>
parents:
19838
diff
changeset
|
349 original_octave_configure_CFLAGS="$CFLAGS" |
d3dcc62512d7
do a better job of saving and restoring compiler flags (bug #44353)
John W. Eaton <jwe@octave.org>
parents:
19838
diff
changeset
|
350 original_octave_configure_CXXFLAGS="$CXXFLAGS" |
d3dcc62512d7
do a better job of saving and restoring compiler flags (bug #44353)
John W. Eaton <jwe@octave.org>
parents:
19838
diff
changeset
|
351 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
352 ## Check for MSVC |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
353 have_msvc=no |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
354 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
355 msdosmsvc) |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
356 have_msvc=yes |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
357 ;; |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
358 mingw*) |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
359 AC_MSG_CHECKING([for MSVC compiler]) |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
360 AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21681
diff
changeset
|
361 #if ! defined (_MSC_VER) |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
362 #error "Not MSVC compiler" |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
363 #endif |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
364 ]])], |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
365 have_msvc=yes, have_msvc=no) |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
366 AC_MSG_RESULT([$have_msvc]) |
405 | 367 ;; |
5 | 368 esac |
869 | 369 |
15142
f4684192158e
configure.ac: Split gnulib initialization into 2 parts to match recommended usage.
Rik <rik@octave.org>
parents:
15141
diff
changeset
|
370 ### gnulib initialization: part 1 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
371 dnl Must take place immediately after a compiler is determined |
9946 | 372 |
373 gl_EARLY | |
374 | |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
375 ### Check version number when using g++. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
376 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
377 GXX_VERSION= |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
378 if test "$GXX" = yes; then |
31123
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
379 AC_CACHE_CHECK([g++ compiler version number], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
380 [octave_cv_gxx_version], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
381 [octave_cv_gxx_version=[`$CXX -v 2>&1 | $GREP "^.*g.. version" | $SED -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'`] |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
382 ]) |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
383 |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
384 AX_COMPARE_VERSION([$octave_cv_gxx_version], [lt], [4.1], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
385 [warn_gxx_version="g++ version $octave_cv_gxx_version is likely to cause problems" |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
386 OCTAVE_CONFIGURE_WARNING([warn_gxx_version])]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
387 |
31123
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
388 GXX_VERSION=$octave_cv_gxx_version |
2108 | 389 fi |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
390 AC_SUBST(GXX_VERSION) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
391 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
392 ## Workaround for broken STL algorithm library. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
393 OCTAVE_CHECK_BROKEN_STL_ALGO_H |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
394 AM_CONDITIONAL([AMCOND_HAVE_BROKEN_STL_ALGO_H], |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
395 [test $octave_cv_broken_stl_algo_h = yes]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
396 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
397 if test $octave_cv_broken_stl_algo_h = yes; then |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
398 warn_stl_algo_h="Found nth_element broken in g++ $GXX_VERSION. Attempting to repair by using local patched version of bits/stl_algo.h." |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
399 OCTAVE_CONFIGURE_WARNING([warn_stl_algo_h]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
400 fi |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
401 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
402 ### Check version number when using gcc. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
403 dnl It might be different from the g++ version number. |
869 | 404 |
15167
1c711a646fa7
Deprecate configure variables CC_VERSION, CXX_VERSION.
Rik <rik@octave.org>
parents:
15166
diff
changeset
|
405 GCC_VERSION= |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
406 if test "$GCC" = yes; then |
31123
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
407 AC_CACHE_CHECK([gcc compiler version number], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
408 [octave_cv_gcc_version], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
409 [octave_cv_gcc_version=[`$CC -v 2>&1 | $GREP "^.*gcc version" | $SED -e 's/^.*g.. version *//' -e 's/cygnus-//' -e 's/egcs-//' -e 's/ .*//'`] |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
410 ]) |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
411 |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
412 AX_COMPARE_VERSION([$octave_cv_gcc_version], [lt], [3], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
413 [warn_gcc_version="gcc version $octave_cv_gcc_version is likely to cause problems" |
15170
a44ff4f0a20b
Add AX_COMPARE_VERSION.m4 macro m4/ dir to make configure.ac simpler.
Rik <rik@octave.org>
parents:
15168
diff
changeset
|
414 OCTAVE_CONFIGURE_WARNING([warn_gcc_version])]) |
a44ff4f0a20b
Add AX_COMPARE_VERSION.m4 macro m4/ dir to make configure.ac simpler.
Rik <rik@octave.org>
parents:
15168
diff
changeset
|
415 |
31123
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
416 GCC_VERSION=$octave_cv_gcc_version |
1894 | 417 fi |
17877
540d1c122b08
* configure.ac: Also check for g++ version.
John W. Eaton <jwe@octave.org>
parents:
17844
diff
changeset
|
418 AC_SUBST(GCC_VERSION) |
1894 | 419 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
420 ## It seems that there are some broken inline assembly functions in GNU libc. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
421 ## Since it is uncertain how to test whether Octave is linked against GNU libc, |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
422 ## just disable them for all platforms. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
423 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
424 AC_MSG_NOTICE([defining __NO_MATH_INLINES avoids buggy GNU libc exp function]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
425 AC_DEFINE(__NO_MATH_INLINES, 1, |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
426 [Define to 1 if your version of GNU libc has buggy inline assembly code for math functions like exp.]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
427 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
428 ### Determine the compiler flag necessary to create dependencies. |
3775 | 429 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
430 ## Assume GCC. |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
431 INCLUDE_DEPS=yes |
3775 | 432 DEPEND_FLAGS="-M" |
433 DEPEND_EXTRA_SED_PATTERN="" | |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
434 if test "$GCC" != yes; then |
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
435 case $canonical_host_type in |
6087 | 436 sparc-sun-solaris2* | i386-pc-solaris2*) |
3775 | 437 DEPEND_FLAGS="-xM1" |
438 DEPEND_EXTRA_SED_PATTERN="-e '/\/opt\/SUNWspro/d'" | |
6087 | 439 ;; |
7451 | 440 *-*-msdosmsvc) |
441 ;; | |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
442 *-*-mingw*) |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
443 if test $have_msvc = no; then |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
444 INCLUDE_DEPS=no |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
445 fi |
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
446 ;; |
6087 | 447 *) |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
448 INCLUDE_DEPS=no |
6087 | 449 ;; |
450 esac | |
451 fi | |
452 AC_SUBST(INCLUDE_DEPS) | |
3775 | 453 AC_SUBST(DEPEND_FLAGS) |
454 AC_SUBST(DEPEND_EXTRA_SED_PATTERN) | |
455 | |
25552
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
456 ### Check for math library. |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
457 dnl If found, this will add -lm to LIBS. |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
458 |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
459 dnl Keep this check before the check for the Fortran compiler, |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
460 dnl in case -lm is needed to compile Fortran programs. |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
461 AC_CHECK_LIB(m, sin) |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
462 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
463 ### Determine the Fortran compiler and how to invoke it. |
25552
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
464 |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
465 ## Prefer gfortran, but the user's F77 environment variable will override. |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
466 AC_PROG_F77([gfortran]) |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
467 if test -z "$F77"; then |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
468 ## No gfortran found, search for any other installed compiler. |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
469 AC_PROG_F77 |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
470 fi |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
471 if test "$F77" = g77; then |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
472 AC_MSG_ERROR([g77 is not a supported Fortran compiler. Select another compiler by setting the environment variable F77 and re-running configure.]) |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
473 fi |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
474 |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
475 AC_MSG_CHECKING([whether a usable Fortran compiler was found]) |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
476 if test -n "$F77"; then |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
477 AC_MSG_RESULT(yes) |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
478 else |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
479 AC_MSG_RESULT(no) |
25559
4fe32753cb56
move some fortran and dynamic linking configure checks to separate macros
John W. Eaton <jwe@octave.org>
parents:
25552
diff
changeset
|
480 AC_MSG_ERROR([a Fortran compiler is required to build Octave]) |
25552
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
481 fi |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
482 |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
483 AC_F77_LIBRARY_LDFLAGS |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
484 AC_F77_DUMMY_MAIN |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
485 AC_F77_WRAPPERS |
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
486 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
487 ## Must appear after checks for Fortran compiler. |
25559
4fe32753cb56
move some fortran and dynamic linking configure checks to separate macros
John W. Eaton <jwe@octave.org>
parents:
25552
diff
changeset
|
488 OCTAVE_CHECK_FORTRAN_SYMBOL_AND_CALLING_CONVENTIONS |
4fe32753cb56
move some fortran and dynamic linking configure checks to separate macros
John W. Eaton <jwe@octave.org>
parents:
25552
diff
changeset
|
489 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
490 ## Must appear after checks for all compilers. |
25559
4fe32753cb56
move some fortran and dynamic linking configure checks to separate macros
John W. Eaton <jwe@octave.org>
parents:
25552
diff
changeset
|
491 OCTAVE_DEFINE_MKOCTFILE_DYNAMIC_LINK_OPTIONS |
25552
5f9fa229cc8a
configure.ac: Reorder tests so that FPICFLAG is correctly set on Solaris (bug #54235).
Rik <rik@octave.org>
parents:
25519
diff
changeset
|
492 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
493 ### Use a 64-bit integer type for array dimensions and indexing, if possible. |
5275 | 494 |
29688
b36e83cdbf05
ensure idx_vector(int) constructor is defined (bug #60531)
John W. Eaton <jwe@octave.org>
parents:
29687
diff
changeset
|
495 AC_CHECK_SIZEOF([int]) |
b36e83cdbf05
ensure idx_vector(int) constructor is defined (bug #60531)
John W. Eaton <jwe@octave.org>
parents:
29687
diff
changeset
|
496 AC_DEFINE_UNQUOTED(OCTAVE_SIZEOF_INT, [$ac_cv_sizeof_int], |
b36e83cdbf05
ensure idx_vector(int) constructor is defined (bug #60531)
John W. Eaton <jwe@octave.org>
parents:
29687
diff
changeset
|
497 [Define to the size of int.]) |
b36e83cdbf05
ensure idx_vector(int) constructor is defined (bug #60531)
John W. Eaton <jwe@octave.org>
parents:
29687
diff
changeset
|
498 |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
499 AC_CHECK_SIZEOF([void *]) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
500 if test $ac_cv_sizeof_void_p -ge 8; then |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
501 ENABLE_64=yes |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
502 else |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
503 ENABLE_64=no |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
504 fi |
23563
614d71cdf614
maint: Strip trailing whitespace from files.
John W. Eaton <jwe@octave.org>
parents:
23505
diff
changeset
|
505 |
5275 | 506 AC_ARG_ENABLE(64, |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
507 [AS_HELP_STRING([--disable-64], |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
508 [don't use 64-bit integers for array dimensions and indexing])], |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
509 [case $enableval in |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
510 yes) ENABLE_64=yes ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
511 no) ENABLE_64=no ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
512 *) AC_MSG_ERROR([bad value $enableval for --enable-64]) ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
513 esac]) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
514 |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
515 if test $ENABLE_64 = yes; then |
22995
5fdf29cb4ab8
set OCTAVE_IDX_TYPE correctly when using --disable-64 (bug #49985)
John W. Eaton <jwe@octave.org>
parents:
22992
diff
changeset
|
516 if test $ac_cv_sizeof_void_p -ge 8; then |
16313
6aafe87a3144
use int64_t for idx type if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16297
diff
changeset
|
517 OCTAVE_IDX_TYPE=int64_t |
5275 | 518 else |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
519 warn_64_bit="--enable-64 option given but pointers are less than 64-bits wide; disabling 64-bit indexing" |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
520 OCTAVE_CONFIGURE_WARNING([warn_64_bit]) |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
521 OCTAVE_IDX_TYPE=int32_t |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
522 ENABLE_64=no |
5275 | 523 fi |
22995
5fdf29cb4ab8
set OCTAVE_IDX_TYPE correctly when using --disable-64 (bug #49985)
John W. Eaton <jwe@octave.org>
parents:
22992
diff
changeset
|
524 else |
5fdf29cb4ab8
set OCTAVE_IDX_TYPE correctly when using --disable-64 (bug #49985)
John W. Eaton <jwe@octave.org>
parents:
22992
diff
changeset
|
525 OCTAVE_IDX_TYPE=int32_t |
5275 | 526 fi |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
527 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
528 AC_SUBST(ENABLE_64) |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
529 if test $ENABLE_64 = yes; then |
23014
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
530 octave_sizeof_octave_idx_type=8 |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21211
diff
changeset
|
531 AC_DEFINE(OCTAVE_ENABLE_64, 1, |
23009
624f76f2ca51
configure.ac: Use a common style for messages.
Rik <rik@octave.org>
parents:
23007
diff
changeset
|
532 [Define to 1 to use 64-bit integers for array dimensions and indexing.]) |
23014
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
533 else |
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
534 octave_sizeof_octave_idx_type=4 |
5275 | 535 fi |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
536 |
23014
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
537 AC_DEFINE_UNQUOTED(OCTAVE_SIZEOF_IDX_TYPE, [$octave_sizeof_octave_idx_type], |
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
538 [Define to the size of the octave_idx_type (8 or 4).]) |
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
539 |
5275 | 540 AC_SUBST(OCTAVE_IDX_TYPE) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
541 AC_DEFINE_UNQUOTED(OCTAVE_IDX_TYPE, [$OCTAVE_IDX_TYPE], |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
542 [Define to the type of octave_idx_type (64 or 32 bit signed integer).]) |
5275 | 543 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
544 ### Check for pthread library. |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
545 |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
546 AX_PTHREAD |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
547 dnl Include pthread libs and flags early in case other config tests need them. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
548 dnl They seem to be required for the OpenGL tests on Debian systems. |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
549 LIBS="$PTHREAD_LIBS $LIBS" |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
550 XTRA_CFLAGS="$XTRA_CFLAGS $PTHREAD_CFLAGS" |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
551 XTRA_CXXFLAGS="$XTRA_CXXFLAGS $PTHREAD_CFLAGS" |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
552 dnl Set these for any other tests that may require them. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
553 dnl They will be reset before output files are generated. |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
554 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
555 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
556 |
28527
9e7b2625e574
ov-java.cc: Set reaper thread to use default stack size (bug #58641).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28269
diff
changeset
|
557 dnl Check if glibc uses wrong stack size |
9e7b2625e574
ov-java.cc: Set reaper thread to use default stack size (bug #58641).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28269
diff
changeset
|
558 OCTAVE_CHECK_BROKEN_PTHREAD_STACKSIZE |
9e7b2625e574
ov-java.cc: Set reaper thread to use default stack size (bug #58641).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28269
diff
changeset
|
559 AM_CONDITIONAL([OCTAVE_CHECK_BROKEN_PTHREAD_STACKSIZE], |
9e7b2625e574
ov-java.cc: Set reaper thread to use default stack size (bug #58641).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28269
diff
changeset
|
560 [test $octave_cv_broken_pthread_stacksize = yes]) |
9e7b2625e574
ov-java.cc: Set reaper thread to use default stack size (bug #58641).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28269
diff
changeset
|
561 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
562 ### Test whether the compiler supports OpenMP. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
563 dnl This is enabled by default to allow the option of using OpenMP in |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
564 dnl loadable modules. |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
565 |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
566 ENABLE_OPENMP=no |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
567 check_for_openmp=yes |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
568 AC_ARG_ENABLE([openmp], |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
569 [AS_HELP_STRING([--disable-openmp], |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
570 [disable OpenMP SMP multi-threading])], |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
571 [if test "$enableval" = no; then check_for_openmp=no; fi], []) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
572 if test $check_for_openmp = yes; then |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
573 AC_LANG_PUSH(C) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
574 AX_OPENMP([XTRA_CFLAGS="$XTRA_CFLAGS $OPENMP_CFLAGS"; ENABLE_OPENMP=yes], []) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
575 AC_LANG_POP(C) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
576 AC_LANG_PUSH(C++) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
577 AX_OPENMP([XTRA_CXXFLAGS="$XTRA_CXXFLAGS $OPENMP_CXXFLAGS"; ENABLE_OPENMP=yes], []) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
578 AC_LANG_POP(C++) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
579 fi |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
580 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
581 dnl Set these for any other tests that may require them. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
582 dnl They will be reset before output files are generated. |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
583 CFLAGS="$CFLAGS $OPENMP_CFLAGS" |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
584 CXXFLAGS="$CXXFLAGS $OPENMP_CXXFLAGS" |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
585 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
586 dnl Define here since it is skipped if the first argument to AX_OPENMP |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
587 dnl is not empty. |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
588 if test $ENABLE_OPENMP = yes; then |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
589 AC_CHECK_HEADERS([omp.h]) |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
590 AC_CHECK_FUNCS([omp_get_num_threads]) |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
591 AC_DEFINE(OCTAVE_ENABLE_OPENMP, 1, [Define to 1 if OpenMP is enabled]) |
22398
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
592 fi |
1442ae783e1f
check for pthread and openmp libs before shared lib support (bug #48786)
John W. Eaton <jwe@octave.org>
parents:
22345
diff
changeset
|
593 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
594 ### Start determination of shared vs. static libraries. |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
595 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
596 ## Use -static if compiling on Alpha OSF/1 1.3 systems. |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
597 case $canonical_host_type in |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
598 alpha*-dec-osf1.3) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
599 LD_STATIC_FLAG=-static |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
600 ;; |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
601 esac |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
602 if test -n "$LD_STATIC_FLAG"; then |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
603 AC_MSG_NOTICE([defining LD_STATIC_FLAG to be $LD_STATIC_FLAG]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
604 fi |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
605 AC_SUBST(LD_STATIC_FLAG) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
606 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
607 ## Check for programs necessary for shared libraries (ar, libtool) |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
608 OCTAVE_PROG_AR |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
609 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
610 ifdef([LT_INIT], [], [ |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
611 errprint([error: you must have libtool 2.2.2 or a more recent version |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
612 ]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
613 m4exit([1])]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
614 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
615 LT_PREREQ([2.2.2]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
616 LT_INIT([disable-static dlopen win32-dll]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
617 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
618 if test $enable_shared = yes; then |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
619 SHARED_LIBS=yes |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
620 else |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
621 SHARED_LIBS=no |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
622 fi |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
623 AC_SUBST(SHARED_LIBS) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
624 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
625 if test $enable_static = yes; then |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
626 STATIC_LIBS=yes |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
627 else |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
628 STATIC_LIBS=no |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
629 fi |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
630 AC_SUBST(STATIC_LIBS) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
631 |
23434
f4d4d83f15c5
maint: rename cruft/ directory to external/
Rik <rik@octave.org>
parents:
23426
diff
changeset
|
632 XTRA_EXTERNAL_SH_LDFLAGS= |
29239
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29129
diff
changeset
|
633 case $host_os in |
31325
52ccba0f1af9
build: Use .def file for symbols exported from libexternal also for Cygwin.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31323
diff
changeset
|
634 msdosmsvc | mingw* | cygwin*) |
29239
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29129
diff
changeset
|
635 FLIBS="$FLIBS -lkernel32" |
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29129
diff
changeset
|
636 XTRA_EXTERNAL_SH_LDFLAGS="-Wl,liboctave/external/external.def" |
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29129
diff
changeset
|
637 ;; |
f6058c6e1b18
Visibility: Compile with visibility attributes for Windows (patch #8919).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29129
diff
changeset
|
638 esac |
23434
f4d4d83f15c5
maint: rename cruft/ directory to external/
Rik <rik@octave.org>
parents:
23426
diff
changeset
|
639 AC_SUBST(XTRA_EXTERNAL_SH_LDFLAGS) |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
640 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
641 if test $STATIC_LIBS = no && test $SHARED_LIBS = no; then |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
642 AC_MSG_ERROR([You can't disable building both static AND shared libraries!]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
643 fi |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
644 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
645 ### More configure argument checking related to linking |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
646 |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
647 case $host_os in |
31323
5c897507d9ed
build: Add Cygwin to the platforms that require -no-undefined when linking.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31166
diff
changeset
|
648 msdosmsvc | mingw* | cygwin* | AIX | BeOS | OS/2 ) |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
649 DEFAULT_NO_UNDEFINED_LDFLAG="-no-undefined" |
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
650 ;; |
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
651 *) |
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
652 DEFAULT_NO_UNDEFINED_LDFLAG="" |
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
653 ;; |
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
654 esac |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
655 AC_ARG_ENABLE([no-undefined], |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
656 [AS_HELP_STRING([--enable-no-undefined], |
31323
5c897507d9ed
build: Add Cygwin to the platforms that require -no-undefined when linking.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31166
diff
changeset
|
657 [pass -no-undefined to libtool when linking Octave and its shared libraries. This is done by default for msdosmsvc, mingw*, cygwin*, AIX, BeOS, or OS/2 hosts.])], |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
658 [case $enableval in |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
659 yes) NO_UNDEFINED_LDFLAG="-no-undefined" ;; |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
660 no) NO_UNDEFINED_LDFLAG="" ;; |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
661 *) AC_MSG_ERROR([bad value $enableval for --enable-no-undefined]) ;; |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
662 esac], |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
663 [NO_UNDEFINED_LDFLAG="$DEFAULT_NO_UNDEFINED_LDFLAG"]) |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
664 AC_SUBST(NO_UNDEFINED_LDFLAG) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
665 |
31331
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
666 case $host_os in |
31359
ee03da4812fd
build: Revert defaulting to link all dependencies for macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31345
diff
changeset
|
667 cygwin* ) |
31331
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
668 DEFAULT_LINK_ALL_DEPS="yes" |
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
669 ;; |
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
670 *) |
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
671 DEFAULT_LINK_ALL_DEPS="no" |
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
672 ;; |
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
673 esac |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
674 AC_ARG_ENABLE([link-all-dependencies], |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
675 [AS_HELP_STRING([--enable-link-all-dependencies], |
31331
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
676 [link Octave and its shared libraries with all dependencies, not just those immediately referenced (should not be needed on most systems). This is done by default for cygwin* or darwin* hosts.])], |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
677 [case $enableval in |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
678 yes) link_all_deps=yes ;; |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
679 no) link_all_deps=no ;; |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
680 *) AC_MSG_ERROR([bad value $enableval for --enable-link-all-dependencies]) |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
681 ;; |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
682 esac], |
31331
900c7d9f7fdd
build: Default to link all dependencies for Cygwin and macOS hosts (bug #55367).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31325
diff
changeset
|
683 [link_all_deps="$DEFAULT_LINK_ALL_DEPS"]) |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
684 AM_CONDITIONAL([AMCOND_LINK_ALL_DEPS], [test $link_all_deps = yes]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
685 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
686 ### Check for BLAS and LAPACK libraries. |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
687 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
688 ## Need to adjust FFLAGS to include correct integer size. |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
689 save_FFLAGS="$FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
690 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
691 |
31129
4dc326899f65
build: simplify BLAS library detection in configure (bug #62715)
Rik <rik@octave.org>
parents:
31125
diff
changeset
|
692 OCTAVE_BLAS |
27488
3fe26656e73c
ensure that HAVE_BLAS and HAVE_LAPACK are defined (bug #57042)
John W. Eaton <jwe@octave.org>
parents:
27486
diff
changeset
|
693 AX_LAPACK |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
694 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
695 ## Restore FFLAGS. |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
696 FFLAGS="$save_FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
697 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
698 ## If necessary, try again with -ff2c in FFLAGS |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
699 if test $ax_blas_ok = no; then |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
700 save_FFLAGS="$FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
701 FFLAGS="-ff2c $FFLAGS $F77_INTEGER_8_FLAG" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
702 |
31129
4dc326899f65
build: simplify BLAS library detection in configure (bug #62715)
Rik <rik@octave.org>
parents:
31125
diff
changeset
|
703 OCTAVE_BLAS |
27488
3fe26656e73c
ensure that HAVE_BLAS and HAVE_LAPACK are defined (bug #57042)
John W. Eaton <jwe@octave.org>
parents:
27486
diff
changeset
|
704 AX_LAPACK |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
705 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
706 ## Restore FFLAGS, with -ff2c if that was helpful |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
707 if test $ax_blas_ok = yes; then |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
708 FFLAGS="-ff2c $save_FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
709 else |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
710 FFLAGS="$save_FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
711 fi |
22345
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
712 fi |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
713 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
714 ## On OSX, try again with a wrapper library (without -ff2c!) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
715 if test $ax_blas_ok = no; then |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
716 case $host_os in |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
717 darwin*) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
718 ## test if wrapper functions help |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
719 octave_blaswrap_save_CFLAGS="$CFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
720 CFLAGS="$CFLAGS -DUSE_BLASWRAP" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
721 AC_LANG_PUSH(C) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
722 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
23426
58d56f52d50a
move contents of liboctave/cruft/misc to liboctave/util
John W. Eaton <jwe@octave.org>
parents:
23389
diff
changeset
|
723 #include "liboctave/util/blaswrap.c" |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
724 ]])], |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
725 [mv conftest.$ac_objext blaswrap.$ac_objext |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
726 octave_blaswrap_save_BLAS_LIBS="$BLAS_LIBS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
727 BLAS_LIBS="blaswrap.$ac_objext -framework vecLib" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
728 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
729 save_FFLAGS="$FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
730 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
731 |
31129
4dc326899f65
build: simplify BLAS library detection in configure (bug #62715)
Rik <rik@octave.org>
parents:
31125
diff
changeset
|
732 OCTAVE_BLAS |
27488
3fe26656e73c
ensure that HAVE_BLAS and HAVE_LAPACK are defined (bug #57042)
John W. Eaton <jwe@octave.org>
parents:
27486
diff
changeset
|
733 AX_LAPACK |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
734 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
735 ## Restore FFLAGS. |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
736 FFLAGS="$save_FFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
737 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
738 dnl remove temp file |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
739 rm -f blaswrap.$ac_objext], |
23426
58d56f52d50a
move contents of liboctave/cruft/misc to liboctave/util
John W. Eaton <jwe@octave.org>
parents:
23389
diff
changeset
|
740 [AC_MSG_FAILURE([cannot compile liboctave/util/blaswrap.c])]) |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
741 AC_LANG_POP(C) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
742 CFLAGS="$octave_blaswrap_save_CFLAGS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
743 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
744 if test $ax_blas_ok = no; then |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
745 BLAS_LIBS="$octave_blaswrap_save_BLAS_LIBS" |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
746 else |
23426
58d56f52d50a
move contents of liboctave/cruft/misc to liboctave/util
John W. Eaton <jwe@octave.org>
parents:
23389
diff
changeset
|
747 ## wrapper in liboctave/util, remove from BLAS_LIBS |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
748 BLAS_LIBS=`echo $BLAS_LIBS | $SED -e 's/blaswrap.[[^ ]]* //g'` |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
749 AC_DEFINE(USE_BLASWRAP, 1, |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
750 [Define to 1 if BLAS functions need to be wrapped (potentially needed for 64-bit OSX only).]) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
751 fi |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
752 ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
753 esac |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
754 fi |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
755 |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
756 if test $ax_blas_ok = no || test $ax_lapack_ok = no; then |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
757 AC_MSG_ERROR([BLAS and LAPACK libraries are required]) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
758 fi |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
759 |
31122
1077a1c277fb
build: Use caching for Fortran values in configure.
Rik <rik@octave.org>
parents:
31095
diff
changeset
|
760 case $ax_cv_blas_integer_size in |
22992
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
761 4) |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
762 HAVE_64_BIT_BLAS=no |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
763 ;; |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
764 8) |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
765 HAVE_64_BIT_BLAS=yes |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
766 ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
767 *) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
768 AC_MSG_ERROR([unrecognized BLAS library integer size]) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
769 ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
770 esac |
22345
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
771 |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
772 OCTAVE_CHECK_SIZEOF_FORTRAN_INTEGER |
31122
1077a1c277fb
build: Use caching for Fortran values in configure.
Rik <rik@octave.org>
parents:
31095
diff
changeset
|
773 if test $octave_cv_sizeof_fortran_integer -ne $ax_cv_blas_integer_size; then |
1077a1c277fb
build: Use caching for Fortran values in configure.
Rik <rik@octave.org>
parents:
31095
diff
changeset
|
774 if test $ax_cv_blas_integer_size -eq 8; then |
22345
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
775 case $F77 in |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
776 *gfortran*) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
777 case $F77_INTEGER_8_FLAG in |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
778 *-fdefault-integer-8*) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
779 ;; |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
780 *) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
781 case $FFLAGS in |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
782 *-fdefault-integer-8*) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
783 AC_MSG_NOTICE([setting -fdefault-integer-8 in F77_INTEGER_8_FLAG instead of FFLAGS]) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
784 FFLAGS=`echo $FFLAGS | $SED 's/-fdefault-integer-8//g'` |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
785 F77_INTEGER_8_FLAG="-fdefault-integer-8" |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
786 ;; |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
787 *) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
788 AC_MSG_NOTICE([adding -fdefault-integer-8 to F77_INTEGER_8_FLAG]) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
789 F77_INTEGER_8_FLAG="-fdefault-integer-8" |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
790 ## Invalidate the cache and try again. |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
791 $as_unset octave_cv_sizeof_fortran_integer |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
792 ;; |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
793 esac |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
794 ;; |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
795 esac |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
796 ;; |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
797 esac |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
798 if test -z "$octave_cv_sizeof_fortran_integer"; then |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
799 OCTAVE_CHECK_SIZEOF_FORTRAN_INTEGER |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
800 fi |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
801 fi |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
802 ## We intentionally don't attempt to fix things up if the default |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
803 ## Fortran integer size is 8 but BLAS appears to use 4-byte integers. |
31122
1077a1c277fb
build: Use caching for Fortran values in configure.
Rik <rik@octave.org>
parents:
31095
diff
changeset
|
804 if test $octave_cv_sizeof_fortran_integer -ne $ax_cv_blas_integer_size; then |
1077a1c277fb
build: Use caching for Fortran values in configure.
Rik <rik@octave.org>
parents:
31095
diff
changeset
|
805 AC_MSG_ERROR([your Fortran compiler must have an option for setting the default integer size to be the same size as your BLAS library uses ($ax_cv_blas_integer_size bytes). See the file INSTALL for more information.]) |
22345
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
806 fi |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
807 fi |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
808 AC_SUBST(F77_INTEGER_8_FLAG) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
809 |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
810 case $octave_cv_sizeof_fortran_integer in |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
811 8) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
812 OCTAVE_F77_INT_TYPE=int64_t |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
813 ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
814 4) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
815 OCTAVE_F77_INT_TYPE=int32_t |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
816 ;; |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
817 esac |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
818 AC_SUBST(OCTAVE_F77_INT_TYPE) |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
819 AC_DEFINE_UNQUOTED(OCTAVE_F77_INT_TYPE, [$OCTAVE_F77_INT_TYPE], |
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
820 [Define to the type of octave_f77_int_type (64 or 32 bit signed integer).]) |
23014
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
821 AC_DEFINE_UNQUOTED(OCTAVE_SIZEOF_F77_INT_TYPE, |
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
822 [$octave_cv_sizeof_fortran_integer], |
7a9313d27cea
define macros for size of idx_type and f77_int_type
John W. Eaton <jwe@octave.org>
parents:
23010
diff
changeset
|
823 [Define to the size of the octave_f77_int_type (8 or 4).]) |
22986
21707d6a02c7
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
22985
diff
changeset
|
824 |
22345
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
825 OCTAVE_F77_FLAG([-ffloat-store], [ |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
826 AC_MSG_RESULT([setting F77_FLOAT_STORE_FLAG to -ffloat-store]) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
827 F77_FLOAT_STORE_FLAG=-ffloat-store |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
828 AC_SUBST(F77_FLOAT_STORE_FLAG) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
829 ]) |
752d79f86781
fix ordering of fortran compiler check in configure script (bug #48815)
John W. Eaton <jwe@octave.org>
parents:
22323
diff
changeset
|
830 |
25778
4e658452f6c7
add -std=legacy to FFLAGS if GNU compiler accepts it (bug #54390)
John W. Eaton <jwe@octave.org>
parents:
25772
diff
changeset
|
831 if test $ac_cv_f77_compiler_gnu = yes; then |
4e658452f6c7
add -std=legacy to FFLAGS if GNU compiler accepts it (bug #54390)
John W. Eaton <jwe@octave.org>
parents:
25772
diff
changeset
|
832 OCTAVE_F77_FLAG([-std=legacy]) |
4e658452f6c7
add -std=legacy to FFLAGS if GNU compiler accepts it (bug #54390)
John W. Eaton <jwe@octave.org>
parents:
25772
diff
changeset
|
833 fi |
4e658452f6c7
add -std=legacy to FFLAGS if GNU compiler accepts it (bug #54390)
John W. Eaton <jwe@octave.org>
parents:
25772
diff
changeset
|
834 |
25487
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
835 BUILD_EXTERNAL_LIBXERBLA= |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
836 case $host_os in |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
837 msdosmsvc | mingw*) |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
838 BUILD_EXTERNAL_LIBXERBLA=ues |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
839 ;; |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
840 esac |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
841 |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
842 AM_CONDITIONAL([AMCOND_BUILD_EXTERNAL_LIBXERBLA], |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
843 [test -n "$BUILD_EXTERNAL_LIBXERBLA"]) |
fbc270aeb55d
* interpreter.cc (intialize_xerbla_error_handler, xerbla_abort): New functions.
John W. Eaton <jwe@octave.org>
parents:
25331
diff
changeset
|
844 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
845 ### Set options for dynamic linking if enabled. |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
846 dnl Options set only only if we are building shared libs and some API for |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
847 dnl dynamic linking has been detected. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
848 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
849 dnl FIXME: A lot of the following duplicates the functionality of |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
850 dnl code generated by the dlopen option for LT_INIT. |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
851 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
852 RDYNAMIC_FLAG= |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
853 DL_API_MSG="" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
854 dlopen_api=no |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
855 loadlibrary_api=no |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
856 |
25882
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
857 case $lt_cv_dlopen in |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
858 dlopen) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
859 dlopen_api=yes |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
860 DL_API_MSG="dlopen" |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
861 AC_DEFINE(HAVE_DLOPEN_API, 1, |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
862 [Define to 1 if system has dlopen, dlsym, dlerror, and dlclose for dynamic linking.]) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
863 OCTAVE_CXX_FLAG([-rdynamic], [RDYNAMIC_FLAG=-rdynamic]) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
864 ;; |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
865 LoadLibrary) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
866 loadlibrary_api=yes |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
867 DL_API_MSG="LoadLibrary" |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
868 AC_DEFINE(HAVE_LOADLIBRARY_API, 1, |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
869 [Define to 1 if system has LoadLibrary for dynamic linking.]) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
870 ;; |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
871 *) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
872 AC_MSG_ERROR([Octave requires some way to perform dynamic linking.]) |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
873 ;; |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
874 esac |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
875 |
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
876 DL_LIBS="$lt_cv_dlopen_libs" |
22234
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
877 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
878 if test $SHARED_LIBS = yes; then |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
879 LIBOCTINTERP="-loctinterp" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
880 LIBOCTAVE="-loctave" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
881 else |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
882 LIBOCTINTERP="${top_builddir}/libinterp/liboctinterp.a" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
883 LIBOCTAVE="${top_builddir}/liboctave/liboctave.a" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
884 fi |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
885 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
886 AC_SUBST(RDYNAMIC_FLAG) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
887 AC_SUBST(LIBOCTINTERP) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
888 AC_SUBST(LIBOCTAVE) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
889 |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
890 if test "$cross_compiling" = yes && test -n "$ac_tool_prefix"; then |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
891 CROSS_TOOL_PREFIX="$ac_tool_prefix" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
892 MKOCTFILE_AR=`echo "$AR" | $SED "s,$CROSS_TOOL_PREFIX,,"` |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
893 MKOCTFILE_CC=`echo "$CC" | $SED "s,$CROSS_TOOL_PREFIX,,"` |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
894 MKOCTFILE_CXX=`echo "$CXX" | $SED "s,$CROSS_TOOL_PREFIX,,"` |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
895 MKOCTFILE_F77=`echo "$F77" | $SED "s,$CROSS_TOOL_PREFIX,,"` |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
896 MKOCTFILE_RANLIB=`echo "$RANLIB" | $SED "s,$CROSS_TOOL_PREFIX,,"` |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
897 else |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
898 MKOCTFILE_AR="$AR" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
899 MKOCTFILE_CC="$CC" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
900 MKOCTFILE_CXX="$CXX" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
901 MKOCTFILE_F77="$F77" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
902 MKOCTFILE_RANLIB="$RANLIB" |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
903 fi |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
904 AC_MSG_NOTICE([defining CROSS_TOOL_PREFIX to be $CROSS_TOOL_PREFIX]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
905 AC_MSG_NOTICE([defining MKOCTFILE_AR to be $MKOCTFILE_AR]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
906 AC_MSG_NOTICE([defining MKOCTFILE_CC to be $MKOCTFILE_CC]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
907 AC_MSG_NOTICE([defining MKOCTFILE_CXX to be $MKOCTFILE_CXX]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
908 AC_MSG_NOTICE([defining MKOCTFILE_F77 to be $MKOCTFILE_F77]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
909 AC_MSG_NOTICE([defining MKOCTFILE_RANLIB to be $MKOCTFILE_RANLIB]) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
910 AC_SUBST(CROSS_TOOL_PREFIX) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
911 AC_SUBST(MKOCTFILE_AR) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
912 AC_SUBST(MKOCTFILE_CC) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
913 AC_SUBST(MKOCTFILE_CXX) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
914 AC_SUBST(MKOCTFILE_F77) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
915 AC_SUBST(MKOCTFILE_RANLIB) |
66dd260512a4
allow configure to select Qt version
John W. Eaton <jwe@octave.org>
parents:
22233
diff
changeset
|
916 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
917 ### Enable float truncation to work around issues with x87 co-processors |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
918 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
919 dnl When compiling math for x87, problems may arise in some code comparing |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
920 dnl floating-point intermediate results. The root cause is the extra precision |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
921 dnl (~80 bits) of x87 co-processor registers versus the IEEE standard 64 bits. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
922 dnl Generally, storing the result in a local volatile variable forces a |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
923 dnl truncation back to 64 bits, but it also degrades performance. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
924 dnl However, this performance degradation is very minimal, if indeed measurable. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
925 dnl Therefore, it has been enabled for all platforms and compilers. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
926 dnl Reported bugs indicate that --enable-float-truncate is required for MinGW |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
927 dnl and Cygwin platforms and for GCC compilers >= 5.0. It should not be |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
928 dnl necessary for non-x87 targets or when using modern SSE math. |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
929 ENABLE_FLOAT_TRUNCATE=yes |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
930 AC_ARG_ENABLE([float-truncate], |
19965
d20dd211cc89
Enable float truncation by default for octave builds.
Rik <rik@octave.org>
parents:
19964
diff
changeset
|
931 [AS_HELP_STRING([--disable-float-truncate], |
18142
d9a9e13826e6
configure.ac: Rephrase help message for --enable-float-truncate.
Rik <rik@octave.org>
parents:
18087
diff
changeset
|
932 [truncate intermediate FP results])], |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
933 [if test "$enableval" = no; then ENABLE_FLOAT_TRUNCATE=no; fi], []) |
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
934 if test $ENABLE_FLOAT_TRUNCATE = yes; then |
21229
a83e7a384ee0
create and install a subset of config.h in octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21211
diff
changeset
|
935 AC_DEFINE(OCTAVE_ENABLE_FLOAT_TRUNCATE, 1, |
23009
624f76f2ca51
configure.ac: Use a common style for messages.
Rik <rik@octave.org>
parents:
23007
diff
changeset
|
936 [Define to 1 to truncate intermediate FP results.]) |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
937 fi |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
938 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
939 ### Determine extra CFLAGS, CXXFLAGS that may be necessary for Octave. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
940 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
941 ## On Intel systems with gcc, we need to compile with -mieee-fp to get full |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
942 ## support for IEEE floating point. |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
943 ## |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
944 ## On Alpha/OSF systems, we require -mieee or -ieee for full support. |
869 | 945 |
3126 | 946 ieee_fp_flag= |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
947 case $canonical_host_type in |
3887 | 948 i[[3456789]]86-*-*) |
5076 | 949 if test "$GCC" = yes; then |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
950 OCTAVE_CC_FLAG([-mieee-fp], [ |
5076 | 951 ieee_fp_flag=-mieee-fp |
952 XTRA_CFLAGS="$XTRA_CFLAGS -mieee-fp" | |
5844 | 953 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CFLAGS])]) |
5076 | 954 fi |
955 if test "$GXX" = yes; then | |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
956 OCTAVE_CXX_FLAG([-mieee-fp], [ |
12451 | 957 ieee_fp_flag=-mieee-fp |
958 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee-fp" | |
959 AC_MSG_NOTICE([adding -mieee-fp to XTRA_CXXFLAGS])]) | |
5076 | 960 fi |
324 | 961 ;; |
3127 | 962 alpha*-*-*) |
4284 | 963 if test "$GCC" = yes; then |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
964 OCTAVE_CC_FLAG([-mieee], [ |
12451 | 965 ieee_fp_flag=-mieee |
966 XTRA_CFLAGS="$XTRA_CFLAGS -mieee" | |
967 AC_MSG_NOTICE([adding -mieee to XTRA_CFLAGS])]) | |
5076 | 968 else |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
969 OCTAVE_CC_FLAG([-ieee], [ |
12451 | 970 ieee_fp_flag=-ieee |
971 XTRA_CFLAGS="$XTRA_CFLAGS -ieee" | |
972 AC_MSG_NOTICE([adding -ieee to XTRA_CFLAGS])]) | |
5076 | 973 fi |
974 if test "$GXX" = yes; then | |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
975 OCTAVE_CXX_FLAG([-mieee], [ |
12451 | 976 ieee_fp_flag=-mieee |
977 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mieee" | |
978 AC_MSG_NOTICE([adding -mieee to XTRA_CXXFLAGS])]) | |
4284 | 979 else |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
980 OCTAVE_CXX_FLAG([-ieee], [ |
12451 | 981 ieee_fp_flag=-ieee |
982 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -ieee" | |
983 AC_MSG_NOTICE([adding -ieee to XTRA_CXXFLAGS])]) | |
4284 | 984 fi |
2020 | 985 ;; |
3176 | 986 *ibm-aix4*) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
987 OCTAVE_CC_FLAG([-mminimal-toc], [ |
3351 | 988 XTRA_CFLAGS="$XTRA_CFLAGS -mminimal-toc"]) |
3176 | 989 |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
990 OCTAVE_CXX_FLAG([-mminimal-toc], [ |
3351 | 991 XTRA_CXXFLAGS="$XTRA_CXXFLAGS -mminimal-toc"]) |
3176 | 992 ;; |
324 | 993 esac |
3126 | 994 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
995 AC_SUBST(XTRA_CFLAGS) |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
996 AC_SUBST(XTRA_CXXFLAGS) |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
997 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
998 ### Defaults for cross compiling. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
999 dnl BUILD_CC and BUILD_CXX are the compilers that we use for building tools |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1000 dnl on the build system. For now, we assume that the only cross compiling we |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1001 dnl can do is with gcc on a Unixy system, but the dedicated hacker can |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1002 dnl override these. |
4094 | 1003 |
1004 if test "$cross_compiling" = yes; then | |
1005 BUILD_CC="gcc" | |
1006 BUILD_CFLAGS="-O2 -g" | |
1007 BUILD_CXX="g++" | |
22883
7cf0b9654d44
cross-tools: enable std=c++11 for default cross g++ CXXFLAGS (Bug #49822)
John D
parents:
22842
diff
changeset
|
1008 BUILD_CXXFLAGS="-O2 -g -std=c++11" |
4298 | 1009 BUILD_LDFLAGS="" |
4098 | 1010 BUILD_EXEEXT="" |
4094 | 1011 else |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
1012 BUILD_CC="${CC}" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
1013 BUILD_CFLAGS="${CFLAGS}" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
1014 BUILD_CXX="${CXX}" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
1015 BUILD_CXXFLAGS="${CXXFLAGS}" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
1016 BUILD_LDFLAGS="${LDFLAGS}" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
1017 BUILD_EXEEXT="${EXEEXT}" |
4094 | 1018 fi |
1019 | |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1020 AC_ARG_VAR([BUILD_CC], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1021 [build system C compiler (used if cross compiling)]) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1022 AC_ARG_VAR([BUILD_CFLAGS], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1023 [build system C compiler flags (used if cross compiling)]) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1024 AC_ARG_VAR([BUILD_CXX], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1025 [build system C++ compiler (used if cross compiling)]) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1026 AC_ARG_VAR([BUILD_CXXFLAGS], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1027 [build system C++ compiler flags (used if cross compiling)]) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1028 AC_ARG_VAR([BUILD_LDFLAGS], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1029 [build system C++ compiler link flags (used if cross compiling)]) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1030 AC_ARG_VAR([BUILD_EXEEXT], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1031 [build system executable extension (used if cross compiling)]) |
3222 | 1032 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1033 ### Determine whether to create cross-mkoctfile and other cross-tools. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1034 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1035 cross_tools=no |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1036 AC_ARG_ENABLE([cross-tools], |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1037 [AS_HELP_STRING([--enable-cross-tools], |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1038 [build cross tools (mkoctfile, octave-config) if cross compiling])], |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1039 [if test "$enableval" = yes; then cross_tools=yes; fi]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1040 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1041 if test "$cross_tools" = yes; then |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1042 if test "$cross_compiling" = no; then |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1043 AC_MSG_WARN([ignoring --enable-cross-tools when not cross compiling]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1044 cross_tools=no |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1045 fi |
11208
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1046 fi |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1047 AM_CONDITIONAL([AMCOND_CROSS_TOOLS], [test $cross_tools = yes]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1048 |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1049 ### Check compiler characteristics. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1050 dnl FIXME: How many of these are necessary now that C++11 is required? |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1051 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1052 ## Check if C++ compiler can auto allocate variable sized arrays. |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1053 OCTAVE_CXX_DYNAMIC_AUTO_ARRAYS |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1054 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1055 ## Check that C compiler and libraries support IEEE754 data format. |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1056 OCTAVE_IEEE754_DATA_FORMAT |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1057 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1058 ## Are bit_and, bit_or, and bit_xor defined as templated operators? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1059 OCTAVE_CXX_BITWISE_OP_TEMPLATES |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1060 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1061 ## Can complex class set components independently? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1062 OCTAVE_CXX_COMPLEX_SETTERS |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1063 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1064 ## Are there functions to access real/imag parts of numbers via references? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1065 OCTAVE_CXX_COMPLEX_REFERENCE_ACCESSORS |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1066 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1067 ## Does the C compiler handle alloca and const correctly? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1068 AC_FUNC_ALLOCA |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1069 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1070 ## Does the C compiler support Automake subdir-objects option? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1071 AM_PROG_CC_C_O |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1072 |
29129
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1073 ## Set the target Windows version early so that gnulib can use all functions |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1074 ## that are available in that version. |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1075 case $host_os in |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1076 msdosmsvc | mingw*) |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1077 AC_MSG_CHECKING([for required _WIN32_WINNT]) |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1078 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1079 #include <windows.h> |
29354
6c2fa2293242
Increase Windows API version to Windows 7 (bug #60014).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29313
diff
changeset
|
1080 #if _WIN32_WINNT < 0x0601 |
29129
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1081 #error "Wrong version" |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1082 #endif |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1083 ]], [])], |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1084 [AC_MSG_RESULT([none])], |
29354
6c2fa2293242
Increase Windows API version to Windows 7 (bug #60014).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29313
diff
changeset
|
1085 [AC_DEFINE(_WIN32_WINNT, 0x0601, |
6c2fa2293242
Increase Windows API version to Windows 7 (bug #60014).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29313
diff
changeset
|
1086 [Define to 0x0601 to access SetCurrentProcessExplicitAppUserModelID.]) |
6c2fa2293242
Increase Windows API version to Windows 7 (bug #60014).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29313
diff
changeset
|
1087 AC_MSG_RESULT([0x0601])]) |
29129
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1088 ;; |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1089 esac |
3b1d005aabbf
configure.ac: Set target Windows version early.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29116
diff
changeset
|
1090 |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1091 ### gnulib initialization: part 2 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1092 dnl Must take place after part 1, and after standard compiler options and |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1093 dnl search paths have been established, and at the same priority level as |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1094 dnl system library function and header checks, but before checks for all |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1095 dnl external library dependencies. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1096 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1097 gl_INIT |
8185
69c5cce38c29
implement 64-bit arithmetics
Jaroslav Hajek <highegg@gmail.com>
parents:
8169
diff
changeset
|
1098 |
869 | 1099 ### Checks for header files. |
1100 | |
1377 | 1101 AC_HEADER_SYS_WAIT |
2097 | 1102 |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1103 ## C headers |
4051 | 1104 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1105 dnl Use multiple AC_CHECKs to avoid line continuations '\' in list. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1106 AC_CHECK_HEADERS([dlfcn.h floatingpoint.h fpu_control.h grp.h]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1107 AC_CHECK_HEADERS([ieeefp.h pthread.h pwd.h sys/ioctl.h]) |
29408
f4cf798e6d8f
check for stropts.h (bug #60163)
John W. Eaton <jwe@octave.org>
parents:
29379
diff
changeset
|
1108 AC_CHECK_HEADERS([stropts.h sys/stropts.h]) |
4051 | 1109 |
27448
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1110 ## Some versions of GCC fail when using -fopenmp and including |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1111 ## stdatomic.h, so we try to work around that. Use the compile_ifelse |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1112 ## macro because we are trying to test the case of the header file |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1113 ## existing but not being usable. The default warning from the |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1114 ## check_headers macro is not appropriate here. |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1115 AC_CACHE_CHECK([whether stdatomic.h can be compiled], |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1116 [octave_cv_stdatomic_h_ok], |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1117 [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1118 #include <stdatomic.h> |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1119 ]])], |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1120 octave_cv_stdatomic_h_ok=yes, |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1121 octave_cv_stdatomic_h_ok=no) |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1122 ]) |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1123 if test $octave_cv_stdatomic_h_ok = yes; then |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1124 AC_DEFINE(OCTAVE_STDATOMIC_H_OK, 1, |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1125 [Define to 1 if stdatomic.h can be compiled.]) |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1126 fi |
b47705865de7
fall back to system-dependent functions if compiling stdatomic.h fails
John W. Eaton <jwe@octave.org>
parents:
27427
diff
changeset
|
1127 |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1128 ## Find a termio header to include. |
1901 | 1129 |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1130 AC_CHECK_HEADERS([termios.h], have_termios_h=yes, have_termios_h=no) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1131 AC_CHECK_HEADERS([termio.h], have_termio_h=yes, have_termio_h=no) |
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1132 AC_CHECK_HEADERS([sgtty.h], have_sgtty_h=yes, have_sgtty_h=no) |
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1133 AC_CHECK_HEADERS([conio.h], have_conio_h=yes, have_conio_h=no) |
3249 | 1134 |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1135 if test $have_termios_h != yes \ |
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1136 && test $have_termio_h != yes \ |
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1137 && test $have_sgtty_h != yes; then |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1138 AC_MSG_WARN([couldn't find one of termios.h, termio.h, or sgtty.h!]) |
832 | 1139 fi |
869 | 1140 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1141 ## For MSVC compilers, avoid #define of min/max from windows.h header. |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1142 if test $have_msvc = yes; then |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1143 AC_DEFINE(NOMINMAX, 1, [Define to 1 to avoid min/max macro definition in Windows headers.]) |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1144 fi |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1145 |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1146 ### Determine types and size of types. |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1147 |
15172
c7d466a02065
configure.ac: Add checks for a few missing types.
Rik <rik@octave.org>
parents:
15170
diff
changeset
|
1148 AC_TYPE_INT64_T |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1149 AC_TYPE_MODE_T |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1150 AC_TYPE_OFF_T |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1151 AC_TYPE_PID_T |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1152 AC_TYPE_SIZE_T |
15172
c7d466a02065
configure.ac: Add checks for a few missing types.
Rik <rik@octave.org>
parents:
15170
diff
changeset
|
1153 AC_TYPE_SSIZE_T |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1154 AC_TYPE_UID_T |
15172
c7d466a02065
configure.ac: Add checks for a few missing types.
Rik <rik@octave.org>
parents:
15170
diff
changeset
|
1155 AC_TYPE_UINT64_T |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1156 AC_CHECK_TYPES([dev_t, ino_t]) |
15172
c7d466a02065
configure.ac: Add checks for a few missing types.
Rik <rik@octave.org>
parents:
15170
diff
changeset
|
1157 AC_CHECK_TYPES([ptrdiff_t]) |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1158 |
21354
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1159 AC_CHECK_TYPES([long long int]) |
21378
172479a97e6c
configure.ac: Remove overquoting in shell variables tests.
Rik <rik@octave.org>
parents:
21374
diff
changeset
|
1160 if test $ac_cv_type_long_long_int = yes; then |
21354
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1161 AC_DEFINE(OCTAVE_HAVE_LONG_LONG_INT, 1, |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1162 [Define to 1 if the system has the type 'long long int'.]) |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1163 fi |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1164 |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1165 AC_CHECK_TYPES([unsigned long long int]) |
21378
172479a97e6c
configure.ac: Remove overquoting in shell variables tests.
Rik <rik@octave.org>
parents:
21374
diff
changeset
|
1166 if test $ac_cv_type_unsigned_long_long_int = yes; then |
21354
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1167 AC_DEFINE(OCTAVE_HAVE_UNSIGNED_LONG_LONG_INT, 1, |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1168 [Define to 1 if the system has the type 'unsigned long long int'.]) |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1169 fi |
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1170 |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1171 ## Check for long double type (may be used for 64-bit integer computations). |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1172 AC_CHECK_SIZEOF([long double]) |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1173 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1174 ### Check structures and existence of necessary members. |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1175 |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1176 AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_blocks, |
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1177 struct stat.st_rdev]) |
15134
edae65062740
build: Move unordered_map header tests to acinclude.m4 and add caching of results.
Rik <rik@octave.org>
parents:
15130
diff
changeset
|
1178 AC_CHECK_MEMBERS([struct group.gr_passwd]) |
3887 | 1179 |
1186 | 1180 AC_STRUCT_TIMEZONE |
8998
a48fba01e4ac
optimize isnan/isinf/isfinite mappers
Jaroslav Hajek <highegg@gmail.com>
parents:
8940
diff
changeset
|
1181 |
21235
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1182 ## Check if C++ compiler allows overload of char, int8_t, and uint8_t. |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1183 AC_CACHE_CHECK([whether ${CXX-g++} allows overload of char, int8_t, and uint8_t], |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1184 [octave_cv_overload_char_int8_t], |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1185 [AC_LANG_PUSH(C++) |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1186 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1187 #include <stdint.h> |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1188 void somefunc(char x) {}; |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1189 void somefunc(int8_t x) {}; |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1190 void somefunc(uint8_t x) {}; |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1191 ]])], |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1192 octave_cv_overload_char_int8_t=yes, |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1193 octave_cv_overload_char_int8_t=no) |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1194 AC_LANG_POP(C++) |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1195 ]) |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1196 if test $octave_cv_overload_char_int8_t = yes; then |
21354
06d15e4e611a
move public data type macros to octave-config.h
John W. Eaton <jwe@octave.org>
parents:
21306
diff
changeset
|
1197 AC_DEFINE(OCTAVE_HAVE_OVERLOAD_CHAR_INT8_TYPES, 1, |
21235
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1198 [Define to 1 if C++ allows overload of char, int8_t, and uint8_t types.]) |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1199 fi |
b48d65c5df5b
Disable char/int8_t function overloads where not permitted (bug #45411)
Mike Miller <mtmiller@octave.org>
parents:
21105
diff
changeset
|
1200 |
29365
e9b7ac7031fb
Compute with NA correctly on MIPS architecture (bug #59830).
Rik <rik@octave.org>
parents:
29361
diff
changeset
|
1201 ## Check for MIPS-specific non-standard encoding of NaN value |
e9b7ac7031fb
Compute with NA correctly on MIPS architecture (bug #59830).
Rik <rik@octave.org>
parents:
29361
diff
changeset
|
1202 OCTAVE_MIPS_NAN |
e9b7ac7031fb
Compute with NA correctly on MIPS architecture (bug #59830).
Rik <rik@octave.org>
parents:
29361
diff
changeset
|
1203 |
1788 | 1204 ### Checks for functions and variables. |
869 | 1205 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1206 dnl The list of functions is short because we use gnulib to guarantee |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1207 dnl valid implementations for many common problematic functions. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1208 |
15452
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1209 dnl These checks define/undefine HAVE_FUNCNAME in config.h. |
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1210 dnl Code tests HAVE_FUNCNAME and either uses function or provides workaround. |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1211 dnl Use multiple AC_CHECKs to avoid line continuations '\' in list |
18066
9f6c9f3f1b62
Use gnulib version of canonicalize_file_name across all systems.
Rik <rik@octave.org>
parents:
18051
diff
changeset
|
1212 AC_CHECK_FUNCS([ctermid dup2]) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1213 AC_CHECK_FUNCS([endgrent endpwent execvp fork]) |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1214 AC_CHECK_FUNCS([getegid geteuid getgid getgrent getgrgid getgrnam]) |
15452
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1215 AC_CHECK_FUNCS([getpgrp getpid getppid getpwent getpwuid getuid]) |
15850
ffd1a99733bd
build: Check for isascii() before using it.
Rik <rik@octave.org>
parents:
15846
diff
changeset
|
1216 AC_CHECK_FUNCS([isascii kill]) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1217 AC_CHECK_FUNCS([lgamma_r lgammaf_r]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1218 AC_CHECK_FUNCS([realpath resolvepath]) |
21949
baeffde5c87d
fix build for Windows systems
John W. Eaton <jwe@octave.org>
parents:
21945
diff
changeset
|
1219 AC_CHECK_FUNCS([select setgrent setpwent setsid siglongjmp strsignal]) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1220 AC_CHECK_FUNCS([tcgetattr tcsetattr toascii]) |
17946 | 1221 AC_CHECK_FUNCS([umask waitpid]) |
20786
a8ee668e7fd7
Fix kbhit and pause on Windows systems.
Rik <rik@octave.org>
parents:
20640
diff
changeset
|
1222 AC_CHECK_FUNCS([_getch _kbhit]) |
15452
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1223 |
15852
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1224 ## Check for math defines such as M_LN2 in math.h |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1225 AC_CACHE_CHECK([for MATH DEFINES in math.h], |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1226 [octave_cv_header_math_defines], |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1227 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1228 #include <math.h> |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1229 ]], [[ |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1230 double x = M_LN2;]])], |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1231 octave_cv_header_math_defines=yes, |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1232 octave_cv_header_math_defines=no) |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1233 ]) |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1234 |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1235 if test $octave_cv_header_math_defines = no; then |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1236 ## Check again and try defining _USE_MATH_DEFINES |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1237 AC_CACHE_CHECK([whether _USE_MATH_DEFINES needs to be defined], |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1238 [octave_cv_header__use_math_defines], |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1239 [save_CPPFLAGS="$CPPFLAGS" |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1240 CPPFLAGS="$CPPFLAGS -D_USE_MATH_DEFINES" |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1241 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1242 #include <math.h> |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1243 ]], [[ |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1244 double x = M_LN2;]])], |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1245 octave_cv_header__use_math_defines=yes, |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1246 octave_cv_header__use_math_defines=no) |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1247 CPPFLAGS="$save_CPPFLAGS" |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1248 ]) |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1249 if test $octave_cv_header__use_math_defines = yes; then |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1250 octave_cv_header_math_defines=yes |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1251 AC_DEFINE(_USE_MATH_DEFINES, 1, |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1252 [Define to 1 if _USE_MATH_DEFINES is required to get math constants like M_LN2.]) |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1253 CPPFLAGS="$CPPFLAGS -D_USE_MATH_DEFINES" |
1978 | 1254 fi |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19349
diff
changeset
|
1255 fi |
15852
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1256 |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1257 if test $octave_cv_header_math_defines = yes; then |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1258 AC_DEFINE(HAVE_MATH_DEFINES, 1, |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1259 [Define to 1 if defines such as M_PI are available in math.h]) |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1260 else |
cd115ec92248
build: Check that system has math defines such as M_PI.
Rik <rik@octave.org>
parents:
15850
diff
changeset
|
1261 AC_MSG_ERROR([MATH DEFINES in math.h such as M_PI are required to build Octave]) |
4163 | 1262 fi |
1263 | |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1264 ## Use Unicode aware functions on Windows |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
1265 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
1266 msdosmsvc | mingw*) |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1267 AC_DEFINE(_UNICODE, 1, [Use Unicode CRT functions on Windows by default.]) |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1268 AC_DEFINE(UNICODE, 1, [Use Windows Unicode API by default.]) |
956 | 1269 ;; |
1270 esac | |
1271 | |
29540
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1272 OCTAVE_UNICODE_EXE_LDFLAGS="" |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1273 case $host_os in |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1274 mingw*) |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1275 OCTAVE_UNICODE_EXE_LDFLAGS="-municode" |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1276 ;; |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1277 esac |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1278 |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1279 AC_SUBST(OCTAVE_UNICODE_EXE_LDFLAGS) |
b6f80b1d448f
Windows: Support non-ASCII characters in command line arguments.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29511
diff
changeset
|
1280 |
15452
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1281 ## Windows-specific use of functions |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
1282 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
1283 msdosmsvc | mingw*) |
15452
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1284 AC_CHECK_FUNCS([setvbuf], [], |
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1285 [AC_MSG_ERROR([Missing function required to build Octave])]) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1286 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1287 ## We need this for GetDeviceCaps. Should we actually check for |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1288 ## the function and library? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1289 LIBS="-lgdi32 $LIBS" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1290 ;; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1291 esac |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1292 |
24678
aa9c29f48718
configure.ac: Only check for psapi library when compiling for Windows.
Rik <rik@octave.org>
parents:
24653
diff
changeset
|
1293 ## Windows-specific module used for winqueryreg function |
aa9c29f48718
configure.ac: Only check for psapi library when compiling for Windows.
Rik <rik@octave.org>
parents:
24653
diff
changeset
|
1294 case $host_os in |
aa9c29f48718
configure.ac: Only check for psapi library when compiling for Windows.
Rik <rik@octave.org>
parents:
24653
diff
changeset
|
1295 msdosmsvc | mingw*) |
24719
9af783c01c7f
Fix cross-building for win32 target (bug #50463).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24678
diff
changeset
|
1296 AC_CHECK_HEADERS([psapi.h], |
29745
6c76819255cb
build: Avoid linking to wrapper for EnumProcessModules on Windows (bug #60746).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29742
diff
changeset
|
1297 [CPPFLAGS="-DPSAPI_VERSION=2 $CPPFLAGS"], |
24719
9af783c01c7f
Fix cross-building for win32 target (bug #50463).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24678
diff
changeset
|
1298 [AC_MSG_ERROR([Missing PSAPI required to build for Windows target.])], |
9af783c01c7f
Fix cross-building for win32 target (bug #50463).
Markus Mützel <markus.muetzel@gmx.de>
parents:
24678
diff
changeset
|
1299 [#include <windows.h>]) |
18352
c460566106f0
configure.ac: Find Qt libs in framework option for Macs (bug #41236)
Michael C. Grant <mcg@cvxr.com>
parents:
18342
diff
changeset
|
1300 ;; |
15452
4d960b078272
build: Remove unnecessary AC_CHECK_FUNCS calls.
Rik <rik@octave.org>
parents:
15451
diff
changeset
|
1301 esac |
3130 | 1302 |
28053
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1303 ## Windows-specific module used for canonical UNC paths |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1304 case $host_os in |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1305 msdosmsvc | mingw*) |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1306 AC_CHECK_HEADERS([shlwapi.h], |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1307 [LIBS="-lshlwapi $LIBS"], |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1308 [AC_MSG_ERROR([Missing SHLWAPI required to build for Windows target.])], |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1309 [#include <windows.h>]) |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1310 ;; |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1311 esac |
b70b9eaaf751
Actually canonicalize UNC paths (bug #57439).
Markus Mützel <markus.muetzel@gmx.de>
parents:
28031
diff
changeset
|
1312 |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1313 ## Cygwin kluge for getrusage. |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1314 AC_CHECK_FUNCS([getrusage]) |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
1315 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
1316 cygwin*) |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1317 AC_DEFINE(RUSAGE_TIMES_ONLY, 1, |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1318 [Define to 1 if the struct rusage only has time information.]) |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1319 ;; |
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1320 esac |
869 | 1321 |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1322 AC_CHECK_FUNCS([getpwnam], [], [AC_CHECK_LIB([sun], [getpwnam])]) |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1323 |
1388 | 1324 AC_FUNC_CLOSEDIR_VOID |
1225 | 1325 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1326 ## Check return type of matherr |
15143
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1327 AC_CACHE_CHECK([for struct exception in math.h], |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1328 [octave_cv_func_matherr_type], |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1329 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1330 #include <math.h> |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1331 ]], [[ |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1332 struct exception *x; |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1333 x->type; |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1334 x->name; |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1335 ]])], |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1336 octave_cv_func_matherr_type=yes, |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1337 octave_cv_func_matherr_type=no) |
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1338 ]) |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1339 if test $octave_cv_func_matherr_type = yes; then |
15143
e412d18d4fa5
configure.ac: Allow caching of EXCEPTION_IN_MATH test.
Rik <rik@octave.org>
parents:
15142
diff
changeset
|
1340 AC_DEFINE(EXCEPTION_IN_MATH, 1, |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1341 [Define to 1 if math.h declares struct exception for matherr.]) |
2488 | 1342 fi |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19349
diff
changeset
|
1343 |
15125
067699edef86
configure.ac: Re-organize to follow Autoconf layout guidelines
Rik <rik@octave.org>
parents:
15123
diff
changeset
|
1344 ## Signal stuff. |
869 | 1345 |
5844 | 1346 AC_CHECK_DECLS([sys_siglist], [], [], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1347 [[#include <signal.h> |
5844 | 1348 /* NetBSD declares sys_siglist in unistd.h. */ |
1349 #if HAVE_UNISTD_H | |
1350 # include <unistd.h> | |
1351 #endif | |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1352 ]]) |
2633 | 1353 |
31151
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1354 ### Configure Bison as push or pull parser. |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1355 |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1356 ENABLE_COMMAND_LINE_PUSH_PARSER=yes |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1357 AC_ARG_ENABLE([command-line-push-parser], |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1358 [AS_HELP_STRING([--disable-command-line-push-parser], |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1359 [don't use Bison's push parser interface in the command line REPL])], |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1360 [if test "$enableval" = no; then ENABLE_COMMAND_LINE_PUSH_PARSER=no; fi], []) |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1361 if test $ENABLE_COMMAND_LINE_PUSH_PARSER = yes; then |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1362 AC_DEFINE(OCTAVE_ENABLE_COMMAND_LINE_PUSH_PARSER, 1, |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1363 [Define to 1 to use Bison's push parser interface in the command line REPL.]) |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1364 fi |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1365 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1366 ### Configure compilation of *experimental* Virtual Machine evaluator. |
31151
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1367 |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1368 ENABLE_VM_EVALUATOR=yes |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1369 AC_ARG_ENABLE([vm-evaluator], |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1370 [AS_HELP_STRING([--disable-vm-evaluator], |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1371 [don't compile *experimental* virtual machine evaluator])], |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1372 [if test "$enableval" = no; then ENABLE_VM_EVALUATOR=no; fi], []) |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1373 if test $ENABLE_VM_EVALUATOR = yes; then |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1374 AC_DEFINE(OCTAVE_ENABLE_VM_EVALUATOR, 1, |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1375 [Define to 1 to build experimental Virtual Machine evaluator.]) |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1376 fi |
60f32b7455e3
configure.ac: Add new option "--disable-vm-evaluator"
Rik <rik@octave.org>
parents:
31129
diff
changeset
|
1377 |
31424
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1378 ### Check for PCRE2 or PCRE regex library, requiring one to exist. |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1379 |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1380 have_pcre2=no |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1381 have_pcre=no |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1382 save_CPPLAGS="$CPPFLAGS" |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1383 CPPFLAGS="-DPCRE2_CODE_UNIT_WIDTH=8 $CPPFLAGS" |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1384 OCTAVE_CHECK_LIB(pcre2, PCRE2, |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1385 [], [pcre2.h pcre2/pcre2.h], [pcre2_compile_8], [], [], |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1386 [OCTAVE_CHECK_LIB_PCRE2_OK([have_pcre2=yes], |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1387 [AC_MSG_ERROR([PCRE2 library must be built with UTF support (--enable-utf)])])], |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1388 [libpcre2-8]) |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1389 CPPFLAGS="$save_CPPFLAGS" |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1390 |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1391 if test $have_pcre2 = no; then |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1392 OCTAVE_CHECK_LIB(pcre, PCRE, |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1393 [], [pcre.h pcre/pcre.h], [pcre_compile], [], [], |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1394 [OCTAVE_CHECK_LIB_PCRE_OK([have_pcre=yes], |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1395 [AC_MSG_ERROR([PCRE library must be built with UTF support (--enable-utf)])])], |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1396 [libpcre]) |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1397 fi |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1398 |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1399 if test $have_pcre2 = yes; then |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1400 AC_DEFINE(HAVE_PCRE2, 1, [Define to 1 if PCRE2 is available.]) |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1401 |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1402 ## Only one of PCRE2 or PCRE is used, so avoid having to define and use |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1403 ## both PCRE2_* and PCRE_* variables everywhere. |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1404 |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1405 PCRE_CPPFLAGS="$PCRE2_CPPFLAGS" |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1406 PCRE_LDFLAGS="$PCRE2_LDFLAGS" |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1407 PCRE_LIBS="$PCRE2_LIBS" |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1408 |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1409 elif test $have_pcre = yes; then |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1410 AC_DEFINE(HAVE_PCRE, 1, [Define to 1 if PCRE is available.]) |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1411 else |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1412 AC_MSG_ERROR([to build Octave, you must have the PCRE or PCRE2 library and header files installed]) |
d1165473e4b0
allow Octave to use PCRE2 (bug #61542)
Rafael Laboissiere <rafael@laboissiere.net>
parents:
31415
diff
changeset
|
1413 fi |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1414 |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1415 ### Check for Qhull library. |
9596
f26229391ea1
configure.in, aclocal.m4: check fortran integer size
John W. Eaton <jwe@octave.org>
parents:
9583
diff
changeset
|
1416 |
29638
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1417 QHULL_CPPFLAGS= |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1418 QHULL_LDFLAGS= |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1419 QHULL_LIBS= |
29629
93c8df989ea0
qhull: Use reentrant libqhull_r (bug #60016).
Stefan Brüns <stefan.bruens@rwth-aachen.de>
parents:
29588
diff
changeset
|
1420 OCTAVE_CHECK_LIB(qhull_r, QHull, |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1421 [Qhull library not found. This will result in loss of functionality for some geometry functions.], |
29629
93c8df989ea0
qhull: Use reentrant libqhull_r (bug #60016).
Stefan Brüns <stefan.bruens@rwth-aachen.de>
parents:
29588
diff
changeset
|
1422 [libqhull_r/libqhull_r.h libqhull_r.h], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1423 [qh_qhull], [], [], |
29629
93c8df989ea0
qhull: Use reentrant libqhull_r (bug #60016).
Stefan Brüns <stefan.bruens@rwth-aachen.de>
parents:
29588
diff
changeset
|
1424 [warn_qhull_r= |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1425 OCTAVE_CHECK_QHULL_VERSION |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1426 OCTAVE_CHECK_LIB_QHULL_OK( |
29638
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1427 [AC_DEFINE(HAVE_QHULL, 1, [Define to 1 if Qhull is available.]) |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1428 QHULL_CPPFLAGS="$QHULL_R_CPPFLAGS" |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1429 QHULL_LDFLAGS="$QHULL_R_LDFLAGS" |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1430 QHULL_LIBS="$QHULL_R_LIBS"], |
29629
93c8df989ea0
qhull: Use reentrant libqhull_r (bug #60016).
Stefan Brüns <stefan.bruens@rwth-aachen.de>
parents:
29588
diff
changeset
|
1431 [warn_qhull_r="Qhull library found, but does not seem to work properly. This will result in loss of functionality for some geometry functions. Please try recompiling the library with -fno-strict-aliasing."])]) |
29638
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1432 AC_SUBST(QHULL_CPPFLAGS) |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1433 AC_SUBST(QHULL_LDFLAGS) |
75556567592e
build: restore original QHULL make variables (bug #60016)
Mike Miller <mtmiller@octave.org>
parents:
29629
diff
changeset
|
1434 AC_SUBST(QHULL_LIBS) |
6855 | 1435 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1436 ### Check for RapidJSON header-only library. |
28615
5da49e37a6c9
New functions jsondecode and jsonencode (bug #53100).
Abdallah Elshamy <abdallah.k.elshamy@gmail.com>
parents:
28528
diff
changeset
|
1437 |
29963
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1438 check_for_rapidjson=yes |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1439 AC_ARG_ENABLE([rapidjson], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1440 [AS_HELP_STRING([--disable-rapidjson], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1441 [disable rapidjson])], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1442 [if test "$enableval" = no; then check_for_rapidjson=no; fi], []) |
29684
490e400d4df0
build: Show warning if RapidJSON is not found by configure (bug #60610).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29663
diff
changeset
|
1443 warn_rapidjson= |
29963
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1444 if test $check_for_rapidjson = yes; then |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1445 AC_LANG_PUSH(C++) |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1446 AC_CHECK_HEADER([rapidjson/rapidjson.h], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1447 [have_rapidjson=yes], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1448 [have_rapidjson=no |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1449 warn_rapidjson="RapidJSON library not found. Octave will not be able to read or write JSON files."]) |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1450 |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1451 if test $have_rapidjson = yes; then |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1452 AC_DEFINE(HAVE_RAPIDJSON, 1, [Define to 1 if RapidJSON is available.]) |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1453 |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1454 ## Additional check on RapidJSON library that was found |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1455 ## Some features of the version of RapidJSON that is packaged in many |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1456 ## distributions do not build correctly with newer compilers. |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1457 ## See also: |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1458 ## https://github.com/Tencent/rapidjson/issues/909 |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1459 ## https://github.com/Tencent/rapidjson/issues/1718 |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1460 AC_CACHE_CHECK([for working PrettyWriter in RapidJSON], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1461 [octave_cv_rapidjson_has_prettywriter], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1462 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1463 #include <rapidjson/prettywriter.h> |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1464 ]], [[ |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1465 rapidjson::StringBuffer json; |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1466 rapidjson::PrettyWriter<rapidjson::StringBuffer, rapidjson::UTF8<>, |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1467 rapidjson::UTF8<>, rapidjson::CrtAllocator, |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1468 rapidjson::kWriteNanAndInfFlag> writer (json); |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1469 ]])], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1470 [octave_cv_rapidjson_has_prettywriter=yes], |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1471 [octave_cv_rapidjson_has_prettywriter=no]) |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1472 ]) |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1473 if test $octave_cv_rapidjson_has_prettywriter = yes; then |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1474 AC_DEFINE(HAVE_RAPIDJSON_PRETTYWRITER, 1, |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1475 [Define to 1 if the RapidJSON PrettyWriter function is available.]) |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1476 else |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1477 warn_rapidjson='RapidJSON library found, but some features do not seem to work properly. The "PrettyWriter" option in jsonencode will be disabled.' |
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1478 fi |
28624
aae9d7f098bd
Support for RapidJSON 1.1.0 with jsonencode and jsondecode
Abdallah Elshamy <abdallah.k.elshamy@gmail.com>
parents:
28615
diff
changeset
|
1479 fi |
29963
00f871ed7aa2
build: Allow disabling RapidJSON support by configure switch.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29949
diff
changeset
|
1480 AC_LANG_POP([C++]) |
28615
5da49e37a6c9
New functions jsondecode and jsonencode (bug #53100).
Abdallah Elshamy <abdallah.k.elshamy@gmail.com>
parents:
28528
diff
changeset
|
1481 fi |
5da49e37a6c9
New functions jsondecode and jsonencode (bug #53100).
Abdallah Elshamy <abdallah.k.elshamy@gmail.com>
parents:
28528
diff
changeset
|
1482 |
29684
490e400d4df0
build: Show warning if RapidJSON is not found by configure (bug #60610).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29663
diff
changeset
|
1483 if test -n "$warn_rapidjson"; then |
490e400d4df0
build: Show warning if RapidJSON is not found by configure (bug #60610).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29663
diff
changeset
|
1484 OCTAVE_CONFIGURE_WARNING([warn_rapidjson]) |
490e400d4df0
build: Show warning if RapidJSON is not found by configure (bug #60610).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29663
diff
changeset
|
1485 fi |
490e400d4df0
build: Show warning if RapidJSON is not found by configure (bug #60610).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29663
diff
changeset
|
1486 |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1487 ### Check for readline library. |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1488 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1489 OCTAVE_ENABLE_READLINE |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1490 |
5270 | 1491 ### Check for ZLIB library. |
3820 | 1492 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1493 OCTAVE_CHECK_LIB(z, ZLIB, |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1494 [ZLIB library not found. Octave will not be able to load or save compressed data files or HDF5 files.], |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
1495 [zlib.h], [gzclearerr]) |
3687 | 1496 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1497 ## Also define HAVE_ZLIB if libz is found. |
28304
144d77f3f829
configure.ac: Fix compilation when --without-XXX used for all libraries (bug #58330).
Rik <rik@octave.org>
parents:
28300
diff
changeset
|
1498 if test -n "$Z_LIBS"; then |
16332
5293cee91891
conditionally define HAVE_FFTW and HAVE_ZLIB in config.h
John W. Eaton <jwe@octave.org>
parents:
16330
diff
changeset
|
1499 AC_DEFINE(HAVE_ZLIB, 1, [Define to 1 if ZLIB is available.]) |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
1500 fi |
16332
5293cee91891
conditionally define HAVE_FFTW and HAVE_ZLIB in config.h
John W. Eaton <jwe@octave.org>
parents:
16330
diff
changeset
|
1501 |
22160
766f934db568
Rewrite gzip and bzip2 in C++ instead of using its applications (bug #43431)
Carnë Draug <carandraug@octave.org>
parents:
22150
diff
changeset
|
1502 ### Check for BZIP2 library. |
766f934db568
Rewrite gzip and bzip2 in C++ instead of using its applications (bug #43431)
Carnë Draug <carandraug@octave.org>
parents:
22150
diff
changeset
|
1503 |
766f934db568
Rewrite gzip and bzip2 in C++ instead of using its applications (bug #43431)
Carnë Draug <carandraug@octave.org>
parents:
22150
diff
changeset
|
1504 OCTAVE_CHECK_LIB(bz2, BZIP2, |
766f934db568
Rewrite gzip and bzip2 in C++ instead of using its applications (bug #43431)
Carnë Draug <carandraug@octave.org>
parents:
22150
diff
changeset
|
1505 [BZIP2 library not found. Octave will not be able to compress or decompress bzip2 files.], |
766f934db568
Rewrite gzip and bzip2 in C++ instead of using its applications (bug #43431)
Carnë Draug <carandraug@octave.org>
parents:
22150
diff
changeset
|
1506 [bzlib.h], [BZ2_bzCompressInit]) |
766f934db568
Rewrite gzip and bzip2 in C++ instead of using its applications (bug #43431)
Carnë Draug <carandraug@octave.org>
parents:
22150
diff
changeset
|
1507 |
9538
d0239bddf621
use OCTAVE_CHECK_LIB to check for zlib
John W. Eaton <jwe@octave.org>
parents:
9536
diff
changeset
|
1508 ### Check for HDF5 library. |
5270 | 1509 |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1510 save_CPPFLAGS="$CPPFLAGS" |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1511 save_LIBS="$LIBS" |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1512 CPPFLAGS="$Z_CPPFLAGS $CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1513 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1514 OCTAVE_CHECK_LIB(hdf5, HDF5, |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1515 [HDF5 library not found. Octave will not be able to load or save HDF5 data files.], |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1516 [hdf5.h], [H5Gget_num_objs], [], [], |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1517 [warn_hdf5= |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1518 OCTAVE_CHECK_HDF5_HAS_VER_16_API |
30243
a4061ae5ff79
Use UTF-8 file API if supported by HDF5 library.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29963
diff
changeset
|
1519 OCTAVE_CHECK_HDF5_HAS_UTF8_API |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1520 AC_DEFINE(HAVE_HDF5, 1, |
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1521 [Define to 1 if HDF5 is available and newer than version 1.6.]) |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1522 if test $have_msvc = yes; then |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1523 OCTAVE_CHECK_LIB_HDF5_DLL |
10123
8590f3c51868
Fix a few MSVC-related problems and partially re-enable MSVC compilation.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
10092
diff
changeset
|
1524 fi |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1525 ]) |
9542
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1526 CPPFLAGS="$save_CPPFLAGS" |
f5ec5dc66824
use OCTAVE_CHECK_LIBRARY to check for HDF5
John W. Eaton <jwe@octave.org>
parents:
9540
diff
changeset
|
1527 LIBS="$save_LIBS" |
5270 | 1528 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1529 dnl FIXME: Should we check for this now, or wait until some version of HDF5 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1530 dnl actually supports this feature? |
21211
2cf8bc5c7017
use "#if defined (HAVE_FOO)" instead of "#if HAVE_FOO" for feature tests
John W. Eaton <jwe@octave.org>
parents:
21187
diff
changeset
|
1531 have_hdf5_int2float_conversions=no |
21378
172479a97e6c
configure.ac: Remove overquoting in shell variables tests.
Rik <rik@octave.org>
parents:
21374
diff
changeset
|
1532 if test $have_hdf5_int2float_conversions = yes; then |
21211
2cf8bc5c7017
use "#if defined (HAVE_FOO)" instead of "#if HAVE_FOO" for feature tests
John W. Eaton <jwe@octave.org>
parents:
21187
diff
changeset
|
1533 AC_DEFINE(HAVE_HDF5_INT2FLOAT_CONVERSIONS, 1, |
2cf8bc5c7017
use "#if defined (HAVE_FOO)" instead of "#if HAVE_FOO" for feature tests
John W. Eaton <jwe@octave.org>
parents:
21187
diff
changeset
|
1534 [Define to 1 if/when HDF5 supports automatic conversion between integer and floating-point binary data.]) |
2cf8bc5c7017
use "#if defined (HAVE_FOO)" instead of "#if HAVE_FOO" for feature tests
John W. Eaton <jwe@octave.org>
parents:
21187
diff
changeset
|
1535 fi |
2cf8bc5c7017
use "#if defined (HAVE_FOO)" instead of "#if HAVE_FOO" for feature tests
John W. Eaton <jwe@octave.org>
parents:
21187
diff
changeset
|
1536 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1537 ### Check for FFTW library. |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1538 dnl Default to Fortran FFTPACK if it is not available. |
5203 | 1539 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1540 ## Check for FFTW header and library. |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1541 OCTAVE_CHECK_LIB(fftw3, FFTW3, |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1542 [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
|
1543 [fftw3.h], [fftw_plan_dft_1d]) |
3827 | 1544 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1545 OCTAVE_CHECK_LIB(fftw3f, FFTW3F, |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1546 [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
|
1547 [fftw3.h], [fftwf_plan_dft_1d]) |
3827 | 1548 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1549 ## Check command line for the option to disable multi-threaded FFTW. |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
1550 build_fftw_threads=yes |
15960
bde7731b2b83
added FFTW multithreaded library support
Andreas Weber <andy.weber.aw@gmail.com>
parents:
15946
diff
changeset
|
1551 AC_ARG_ENABLE([fftw-threads], |
bde7731b2b83
added FFTW multithreaded library support
Andreas Weber <andy.weber.aw@gmail.com>
parents:
15946
diff
changeset
|
1552 [AS_HELP_STRING([--disable-fftw-threads], |
bde7731b2b83
added FFTW multithreaded library support
Andreas Weber <andy.weber.aw@gmail.com>
parents:
15946
diff
changeset
|
1553 [disable Multi-threaded FFTW])], |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1554 [if test "$enableval" = no; then |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
1555 build_fftw_threads=no |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1556 fi], |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1557 []) |
2813 | 1558 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1559 dnl Octave is currently unable to use FFTW unless both float and double |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1560 dnl versions are available. |
16332
5293cee91891
conditionally define HAVE_FFTW and HAVE_ZLIB in config.h
John W. Eaton <jwe@octave.org>
parents:
16330
diff
changeset
|
1561 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1562 AM_CONDITIONAL([AMCOND_HAVE_FFTW], |
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
1563 [test -n "$FFTW3_LIBS" && test -n "$FFTW3F_LIBS"]) |
3827 | 1564 |
16332
5293cee91891
conditionally define HAVE_FFTW and HAVE_ZLIB in config.h
John W. Eaton <jwe@octave.org>
parents:
16330
diff
changeset
|
1565 if test -n "$FFTW3_LIBS" && test -n "$FFTW3F_LIBS"; then |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1566 AC_DEFINE(HAVE_FFTW, 1, [Define to 1 if both FFTW3 and FFTW3F libraries are available.]) |
19344
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1567 else |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1568 dnl --without-fftw3 given, or one of the FFTW3 libs not installed. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1569 dnl Don't check for FFTW threads as this is now pointless. |
19344
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1570 build_fftw_threads=no |
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1571 fi |
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1572 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1573 ## Check for multithreaded FFTW library. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1574 ## Fallback to singlethreaded if not found or disabled. |
19344
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1575 if test $build_fftw_threads = yes; then |
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1576 OCTAVE_CHECK_FFTW_THREADS(fftw3, fftw_plan_with_nthreads) |
88847d5d1a96
configure.ac: Fix handling of --without-fftw3[f] options.
Rik <rik@octave.org>
parents:
18991
diff
changeset
|
1577 OCTAVE_CHECK_FFTW_THREADS(fftw3f, fftwf_plan_with_nthreads) |
16332
5293cee91891
conditionally define HAVE_FFTW and HAVE_ZLIB in config.h
John W. Eaton <jwe@octave.org>
parents:
16330
diff
changeset
|
1578 fi |
5293cee91891
conditionally define HAVE_FFTW and HAVE_ZLIB in config.h
John W. Eaton <jwe@octave.org>
parents:
16330
diff
changeset
|
1579 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1580 ## Collections of flags. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1581 dnl These are here instead of just in the Makefile.am file because we |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1582 dnl substitute some of them into other source files like mkoctfile. |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1583 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1584 ## Order matters, at least on some systems (Cygwin, for example). |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1585 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1586 FFTW_XCPPFLAGS="$FFTW3_CPPFLAGS $FFTW3F_CPPFLAGS" |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1587 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1588 FFTW_XLDFLAGS="$FFTW3_LDFLAGS $FFTW3F_LDFLAGS" |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1589 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1590 FFTW_XLIBS="$FFTW3_LIBS $FFTW3F_LIBS" |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1591 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1592 AC_SUBST(FFTW_XCPPFLAGS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1593 AC_SUBST(FFTW_XLDFLAGS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1594 AC_SUBST(FFTW_XLIBS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
1595 |
23434
f4d4d83f15c5
maint: rename cruft/ directory to external/
Rik <rik@octave.org>
parents:
23426
diff
changeset
|
1596 ## Subdirectory of liboctave/external to build if FFTW is not found. |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1597 FFT_DIR="fftpack" |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1598 AC_SUBST(FFT_DIR) |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1599 |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1600 ### Check for GLPK library and header. |
5235 | 1601 |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1602 save_CPPFLAGS="$CPPFLAGS" |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1603 save_LIBS="$LIBS" |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1604 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
|
1605 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1606 OCTAVE_CHECK_LIB(glpk, GLPK, |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
1607 [GLPK library not found. The glpk function for solving linear programs will be disabled.], |
29428
dba6e9920113
configure.ac: Prioritize top-level headers in OCTAVE_CHECK_LIB macro (bug #59806)
Rik <rik@octave.org>
parents:
29409
diff
changeset
|
1608 [glpk.h glpk/glpk.h], [glp_simplex], [], [], |
17241
03a666018e0f
build: Detect new GLPK API features required since changeset 54e251e699bb
Mike Miller <mtmiller@ieee.org>
parents:
17196
diff
changeset
|
1609 [warn_glpk= |
03a666018e0f
build: Detect new GLPK API features required since changeset 54e251e699bb
Mike Miller <mtmiller@ieee.org>
parents:
17196
diff
changeset
|
1610 OCTAVE_CHECK_LIB_GLPK_OK( |
19355
22289e6e316e
build: Remove unused TEXINFO_LIBNAME definitions from Makefiles.
Rik <rik@octave.org>
parents:
19353
diff
changeset
|
1611 [AC_DEFINE(HAVE_GLPK, 1, [Define to 1 if GLPK is available.])], |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1612 [warn_glpk="GLPK library found, but does not seem to work properly; disabling glpk function"])]) |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1613 LIBS="$save_LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1614 CPPFLAGS="$save_CPPFLAGS" |
5235 | 1615 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1616 ### Check for cURL library existence and functionality. |
6043 | 1617 |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1618 save_CPPFLAGS="$CPPFLAGS" |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1619 save_LIBS="$LIBS" |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1620 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
|
1621 LIBS="$Z_LDFLAGS $Z_LIBS $LIBS" |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1622 OCTAVE_CHECK_LIB(curl, cURL, |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1623 [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
|
1624 [curl/curl.h], [curl_easy_escape]) |
28304
144d77f3f829
configure.ac: Fix compilation when --without-XXX used for all libraries (bug #58330).
Rik <rik@octave.org>
parents:
28300
diff
changeset
|
1625 if test -n "$CURL_LIBS"; then |
15338
dc39c1d84c5b
build: Use caching on more intermediate results to speed up configure.
Rik <rik@octave.org>
parents:
15329
diff
changeset
|
1626 ## Additional check on cURL library that was found |
dc39c1d84c5b
build: Use caching on more intermediate results to speed up configure.
Rik <rik@octave.org>
parents:
15329
diff
changeset
|
1627 AC_CACHE_CHECK([for CURLOPT_DIRLISTONLY in curl/curl.h], |
16080
c53f8f706c55
Reverse logic of libcurl feature test result
Mike Miller <mtmiller@ieee.org>
parents:
16079
diff
changeset
|
1628 [octave_cv_curl_has_curlopt_dirlistonly], |
15338
dc39c1d84c5b
build: Use caching on more intermediate results to speed up configure.
Rik <rik@octave.org>
parents:
15329
diff
changeset
|
1629 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
15323
c42bf5cadb60
Add check for CURLOPT_DIRLISTONLY in libcurl
Mike Miller <mtmiller@ieee.org>
parents:
15317
diff
changeset
|
1630 #include <curl/curl.h> |
c42bf5cadb60
Add check for CURLOPT_DIRLISTONLY in libcurl
Mike Miller <mtmiller@ieee.org>
parents:
15317
diff
changeset
|
1631 ]], [[ |
c42bf5cadb60
Add check for CURLOPT_DIRLISTONLY in libcurl
Mike Miller <mtmiller@ieee.org>
parents:
15317
diff
changeset
|
1632 curl_easy_setopt ((CURL*)NULL, CURLOPT_DIRLISTONLY, 0); |
c42bf5cadb60
Add check for CURLOPT_DIRLISTONLY in libcurl
Mike Miller <mtmiller@ieee.org>
parents:
15317
diff
changeset
|
1633 ]])], |
16080
c53f8f706c55
Reverse logic of libcurl feature test result
Mike Miller <mtmiller@ieee.org>
parents:
16079
diff
changeset
|
1634 [octave_cv_curl_has_curlopt_dirlistonly=yes], |
c53f8f706c55
Reverse logic of libcurl feature test result
Mike Miller <mtmiller@ieee.org>
parents:
16079
diff
changeset
|
1635 [octave_cv_curl_has_curlopt_dirlistonly=no]) |
15338
dc39c1d84c5b
build: Use caching on more intermediate results to speed up configure.
Rik <rik@octave.org>
parents:
15329
diff
changeset
|
1636 ]) |
16080
c53f8f706c55
Reverse logic of libcurl feature test result
Mike Miller <mtmiller@ieee.org>
parents:
16079
diff
changeset
|
1637 if test $octave_cv_curl_has_curlopt_dirlistonly = no; then |
15338
dc39c1d84c5b
build: Use caching on more intermediate results to speed up configure.
Rik <rik@octave.org>
parents:
15329
diff
changeset
|
1638 AC_DEFINE(CURLOPT_DIRLISTONLY, CURLOPT_FTPLISTONLY, |
16079
3a90c3f4046d
Fix typo in changeset dc39c1d84c5b
Mike Miller <mtmiller@ieee.org>
parents:
16078
diff
changeset
|
1639 [Define to the legacy option name if using an older version of cURL.]) |
15338
dc39c1d84c5b
build: Use caching on more intermediate results to speed up configure.
Rik <rik@octave.org>
parents:
15329
diff
changeset
|
1640 fi |
15323
c42bf5cadb60
Add check for CURLOPT_DIRLISTONLY in libcurl
Mike Miller <mtmiller@ieee.org>
parents:
15317
diff
changeset
|
1641 fi |
9540
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1642 LIBS="$save_LIBS" |
79b5fe2d5646
use Z_LIBS in checks for curl and glpk libraries
John W. Eaton <jwe@octave.org>
parents:
9538
diff
changeset
|
1643 CPPFLAGS="$save_CPPFLAGS" |
6133 | 1644 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1645 ### Check for sndfile library. |
19464
8fe2780c1491
update configure.ac to build and configure sndfile audio file utilities
Vytautas Jančauskas <unaudio@gmail.com>
parents:
17465
diff
changeset
|
1646 |
22104
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1647 OCTAVE_CHECK_LIB(sndfile, sndfile, |
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1648 [sndfile library not found. The audioinfo, audioread, and audiowrite functions will be disabled.], |
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1649 [sndfile.h], [sf_open], |
22110
d534a3014fd7
build: restore sndfile check for specific features needed to build
Mike Miller <mtmiller@octave.org>
parents:
22104
diff
changeset
|
1650 [], [don't use sndfile library, disable audio file I/O], |
d534a3014fd7
build: restore sndfile check for specific features needed to build
Mike Miller <mtmiller@octave.org>
parents:
22104
diff
changeset
|
1651 [warn_sndfile= |
d534a3014fd7
build: restore sndfile check for specific features needed to build
Mike Miller <mtmiller@octave.org>
parents:
22104
diff
changeset
|
1652 OCTAVE_CHECK_LIB_SNDFILE_OK( |
d534a3014fd7
build: restore sndfile check for specific features needed to build
Mike Miller <mtmiller@octave.org>
parents:
22104
diff
changeset
|
1653 [AC_DEFINE(HAVE_SNDFILE, 1, [Define to 1 if sndfile is available.])], |
d534a3014fd7
build: restore sndfile check for specific features needed to build
Mike Miller <mtmiller@octave.org>
parents:
22104
diff
changeset
|
1654 [warn_sndfile="sndfile library found, but does not seem to work properly; disabling audio file I/O functions"])]) |
19464
8fe2780c1491
update configure.ac to build and configure sndfile audio file utilities
Vytautas Jančauskas <unaudio@gmail.com>
parents:
17465
diff
changeset
|
1655 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1656 ### Check for PortAudio library. |
19470
23833e1bfa2e
check for PortAudio
Vytautas Jančauskas <unaudio@gmail.com>
parents:
19467
diff
changeset
|
1657 |
22104
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1658 OCTAVE_CHECK_LIB(portaudio, PortAudio, |
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1659 [PortAudio library not found. The audioplayer, audiorecorder, and audiodevinfo functions will be disabled.], |
22458
30002d6568c4
build: fix detection of PortAudio to differentiate usable versions (bug #49039)
Mike Miller <mtmiller@octave.org>
parents:
22455
diff
changeset
|
1660 [portaudio.h], [Pa_GetDeviceCount], |
22104
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1661 [], [don't use PortAudio library, disable audio playback and recording], |
cfc260765ddf
build: use simpler and more consistent checks for portaudio and sndfile
Mike Miller <mtmiller@octave.org>
parents:
22041
diff
changeset
|
1662 [], [portaudio-2.0]) |
19470
23833e1bfa2e
check for PortAudio
Vytautas Jančauskas <unaudio@gmail.com>
parents:
19467
diff
changeset
|
1663 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1664 ### Check for either of GraphicsMagick++/ImageMagick++ libraries. |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1665 |
21381 | 1666 check_magick=yes |
1667 use_magick=no | |
11216
5036b0ff9597
configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents:
11214
diff
changeset
|
1668 AC_ARG_WITH([magick], |
5036b0ff9597
configure.ac: Properly m4 quote AS_HELP_STRING.
Rik <octave@nomad.inbox5.com>
parents:
11214
diff
changeset
|
1669 [AS_HELP_STRING([--with-magick=LIB], |
30283
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1670 [select library to use for image I/O (options: GraphicsMagick++(default) or ImageMagick++)])], |
21381 | 1671 [if test x"$withval" = xno; then |
1672 check_magick=no | |
1673 else | |
1674 magick="$withval" | |
30283
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1675 fi], [magick="GraphicsMagick++"]) |
21381 | 1676 |
1677 if test $check_magick = yes; then | |
1678 | |
1679 MAGICK_CPPFLAGS= | |
1680 MAGICK_LDFLAGS= | |
1681 MAGICK_LIBS= | |
1682 | |
30283
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1683 PKG_CHECK_EXISTS([$magick], [ |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1684 dnl We are using --cflags now instead of --cflags-only-I because some |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1685 dnl Graphics/ImageMagick++ packages will provide -D options for |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1686 dnl MAGICKCORE_HDRI_ENABLE and MAGICKCORE_QUANTUM_DEPTH that are needed |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1687 dnl for building with a particular verison of the library. If there |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1688 dnl are other flags in the output from pkg-config --cflags that cause |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1689 dnl trouble, then we may need to go back to using --cflags-only-I and |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1690 dnl have a configure test to determine the proper definitions of |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1691 dnl MAGICKCORE_HDRI_ENABLE and MAGICKCORE_QUANTUM_DEPTH. |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1692 dnl See also bug #49563. |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1693 MAGICK_CPPFLAGS="$($PKG_CONFIG --cflags $magick | $SED -e 's/^ *$//')" |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1694 MAGICK_LDFLAGS="$($PKG_CONFIG --libs-only-L $magick | $SED -e 's/^ *$//')" |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1695 MAGICK_LIBS="$($PKG_CONFIG --libs-only-l $magick | $SED -e 's/^ *$//')" |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1696 |
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1697 warn_magick="$magick library fails tests. The imread, imwrite, and imfinfo functions for reading and writing image files will not be fully functional." |
21381 | 1698 |
1699 save_CPPFLAGS="$CPPFLAGS" | |
1700 save_LIBS="$LIBS" | |
1701 CPPFLAGS="$MAGICK_CPPFLAGS $CPPFLAGS" | |
1702 LIBS="$MAGICK_LDFLAGS $MAGICK_LIBS $LIBS" | |
1703 AC_LANG_PUSH(C++) | |
1704 AC_CHECK_HEADER([Magick++.h], [ | |
31407
97057039b835
build: Check for symbol removed from ImageMagick++-7 API (bug #63331).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31393
diff
changeset
|
1705 AC_CACHE_CHECK([for Magick::ColorRGB and Magick::PixelPacket in Magick++.h], |
97057039b835
build: Check for symbol removed from ImageMagick++-7 API (bug #63331).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31393
diff
changeset
|
1706 [octave_cv_func_magick], |
30290
47c078c0f22d
build: Check if magick++ library exports necessary symbols (bug #61481).
Markus Mützel <markus.muetzel@gmx.de>
parents:
30283
diff
changeset
|
1707 [AC_LINK_IFELSE([AC_LANG_PROGRAM([[ |
21381 | 1708 #include <Magick++.h> |
1709 ]], [[ | |
1710 Magick::ColorRGB c; | |
31407
97057039b835
build: Check for symbol removed from ImageMagick++-7 API (bug #63331).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31393
diff
changeset
|
1711 Magick::PixelPacket pix; |
21381 | 1712 ]])], |
31407
97057039b835
build: Check for symbol removed from ImageMagick++-7 API (bug #63331).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31393
diff
changeset
|
1713 octave_cv_func_magick=yes, |
97057039b835
build: Check for symbol removed from ImageMagick++-7 API (bug #63331).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31393
diff
changeset
|
1714 octave_cv_func_magick=no) |
21381 | 1715 ]) |
31407
97057039b835
build: Check for symbol removed from ImageMagick++-7 API (bug #63331).
Markus Mützel <markus.muetzel@gmx.de>
parents:
31393
diff
changeset
|
1716 if test $octave_cv_func_magick = yes; then |
21381 | 1717 use_magick=yes |
1718 warn_magick= | |
1719 fi | |
1720 ]) | |
1721 AC_LANG_POP(C++) | |
1722 CPPFLAGS="$save_CPPFLAGS" | |
1723 LIBS="$save_LIBS" | |
22041
26c0e65e6b77
configure: clean up warning messages when building without GraphicsMagick
Mike Miller <mtmiller@octave.org>
parents:
22027
diff
changeset
|
1724 ], |
26c0e65e6b77
configure: clean up warning messages when building without GraphicsMagick
Mike Miller <mtmiller@octave.org>
parents:
22027
diff
changeset
|
1725 [use_magick=no |
30283
b7bce52e4500
allow building with ImageMagick++ to work again (bug #49653)
Markus Mützel <markus.muetzel@gmx.de>
parents:
30277
diff
changeset
|
1726 warn_magick="$magick library not found. The imread, imwrite, and imfinfo functions for reading and writing image files will not be fully functional."]) |
21381 | 1727 fi |
1728 | |
1729 if test $use_magick = yes; then | |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1730 AC_DEFINE(HAVE_MAGICK, 1, |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1731 [Define to 1 if Graphics/ImageMagick++ is available.]) |
7937
6661387827d6
Allow build without GraphicsMagick installed
David Bateman <dbateman@free.fr>
parents:
7934
diff
changeset
|
1732 else |
21381 | 1733 if test -n "$warn_magick"; then |
1734 OCTAVE_CONFIGURE_WARNING([warn_magick]) | |
1735 fi | |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1736 MAGICK_CPPFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1737 MAGICK_LDFLAGS= |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1738 MAGICK_LIBS= |
8938
35e18344fae8
configure.in: options for compiler warning flags
John W. Eaton <jwe@octave.org>
parents:
8920
diff
changeset
|
1739 fi |
9575
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1740 AC_SUBST(MAGICK_CPPFLAGS) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1741 AC_SUBST(MAGICK_LDFLAGS) |
55ecaefb7d0f
Use pkg-config to configure GraphicsMagick++.
David Grundberg <individ@acc.umu.se>
parents:
9573
diff
changeset
|
1742 AC_SUBST(MAGICK_LIBS) |
6043 | 1743 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1744 ### Check for X11 libraries. |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1745 |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1746 AC_PATH_X |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1747 if test "$have_x" = yes; then |
23009
624f76f2ca51
configure.ac: Use a common style for messages.
Rik <rik@octave.org>
parents:
23007
diff
changeset
|
1748 AC_DEFINE(HAVE_X_WINDOWS, 1, [Define to 1 if X11 is available.]) |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1749 |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1750 if test "$x_includes" != "NONE"; then |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1751 X11_INCFLAGS="$x_includes" |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1752 fi |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1753 AC_SUBST(X11_INCFLAGS) |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1754 |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1755 if test -z "$x_libraries"; then |
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1756 AC_CHECK_LIB([X11], XrmInitialize, [X11_LIBS="-lX11"], [X11_LIBS=]) |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1757 elif test "$x_libraries" != "NONE"; then |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19349
diff
changeset
|
1758 AC_CHECK_LIB([X11], XrmInitialize, |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1759 [X11_LIBS="-L$x_libraries -lX11"], [X11_LIBS=], "-L$x_libraries") |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1760 fi |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1761 AC_SUBST(X11_LIBS) |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1762 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
1763 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1764 ### Check for the Carbon framework on macOS systems. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1765 |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
1766 OCTAVE_HAVE_FRAMEWORK([Carbon], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1767 [[#include <Carbon/Carbon.h>]], [[CGMainDisplayID ()]], |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1768 [have_framework_carbon=yes], [have_framework_carbon=no]) |
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
1769 if test $have_framework_carbon = yes; then |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1770 AC_DEFINE(HAVE_FRAMEWORK_CARBON, 1, |
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1771 [Define to 1 if framework CARBON is available.]) |
22208
83963bad5e7d
improvements to Qt & OpenGL linking on the Mac (bug #41574)
Michael C. Grant <mcg@cvxr.com>
parents:
22160
diff
changeset
|
1772 CARBON_LIBS="-framework Carbon" |
83963bad5e7d
improvements to Qt & OpenGL linking on the Mac (bug #41574)
Michael C. Grant <mcg@cvxr.com>
parents:
22160
diff
changeset
|
1773 AC_MSG_NOTICE([adding -framework Carbon to CARBON_LIBS]) |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1774 AC_SUBST(CARBON_LIBS) |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1775 fi |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1776 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1777 ## Check for the CGDisplayBitsPerPixel function. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1778 if test $have_framework_carbon = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1779 OCTAVE_CARBON_CGDISPLAYBITSPERPIXEL |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1780 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
1781 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1782 ### Check for OpenGL and helper libraries used by OpenGL graphics renderer. |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1783 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1784 check_opengl=yes |
11208
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1785 AC_ARG_WITH([opengl], |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
1786 [AS_HELP_STRING([--without-opengl], |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1787 [don't use OpenGL libraries, disable OpenGL graphics])], |
21381 | 1788 [if test x"$withval" = xno; then |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1789 check_opengl=no |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1790 fi]) |
11208
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1791 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
1792 ## Check for OpenGL library |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
1793 if test $check_opengl = yes; then |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
1794 OCTAVE_CHECK_LIB_OPENGL |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1795 if test -z "$OPENGL_LIBS"; then |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1796 warn_opengl_libs="OpenGL libs (GL and GLU) not found. OpenGL graphics will be disabled." |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1797 OCTAVE_CONFIGURE_WARNING([warn_opengl_libs]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1798 fi |
11208
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1799 fi |
a44ba1cdfbb5
handle --without-opengl configure option
John W. Eaton <jwe@octave.org>
parents:
11119
diff
changeset
|
1800 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1801 ## Check for FreeType 2 library |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1802 |
24121
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1803 check_freetype=yes |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1804 warn_freetype= |
24121
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1805 AC_ARG_WITH([freetype], |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1806 [AS_HELP_STRING([--without-freetype], |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1807 [don't use FreeType library, OpenGL graphics will not be fully functional])], |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1808 [if test x"$withval" = xno; then |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1809 check_freetype=no |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1810 fi]) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1811 |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1812 if test $check_freetype = yes; then |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1813 PKG_CHECK_MODULES([FT2], [freetype2], [ |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1814 min_ft2_version=9.03 |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1815 AC_MSG_CHECKING([for FreeType2 version >= $min_ft2_version]) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1816 $PKG_CONFIG freetype2 --atleast-version=$min_ft2_version |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1817 ac_status=$? |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1818 if test "$ac_status" = 0; then |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1819 AC_MSG_RESULT(yes) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1820 AC_DEFINE(HAVE_FREETYPE, 1, [Define to 1 if Freetype is available.]) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1821 save_LIBS="$LIBS" |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1822 LIBS="$FT2_LIBS $LIBS" |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1823 AC_CHECK_FUNCS([FT_Reference_Face]) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1824 LIBS="$save_LIBS" |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1825 else |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1826 AC_MSG_RESULT(no) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1827 warn_freetype="FreeType library >= 9.03 not found. OpenGL graphics will not be fully functional." |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1828 fi], |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1829 [warn_freetype="FreeType library not found. OpenGL graphics will not be fully functional."]) |
e2dc75c661ac
configure: add a command-line option '--without-freetype' to disable FreeType
Mike Miller <mtmiller@octave.org>
parents:
24077
diff
changeset
|
1830 fi |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1831 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1832 if test -n "$warn_freetype"; then |
25668
19eba00c0c7d
if freetype detection fails, unset FT2_* config variables (bug #54369)
John W. Eaton <jwe@octave.org>
parents:
25607
diff
changeset
|
1833 FT2_CFLAGS= |
19eba00c0c7d
if freetype detection fails, unset FT2_* config variables (bug #54369)
John W. Eaton <jwe@octave.org>
parents:
25607
diff
changeset
|
1834 FT2_LIBS= |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1835 OCTAVE_CONFIGURE_WARNING([warn_freetype]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1836 else |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1837 dnl Alias CPPFLAGS to CFLAGS. This is closer to the true meaning |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1838 dnl of `pkg-config --cflags` output. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
1839 FT2_CPPFLAGS="$FT2_CFLAGS" |
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
1840 AC_SUBST(FT2_CPPFLAGS) |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1841 fi |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1842 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1843 ## Check for fontconfig library |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1844 |
23018
50b9eb1fb5fb
* configure.ac: Use OCTAVE_CHECK_LIB to check for fontconfig library.
John W. Eaton <jwe@octave.org>
parents:
23016
diff
changeset
|
1845 OCTAVE_CHECK_LIB(fontconfig, fontconfig, |
50b9eb1fb5fb
* configure.ac: Use OCTAVE_CHECK_LIB to check for fontconfig library.
John W. Eaton <jwe@octave.org>
parents:
23016
diff
changeset
|
1846 [Fontconfig library not found. OpenGL graphics will not be fully functional.], |
50b9eb1fb5fb
* configure.ac: Use OCTAVE_CHECK_LIB to check for fontconfig library.
John W. Eaton <jwe@octave.org>
parents:
23016
diff
changeset
|
1847 [fontconfig.h fontconfig/fontconfig.h], [FcInit], |
50b9eb1fb5fb
* configure.ac: Use OCTAVE_CHECK_LIB to check for fontconfig library.
John W. Eaton <jwe@octave.org>
parents:
23016
diff
changeset
|
1848 [], [don't use fontconfig library, OpenGL graphics will not be fully functional]) |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1849 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1850 ### GUI/Qt related tests. |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1851 |
28300 | 1852 QT_VERSIONS="5" |
21381 | 1853 |
1854 AC_ARG_WITH([qt], | |
22257
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1855 [AS_HELP_STRING([--with-qt=VER], [use the Qt major version VER]) |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1856 dnl Second help string must not be indented for correct alignment |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1857 AS_HELP_STRING([--without-qt], [don't use Qt libraries, disable Qt GUI])], |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1858 [case $withval in |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1859 yes | "") |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1860 ;; |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1861 no) |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1862 QT_VERSIONS= |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1863 ;; |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1864 *) |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1865 QT_VERSIONS="$withval" |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1866 ;; |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1867 esac]) |
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1868 |
22823
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1869 check_qscintilla=yes |
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1870 AC_ARG_WITH([qscintilla], |
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1871 [AS_HELP_STRING([--without-qscintilla], [disable QScintilla editor])], |
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1872 [if test x"$withval" = xno; then |
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1873 check_qscintilla=no |
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1874 fi]) |
e2afee0041bf
new configure option, --without-qscintilla
John W. Eaton <jwe@octave.org>
parents:
22763
diff
changeset
|
1875 |
22257
945e7f9c11ff
build: fix configure --without-qt or --with-qt
Mike Miller <mtmiller@octave.org>
parents:
22251
diff
changeset
|
1876 OCTAVE_CHECK_QT([$QT_VERSIONS]) |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1877 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1878 ## Default terminal font for the GUI. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1879 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1880 case $host_os in |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1881 mingw* | msdosmsvc) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1882 DEFAULT_TERMINAL_FONT="Lucida Console" |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1883 ;; |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1884 *) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1885 DEFAULT_TERMINAL_FONT="Courier" |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1886 ;; |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1887 esac |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1888 DEFAULT_TERMINAL_FONT_SIZE=10 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1889 AC_SUBST(DEFAULT_TERMINAL_FONT) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1890 AC_SUBST(DEFAULT_TERMINAL_FONT_SIZE) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1891 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
1892 ### Check for FLTK library. |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1893 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1894 check_fltk=yes |
21512
79aa496c6d47
maint: Fix configure warning messages on missing OpenGL graphics support
Mike Miller <mtmiller@octave.org>
parents:
21480
diff
changeset
|
1895 build_fltk_graphics=no |
79aa496c6d47
maint: Fix configure warning messages on missing OpenGL graphics support
Mike Miller <mtmiller@octave.org>
parents:
21480
diff
changeset
|
1896 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1897 AC_ARG_WITH([fltk], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1898 [AS_HELP_STRING([--without-fltk], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1899 [don't use FLTK libraries, disable OpenGL graphics with FLTK widgets])], |
21381 | 1900 [if test x"$withval" = xno; then |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1901 check_fltk=no |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1902 fi]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1903 |
19733
08033d583435
more consistently use _CPPFLAGS and _LDFLAGS variables
John W. Eaton <jwe@octave.org>
parents:
19732
diff
changeset
|
1904 FLTK_CPPFLAGS= |
08033d583435
more consistently use _CPPFLAGS and _LDFLAGS variables
John W. Eaton <jwe@octave.org>
parents:
19732
diff
changeset
|
1905 FLTK_LDFLAGS= |
19732
bf25e9f7c22a
use FLTK_CFLAGS and FLTK_LIBS instead of GRAPHICS_CFLAGS and GRAPHICS_LIBS
John W. Eaton <jwe@octave.org>
parents:
19703
diff
changeset
|
1906 FLTK_LIBS= |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1907 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1908 if test $check_fltk = yes; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1909 AC_ARG_WITH([fltk-prefix], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1910 [AS_HELP_STRING([--with-fltk-prefix=PFX], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1911 [prefix where FLTK is installed (optional)])], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1912 [fltk_prefix="$withval"], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1913 [fltk_prefix=""]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1914 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1915 AC_ARG_WITH([fltk-exec-prefix], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1916 [AS_HELP_STRING([--with-fltk-exec-prefix=PFX], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1917 [exec prefix where FLTK is installed (optional)])], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1918 [fltk_exec_prefix="$withval"], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1919 [fltk_exec_prefix=""]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1920 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1921 if test "x$fltk_exec_prefix" != x; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1922 fltk_args="$fltk_args --exec-prefix=$fltk_exec_prefix" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1923 if test "x${FLTK_CONFIG+set}" != xset ; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1924 FLTK_CONFIG="$fltk_exec_prefix/bin/fltk-config" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1925 fi |
18025
7c0f59b688fc
configure.ac: Check for Xft library before building native graphics.
Rik <rik@octave.org>
parents:
17989
diff
changeset
|
1926 fi |
7c0f59b688fc
configure.ac: Check for Xft library before building native graphics.
Rik <rik@octave.org>
parents:
17989
diff
changeset
|
1927 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1928 if test "x$fltk_prefix" != x; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1929 fltk_args="$fltk_args --prefix=$fltk_prefix" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1930 if test x${FLTK_CONFIG+set} != xset ; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1931 FLTK_CONFIG="$fltk_prefix/bin/fltk-config" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1932 fi |
18025
7c0f59b688fc
configure.ac: Check for Xft library before building native graphics.
Rik <rik@octave.org>
parents:
17989
diff
changeset
|
1933 fi |
7c0f59b688fc
configure.ac: Check for Xft library before building native graphics.
Rik <rik@octave.org>
parents:
17989
diff
changeset
|
1934 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1935 AC_PATH_PROG([FLTK_CONFIG], [fltk-config], [no]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1936 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1937 warn_fltk_config= |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1938 warn_fltk_opengl= |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1939 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1940 if test "$FLTK_CONFIG" = no; then |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
1941 warn_fltk_config="FLTK config script not found. FLTK toolkit will be disabled." |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1942 OCTAVE_CONFIGURE_WARNING([warn_fltk_config]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1943 else |
21984
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1944 ## Only include -I options in FLTK_CPPFLAGS |
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1945 fltk_cflags=`$FLTK_CONFIG $fltkconf_args --use-gl --cflags` |
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1946 for fltk_option in $fltk_cflags; do |
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1947 case $fltk_option in |
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1948 -I*) |
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1949 FLTK_CPPFLAGS="$FLTK_CPPFLAGS $fltk_option" |
19582
27c5f42a7a64
configure.ac: Add a --without-fltk build option (bug #37773)
Sebastian Schoeps <sebastian@schoeps.org>
parents:
19508
diff
changeset
|
1950 ;; |
27c5f42a7a64
configure.ac: Add a --without-fltk build option (bug #37773)
Sebastian Schoeps <sebastian@schoeps.org>
parents:
19508
diff
changeset
|
1951 esac |
21984
6187b9ce8477
build: Only include -I preprocessor options in FLTK_CPPFLAGS (bug #48302)
Mike Miller <mtmiller@octave.org>
parents:
21949
diff
changeset
|
1952 done |
25213
7f6b4483468d
configure.ac: Strip any spaces from start of FLTK_XXX variables.
Rik <rik@octave.org>
parents:
25208
diff
changeset
|
1953 FLTK_CPPFLAGS=`echo "$FLTK_CPPFLAGS" | $SED -e 's/^ \+//'` |
7f6b4483468d
configure.ac: Strip any spaces from start of FLTK_XXX variables.
Rik <rik@octave.org>
parents:
25208
diff
changeset
|
1954 |
23939
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1955 ## Split -L and -l options into FLTK_LDFLAGS and FLTK_LIBS |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1956 fltk_ldflags=`$FLTK_CONFIG $fltkconf_args --use-gl --ldflags` |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1957 for fltk_option in $fltk_ldflags; do |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1958 case $fltk_option in |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1959 -l*) |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1960 FLTK_LIBS="$FLTK_LIBS $fltk_option" |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1961 ;; |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1962 *) |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1963 FLTK_LDFLAGS="$FLTK_LDFLAGS $fltk_option" |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1964 ;; |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1965 esac |
fd6b1339689f
build: set FLTK_LIBS properly by splitting FLTK_LDFLAGS
Mike Miller <mtmiller@octave.org>
parents:
23836
diff
changeset
|
1966 done |
25213
7f6b4483468d
configure.ac: Strip any spaces from start of FLTK_XXX variables.
Rik <rik@octave.org>
parents:
25208
diff
changeset
|
1967 FLTK_LIBS=`echo "$FLTK_LIBS" | $SED -e 's/^ \+//'` |
7f6b4483468d
configure.ac: Strip any spaces from start of FLTK_XXX variables.
Rik <rik@octave.org>
parents:
25208
diff
changeset
|
1968 FLTK_LDFLAGS=`echo "$FLTK_LDFLAGS" | $SED -e 's/^ \+//'` |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1969 |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1970 case $host_os in |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1971 mingw*) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1972 FLTK_LDFLAGS=`echo $FLTK_LDFLAGS | $SED -e 's/-mwindows//g'` |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1973 ;; |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1974 esac |
21802
66972e1679df
configure.ac: Fix check for OpenGL support in FLTK
Andreas Weber <andy.weber.aw@gmail.com>
parents:
21724
diff
changeset
|
1975 AC_LANG_PUSH(C++) |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1976 AC_CACHE_CHECK([for OpenGL support in FLTK], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1977 [octave_cv_fltk_opengl_support], |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1978 [save_CPPFLAGS="$CPPFLAGS" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1979 CPPFLAGS="$CFLAGS $FLTK_CPPFLAGS" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1980 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1981 #include <FL/gl.h> |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1982 ]], [[ |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1983 int nothing = 0; |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1984 ]])], |
21802
66972e1679df
configure.ac: Fix check for OpenGL support in FLTK
Andreas Weber <andy.weber.aw@gmail.com>
parents:
21724
diff
changeset
|
1985 octave_cv_fltk_opengl_support=yes, |
66972e1679df
configure.ac: Fix check for OpenGL support in FLTK
Andreas Weber <andy.weber.aw@gmail.com>
parents:
21724
diff
changeset
|
1986 octave_cv_fltk_opengl_support=no) |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1987 CPPFLAGS="$save_CPPFLAGS" |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1988 ]) |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1989 if test $octave_cv_fltk_opengl_support = no; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1990 warn_fltk_opengl="FLTK does not have OpenGL support. OpenGL graphics with FLTK widgets will be disabled." |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1991 else |
21512
79aa496c6d47
maint: Fix configure warning messages on missing OpenGL graphics support
Mike Miller <mtmiller@octave.org>
parents:
21480
diff
changeset
|
1992 build_fltk_graphics=yes |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1993 AC_DEFINE(HAVE_FLTK, 1, [Define to 1 if FLTK is available.]) |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1994 fi |
21802
66972e1679df
configure.ac: Fix check for OpenGL support in FLTK
Andreas Weber <andy.weber.aw@gmail.com>
parents:
21724
diff
changeset
|
1995 AC_LANG_POP(C++) |
19582
27c5f42a7a64
configure.ac: Add a --without-fltk build option (bug #37773)
Sebastian Schoeps <sebastian@schoeps.org>
parents:
19508
diff
changeset
|
1996 |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1997 if test -n "$warn_fltk_opengl"; then |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
1998 OCTAVE_CONFIGURE_WARNING([warn_fltk_opengl]) |
10571
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
1999 fi |
2ceb8e013597
add configure test for glu
Shai Ayal <shaiay@users.sourceforge.net>
parents:
10471
diff
changeset
|
2000 fi |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2001 fi |
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2002 |
19733
08033d583435
more consistently use _CPPFLAGS and _LDFLAGS variables
John W. Eaton <jwe@octave.org>
parents:
19732
diff
changeset
|
2003 AC_SUBST(FLTK_CPPFLAGS) |
08033d583435
more consistently use _CPPFLAGS and _LDFLAGS variables
John W. Eaton <jwe@octave.org>
parents:
19732
diff
changeset
|
2004 AC_SUBST(FLTK_LDFLAGS) |
19732
bf25e9f7c22a
use FLTK_CFLAGS and FLTK_LIBS instead of GRAPHICS_CFLAGS and GRAPHICS_LIBS
John W. Eaton <jwe@octave.org>
parents:
19703
diff
changeset
|
2005 AC_SUBST(FLTK_LIBS) |
7834
caab78e7e377
added checks for fltk & freetype in configure script
Shai Ayal <shaiay@sourceforge.net>
parents:
7825
diff
changeset
|
2006 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2007 ### Final determination of whether OpenGL graphics can be built. |
21512
79aa496c6d47
maint: Fix configure warning messages on missing OpenGL graphics support
Mike Miller <mtmiller@octave.org>
parents:
21480
diff
changeset
|
2008 if test $build_qt_graphics = no && test $build_fltk_graphics = no; then |
21374
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
2009 opengl_graphics=no |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
2010 else |
1487a68a496a
untangle configuration of OpenGL, FLTK, and Qt (bug #47263)
John W. Eaton <jwe@octave.org>
parents:
21354
diff
changeset
|
2011 opengl_graphics=yes |
19732
bf25e9f7c22a
use FLTK_CFLAGS and FLTK_LIBS instead of GRAPHICS_CFLAGS and GRAPHICS_LIBS
John W. Eaton <jwe@octave.org>
parents:
19703
diff
changeset
|
2012 fi |
19703
a81177f4bfe6
Add __osmesa_print__.cc for offscreen rendering with OpenGL
Andreas Weber <andy.weber.aw@gmail.com>
parents:
19697
diff
changeset
|
2013 |
28359
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2014 ## Check for gl2ps which is required for printing with OpenGL graphics. |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2015 |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2016 if test $opengl_graphics = yes; then |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2017 AC_CHECK_HEADERS([gl2ps.h], |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2018 [GL2PS_LIBS="-lgl2ps"], |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2019 [warn_gl2ps="gl2ps library not found. Printing of OpenGL graphics will be disabled."]) |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2020 |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2021 if test -n "$warn_gl2ps"; then |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2022 OCTAVE_CONFIGURE_WARNING([warn_gl2ps]) |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2023 else |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2024 save_LIBS="$LIBS" |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2025 LIBS="$GL2PS_LIBS $LIBS" |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2026 AC_CHECK_FUNCS([gl2psLineJoin]) |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2027 LIBS="$save_LIBS" |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2028 fi |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2029 |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2030 AC_SUBST(GL2PS_LIBS) |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2031 fi |
75c87b15bcee
configure.ac: Move check for gl2ps to after Qt and OpenGL detection.
Markus Mützel <markus.muetzel@gmx.de>
parents:
28356
diff
changeset
|
2032 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2033 ### Use the system-wide installation of GNU FreeFont if the user requests it. |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2034 dnl By default, Octave includes its own copy of the FreeSans font which it |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2035 dnl installs in its own directory for use as a fallback default font. If this |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2036 dnl configuration option is used, then do not install our own copy of the fonts |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2037 dnl and assume they can be found in the provided system directory. |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2038 SYSTEM_FREEFONT_DIR= |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2039 AC_ARG_WITH([system-freefont], |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2040 [AS_HELP_STRING([--with-system-freefont=DIR], |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2041 [use FreeSans fonts in DIR (default: install and use internal copy)])]) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2042 case $with_system_freefont in |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2043 no | "") |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2044 SYSTEM_FREEFONT_DIR= |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2045 ;; |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2046 yes) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2047 AC_MSG_ERROR([directory argument required for --with-system-freefont]) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2048 ;; |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2049 *) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2050 SYSTEM_FREEFONT_DIR=$with_system_freefont |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2051 ;; |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2052 esac |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2053 if test -n "$SYSTEM_FREEFONT_DIR"; then |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2054 AC_MSG_NOTICE([configuring Octave to use system fonts in $SYSTEM_FREEFONT_DIR]) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2055 AC_DEFINE_UNQUOTED([SYSTEM_FREEFONT_DIR], ["$SYSTEM_FREEFONT_DIR"], |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2056 [Define this to be the system directory containing the GNU FreeFont fonts.]) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2057 fi |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2058 AM_CONDITIONAL([AMCOND_INSTALL_INTERNAL_FONT_FILES], |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2059 [test -z "$SYSTEM_FREEFONT_DIR"]) |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2060 |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2061 ### Check for qrupdate library. |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
2062 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2063 dnl No need to adjust FFLAGS because only link is attempted. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2064 dnl Must supply proper LIBS, however. |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
2065 save_LIBS="$LIBS" |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
2066 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2067 OCTAVE_CHECK_LIB(qrupdate, qrupdate, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2068 [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
|
2069 [], |
9707
6f5c4c82c5fc
avoid ugly F77 names in configure
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
2070 [sqr1up], |
6f5c4c82c5fc
avoid ugly F77 names in configure
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
2071 [Fortran 77], [don't use qrupdate, disable QR & Cholesky updating functions]) |
9708 | 2072 |
19349
043440fa7006
configure.ac: Respect without-z and without-qrupdate options when config.cache exists.
Rik <rik@octave.org>
parents:
19344
diff
changeset
|
2073 ## Additional check to see if qrupdate lib found supports LU updates |
28304
144d77f3f829
configure.ac: Fix compilation when --without-XXX used for all libraries (bug #58330).
Rik <rik@octave.org>
parents:
28300
diff
changeset
|
2074 if test -n "$QRUPDATE_LIBS"; then |
15361
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2075 AC_CACHE_CHECK([for slup1up in $QRUPDATE_LIBS], |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2076 [octave_cv_func_slup1up], |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2077 [LIBS="$LIBS $QRUPDATE_LIBS" |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2078 AC_LANG_PUSH([Fortran 77]) |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2079 AC_LINK_IFELSE([AC_LANG_CALL([], [slup1up])], |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2080 octave_cv_func_slup1up=yes, octave_cv_func_slup1up=no) |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2081 AC_LANG_POP([Fortran 77]) |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2082 ]) |
01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
Rik <rik@octave.org>
parents:
15350
diff
changeset
|
2083 if test $octave_cv_func_slup1up = yes; then |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
2084 AC_DEFINE(HAVE_QRUPDATE_LUU, 1, [Define to 1 if qrupdate supports LU updates.]) |
9708 | 2085 fi |
2086 fi | |
9570
1ab56c73ec7c
use OCTAVE_CHECK_LIBRARY to check for qrupdate library
John W. Eaton <jwe@octave.org>
parents:
9568
diff
changeset
|
2087 LIBS="$save_LIBS" |
8547
d66c9b6e506a
imported patch qrupdate.diff
Jaroslav Hajek <highegg@gmail.com>
parents:
8417
diff
changeset
|
2088 |
21131
54527108599a
store more --enable-FEATURE info in octave_config_info
John W. Eaton <jwe@octave.org>
parents:
21117
diff
changeset
|
2089 if test $ENABLE_64 = yes; then |
16318
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2090 CHOLMOD_TAG="_l_" |
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2091 CXSPARSE_TAG="_dl_" |
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2092 UMFPACK_TAG="_zl_" |
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2093 else |
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2094 CHOLMOD_TAG="_" |
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2095 CXSPARSE_TAG="_di_" |
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2096 UMFPACK_TAG="_zi_" |
20712
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20677
diff
changeset
|
2097 fi |
4a25c398ffa2
configure option to build with address sanitizer (bugg #46449)
John W. Eaton <jwe@octave.org>
parents:
20677
diff
changeset
|
2098 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2099 ## On some systems, explicitly linking with -lsuitesparseconfig is needed |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2100 ## when using SuiteSparse libraries. If so, the checks below for specific |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2101 ## SuiteSparse libraries may fail without it. Include LIB_CLOCK_GETTIME (from |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2102 ## gnulib) on systems where needed. |
23990
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2103 |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2104 save_LIBS="$LIBS" |
23993
49e37560e0fe
configure: rely on gnulib for detection of clock_gettime
Mike Miller <mtmiller@octave.org>
parents:
23992
diff
changeset
|
2105 LIBS="$LIB_CLOCK_GETTIME $LIBS" |
23990
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2106 OCTAVE_CHECK_LIB(suitesparseconfig, SUITESPARSECONFIG, |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2107 [], [], [SuiteSparse_time], [], |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2108 [don't link directly with suitesparseconfig library]) |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2109 LIBS="$save_LIBS" |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2110 |
23993
49e37560e0fe
configure: rely on gnulib for detection of clock_gettime
Mike Miller <mtmiller@octave.org>
parents:
23992
diff
changeset
|
2111 if test -n "$SUITESPARSECONFIG_LIBS" && test -n "$LIB_CLOCK_GETTIME"; then |
49e37560e0fe
configure: rely on gnulib for detection of clock_gettime
Mike Miller <mtmiller@octave.org>
parents:
23992
diff
changeset
|
2112 SUITESPARSECONFIG_LIBS="$SUITESPARSECONFIG_LIBS $LIB_CLOCK_GETTIME" |
23990
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2113 fi |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2114 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2115 ## Save and restore LIBS after all checks for SuiteSparse libraries. |
23990
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2116 suitesparse_save_LIBS="$LIBS" |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2117 LIBS="$SUITESPARSECONFIG_LIBS $LIBS" |
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2118 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2119 ### Check for AMD library. |
7619 | 2120 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2121 OCTAVE_CHECK_LIB(amd, AMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2122 [AMD library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2123 [amd.h suitesparse/amd.h amd/amd.h], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2124 [amd_postorder], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2125 [], [don't use AMD library, disable some sparse matrix functionality]) |
5451 | 2126 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2127 ### Check for CAMD library. |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2128 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2129 OCTAVE_CHECK_LIB(camd, CAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2130 [CAMD library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2131 [camd.h suitesparse/camd.h camd/camd.h], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2132 [camd_postorder], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2133 [], [don't use CAMD library, disable some sparse matrix functionality]) |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2134 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2135 ### Check for COLAMD library. |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2136 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2137 OCTAVE_CHECK_LIB(colamd, COLAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2138 [COLAMD library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2139 [colamd.h suitesparse/colamd.h colamd/colamd.h], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2140 [colamd], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2141 [], [don't use COLAMD library, disable some sparse matrix functionality]) |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2142 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2143 ### Check for CCOLAMD library. |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2144 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2145 OCTAVE_CHECK_LIB(ccolamd, CCOLAMD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2146 [CCOLAMD library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2147 [ccolamd.h suitesparse/ccolamd.h ccolamd/ccolamd.h], |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2148 [ccolamd], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2149 [], [don't use CCOLAMD library, disable some sparse matrix functionality]) |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2150 |
15390
ad2c3902b826
configure.ac: Implement some portable sh programming recommendations from Autoconf.
Rik <rik@octave.org>
parents:
15369
diff
changeset
|
2151 ### Check for CHOLMOD library. |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2152 dnl If your cholmod library requires cblas, then you will need to configure |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2153 dnl with --with-cholmod="-lcholmod -lcblas". |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2154 |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2155 save_LIBS="$LIBS" |
10332
5f6298220ced
configure.ac: include colamd and amd libs in LIBS when checking for cholmod library
John W. Eaton <jwe@octave.org>
parents:
10331
diff
changeset
|
2156 LIBS="$COLAMD_LDFLAGS $COLAMD_LIBS $AMD_LDFLAGS $AMD_LIBS $LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2157 OCTAVE_CHECK_LIB(cholmod, CHOLMOD, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2158 [CHOLMOD library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2159 [cholmod.h suitesparse/cholmod.h cholmod/cholmod.h], |
16318
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2160 [cholmod${CHOLMOD_TAG}start], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2161 [], [don't use CHOLMOD library, disable some sparse matrix functionality]) |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2162 LIBS="$save_LIBS" |
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2163 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2164 ### Check for SPQR library. |
29259
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2165 |
29355
2a4998b97990
build: Consider SPQR dependency on cholmod in configure check (bug #57033).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29354
diff
changeset
|
2166 save_LIBS="$LIBS" |
2a4998b97990
build: Consider SPQR dependency on cholmod in configure check (bug #57033).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29354
diff
changeset
|
2167 LIBS="$CHOLMOD_LIBS $LIBS" |
29259
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2168 OCTAVE_CHECK_LIB(spqr, SPQR, |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2169 [SPQR library not found. This will result in some lack of functionality for sparse matrices.], |
29428
dba6e9920113
configure.ac: Prioritize top-level headers in OCTAVE_CHECK_LIB macro (bug #59806)
Rik <rik@octave.org>
parents:
29409
diff
changeset
|
2170 [SuiteSparseQR.hpp suitesparse/SuiteSparseQR.hpp], |
29259
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2171 [SuiteSparseQR_C], |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2172 [C++], [don't use SPQR library, disable some sparse matrix functionality]) |
29355
2a4998b97990
build: Consider SPQR dependency on cholmod in configure check (bug #57033).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29354
diff
changeset
|
2173 LIBS="$save_LIBS" |
29259
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2174 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2175 ### Check for CXSparse library. |
9523
0ce82753dd72
more configure changes for libraries
John W. Eaton <jwe@octave.org>
parents:
9519
diff
changeset
|
2176 |
15141
4388f6518440
build: Overhaul acinclude.m4 macros.
Rik <rik@octave.org>
parents:
15134
diff
changeset
|
2177 OCTAVE_CHECK_LIB(cxsparse, CXSparse, |
9571
263a8ed419b0
configure.in: style fixes for messages
John W. Eaton <jwe@octave.org>
parents:
9570
diff
changeset
|
2178 [CXSparse library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2179 [cs.h suitesparse/cs.h cxsparse/cs.h], |
16318
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2180 [cs${CXSPARSE_TAG}sqr], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2181 [C++], [don't use CXSparse library, disable some sparse matrix functionality]) |
6024 | 2182 |
28304
144d77f3f829
configure.ac: Fix compilation when --without-XXX used for all libraries (bug #58330).
Rik <rik@octave.org>
parents:
28300
diff
changeset
|
2183 if test -n "$CXSPARSE_LIBS"; then |
25309
7d32780f4dea
avoid syntax error in configure if cxsparse is missing
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
2184 ## Additional check for CXSparse version >= 2.2 |
7d32780f4dea
avoid syntax error in configure if cxsparse is missing
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
2185 if test $octave_cv_lib_cxsparse = yes; then |
7d32780f4dea
avoid syntax error in configure if cxsparse is missing
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
2186 OCTAVE_CHECK_CXSPARSE_VERSION_OK |
7d32780f4dea
avoid syntax error in configure if cxsparse is missing
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
2187 if test $octave_cv_cxsparse_version_ok = no; then |
30250
aaac4d16af9e
build: Correct error message for incompatible CXSparse (bug #61385).
Petter Tomner <tomner@kth.se>
parents:
30248
diff
changeset
|
2188 AC_MSG_ERROR([CXSparse library is too old (< version 2.2). Upgrade CXSparse (SuiteSparse) or configure Octave with --without-cxsparse"]) |
25309
7d32780f4dea
avoid syntax error in configure if cxsparse is missing
John W. Eaton <jwe@octave.org>
parents:
25295
diff
changeset
|
2189 fi |
21160
b5b531ba93ce
build: Use configure-time test to check CXSparse version.
Rik <rik@octave.org>
parents:
21150
diff
changeset
|
2190 fi |
21023
ec532a439c6f
rework method of disabling warnings from GCC
John W. Eaton <jwe@octave.org>
parents:
20842
diff
changeset
|
2191 fi |
4626 | 2192 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
2193 ### Check for UMFPACK library. |
5226 | 2194 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2195 save_LIBS="$LIBS" |
9787
cc5bb7b5679f
use AMD_CPPFLAGS when checking for UMFPACK
David Grundberg <davidg@cs.umu.se>
parents:
9763
diff
changeset
|
2196 save_CPPFLAGS="$CPPFLAGS" |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2197 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
|
2198 CPPFLAGS="$AMD_CPPFLAGS $CPPFLAGS" |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
2199 OCTAVE_CHECK_LIB([umfpack], UMFPACK, |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2200 [UMFPACK not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2201 [umfpack.h suitesparse/umfpack.h umfpack/umfpack.h], |
16318
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2202 [umfpack${UMFPACK_TAG}get_determinant], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2203 [], [don't use UMFPACK, disable some sparse matrix functionality]) |
9787
cc5bb7b5679f
use AMD_CPPFLAGS when checking for UMFPACK
David Grundberg <davidg@cs.umu.se>
parents:
9763
diff
changeset
|
2204 CPPFLAGS="$save_CPPFLAGS" |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2205 LIBS="$save_LIBS" |
5512 | 2206 |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2207 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
|
2208 ## Invalidate the cache and try again with -lcblas. |
16318
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2209 $as_unset ac_cv_lib_umfpack_umfpack${UMFPACK_TAG}get_determinant |
15350
6a0c0d3d60b6
build: Implement some caching for OCTAVE_CHECK_LIB macro.
Rik <rik@octave.org>
parents:
15349
diff
changeset
|
2210 $as_unset octave_cv_lib_umfpack |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2211 save_LIBS="$LIBS" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2212 LIBS="-lcblas $AMD_LDFLAGS $AMD_LIBS $BLAS_LIBS $FLIBS $LIBS" |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
2213 OCTAVE_CHECK_LIB([umfpack], UMFPACK, |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2214 [UMFPACK not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2215 [umfpack.h suitesparse/umfpack.h umfpack/umfpack.h], |
16318
eb572251b7c6
check for correct SuiteSparse functions if --enable-64
John W. Eaton <jwe@octave.org>
parents:
16313
diff
changeset
|
2216 [umfpack${UMFPACK_TAG}get_determinant], |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
2217 [], [don't use UMFPACK, disable some sparse matrix functionality]) |
9572
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2218 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
|
2219 UMFPACK_LIBS="$UMFPACK_LIBS -lcblas" |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2220 fi |
ab8a163f2052
use OCTAVE_CHECK_LIB to check for UMFPACK
John W. Eaton <jwe@octave.org>
parents:
9571
diff
changeset
|
2221 LIBS="$save_LIBS" |
6133 | 2222 fi |
5513 | 2223 |
23021
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2224 ### Check for KLU library and header. |
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2225 |
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2226 OCTAVE_CHECK_LIB(klu, KLU, |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2227 [KLU library not found. This will result in some lack of functionality for sparse matrices.], |
29429
73db3b4d2188
configure.ac: No longer look for SuiteSparse header files in ufsparse/ (bug #59806).
Rik <rik@octave.org>
parents:
29428
diff
changeset
|
2228 [klu.h suitesparse/klu.h klu/klu.h], [klu_solve], |
23021
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2229 [], [don't use KLU library, disable some sparse matrix functionality]) |
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2230 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2231 ## Restore LIBS after all suitesparse configuration tests |
23990
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
2232 LIBS="$suitesparse_save_LIBS" |
5226 | 2233 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2234 ## Collections of flags. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2235 dnl These are here instead of just in the Makefile.am file because we |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2236 dnl substitute some of them into other source files like mkoctfile. |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2237 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2238 ## Order matters, at least on some systems (Cygwin, for example). |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2239 |
29259
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2240 SPARSE_XCPPFLAGS="$CHOLMOD_CPPFLAGS $UMFPACK_CPPFLAGS $AMD_CPPFLAGS $CAMD_CPPFLAGS $COLAMD_CPPFLAGS $CCOLAMD_CPPFLAGS $CXSPARSE_CPPFLAGS $SPQR_CPPFLAGS" |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2241 |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2242 SPARSE_XLDFLAGS="$CHOLMOD_LDFLAGS $UMFPACK_LDFLAGS $AMD_LDFLAGS $CAMD_LDFLAGS $COLAMD_LDFLAGS $CCOLAMD_LDFLAGS $CXSPARSE_LDFLAGS $SPQR_LDFLAGS" |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2243 |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
2244 SPARSE_XLIBS="$CHOLMOD_LIBS $UMFPACK_LIBS $AMD_LIBS $CAMD_LIBS $COLAMD_LIBS $CCOLAMD_LIBS $CXSPARSE_LIBS $SUITESPARSECONFIG_LIBS $SPQR_LIBS" |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2245 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2246 AC_SUBST(SPARSE_XCPPFLAGS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2247 AC_SUBST(SPARSE_XLDFLAGS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2248 AC_SUBST(SPARSE_XLIBS) |
5226 | 2249 |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2250 ## Check for UMFPACK separately split complex matrix and RHS. |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2251 if test -n "$UMFPACK_LIBS"; then |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2252 save_CPPFLAGS="$CPPFLAGS" |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2253 save_LDFLAGS="$LDFLAGS"; |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2254 save_LIBS="$LIBS"; |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2255 |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2256 CPPFLAGS="$SPARSE_XCPPFLAGS $CPPFLAGS" |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2257 LDFLAGS="$SPARSE_XLDFLAGS $LDFLAGS" |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2258 LIBS="$SPARSE_XLIBS $LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS $xtra_libs" |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2259 |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2260 OCTAVE_UMFPACK_SEPARATE_SPLIT |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2261 |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2262 CPPFLAGS="$save_CPPFLAGS" |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2263 LDFLAGS="$save_LDFLAGS" |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2264 LIBS="$save_LIBS" |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2265 fi |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
2266 |
23981
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
2267 ### Check for SUNDIALS NVECTOR serial library and header. |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
2268 |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
2269 OCTAVE_CHECK_LIB(sundials_nvecserial, [SUNDIALS NVECTOR], |
26992
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2270 [SUNDIALS NVECTOR serial library not found. The solvers ode15i and ode15s will be disabled.], |
29428
dba6e9920113
configure.ac: Prioritize top-level headers in OCTAVE_CHECK_LIB macro (bug #59806)
Rik <rik@octave.org>
parents:
29409
diff
changeset
|
2271 [nvector_serial.h nvector/nvector_serial.h], [N_VNew_Serial], |
26992
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2272 [], [don't use SUNDIALS NVECTOR library, disable solvers ode15i and ode15s]) |
23981
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
2273 |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
2274 ### Check for SUNDIALS IDA library and header. |
23021
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2275 |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2276 if test -n "$SUNDIALS_NVECSERIAL_LIBS"; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2277 |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2278 save_CPPFLAGS="$CPPFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2279 save_LDFLAGS="$LDFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2280 save_LIBS="$LIBS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2281 LIBS="$SUNDIALS_NVECSERIAL_LIBS $KLU_LIBS $BLAS_LIBS $FLIBS $LIBS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2282 LDFLAGS="$SUNDIALS_NVECSERIAL_LDFLAGS $KLU_LDFLAGS $BLAS_LDFLAGS $LDFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2283 CPPFLAGS="$SUNDIALS_NVECSERIAL_CPPFLAGS $KLU_CPPFLAGS $BLAS_CPPFLAGS $CPPFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2284 OCTAVE_CHECK_LIB(sundials_ida, [SUNDIALS IDA], |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2285 [SUNDIALS IDA library not found. The solvers ode15i and ode15s will be disabled.], |
29428
dba6e9920113
configure.ac: Prioritize top-level headers in OCTAVE_CHECK_LIB macro (bug #59806)
Rik <rik@octave.org>
parents:
29409
diff
changeset
|
2286 [ida.h ida/ida.h], [IDAInit], |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2287 [], [don't use SUNDIALS IDA library, disable solvers ode15i and ode15s]) |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2288 CPPFLAGS="$save_CPPFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2289 LDFLAGS="$save_LDFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2290 LIBS="$save_LIBS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2291 fi |
26992
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2292 |
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2293 ### Check for SUNDIALS library features, some required, some optional. |
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2294 |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2295 if test -n "$SUNDIALS_IDA_LIBS" && test -n "$SUNDIALS_NVECSERIAL_LIBS"; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2296 |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2297 CPPFLAGS="$SUNDIALS_IDA_CPPFLAGS $SUNDIALS_NVECSERIAL_CPPFLAGS $KLU_CPPFLAGS $BLAS_CPPFLAGS $CPPFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2298 LDFLAGS="$SUNDIALS_IDA_LDFLAGS $SUNDIALS_NVECSERIAL_LDFLAGS $KLU_LDFLAGS $BLAS_LDFLAGS $LDFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2299 LIBS="$SUNDIALS_IDA_LIBS $SUNDIALS_NVECSERIAL_LIBS $KLU_LIBS $BLAS_LIBS $FLIBS $LIBS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2300 if test -z "$warn_sundials_nvecserial" && test -z "$warn_sundials_ida"; then |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2301 dnl Any of the following tests could determine that SUNDIALS is |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2302 dnl incompatible and should be disabled. In that event, they all populate |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2303 dnl the same variable with appropriate warning messages, and further tests |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2304 dnl should be skipped if a warning message has already been generated that |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2305 dnl SUNDIALS is disabled. |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2306 warn_sundials_disabled= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2307 if test -z "$warn_sundials_disabled"; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2308 OCTAVE_CHECK_SUNDIALS_COMPATIBLE_API |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2309 fi |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2310 if test -z "$warn_sundials_disabled"; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2311 OCTAVE_CHECK_SUNDIALS_SIZEOF_REALTYPE |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2312 fi |
28939 | 2313 if test -z "$warn_sundials_disabled"; then |
2314 OCTAVE_CHECK_SUNDIALS_SUNLINSOL_DENSE | |
2315 fi | |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2316 dnl The following tests determine whether certain optional features are |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2317 dnl present in the SUNDIALS libraries, but will not disable using SUNDIALS. |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2318 if test -z "$warn_sundials_disabled"; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2319 OCTAVE_CHECK_SUNDIALS_SUNLINSOL_KLU |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2320 fi |
26992
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2321 fi |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2322 CPPFLAGS="$save_CPPFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2323 LDFLAGS="$save_LDFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2324 LIBS="$save_LIBS" |
26992
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2325 fi |
23021
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2326 |
30580
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
2327 dnl Define this way instead of with an #if in oct-conf-post-private.h so that |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2328 dnl the build features script will get the correct value. |
26903
73b141d5a888
improve configure checks for sundials (bug #55911)
John W. Eaton <jwe@octave.org>
parents:
26894
diff
changeset
|
2329 dnl |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2330 dnl FIXME: The test on the sunlinsol_klu.h header is a bit of a kluge. |
26903
73b141d5a888
improve configure checks for sundials (bug #55911)
John W. Eaton <jwe@octave.org>
parents:
26894
diff
changeset
|
2331 dnl How can we do a better job here? Do we need to disable sundials |
73b141d5a888
improve configure checks for sundials (bug #55911)
John W. Eaton <jwe@octave.org>
parents:
26894
diff
changeset
|
2332 dnl any tests fail, or can we fix __ode15__.cc so that it still partially |
73b141d5a888
improve configure checks for sundials (bug #55911)
John W. Eaton <jwe@octave.org>
parents:
26894
diff
changeset
|
2333 dnl works when some things are missing (for example, KLU)? |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2334 if test -n "$SUNDIALS_IDA_LIBS" && test -n "$SUNDIALS_NVECSERIAL_LIBS"; then |
28939 | 2335 if test "x$octave_cv_sundials_sunlinsol_dense" = xyes \ |
2336 && test "x$octave_cv_sundials_realtype_is_double" = xyes \ | |
28299
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2337 && test "x$octave_have_sundials_compatible_api" = xyes; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2338 AC_DEFINE(HAVE_SUNDIALS, 1, [Define to 1 if SUNDIALS is available.]) |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2339 |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2340 ## Options needed to build with SUNDIALS and its dependencies. |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2341 SUNDIALS_XCPPFLAGS="$SUNDIALS_IDA_CPPFLAGS $SUNDIALS_SUNLINSOLKLU_CPPFLAGS $SUNDIALS_NVECSERIAL_CPPFLAGS $KLU_CPPFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2342 SUNDIALS_XLDFLAGS="$SUNDIALS_IDA_LDFLAGS $SUNDIALS_SUNLINSOLKLU_LDFLAGS $SUNDIALS_NVECSERIAL_LDFLAGS $KLU_LDFLAGS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2343 SUNDIALS_XLIBS="$SUNDIALS_IDA_LIBS $SUNDIALS_SUNLINSOLKLU_LIBS $SUNDIALS_NVECSERIAL_LIBS $KLU_LIBS" |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2344 else |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2345 SUNDIALS_IDA_CPPFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2346 SUNDIALS_IDA_LDFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2347 SUNDIALS_IDA_LIBS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2348 SUNDIALS_SUNLINSOLKLU_CPPFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2349 SUNDIALS_SUNLINSOLKLU_LDFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2350 SUNDIALS_SUNLINSOLKLU_LIBS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2351 SUNDIALS_NVECSERIAL_CPPFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2352 SUNDIALS_NVECSERIAL_LDFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2353 SUNDIALS_NVECSERIAL_LIBS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2354 SUNDIALS_XCPPFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2355 SUNDIALS_XLDFLAGS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2356 SUNDIALS_XLIBS= |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2357 dnl Emit a fallback warning message in case SUNDIALS has been disabled for |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2358 dnl some reason that hasn't already generated one of these known warnings. |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2359 if test -z "$warn_sundials_nvecserial" && test -z "$warn_sundials_ida" \ |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2360 && test -z "$warn_sundials_disabled"; then |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2361 warn_sundials_disabled="SUNDIALS libraries are missing some feature. The solvers ode15i and ode15s will be disabled." |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2362 OCTAVE_CONFIGURE_WARNING([warn_sundials_disabled]) |
a8f6a7083428
Don't issue configure warnings when --without-XXX used (bug #58330)
Rik <rik@octave.org>
parents:
28270
diff
changeset
|
2363 fi |
26992
05f389459461
configure: avoid excessive SUNDIALS warning messages when already disabled
Mike Miller <mtmiller@octave.org>
parents:
26991
diff
changeset
|
2364 fi |
23021
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2365 fi |
6094018f5e72
refactor configure checks for Sundials (bug #50003)
John W. Eaton <jwe@octave.org>
parents:
23018
diff
changeset
|
2366 |
23389
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2367 AC_SUBST(SUNDIALS_XCPPFLAGS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2368 AC_SUBST(SUNDIALS_XLDFLAGS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2369 AC_SUBST(SUNDIALS_XLIBS) |
f0eb5d4431b7
* configure.ac: Reorder definition of compiler flag collections.
John W. Eaton <jwe@octave.org>
parents:
23370
diff
changeset
|
2370 |
15063
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
2371 ### Check for ARPACK library. |
36cbcc37fdb8
Refactor configure.ac to make it more understandable.
Rik <rik@octave.org>
parents:
15059
diff
changeset
|
2372 |
14144
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2373 save_LIBS="$LIBS" |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2374 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" |
15317
d7514add71e2
configure.ac: Use m4 quoting more consistently throughout file.
Rik <rik@octave.org>
parents:
15308
diff
changeset
|
2375 OCTAVE_CHECK_LIB([arpack], ARPACK, |
14144
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2376 [ARPACK not found. The eigs function will be disabled.], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2377 [], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2378 [dseupd], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2379 [Fortran 77], [don't use the ARPACK library, disable eigs function], |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2380 [warn_arpack= |
24289
f52d91f6ef80
Check ARPACK library for buggy behavior in configure (bug #52425)
Rik <rik@octave.org>
parents:
23835
diff
changeset
|
2381 OCTAVE_CHECK_LIB_ARPACK_OK_1( |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
2382 [AC_DEFINE(HAVE_ARPACK, 1, [Define to 1 if ARPACK is available.])], |
24289
f52d91f6ef80
Check ARPACK library for buggy behavior in configure (bug #52425)
Rik <rik@octave.org>
parents:
23835
diff
changeset
|
2383 [warn_arpack="ARPACK library found, but does not seem to work properly; disabling eigs function"]) |
28304
144d77f3f829
configure.ac: Fix compilation when --without-XXX used for all libraries (bug #58330).
Rik <rik@octave.org>
parents:
28300
diff
changeset
|
2384 if test -n "$ARPACK_LIBS"; then |
24289
f52d91f6ef80
Check ARPACK library for buggy behavior in configure (bug #52425)
Rik <rik@octave.org>
parents:
23835
diff
changeset
|
2385 OCTAVE_CHECK_LIB_ARPACK_OK_2([], |
24329
740c6a7db92a
configure.ac: Fix regression in detecting ARPACK library in cset f52d91f6ef80.
Rik <rik@octave.org>
parents:
24289
diff
changeset
|
2386 [AC_MSG_WARN([ARPACK library found, but is buggy; upgrade library (>= v3.3.0) for better results])]) |
24289
f52d91f6ef80
Check ARPACK library for buggy behavior in configure (bug #52425)
Rik <rik@octave.org>
parents:
23835
diff
changeset
|
2387 fi |
f52d91f6ef80
Check ARPACK library for buggy behavior in configure (bug #52425)
Rik <rik@octave.org>
parents:
23835
diff
changeset
|
2388 ]) |
14144
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2389 LIBS="$save_LIBS" |
834df9f10963
remove ARPACK files from sources and restore configure checks for external ARPACK library
John W. Eaton <jwe@octave.org>
parents:
14138
diff
changeset
|
2390 |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2391 ### Check for Java. |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2392 |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2393 build_java=yes |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2394 AC_ARG_ENABLE([java], |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2395 [AS_HELP_STRING([--disable-java], |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2396 [disable Java interface])], |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2397 [if test "$enableval" = no; then |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2398 build_java=no |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2399 fi], |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2400 []) |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2401 |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2402 AC_ARG_WITH([java-homedir], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2403 [AS_HELP_STRING([--with-java-homedir=DIR], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2404 [Java JDK directory in DIR])], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2405 [JAVA_HOMEDIR="$withval"]) |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2406 |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2407 AC_ARG_WITH([java-includedir], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2408 [AS_HELP_STRING([--with-java-includedir=DIR], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2409 [look for java include file <jni.h> in DIR])], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2410 [JAVA_CPPFLAGS="$withval"], [JAVA_CPPFLAGS=""]) |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2411 |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2412 AC_ARG_WITH([java-libdir], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2413 [AS_HELP_STRING([--with-java-libdir=DIR], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2414 [look for java library libjvm in DIR])], |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2415 [JAVA_LDPATH="$withval"], [JAVA_LDPATH=""]) |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2416 |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2417 ## Grab JAVA_HOME from environment variable if it exists |
15761
9f3656ada658
configure.ac: Add warning message if JAVA_HOME variable is not set.
Rik <rik@octave.org>
parents:
15756
diff
changeset
|
2418 AC_ARG_VAR([JAVA_HOME], [path to Java JDK installation]) |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2419 ## But --with-java-homedir option overrides environment variable |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2420 if test -n "$JAVA_HOMEDIR"; then |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2421 JAVA_HOME=$JAVA_HOMEDIR |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2422 fi |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2423 JAVA= |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2424 JAVAC= |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2425 JAR= |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2426 JAVA_LIBS= |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2427 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2428 dnl Fake loop so that "break" can be used to skip code blocks. |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2429 warn_java= |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2430 while test $build_java = yes |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2431 do |
15780
f25101b1e37f
configure.ac: Use build_java as internal script variable rather than HAVE_JAVA.
Rik <rik@octave.org>
parents:
15779
diff
changeset
|
2432 ## Unset build_java. Variable is set only if all configuration tests pass. |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2433 build_java=no |
15780
f25101b1e37f
configure.ac: Use build_java as internal script variable rather than HAVE_JAVA.
Rik <rik@octave.org>
parents:
15779
diff
changeset
|
2434 |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2435 ## Warn if JAVA_HOME is unset. It is *strongly* advised to specify JAVA_HOME. |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2436 if test -z "$JAVA_HOME"; then |
17964
abe592ef40b5
configure.ac: Use two spaces for sentence breaks in warning messages.
Rik <rik@octave.org>
parents:
17946
diff
changeset
|
2437 warn_java_home="JAVA_HOME environment variable not initialized. Auto-detection will proceed but is unreliable." |
17844
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2438 OCTAVE_CONFIGURE_WARNING([warn_java_home]) |
15761
9f3656ada658
configure.ac: Add warning message if JAVA_HOME variable is not set.
Rik <rik@octave.org>
parents:
15756
diff
changeset
|
2439 fi |
9f3656ada658
configure.ac: Add warning message if JAVA_HOME variable is not set.
Rik <rik@octave.org>
parents:
15756
diff
changeset
|
2440 |
15780
f25101b1e37f
configure.ac: Use build_java as internal script variable rather than HAVE_JAVA.
Rik <rik@octave.org>
parents:
15779
diff
changeset
|
2441 ## Search for a viable Java executable. |
15761
9f3656ada658
configure.ac: Add warning message if JAVA_HOME variable is not set.
Rik <rik@octave.org>
parents:
15756
diff
changeset
|
2442 if test -z "$JAVA_HOME"; then |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2443 JAVA_PATH="$PATH" |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2444 else |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2445 JAVA_PATH="${JAVA_HOME}$PATH_SEPARATOR${JAVA_HOME}/jre/bin$PATH_SEPARATOR${JAVA_HOME}/bin$PATH_SEPARATOR${JAVA_HOME}/../bin$PATH_SEPARATOR${PATH}" |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2446 fi |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2447 AC_PATH_PROG(JAVA, java, [], [$JAVA_PATH]) |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2448 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2449 if test -z "$JAVA"; then |
17844
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2450 warn_java="No Java executable found. Octave will not be able to call Java methods." |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2451 break |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2452 fi |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2453 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2454 if test -z "$JAVA_HOME"; then |
15780
f25101b1e37f
configure.ac: Use build_java as internal script variable rather than HAVE_JAVA.
Rik <rik@octave.org>
parents:
15779
diff
changeset
|
2455 ## Find JAVA_HOME for JRE by running java and querying properties. |
15846
605488d19cb3
configure.ac: Avoid non-portable sh technique of double-quoted, backtick expressions.
Rik <rik@octave.org>
parents:
15839
diff
changeset
|
2456 JAVA_TMP_HOME=`"$JAVA" -classpath ${srcdir}/build-aux OctJavaQry JAVA_HOME` |
15780
f25101b1e37f
configure.ac: Use build_java as internal script variable rather than HAVE_JAVA.
Rik <rik@octave.org>
parents:
15779
diff
changeset
|
2457 ## Strip directory back to top-level installation dir (JAVA_HOME for JDK). |
17661
1978a6c76aa9
Use user-specified SED during build process (bug #40273).
Rik <rik@octave.org>
parents:
17640
diff
changeset
|
2458 JAVA_HOME=`echo $JAVA_TMP_HOME | $SED -e 's|[[/\\]]bin[[/\\]]\?$||' | $SED -e 's|[[/\\]]jre[[/\\]]\?$||'` |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2459 fi |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2460 |
18030
f0427ca399cc
configure.ac: Remove unused JAVA_HOME_NATIVE variable.
Rik <rik@octave.org>
parents:
18025
diff
changeset
|
2461 case $build_os in |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2462 mingw* | msdosmsvc) |
27641
ab13485346c2
configure.ac: Fix typos and grammar in comments (bug #57171)
Andrew Janke <andrew@apjanke.net>
parents:
27625
diff
changeset
|
2463 ## Under Win32 platform, we want JAVA_HOME to be in MSYS format; that is, |
15846
605488d19cb3
configure.ac: Avoid non-portable sh technique of double-quoted, backtick expressions.
Rik <rik@octave.org>
parents:
15839
diff
changeset
|
2464 ## without colon and backslashes, as it is also used as path separator. |
605488d19cb3
configure.ac: Avoid non-portable sh technique of double-quoted, backtick expressions.
Rik <rik@octave.org>
parents:
15839
diff
changeset
|
2465 ## Use quoted paths as Java may be installed in a path with whitespaces |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2466 ## (e.g., C:\Program Files\Java\...). |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2467 if test -n "$JAVA_HOME"; then |
15846
605488d19cb3
configure.ac: Avoid non-portable sh technique of double-quoted, backtick expressions.
Rik <rik@octave.org>
parents:
15839
diff
changeset
|
2468 JAVA_HOME=`cd "$JAVA_HOME" && pwd` |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2469 fi |
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2470 ;; |
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2471 esac |
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2472 |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2473 ## Amend search path for JAVAC and JAR. |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2474 if test -z "$JAVA_HOME"; then |
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2475 JAVA_PATH="$PATH" |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2476 else |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2477 JAVA_PATH="${JAVA_HOME}$PATH_SEPARATOR${JAVA_HOME}/bin$PATH_SEPARATOR${JAVA_HOME}/../bin$PATH_SEPARATOR${PATH}" |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2478 fi |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2479 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2480 AC_PATH_PROG(JAVAC, javac, [], [$JAVA_PATH]) |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2481 AC_PATH_PROG(JAR, jar, [], [$JAVA_PATH]) |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2482 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2483 if test -z "$JAVAC" || test -z "$JAR"; then |
18057
37a5e93d6cfd
configure.ac: add warning about disabling java to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
18056
diff
changeset
|
2484 warn_java="No javac compiler or jar executable found. Octave will not be able to call Java methods." |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2485 break |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2486 fi |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2487 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2488 ## Check Java version is recent enough. |
31123
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2489 AC_CACHE_CHECK([for Java version], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2490 [octave_cv_java_version], |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2491 [octave_cv_java_version=[`"$JAVA" -version 2>&1 | $SED -n -e 's/^[^ ]* version[^0-9"]*"\([^"]*\)".*/\1/p'`] |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2492 ]) |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2493 |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2494 java_major=[`echo $octave_cv_java_version | $SED -e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*$/\1/'`] |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2495 java_minor=[`echo $octave_cv_java_version | $SED -e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*$/\2/'`] |
1d819b308578
build: cache Java, g++, and gcc compiler version numbers in configure (bug #62715)
Rik <rik@octave.org>
parents:
31122
diff
changeset
|
2496 |
24389
295664c0c922
configure.ac: Fix test for Java version (bug #52617).
Rik <rik@octave.org>
parents:
24374
diff
changeset
|
2497 if test $java_major -gt 1 || (test $java_major -eq 1 && test $java_minor -ge 5); then |
295664c0c922
configure.ac: Fix test for Java version (bug #52617).
Rik <rik@octave.org>
parents:
24374
diff
changeset
|
2498 : # Version is OK. Do nothing. |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2499 else |
17844
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2500 warn_java="Java version is too old (< 1.5). Octave will not be able to call Java methods." |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2501 break |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2502 fi |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2503 |
17819
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2504 ## At this point Win32 systems have enough configuration data. |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2505 ## We assume that all appropriate variables (e.g., INCLUDE and LIB) already |
17819
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2506 ## contain the required paths to compile and link against JDK. |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2507 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2508 msdosmsvc) |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2509 build_java=yes |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2510 JAVA_LIBS=-ladvapi32 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2511 AC_DEFINE(HAVE_JAVA, 1, |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2512 [Define to 1 if Java is available and is at least version 1.5]) |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2513 break |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2514 ;; |
17819
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2515 mingw* | cygwin*) |
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2516 build_java=yes |
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2517 JAVA_LIBS=-ladvapi32 |
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2518 if test $have_msvc = no; then |
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2519 if test -n "$JAVA_CPPFLAGS"; then |
18276
508f67c72854
Fix native MinGW builds with spaces in JAVA_HOME (bug #41024).
Rik <rik@octave.org>
parents:
18273
diff
changeset
|
2520 JAVA_CPPFLAGS="-I\"${JAVA_CPPFLAGS}\" -I\"${JAVA_CPPFLAGS}/win32\"" |
17819
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2521 else |
18276
508f67c72854
Fix native MinGW builds with spaces in JAVA_HOME (bug #41024).
Rik <rik@octave.org>
parents:
18273
diff
changeset
|
2522 JAVA_CPPFLAGS="-I\"${JAVA_HOME}/include\" -I\"${JAVA_HOME}/include/win32\"" |
17819
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2523 fi |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2524 fi |
17819
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2525 AC_DEFINE(HAVE_JAVA, 1, |
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2526 [Define to 1 if Java is available and is at least version 1.5]) |
af924e6572cb
build: Don't search path at compile time for jvm on Win32 platforms.
Rik <rik@octave.org>
parents:
17816
diff
changeset
|
2527 break |
15836
48a75e6884ec
Fix JAVA detection for MSVC and support white space in Java path.
Michael Goffioul <michael.goffioul@gmail.com>
parents:
15834
diff
changeset
|
2528 ;; |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2529 esac |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2530 |
20713
2469d78a1d8b
Consistently use 'filename' rather than 'file name' throughout code base.
Rik <rik@octave.org>
parents:
20712
diff
changeset
|
2531 ## Determine which library filename to search for. |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2532 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2533 darwin*) |
15777
b8bcb2c7f3e8
configure.ac: Search for jvm.dll on MingW/Cygwin platforms for Java.
Rik <rik@octave.org>
parents:
15769
diff
changeset
|
2534 jvmlib=libjvm.dylib |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2535 ;; |
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2536 *) |
15777
b8bcb2c7f3e8
configure.ac: Search for jvm.dll on MingW/Cygwin platforms for Java.
Rik <rik@octave.org>
parents:
15769
diff
changeset
|
2537 jvmlib=libjvm.so |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2538 ;; |
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2539 esac |
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2540 |
15777
b8bcb2c7f3e8
configure.ac: Search for jvm.dll on MingW/Cygwin platforms for Java.
Rik <rik@octave.org>
parents:
15769
diff
changeset
|
2541 AC_MSG_CHECKING([for $jvmlib]) |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2542 |
31125
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2543 AC_CACHE_VAL([octave_cv_java_ldpath],[ |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2544 if test -z "$JAVA_LDPATH"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2545 ## Run Java to try and determine library path to libjvm.so. |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2546 JAVA_TMP_LDPATH=`$JAVA -classpath ${srcdir}/build-aux OctJavaQry JAVA_LDPATH` |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2547 JAVA_TMP_LDPATH=`echo $JAVA_TMP_LDPATH | $SED -e "s/${PATH_SEPARATOR}/ /g"` |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2548 for dir in $JAVA_TMP_LDPATH; do |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2549 if test -f "$dir/$jvmlib"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2550 JAVA_LDPATH=$dir |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2551 break |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2552 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2553 done |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2554 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2555 |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2556 if test -z "$JAVA_LDPATH"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2557 ## Nothing found. Try Java again using bootpath argument. |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2558 JAVA_TMP_LDPATH=`$JAVA -classpath ${srcdir}/build-aux OctJavaQry JAVA_BOOTPATH` |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2559 JAVA_TMP_LDPATH="${JAVA_TMP_LDPATH} ${JAVA_TMP_LDPATH}/client ${JAVA_TMP_LDPATH}/server" |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2560 for dir in $JAVA_TMP_LDPATH; do |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2561 if test -f "$dir/$jvmlib"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2562 JAVA_LDPATH=$dir |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2563 break |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2564 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2565 done |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2566 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2567 |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2568 if test -z "$JAVA_LDPATH"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2569 ## Java failed to find its own library path. Guess wildly. |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2570 JAVA_TMP_LDPATH=`ls -d $JAVA_HOME/jre/lib/*/client` |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2571 JAVA_TMP_LDPATH="${JAVA_TMP_LDPATH} `ls -d $JAVA_HOME/jre/lib/*/server`" |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2572 ## Add some paths that might work on Macs. |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2573 JAVA_TMP_LDPATH="${JAVA_TMP_LDPATH} ${JAVA_HOME}/../Libraries ${JAVA_HOME}/Libraries" |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2574 ## Add some paths that might work on MinGW |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2575 JAVA_TMP_LDPATH="${JAVA_TMP_LDPATH} ${JAVA_HOME}/bin/client ${JAVA_HOME}/bin/server" |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2576 for dir in $JAVA_TMP_LDPATH; do |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2577 if test -f "$dir/$jvmlib"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2578 JAVA_LDPATH=$dir |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2579 break |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2580 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2581 done |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2582 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2583 |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2584 ## Verify value passed in option --with-java-libdir |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2585 if test -n "$JAVA_LDPATH"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2586 if test -f "${JAVA_LDPATH}/$jvmlib"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2587 : # libjvm found |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2588 else |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2589 JAVA_LDPATH="" |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2590 fi |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19349
diff
changeset
|
2591 fi |
31125
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2592 |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2593 octave_cv_java_ldpath=$JAVA_LDPATH |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2594 ]) |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2595 JAVA_LDPATH=$octave_cv_java_ldpath |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2596 if test -z "$JAVA_LDPATH"; then |
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2597 AC_MSG_RESULT([not found]) |
17844
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2598 warn_java="Library $jvmlib not found. Octave will not be able to call Java methods." |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2599 break |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2600 else |
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2601 AC_MSG_RESULT([$JAVA_LDPATH]) |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2602 fi |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2603 |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2604 AC_MSG_CHECKING([for include file <jni.h>]) |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2605 |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2606 ## Java and JVM found. Set up flags. |
15863
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2607 case $host_os in |
b316429bfa89
build: Use $host_os variable to clarify configure.ac
Rik <rik@octave.org>
parents:
15857
diff
changeset
|
2608 darwin*) |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2609 if test -n "$JAVA_CPPFLAGS"; then |
24592
6c3b7ca0cb90
Fix Java >1.8 on macOS (Bug #9439)
Sebastian Schöps <sesc@gmx.de>
parents:
24556
diff
changeset
|
2610 JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS} -I${JAVA_CPPFLAGS}/darwin" |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2611 else |
24592
6c3b7ca0cb90
Fix Java >1.8 on macOS (Bug #9439)
Sebastian Schöps <sesc@gmx.de>
parents:
24556
diff
changeset
|
2612 JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin" |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2613 fi |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2614 ;; |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2615 *) |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2616 if test -n "$JAVA_CPPFLAGS"; then |
18273
ec975e826728
configure.ac: Respect --with-java-includedir argument (bug #41230)
Rik <rik@octave.org>
parents:
18272
diff
changeset
|
2617 JAVA_CPPFLAGS="-I${JAVA_CPPFLAGS} -I${JAVA_CPPFLAGS}/linux" |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2618 else |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2619 JAVA_CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux" |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2620 fi |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2621 ;; |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2622 esac |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2623 |
15766
fafd51a1b0f0
build: Add more searching for Java libjvm.so.
Rik <rik@octave.org>
parents:
15763
diff
changeset
|
2624 ## Verify jni.h include file exists. |
31125
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2625 AC_CACHE_VAL([octave_cv_java_have_jni],[ |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2626 JNI_PATH=`echo $JAVA_CPPFLAGS | $SED -e 's/-I//g'` |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2627 octave_cv_java_have_jni=no |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2628 for dir in $JNI_PATH; do |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2629 if test -f "${dir}/jni.h"; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2630 octave_cv_java_have_jni=yes |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2631 octave_cv_java_jni_h_path=$dir |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2632 break |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2633 fi |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2634 done |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2635 ]) |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2636 if test $octave_cv_java_have_jni = yes; then |
c4f52c6c5944
build: cache JAVA_LDPATH and Java "jni.h" path (bug #62715)
Rik <rik@octave.org>
parents:
31123
diff
changeset
|
2637 AC_MSG_RESULT([$octave_cv_java_jni_h_path]) |
15769
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2638 else |
eade542fedaa
configure.ac: Add with-java-xxx options to specify homedir, libdir, includedir
Rik <rik@octave.org>
parents:
15766
diff
changeset
|
2639 AC_MSG_RESULT([not found]) |
17844
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2640 warn_java="Include file <jni.h> not found. Octave will not be able to call Java methods." |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2641 break |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2642 fi |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2643 |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2644 ## Passed all configuration tests. A workable Java installation was found. |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2645 build_java=yes |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2646 AC_DEFINE(HAVE_JAVA, 1, |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2647 [Define to 1 if Java is available and is at least version 1.5]) |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2648 break |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2649 done |
17844
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2650 if test -n "$warn_java"; then |
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2651 OCTAVE_CONFIGURE_WARNING([warn_java]) |
e88a8fa25125
configure.ac: add warnings on checking for JAVA to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17836
diff
changeset
|
2652 fi |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2653 |
16068
b309a5da17f5
use yes/no instead of true/false in confgure scripts
John W. Eaton <jwe@octave.org>
parents:
16064
diff
changeset
|
2654 AM_CONDITIONAL([AMCOND_HAVE_JAVA], [test $build_java = yes]) |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2655 AC_SUBST(JAVA) |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2656 AC_SUBST(JAVAC) |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2657 AC_SUBST(JAR) |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2658 AC_SUBST(JAVA_CPPFLAGS) |
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2659 AC_SUBST(JAVA_LIBS) |
15763
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2660 AC_DEFINE_UNQUOTED([JAVA_HOME], ["$JAVA_HOME"], [Java home (top-level installation dir)]) |
56239ff815a3
build: Overhaul auto-detection of Java when JAVA_HOME is not set.
Rik <rik@octave.org>
parents:
15761
diff
changeset
|
2661 AC_DEFINE_UNQUOTED([JAVA_LDPATH], ["$JAVA_LDPATH"], [Java library path (libjvm)]) |
15736
6faa01ff2967
build: Add --disable-java option to configure (bug #37838).
Rik <rik@octave.org>
parents:
15728
diff
changeset
|
2662 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2663 ### Determine if documentation should and can be built. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2664 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2665 ENABLE_DOCS=yes |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2666 AC_ARG_ENABLE([docs], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2667 [AS_HELP_STRING([--disable-docs], [don't build documentation files])], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2668 [if test "$enableval" = no; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2669 ENABLE_DOCS=no |
24623
f39ae754a7d8
configure: test that makeinfo supports the @sortas command
Mike Miller <mtmiller@octave.org>
parents:
24592
diff
changeset
|
2670 warn_docs="building documentation disabled; make dist will fail." |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2671 OCTAVE_CONFIGURE_WARNING([warn_docs]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2672 fi], []) |
28356
4e4baa5ac03c
configure.ac: Don't check for gl2ps if opengl_graphics are not used.
Rik <rik@octave.org>
parents:
28338
diff
changeset
|
2673 |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2674 if test $ENABLE_DOCS = yes; then |
25589
c21edcb90cbf
support for osmesa removed (bug #50479)
John W. Eaton <jwe@octave.org>
parents:
25584
diff
changeset
|
2675 if test $opengl_graphics = no || test "$have_qt_opengl_offscreen" = no; then |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2676 if test -n "$warn_gnuplot"; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2677 ENABLE_DOCS=no |
24623
f39ae754a7d8
configure: test that makeinfo supports the @sortas command
Mike Miller <mtmiller@octave.org>
parents:
24592
diff
changeset
|
2678 warn_docs_graphics="building documentation disabled because no suitable graphics toolkit is available; make dist will fail." |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2679 OCTAVE_CONFIGURE_WARNING([warn_docs_graphics]) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2680 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2681 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2682 if test -n "$warn_makeinfo"; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2683 ENABLE_DOCS=no |
24623
f39ae754a7d8
configure: test that makeinfo supports the @sortas command
Mike Miller <mtmiller@octave.org>
parents:
24592
diff
changeset
|
2684 warn_docs_makeinfo="building documentation disabled because makeinfo was not found or does not support @sortas; make dist will fail." |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2685 OCTAVE_CONFIGURE_WARNING([warn_docs_makeinfo]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2686 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2687 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2688 if test $ENABLE_DOCS = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2689 AC_DEFINE(ENABLE_DOCS, 1, |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2690 [Define to 1 to build Octave documentation files.]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2691 fi |
28356
4e4baa5ac03c
configure.ac: Don't check for gl2ps if opengl_graphics are not used.
Rik <rik@octave.org>
parents:
28338
diff
changeset
|
2692 |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2693 AM_CONDITIONAL([AMCOND_BUILD_DOCS], [test $ENABLE_DOCS = yes]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2694 |
24945
ba9d37893822
build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents:
24935
diff
changeset
|
2695 AM_CONDITIONAL([AMCOND_BUILD_QT_DOCS], |
ba9d37893822
build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents:
24935
diff
changeset
|
2696 [test $ENABLE_DOCS = yes && test $build_qt_gui = yes]) |
ba9d37893822
build: Don't built special Qt Help files when --without-qt used (bug #53394)
Rik <rik@octave.org>
parents:
24935
diff
changeset
|
2697 |
29554
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2698 OCTAVE_RELOCATE_ALL=no |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2699 AC_ARG_ENABLE([relocate-all], |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2700 [AS_HELP_STRING([--enable-relocate-all], |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2701 [assume that all dependencies that are installed under the same prefix are relocated when Octave is relocated])], |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2702 [if test "$enableval" = yes; then OCTAVE_RELOCATE_ALL=yes; fi], []) |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2703 AC_SUBST(OCTAVE_RELOCATE_ALL) |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2704 if test $OCTAVE_RELOCATE_ALL = yes; then |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2705 AC_DEFINE(OCTAVE_REPLACE_PREFIX, 1, [Replace prefix in mkoctfile flags.]) |
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2706 fi |
30368
15ae4d97a632
mkoctfile: Correctly handle relocation in cross-compiler.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30347
diff
changeset
|
2707 AM_CONDITIONAL([AMCOND_RELOCATE_ALL], [test $OCTAVE_RELOCATE_ALL = yes]) |
29554
99e3912441ec
build: Make relocation of dependencies with Octave optional (bug #60413).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29408
diff
changeset
|
2708 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2709 ### Determine whether Mercurial ID should be embedded in library binaries. |
24935
c27398f0601c
maint: revert inadvertent changes from merge revision ff80c319e664
Mike Miller <mtmiller@octave.org>
parents:
24927
diff
changeset
|
2710 |
24926
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2711 ENABLE_HG_ID=yes |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2712 AC_ARG_ENABLE([hg-id], |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2713 [AS_HELP_STRING([--disable-hg-id], |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2714 [disable embedding of hg id in libraries])], |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2715 [if test "$enableval" = no; then ENABLE_HG_ID=no; fi], []) |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2716 AM_CONDITIONAL([AMCOND_ENABLE_HG_ID], [test $ENABLE_HG_ID = yes]) |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2717 |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2718 ### Determine whether to install build logs with Octave. |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2719 |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2720 install_build_logs=no |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2721 AC_ARG_ENABLE([install-build-logs], |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2722 [AS_HELP_STRING([--enable-install-build-logs], |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2723 [install build logs (i.e., config.log) with Octave])], |
24926
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2724 [if test "$enableval" = yes; then install_build_logs=yes; fi]) |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2725 AM_CONDITIONAL([AMCOND_INSTALL_BUILD_LOGS], [test $install_build_logs = yes]) |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2726 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2727 ### Determine whether libraries should be linked with visibility attributes. |
29313
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2728 |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2729 ENABLE_LIB_VISIBILITY_FLAGS=yes |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2730 AC_ARG_ENABLE(lib-visibility-flags, |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2731 [AS_HELP_STRING([--disable-lib-visibility-flags], |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2732 [don't build libraries with visibility flags (export all symbols)])], |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2733 [case $enableval in |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2734 yes) ENABLE_LIB_VISIBILITY_FLAGS=yes ;; |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2735 no) ENABLE_LIB_VISIBILITY_FLAGS=no ;; |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2736 *) AC_MSG_ERROR([bad value $enableval for --enable-lib-visibility-flags]) ;; |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2737 esac]) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2738 |
30505
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2739 case $host_os in |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2740 msdosmsvc | mingw* | cygwin*) |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2741 # Assume that symbol export is working on that platform |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2742 ;; |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2743 *) |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2744 if test $ENABLE_LIB_VISIBILITY_FLAGS = yes && test $HAVE_VISIBILITY = 0; then |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2745 AC_MSG_NOTICE([cannot build with visibility flags on this platform]) |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2746 ENABLE_LIB_VISIBILITY_FLAGS=no |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2747 fi |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2748 ;; |
e0e22183ffca
Restore building with visibility flags for Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30488
diff
changeset
|
2749 esac |
29647
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2750 |
29313
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2751 if test $ENABLE_LIB_VISIBILITY_FLAGS = yes; then |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2752 AC_DEFINE(OCTAVE_ENABLE_LIB_VISIBILITY_FLAGS, 1, |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2753 [Define to 1 if building libraries with visibility flags]) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2754 else |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2755 case $host_os in |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2756 msdosmsvc | mingw* | cygwin*) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2757 LDFLAGS="$LDFLAGS -Wl,--export-all-symbols" |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2758 ;; |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2759 esac |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2760 fi |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2761 |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2762 AM_CONDITIONAL([AMCOND_LIB_VISIBILITY_FLAGS], |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2763 [test $ENABLE_LIB_VISIBILITY_FLAGS = yes]) |
6dea3b384846
Optionally disable building libraries with visibility attributes (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29268
diff
changeset
|
2764 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2765 ### Set flags for symbol visibility. |
29647
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2766 |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2767 if test $ENABLE_LIB_VISIBILITY_FLAGS = yes; then |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2768 EXTERNAL_DLL_DEFS="-DEXTERNAL_DLL" |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2769 OCTAVE_DLL_DEFS="-DOCTAVE_DLL" |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2770 OCTINTERP_DLL_DEFS="-DOCTINTERP_DLL" |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2771 OCTGUI_DLL_DEFS="-DOCTGUI_DLL" |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2772 OCTGRAPHICS_DLL_DEFS="-DOCTGRAPHICS_DLL" |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2773 else |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2774 EXTERNAL_DLL_DEFS= |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2775 OCTAVE_DLL_DEFS= |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2776 OCTINTERP_DLL_DEFS= |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2777 OCTGUI_DLL_DEFS= |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2778 OCTGRAPHICS_DLL_DEFS= |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2779 fi |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2780 AC_MSG_NOTICE([defining EXTERNAL_DLL_DEFS to be $EXTERNAL_DLL_DEFS]) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2781 AC_MSG_NOTICE([defining OCTAVE_DLL_DEFS to be $OCTAVE_DLL_DEFS]) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2782 AC_MSG_NOTICE([defining OCTINTERP_DLL_DEFS to be $OCTINTERP_DLL_DEFS]) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2783 AC_MSG_NOTICE([defining OCTGUI_DLL_DEFS to be $OCTGUI_DLL_DEFS]) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2784 AC_MSG_NOTICE([defining OCTGRAPHICS_DLL_DEFS to be $OCTGRAPHICS_DLL_DEFS]) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2785 |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2786 AC_SUBST(EXTERNAL_DLL_DEFS) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2787 AC_SUBST(OCTAVE_DLL_DEFS) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2788 AC_SUBST(OCTINTERP_DLL_DEFS) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2789 AC_SUBST(OCTGUI_DLL_DEFS) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2790 AC_SUBST(OCTGRAPHICS_DLL_DEFS) |
bdb0cfffa2d0
Define variables for API visibility flags on all platforms (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents:
29638
diff
changeset
|
2791 |
24926
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2792 ### Add extra compiler flags now that feature testing is complete. |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2793 |
ff80c319e664
maint: Merge GSOC Specfun code into core
Rik <rik@octave.org>
parents:
24900
diff
changeset
|
2794 ## Add warning flags |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2795 |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2796 dnl Don't add -Wshadow for GCC 4.x. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2797 case "$GCC_VERSION" in |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2798 *4*) ;; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2799 *) GCC_WSHADOW_OPTION=-Wshadow ;; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2800 esac |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2801 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2802 GCC_EXTRA_FLAGS="-Wall -W $GCC_WSHADOW_OPTION -Wformat -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings -Wcast-align -Wcast-qual" |
26925
7fdbb03d5f76
include -Woverloaded-virtual in GXX_EXTRA_FLAGS (bug #55741)
John W. Eaton <jwe@octave.org>
parents:
26910
diff
changeset
|
2803 GXX_EXTRA_FLAGS="-Wall -W $GCC_WSHADOW_OPTION -Woverloaded-virtual -Wold-style-cast -Wformat -Wpointer-arith -Wwrite-strings -Wcast-align -Wcast-qual" |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2804 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2805 try_extra_warning_flags=yes |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2806 AC_ARG_ENABLE([extra-warning-flags], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2807 [AS_HELP_STRING([--disable-extra-warning-flags], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2808 [don't add -Wall, -W, -Wformat, -Wold-style-cast, and other warning options to CFLAGS and CXXFLAGS])], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2809 [if test "$enableval" = no; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2810 try_extra_warning_flags=no |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2811 fi], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2812 []) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2813 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2814 if test $try_extra_warning_flags = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2815 for flag in $GCC_EXTRA_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2816 OCTAVE_CC_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2817 WARN_CFLAGS="$WARN_CFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2818 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2819 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2820 for flag in $GXX_EXTRA_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2821 OCTAVE_CXX_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2822 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2823 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2824 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2825 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2826 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2827 ## Add strict warning flags |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2828 GCC_STRICT_FLAGS="-Wconversion" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2829 GXX_STRICT_FLAGS="-Wconversion -Weffc++" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2830 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2831 try_strict_warning_flags=no |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2832 AC_ARG_ENABLE([strict-warning-flags], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2833 [AS_HELP_STRING([--enable-strict-warning-flags], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2834 [add extra strict warning options to CFLAGS and CXXFLAGS])], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2835 [if test "$enableval" = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2836 try_strict_warning_flags=yes |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2837 fi], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2838 []) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2839 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2840 if test $try_strict_warning_flags = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2841 for flag in $GCC_STRICT_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2842 OCTAVE_CC_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2843 WARN_CFLAGS="$WARN_CFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2844 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2845 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2846 for flag in $GXX_STRICT_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2847 OCTAVE_CXX_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2848 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2849 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2850 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2851 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2852 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2853 ## Add sanitizer flags |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2854 GCC_ADDRESS_SANITIZER_FLAGS="-fsanitize=address -fno-omit-frame-pointer" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2855 GXX_ADDRESS_SANITIZER_FLAGS="-fsanitize=address -fno-omit-frame-pointer" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2856 LD_ADDRESS_SANITIZER_FLAGS="-fsanitize=address" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2857 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2858 try_address_sanitizer_flags=no |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2859 AC_ARG_ENABLE([address-sanitizer-flags], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2860 [AS_HELP_STRING([--enable-address-sanitizer-flags], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2861 [add extra -fsanitize=address and -fno-omit-frame-pointer options to CFLAGS, CXXFLAGS, and LDFLAGS])], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2862 [if test "$enableval" = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2863 try_address_sanitizer_flags=yes |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2864 fi], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2865 []) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2866 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2867 if test $try_address_sanitizer_flags = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2868 ADDRESS_SANITIZER_OPTIONS="symbolize=1" |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2869 AC_SUBST(ADDRESS_SANITIZER_OPTIONS) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2870 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2871 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2872 AM_CONDITIONAL([AMCOND_ADDRESS_SANITIZER_ENABLED], |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2873 [test $try_address_sanitizer_flags = yes]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2874 |
30277
f816a8c44924
allow build to succeed when address sanitizer is enabled (bug #61415)
John W. Eaton <jwe@octave.org>
parents:
30273
diff
changeset
|
2875 ADDRESS_SANITIZER_ENABLED=no |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2876 if test $try_address_sanitizer_flags = yes; then |
30277
f816a8c44924
allow build to succeed when address sanitizer is enabled (bug #61415)
John W. Eaton <jwe@octave.org>
parents:
30273
diff
changeset
|
2877 ADDRESS_SANITIZER_ENABLED=yes |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2878 for flag in $GCC_ADDRESS_SANITIZER_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2879 OCTAVE_CC_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2880 WARN_CFLAGS="$WARN_CFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2881 AC_MSG_RESULT([adding $flag to WARN_CFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2882 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2883 for flag in $GXX_ADDRESS_SANITIZER_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2884 OCTAVE_CXX_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2885 WARN_CXXFLAGS="$WARN_CXXFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2886 AC_MSG_RESULT([adding $flag to WARN_CXXFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2887 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2888 dnl FIXME: do we really need an LD-specific test, or is this good enough? |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2889 for flag in $LD_ADDRESS_SANITIZER_FLAGS; do |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2890 OCTAVE_CC_FLAG([$flag], [ |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2891 WARN_LDFLAGS="$WARN_LDFLAGS $flag"; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2892 AC_MSG_RESULT([adding $flag to WARN_LDFLAGS])]) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2893 done |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2894 fi |
30277
f816a8c44924
allow build to succeed when address sanitizer is enabled (bug #61415)
John W. Eaton <jwe@octave.org>
parents:
30273
diff
changeset
|
2895 AC_SUBST(ADDRESS_SANITIZER_ENABLED) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2896 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2897 AC_SUBST(WARN_CFLAGS) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2898 AC_SUBST(WARN_CXXFLAGS) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2899 AC_SUBST(WARN_LDFLAGS) |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2900 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
2901 ### Check for GCC-specific pragmas to control warnings. |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2902 |
29662
5ad070a5f19a
build: Don't use deprecated AC_TRY_COMPILE.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29647
diff
changeset
|
2903 AC_LANG_PUSH(C++) |
30531
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2904 AC_CACHE_CHECK([for @%:@pragma GCC diagnostic push/pop/ignored], |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2905 [octave_cv_gcc_has_pragma_GCC_diagnostic], |
29662
5ad070a5f19a
build: Don't use deprecated AC_TRY_COMPILE.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29647
diff
changeset
|
2906 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2907 #pragma GCC diagnostic push |
30531
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2908 #pragma GCC diagnostic ignored "-Wold-style-cast" |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2909 int three = (int) 3.1415926; |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2910 #pragma GCC diagnostic pop |
29662
5ad070a5f19a
build: Don't use deprecated AC_TRY_COMPILE.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29647
diff
changeset
|
2911 ]])], |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2912 [octave_cv_gcc_has_pragma_GCC_diagnostic=yes], |
29662
5ad070a5f19a
build: Don't use deprecated AC_TRY_COMPILE.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29647
diff
changeset
|
2913 [octave_cv_gcc_has_pragma_GCC_diagnostic=no])], |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2914 ]) |
29662
5ad070a5f19a
build: Don't use deprecated AC_TRY_COMPILE.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29647
diff
changeset
|
2915 AC_LANG_POP(C++) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2916 |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2917 if test $octave_cv_gcc_has_pragma_GCC_diagnostic = yes; then |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2918 AC_DEFINE(HAVE_PRAGMA_GCC_DIAGNOSTIC, 1, |
30531
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2919 [Define to 1 if compiler supports @%:@pragma GCC diagnostic ...]) |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2920 fi |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2921 |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2922 AC_CACHE_CHECK([for @%:@pragma GCC visibility push/pop], |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2923 [octave_cv_gcc_has_pragma_GCC_visiblity], |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2924 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2925 #pragma GCC visibility push(default) |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2926 int three = 3; |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2927 #pragma GCC visiblity pop(default) |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2928 ]])], |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2929 [octave_cv_gcc_has_pragma_GCC_visiblity=yes], |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2930 [octave_cv_gcc_has_pragma_GCC_visiblity=no])], |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2931 ]) |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2932 |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2933 if test $octave_cv_gcc_has_pragma_GCC_visiblity = yes; then |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2934 AC_DEFINE(HAVE_PRAGMA_GCC_VISIBILITY, 1, |
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2935 [Define to 1 if compiler supports @%:@pragma GCC visiblity ...]) |
24387
268d31e7aa4f
build: Silence compile warning about unknown GCC warning "-Wimplicit-fallthrough".
Rik <rik@octave.org>
parents:
24375
diff
changeset
|
2936 fi |
268d31e7aa4f
build: Silence compile warning about unknown GCC warning "-Wimplicit-fallthrough".
Rik <rik@octave.org>
parents:
24375
diff
changeset
|
2937 |
268d31e7aa4f
build: Silence compile warning about unknown GCC warning "-Wimplicit-fallthrough".
Rik <rik@octave.org>
parents:
24375
diff
changeset
|
2938 ## Check for one unusual warning used in pragmas that is not always available |
268d31e7aa4f
build: Silence compile warning about unknown GCC warning "-Wimplicit-fallthrough".
Rik <rik@octave.org>
parents:
24375
diff
changeset
|
2939 if test $octave_cv_gcc_has_pragma_GCC_diagnostic = yes; then |
268d31e7aa4f
build: Silence compile warning about unknown GCC warning "-Wimplicit-fallthrough".
Rik <rik@octave.org>
parents:
24375
diff
changeset
|
2940 OCTAVE_CC_FLAG([-Wimplicit-fallthrough], |
268d31e7aa4f
build: Silence compile warning about unknown GCC warning "-Wimplicit-fallthrough".
Rik <rik@octave.org>
parents:
24375
diff
changeset
|
2941 [AC_DEFINE(HAVE_WARN_IMPLICIT_FALLTHROUGH, 1, |
30531
492a37a18b81
Guard usage of non-standard pragmas.
Markus Mützel <markus.muetzel@gmx.de>
parents:
30512
diff
changeset
|
2942 [Define to 1 if compiler supports -Wimplicit-fallthrough warning])]) |
23992
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2943 fi |
74fa9f184f92
configure: reorder and group related blocks of feature tests
Mike Miller <mtmiller@octave.org>
parents:
23990
diff
changeset
|
2944 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2945 ### Recommendations from the gnulib bootstrap script. |
23661
21b2816820cf
update GNULIB_LINK_DEPS for recent changes
John W. Eaton <jwe@octave.org>
parents:
23657
diff
changeset
|
2946 |
27625
b2d30e873334
Link $INTL_MACOSX_LIBS in gnulib deps in configure.ac (bug #57049)
Andrew Janke <andrew@apjanke.net>
parents:
27543
diff
changeset
|
2947 GNULIB_LINK_DEPS="$FREXPF_LIBM $FREXP_LIBM $GETHOSTNAME_LIB $LIBSOCKET $LIB_CLOCK_GETTIME $LIB_CRYPTO $LIB_GETLOGIN $LIB_NANOSLEEP $LIB_SELECT $LTLIBICONV $LTLIBINTL $LTLIBTHREAD $INTL_MACOSX_LIBS" |
23993
49e37560e0fe
configure: rely on gnulib for detection of clock_gettime
Mike Miller <mtmiller@octave.org>
parents:
23992
diff
changeset
|
2948 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2949 ## FIXME: This is a kluge to transform $libdir/libiconv.dll.a to -liconv. |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2950 ## It would probably be better to fix gnulib to not give us an absolute |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2951 ## file name... |
25581
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2952 |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2953 case $host_os in |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2954 mingw*) |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2955 ## Don't use $libdir here because that's defined to be |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2956 ## ${exec_prefix}/lib and at this point, ${exec_prefix} is "NONE"! |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2957 tmp_libiconv_dll="$LIBICONV_PREFIX/lib/libiconv.dll.a" |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2958 MKOCTFILE_LIBICONV=`echo $LIBICONV | sed "s|$tmp_libiconv_dll|-liconv|"` |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2959 ;; |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2960 *) |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2961 MKOCTFILE_LIBICONV="$LIBICONV" |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2962 ;; |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2963 esac |
9f422e49be15
transform libiconv.dll.a to -liconv for mkoctfile (bug #53920)
John W. Eaton <jwe@octave.org>
parents:
25559
diff
changeset
|
2964 |
27625
b2d30e873334
Link $INTL_MACOSX_LIBS in gnulib deps in configure.ac (bug #57049)
Andrew Janke <andrew@apjanke.net>
parents:
27543
diff
changeset
|
2965 MKOCTFILE_GNULIB_LINK_DEPS="$FREXPF_LIBM $FREXP_LIBM $GETHOSTNAME_LIB $LIBSOCKET $LIB_CLOCK_GETTIME $LIB_CRYPTO $LIB_GETLOGIN $LIB_NANOSLEEP $LIB_SELECT $MKOCTFILE_LIBICONV $LIBINTL $LIBTHREAD $INTL_MACOSX_LIBS" |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2966 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2967 AC_SUBST(GNULIB_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2968 |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2969 ### Set variables for link dependencies and options. |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
2970 |
31415
00e2eafd1c0f
build: Use gnulib module to get readline libraries.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31407
diff
changeset
|
2971 BASE_LIBOCTAVE_LINK_DEPS="$CURL_LIBS $SPARSE_XLIBS $ARPACK_LIBS $QRUPDATE_LIBS $FFTW_XLIBS $LAPACK_LIBS $BLAS_LIBS $LTLIBREADLINE $LIBGLOB $PCRE_LIBS $DL_LIBS $PTHREAD_LIBS $FLIBS $LIBS" |
23757
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
2972 |
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
2973 LIBOCTAVE_LINK_DEPS="$BASE_LIBOCTAVE_LINK_DEPS $GNULIB_LINK_DEPS" |
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
2974 |
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
2975 MKOCTFILE_LIBOCTAVE_LINK_DEPS="$BASE_LIBOCTAVE_LINK_DEPS $MKOCTFILE_GNULIB_LINK_DEPS" |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2976 |
23005
8e9dd0d6e337
update check for pcre library to use pkg-config (bug #49993)
John W. Eaton <jwe@octave.org>
parents:
22995
diff
changeset
|
2977 LIBOCTAVE_LINK_OPTS="$CURL_LDFLAGS $SPARSE_XLDFLAGS $ARPACK_LDFLAGS $QRUPDATE_LDFLAGS $FFTW_XLDFLAGS $PCRE_LDFLAGS" |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2978 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2979 AC_SUBST(LIBOCTAVE_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2980 AC_SUBST(LIBOCTAVE_LINK_OPTS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2981 |
29949
f254c302bb9c
remove JIT compiler from Octave sources
John W. Eaton <jwe@octave.org>
parents:
29868
diff
changeset
|
2982 LIBOCTINTERP_LINK_DEPS="$FT2_LIBS $HDF5_LIBS $MAGICK_LIBS $Z_LIBS $SPARSE_XLIBS $FFTW_XLIBS $OPENGL_LIBS $FONTCONFIG_LIBS $FREETYPE_LIBS $X11_LIBS $CARBON_LIBS $GL2PS_LIBS $JAVA_LIBS $LAPACK_LIBS" |
f254c302bb9c
remove JIT compiler from Octave sources
John W. Eaton <jwe@octave.org>
parents:
29868
diff
changeset
|
2983 |
f254c302bb9c
remove JIT compiler from Octave sources
John W. Eaton <jwe@octave.org>
parents:
29868
diff
changeset
|
2984 LIBOCTINTERP_LINK_OPTS="$FT2_LDFLAGS $HDF5_LDFLAGS $MAGICK_LDFLAGS $Z_LDFLAGS $SPARSE_XLDFLAGS $FFTW_XLDFLAGS" |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2985 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2986 OCTAVE_LINK_DEPS="" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2987 OCTAVE_LINK_OPTS="" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2988 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2989 OCT_LINK_DEPS="" |
25959
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
2990 OCT_GUI_LINK_DEPS="" |
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
2991 |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2992 OCT_LINK_OPTS="$LDFLAGS" |
25959
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
2993 OCT_GUI_LINK_OPTS="$LDFLAGS" |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
2994 |
25476
0e510279e3b9
* configure.ac: Don't use QT_LDFLAGS to decide whether to link with all deps.
John W. Eaton <jwe@octave.org>
parents:
25475
diff
changeset
|
2995 if test $link_all_deps = yes; then |
29588
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
2996 AC_DEFINE(OCTAVE_LINK_ALL_DEPS, 1, [Link with all dependencies.]) |
b4cb9d04f3cf
build: Use dynamic symbol lookup for functions in libraries on macOS (bug #53627).
Andrew Janke <andrew@apjanke.net>
parents:
29555
diff
changeset
|
2997 |
25492
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
2998 OCT_LINK_DEPS="libinterp/liboctinterp.la liboctave/liboctave.la" |
25959
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
2999 OCT_GUI_LINK_DEPS="libgui/liboctgui.la libinterp/liboctinterp.la liboctave/liboctave.la" |
25492
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3000 |
23757
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
3001 MKOCTFILE_OCTAVE_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS $MKOCTFILE_LIBOCTAVE_LINK_DEPS" |
26363
16607f64eea1
Include -loctave -loctinterp and lib path to mkoctfile link command (bug #55033).
Ben Abbott <bpabbott@mac.com>
parents:
26270
diff
changeset
|
3002 MKOCTFILE_OCT_LINK_DEPS="$LIBOCTINTERP $LIBOCTAVE" |
23757
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
3003 |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3004 LIBOCTINTERP_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS $LIBOCTAVE_LINK_DEPS" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3005 LIBOCTINTERP_LINK_OPTS="$LIBOCTINTERP_LINK_OPTS $LIBOCTAVE_LINK_OPTS" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3006 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3007 OCTAVE_LINK_DEPS="$LIBOCTINTERP_LINK_DEPS" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3008 OCTAVE_LINK_OPTS="$LIBOCTINTERP_LINK_OPTS" |
25492
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3009 else |
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3010 case $host_os in |
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3011 mingw* | msdosmsvc) |
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3012 OCT_LINK_DEPS="libinterp/liboctinterp.la liboctave/liboctave.la" |
25959
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
3013 OCT_GUI_LINK_DEPS="libgui/liboctgui.la libinterp/liboctinterp.la liboctave/liboctave.la" |
25492
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3014 ;; |
7cdda3ad947f
fix .oct files link dependencies and options for --link-all-deps (bug #54168)
John W. Eaton <jwe@octave.org>
parents:
25488
diff
changeset
|
3015 esac |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3016 fi |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3017 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3018 AC_SUBST(LIBOCTINTERP_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3019 AC_SUBST(LIBOCTINTERP_LINK_OPTS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3020 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3021 AC_SUBST(OCTAVE_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3022 AC_SUBST(OCTAVE_LINK_OPTS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3023 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3024 AC_SUBST(OCT_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3025 AC_SUBST(OCT_LINK_OPTS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3026 |
25959
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
3027 AC_SUBST(OCT_GUI_LINK_DEPS) |
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
3028 AC_SUBST(OCT_GUI_LINK_OPTS) |
14e844f1459a
fix linking of __init_qt__.la on Windows systems (bug #54881)
John W. Eaton <jwe@octave.org>
parents:
25931
diff
changeset
|
3029 |
23757
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
3030 AC_SUBST(MKOCTFILE_OCTAVE_LINK_DEPS) |
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
3031 AC_SUBST(MKOCTFILE_OCT_LINK_DEPS) |
bba752b37f8e
use different definition for mkoctfile link deps
John W. Eaton <jwe@octave.org>
parents:
23709
diff
changeset
|
3032 |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3033 LIBOCTGUI_LINK_DEPS="" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3034 LIBOCTGUI_LINK_OPTS="" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3035 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3036 OCTAVE_GUI_LINK_DEPS="" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3037 OCTAVE_GUI_LINK_OPTS="" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3038 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3039 if test $build_qt_gui = yes; then |
27657
4fb72773ba4a
fix typo in previous change
John W. Eaton <jwe@octave.org>
parents:
27655
diff
changeset
|
3040 LIBOCTGUI_LINK_DEPS="$QT_LIBS $QT_OPENGL_LIBS" |
27655
93f4e5e65fcd
fix circular dependency for libgui <-> libgraphics
John W. Eaton <jwe@octave.org>
parents:
27641
diff
changeset
|
3041 LIBOCTGUI_LINK_OPTS="$QT_LDFLAGS $QT_OPENGL_LDFLAGS" |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3042 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3043 if test $link_all_deps = yes || test -n "$QT_LDFLAGS"; then |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3044 LIBOCTGUI_LINK_DEPS="$LIBOCTGUI_LINK_DEPS $LIBOCTINTERP_LINK_DEPS" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3045 LIBOCTGUI_LINK_OPTS="$LIBOCTGUI_LINK_OPTS $LIBOCTINTERP_LINK_OPTS" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3046 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3047 OCTAVE_GUI_LINK_DEPS="$OCTAVE_GUI_LINK_DEPS $LIBOCTGUI_LINK_DEPS" |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3048 OCTAVE_GUI_LINK_OPTS="$OCTAVE_GUI_LINK_OPTS $LIBOCTGUI_LINK_OPTS" |
17836
b1610bf6d9a8
configure.ac: add warnings about disabling GUI to the final summary.
Carnë Draug <carandraug@octave.org>
parents:
17821
diff
changeset
|
3049 fi |
15873
7d300b85ee25
allow build to proceed if either Qt or QScintilla is missing
John W. Eaton <jwe@octave.org>
parents:
15863
diff
changeset
|
3050 fi |
7d300b85ee25
allow build to proceed if either Qt or QScintilla is missing
John W. Eaton <jwe@octave.org>
parents:
15863
diff
changeset
|
3051 |
21412
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3052 AC_SUBST(LIBOCTGUI_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3053 AC_SUBST(LIBOCTGUI_LINK_OPTS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3054 |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3055 AC_SUBST(OCTAVE_GUI_LINK_DEPS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3056 AC_SUBST(OCTAVE_GUI_LINK_OPTS) |
9773a1c2b55f
eliminate link-deps.mk files
John W. Eaton <jwe@octave.org>
parents:
21409
diff
changeset
|
3057 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3058 ############################################################################## |
31153
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
3059 ### Configuration tests done. |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
3060 |
8f67b53ac9ff
configure.ac: clean up ordering of macros, comments.
Rik <rik@octave.org>
parents:
31151
diff
changeset
|
3061 ### Restore original compilation flags. |
19839
d3dcc62512d7
do a better job of saving and restoring compiler flags (bug #44353)
John W. Eaton <jwe@octave.org>
parents:
19838
diff
changeset
|
3062 CFLAGS="$original_octave_configure_CFLAGS" |
d3dcc62512d7
do a better job of saving and restoring compiler flags (bug #44353)
John W. Eaton <jwe@octave.org>
parents:
19838
diff
changeset
|
3063 CXXFLAGS="$original_octave_configure_CXXFLAGS" |
1304 | 3064 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3065 ### Add footer to config.h |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3066 |
30580
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3067 AH_BOTTOM([#include "oct-conf-post-private.h"]) |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3068 AH_BOTTOM([#include "oct-conf-post-public.h"]) |
15165
84d7a1ed5f29
configure.ac: Re-indent for clarity. Try to shorten long lines < 80 characters.
Rik <rik@octave.org>
parents:
15156
diff
changeset
|
3069 |
15779
4456ad3d8a56
configure.ac: Ensure that all AC_DEFINEs are captured by UGLY_DEFS variable.
Rik <rik@octave.org>
parents:
15777
diff
changeset
|
3070 ### Make all AC_DEFINES available to testif feature of test.m function. |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3071 dnl This must reside at the bottom of configure.ac after all AC_DEFINES |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3072 dnl have been made. |
15779
4456ad3d8a56
configure.ac: Ensure that all AC_DEFINEs are captured by UGLY_DEFS variable.
Rik <rik@octave.org>
parents:
15777
diff
changeset
|
3073 |
4456ad3d8a56
configure.ac: Ensure that all AC_DEFINEs are captured by UGLY_DEFS variable.
Rik <rik@octave.org>
parents:
15777
diff
changeset
|
3074 AC_OUTPUT_MAKE_DEFS |
3923 | 3075 |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3076 AC_CONFIG_COMMANDS_PRE([ |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3077 ## Fully expand all directory variables. These are normally left |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3078 ## unexpanded (as explained and recommended by the autoconf manual). |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3079 ## But we store configuration info in files and expect whatever |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3080 ## is set at configure time to stay the same when Make is executed. |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3081 ## Doing things like |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3082 ## |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3083 ## configure --prefix=/some/where |
27641
ab13485346c2
configure.ac: Fix typos and grammar in comments (bug #57171)
Andrew Janke <andrew@apjanke.net>
parents:
27625
diff
changeset
|
3084 ## make --prefix=/some/where/else |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3085 ## |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3086 ## won't work properly and is not allowed when building Octave. |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3087 |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3088 eval prefix="\"$prefix\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3089 eval exec_prefix="\"$exec_prefix\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3090 eval bindir="\"$bindir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3091 eval sbindir="\"$sbindir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3092 eval libexecdir="\"$libexecdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3093 eval datarootdir="\"$datarootdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3094 eval datadir="\"$datadir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3095 eval sysconfdir="\"$sysconfdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3096 eval sharedstatedir="\"$sharedstatedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3097 eval localstatedir="\"$localstatedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3098 eval runstatedir="\"$runstatedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3099 eval includedir="\"$includedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3100 eval oldincludedir="\"$oldincludedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3101 eval docdir="\"$docdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3102 eval infodir="\"$infodir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3103 eval htmldir="\"$htmldir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3104 eval dvidir="\"$dvidir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3105 eval pdfdir="\"$pdfdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3106 eval psdir="\"$psdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3107 eval libdir="\"$libdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3108 eval localedir="\"$localedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3109 eval mandir="\"$mandir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3110 |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3111 version="$OCTAVE_VERSION" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3112 api_version="$OCTAVE_API_VERSION" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3113 |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3114 eval octlibdir="\"$octlibdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3115 eval archlibdir="\"$archlibdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3116 eval localarchlibdir="\"$localarchlibdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3117 eval localapiarchlibdir="\"$localapiarchlibdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3118 eval localverarchlibdir="\"$localverarchlibdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3119 eval octfiledir="\"$octfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3120 eval localoctfiledir="\"$localoctfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3121 eval localapioctfiledir="\"$localapioctfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3122 eval localveroctfiledir="\"$localveroctfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3123 eval octincludedir="\"$octincludedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3124 eval fcnfiledir="\"$fcnfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3125 eval localfcnfiledir="\"$localfcnfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3126 eval localapifcnfiledir="\"$localapifcnfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3127 eval localverfcnfiledir="\"$localverfcnfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3128 eval octetcdir="\"$octetcdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3129 eval octlocaledir="\"$octlocaledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3130 eval doc_cache_file="\"$doc_cache_file\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3131 eval octtestsdir="\"$octtestsdir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3132 eval texi_macros_file="\"$texi_macros_file\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3133 eval imagedir="\"$imagedir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3134 eval octdatadir="\"$octdatadir\"" |
24875
7c7b60dd4d4c
Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
24873
diff
changeset
|
3135 eval octdocdir="\"$octdocdir\"" |
24899
1a46d174a483
include a proper definition of Octave's private font fallback directory
Mike Miller <mtmiller@octave.org>
parents:
24890
diff
changeset
|
3136 eval octfontsdir="\"$octfontsdir\"" |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3137 eval startupfiledir="\"$startupfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3138 eval localstartupfiledir="\"$localstartupfiledir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3139 eval man1dir="\"$man1dir\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3140 eval man1ext="\"$man1ext\"" |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3141 eval infofile="\"$infofile\"" |
21925
a53f46577e39
Fix variable expansion in dynamic linking flags for macOS (bug #48215)
Mike Miller <mtmiller@octave.org>
parents:
21908
diff
changeset
|
3142 |
a53f46577e39
Fix variable expansion in dynamic linking flags for macOS (bug #48215)
Mike Miller <mtmiller@octave.org>
parents:
21908
diff
changeset
|
3143 ## Also expand MKOCTFILE_DL_LDFLAGS, because it may depend on the values |
a53f46577e39
Fix variable expansion in dynamic linking flags for macOS (bug #48215)
Mike Miller <mtmiller@octave.org>
parents:
21908
diff
changeset
|
3144 ## of variables expanded above. |
a53f46577e39
Fix variable expansion in dynamic linking flags for macOS (bug #48215)
Mike Miller <mtmiller@octave.org>
parents:
21908
diff
changeset
|
3145 |
a53f46577e39
Fix variable expansion in dynamic linking flags for macOS (bug #48215)
Mike Miller <mtmiller@octave.org>
parents:
21908
diff
changeset
|
3146 eval MKOCTFILE_DL_LDFLAGS="\"$MKOCTFILE_DL_LDFLAGS\"" |
21409
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3147 ]) |
1aa293d58df0
fully expand all env vars before writing config.status (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21398
diff
changeset
|
3148 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3149 ### Do substitutions in Makefiles and other files that hold configuration info. |
869 | 3150 |
21413
3fb2bdea47a5
check substituted variables against current make variables
John W. Eaton <jwe@octave.org>
parents:
21412
diff
changeset
|
3151 AUTOCONF_SUBST_VARS="`echo $ac_subst_vars`" |
3fb2bdea47a5
check substituted variables against current make variables
John W. Eaton <jwe@octave.org>
parents:
21412
diff
changeset
|
3152 |
3fb2bdea47a5
check substituted variables against current make variables
John W. Eaton <jwe@octave.org>
parents:
21412
diff
changeset
|
3153 AC_SUBST(AUTOCONF_SUBST_VARS) |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
3154 AC_SUBST(ac_config_files) |
9645 | 3155 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
|
3156 |
9794
0d4613a736e9
convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
9787
diff
changeset
|
3157 AC_CONFIG_FILES([ |
19593
446c46af4b42
strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents:
19349
diff
changeset
|
3158 Makefile |
21413
3fb2bdea47a5
check substituted variables against current make variables
John W. Eaton <jwe@octave.org>
parents:
21412
diff
changeset
|
3159 build-aux/check-subst-vars.sh:build-aux/check-subst-vars.in.sh |
17102
c48625614ea6
Properly incorporate Doxygen into the build system
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
16088
diff
changeset
|
3160 doc/doxyhtml/Doxyfile |
25391
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
3161 libgnu/Makefile |
30806
103efb7e1600
avoid make dist failure due to long command line (bug #62135)
John W. Eaton <jwe@octave.org>
parents:
30674
diff
changeset
|
3162 test/Makefile |
25391
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
3163 liboctave/octave.pc:liboctave/octave.in.pc |
26070f36f1e7
Provide octave configuration files for pkg-config (bug #48775)
Carnë Draug <carandraug@octave.org>
parents:
25333
diff
changeset
|
3164 libinterp/octinterp.pc:libinterp/octinterp.in.pc]) |
21397
df859661e31e
generate default-qt-settings at configure time
John W. Eaton <jwe@octave.org>
parents:
21392
diff
changeset
|
3165 |
30580
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3166 dnl We use a .in.h file for oct-conf-post-private.h and |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3167 dnl oct-conf-post-public.h simply to copy it to the build tree |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3168 dnl so that we don't have to add the -I${top_srcdir} to any CPPFLAGS variables. |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
3169 |
30580
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3170 AC_CONFIG_FILES([ |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3171 oct-conf-post-private.h-tmp:oct-conf-post-private.in.h |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3172 oct-conf-post-public.h-tmp:oct-conf-post-public.in.h]) |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3173 |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3174 AC_CONFIG_COMMANDS([oct-conf-post-private.h], |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3175 [$SHELL $srcdir/build-aux/move-if-change oct-conf-post-private.h-tmp oct-conf-post-private.h]) |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3176 |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3177 AC_CONFIG_COMMANDS([oct-conf-post-public.h], |
fdc30b576333
eliminate code duplication in oct-conf-post.in.h and octave-config.h
John W. Eaton <jwe@octave.org>
parents:
30565
diff
changeset
|
3178 [$SHELL $srcdir/build-aux/move-if-change oct-conf-post-public.h-tmp oct-conf-post-public.h]) |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
3179 |
21397
df859661e31e
generate default-qt-settings at configure time
John W. Eaton <jwe@octave.org>
parents:
21392
diff
changeset
|
3180 OCTAVE_CONFIG_MOVE_IF_CHANGE_FILES([ |
23709
3b68aeeabc40
rename some build scripts for consistency and move them to where they are used
John W. Eaton <jwe@octave.org>
parents:
23669
diff
changeset
|
3181 liboctave/external/mk-f77-def.sh |
25397
2cf750f5cb7d
make version info accessible in liboctave
John W. Eaton <jwe@octave.org>
parents:
25391
diff
changeset
|
3182 liboctave/mk-version-h.sh |
28123
4963f23b145c
move mex type definitions to separate file
John W. Eaton <jwe@octave.org>
parents:
28092
diff
changeset
|
3183 libinterp/corefcn/mk-mxtypes-h.sh |
21398
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
3184 build-aux/subst-config-vals.sh |
7e8a410e6124
break generated file dependence on Makefile (bug #46063)
John W. Eaton <jwe@octave.org>
parents:
21397
diff
changeset
|
3185 build-aux/subst-cross-config-vals.sh |
21413
3fb2bdea47a5
check substituted variables against current make variables
John W. Eaton <jwe@octave.org>
parents:
21412
diff
changeset
|
3186 build-aux/subst-script-vals.sh]) |
8850
538184c540a9
Add make target "configfiles" to automatically regenerate configuration files
Thorsten Meyer <thorsten.meyier@gmx.de>
parents:
8849
diff
changeset
|
3187 |
3887 | 3188 AC_OUTPUT |
1225 | 3189 |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3190 ### Print a summary of the build configuration. |
1225 | 3191 |
5844 | 3192 AC_MSG_NOTICE([ |
1225 | 3193 |
3194 Octave is now configured for $canonical_host_type | |
3195 | |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3196 Source directory: $srcdir |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3197 Installation prefix: $prefix |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3198 C compiler: $CC $XTRA_CFLAGS $WARN_CFLAGS $CFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3199 C++ compiler: $CXX $XTRA_CXXFLAGS $WARN_CXXFLAGS $CXXFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3200 Fortran compiler: $F77 $FFLAGS |
29776
0916ffc997e6
build: Include CPPFLAGS in summary of configure script.
Markus Mützel <markus.muetzel@gmx.de>
parents:
29745
diff
changeset
|
3201 CPPFLAGS: $CPPFLAGS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3202 Fortran libraries: $FLIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3203 Lex libraries: $LEXLIB |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3204 LIBS: $LIBS |
23370
e284cf4239bf
configure.ac: Print LDFLAGS in summary of config variables.
Rik <rik@octave.org>
parents:
23227
diff
changeset
|
3205 LDFLAGS: $LDFLAGS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3206 Extra LDFLAGS: $WARN_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3207 |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3208 AMD CPPFLAGS: $AMD_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3209 AMD LDFLAGS: $AMD_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3210 AMD libraries: $AMD_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3211 ARPACK CPPFLAGS: $ARPACK_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3212 ARPACK LDFLAGS: $ARPACK_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3213 ARPACK libraries: $ARPACK_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3214 BLAS libraries: $BLAS_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3215 BZ2 CPPFLAGS: $BZ2_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3216 BZ2 LDFLAGS: $BZ2_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3217 BZ2 libraries: $BZ2_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3218 CAMD CPPFLAGS: $CAMD_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3219 CAMD LDFLAGS: $CAMD_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3220 CAMD libraries: $CAMD_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3221 CARBON libraries: $CARBON_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3222 CCOLAMD CPPFLAGS: $CCOLAMD_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3223 CCOLAMD LDFLAGS: $CCOLAMD_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3224 CCOLAMD libraries: $CCOLAMD_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3225 CHOLMOD CPPFLAGS: $CHOLMOD_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3226 CHOLMOD LDFLAGS: $CHOLMOD_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3227 CHOLMOD libraries: $CHOLMOD_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3228 COLAMD CPPFLAGS: $COLAMD_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3229 COLAMD LDFLAGS: $COLAMD_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3230 COLAMD libraries: $COLAMD_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3231 CURL CPPFLAGS: $CURL_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3232 CURL LDFLAGS: $CURL_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3233 CURL libraries: $CURL_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3234 CXSPARSE CPPFLAGS: $CXSPARSE_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3235 CXSPARSE LDFLAGS: $CXSPARSE_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3236 CXSPARSE libraries: $CXSPARSE_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3237 DL libraries: $DL_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3238 FFTW3 CPPFLAGS: $FFTW3_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3239 FFTW3 LDFLAGS: $FFTW3_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3240 FFTW3 libraries: $FFTW3_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3241 FFTW3F CPPFLAGS: $FFTW3F_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3242 FFTW3F LDFLAGS: $FFTW3F_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3243 FFTW3F libraries: $FFTW3F_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3244 FLTK CPPFLAGS: $FLTK_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3245 FLTK LDFLAGS: $FLTK_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3246 FLTK libraries: $FLTK_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3247 fontconfig CPPFLAGS: $FONTCONFIG_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3248 fontconfig libraries: $FONTCONFIG_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3249 FreeType2 CPPFLAGS: $FT2_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3250 FreeType2 libraries: $FT2_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3251 GLPK CPPFLAGS: $GLPK_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3252 GLPK LDFLAGS: $GLPK_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3253 GLPK libraries: $GLPK_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3254 HDF5 CPPFLAGS: $HDF5_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3255 HDF5 LDFLAGS: $HDF5_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3256 HDF5 libraries: $HDF5_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3257 Java home: $JAVA_HOME |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3258 Java JVM path: $JAVA_LDPATH |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3259 Java CPPFLAGS: $JAVA_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3260 Java libraries: $JAVA_LIBS |
23121
0fe35c34fdc2
use $KLU_LIBS in configure check for Sundials IDA library (bug #50167)
John W. Eaton <jwe@octave.org>
parents:
23028
diff
changeset
|
3261 KLU CPPFLAGS: $KLU_CPPFLAGS |
0fe35c34fdc2
use $KLU_LIBS in configure check for Sundials IDA library (bug #50167)
John W. Eaton <jwe@octave.org>
parents:
23028
diff
changeset
|
3262 KLU LDFLAGS: $KLU_LDFLAGS |
0fe35c34fdc2
use $KLU_LIBS in configure check for Sundials IDA library (bug #50167)
John W. Eaton <jwe@octave.org>
parents:
23028
diff
changeset
|
3263 KLU libraries: $KLU_LIBS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3264 LAPACK libraries: $LAPACK_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3265 Magick++ CPPFLAGS: $MAGICK_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3266 Magick++ LDFLAGS: $MAGICK_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3267 Magick++ libraries: $MAGICK_LIBS |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3268 OpenGL libraries: $OPENGL_LIBS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3269 PCRE CPPFLAGS: $PCRE_CPPFLAGS |
23005
8e9dd0d6e337
update check for pcre library to use pkg-config (bug #49993)
John W. Eaton <jwe@octave.org>
parents:
22995
diff
changeset
|
3270 PCRE LDFLAGS: $PCRE_LDFLAGS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3271 PCRE libraries: $PCRE_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3272 PortAudio CPPFLAGS: $PORTAUDIO_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3273 PortAudio LDFLAGS: $PORTAUDIO_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3274 PortAudio libraries: $PORTAUDIO_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3275 PTHREAD flags: $PTHREAD_CFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3276 PTHREAD libraries: $PTHREAD_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3277 QHULL CPPFLAGS: $QHULL_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3278 QHULL LDFLAGS: $QHULL_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3279 QHULL libraries: $QHULL_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3280 QRUPDATE CPPFLAGS: $QRUPDATE_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3281 QRUPDATE LDFLAGS: $QRUPDATE_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3282 QRUPDATE libraries: $QRUPDATE_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3283 Qt CPPFLAGS: $QT_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3284 Qt LDFLAGS: $QT_LDFLAGS |
25931
332be8be16eb
dynamically load qt graphics
John W. Eaton <jwe@octave.org>
parents:
25882
diff
changeset
|
3285 Qt GUI libraries: $QT_LIBS |
332be8be16eb
dynamically load qt graphics
John W. Eaton <jwe@octave.org>
parents:
25882
diff
changeset
|
3286 Qt OpenGL libraries: $QT_OPENGL_LIBS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3287 Qt moc: $MOC $MOCFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3288 Qt uic: $UIC $UICFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3289 Qt rcc: $RCC $RCCFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3290 Qt lrelease: $LRELEASE $LRELEASEFLAGS |
24875
7c7b60dd4d4c
Generate Qt compressed help and collection files for the manual (bug #53006)
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
24873
diff
changeset
|
3291 Qt qcollectiongenerator: $QCOLLECTIONGENERATOR $QCOLLECTIONGENERATORFLAGS |
24873
486bc22482ca
Improve Doxygen generation.
Pantxo Diribarne <pantxo.diribarne@gmail.com>
parents:
24826
diff
changeset
|
3292 Qt qhelpgenerator: $QHELPGENERATOR $QHELPGENERATORFLAGS |
31415
00e2eafd1c0f
build: Use gnulib module to get readline libraries.
Markus Mützel <markus.muetzel@gmx.de>
parents:
31407
diff
changeset
|
3293 READLINE libraries: $LIBREADLINE |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3294 Sndfile CPPFLAGS: $SNDFILE_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3295 Sndfile LDFLAGS: $SNDFILE_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3296 Sndfile libraries: $SNDFILE_LIBS |
29259
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
3297 SPQR CPPFLAGS: $SPQR_CPPFLAGS |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
3298 SPQR LDFLAGS: $SPQR_LDFLAGS |
66f162b6fa03
Replacement of CXSPARSE by SPQR for QR factorization (bug #57033).
Simon Hau <simon.hau79@gmail.com>
parents:
29239
diff
changeset
|
3299 SPQR libraries: $SPQR_LIBS |
23990
6f56efc098bd
check for suitesparse config library before other suitesparse libraries
John W. Eaton <jwe@octave.org>
parents:
23989
diff
changeset
|
3300 SuiteSparse config libraries: $SUITESPARSECONFIG_LIBS |
23981
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
3301 SUNDIALS IDA CPPFLAGS: $SUNDIALS_IDA_CPPFLAGS |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
3302 SUNDIALS IDA LDFLAGS: $SUNDIALS_IDA_LDFLAGS |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
3303 SUNDIALS IDA libraries: $SUNDIALS_IDA_LIBS |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
3304 SUNDIALS NVECTOR CPPFLAGS: $SUNDIALS_NVECSERIAL_CPPFLAGS |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
3305 SUNDIALS NVECTOR LDFLAGS: $SUNDIALS_NVECSERIAL_LDFLAGS |
6420142ff32c
configure: fix capitalization of SUNDIALS, reword related terms
Mike Miller <mtmiller@octave.org>
parents:
23980
diff
changeset
|
3306 SUNDIALS NVECTOR libraries: $SUNDIALS_NVECSERIAL_LIBS |
26910
075c4d3bf1de
use OCTAVE_CHECK_LIB to check for sundials_sunlinsolklu library
John W. Eaton <jwe@octave.org>
parents:
26909
diff
changeset
|
3307 SUNLINSOL KLU CPPFLAGS: $SUNDIALS_SUNLINSOLKLU_CPPFLAGS |
075c4d3bf1de
use OCTAVE_CHECK_LIB to check for sundials_sunlinsolklu library
John W. Eaton <jwe@octave.org>
parents:
26909
diff
changeset
|
3308 SUNLINSOL KLU LDFLAGS: $SUNDIALS_SUNLINSOLKLU_LDFLAGS |
075c4d3bf1de
use OCTAVE_CHECK_LIB to check for sundials_sunlinsolklu library
John W. Eaton <jwe@octave.org>
parents:
26909
diff
changeset
|
3309 SUNLINSOL KLU libraries: $SUNDIALS_SUNLINSOLKLU_LIBS |
22501
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3310 UMFPACK CPPFLAGS: $UMFPACK_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3311 UMFPACK LDFLAGS: $UMFPACK_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3312 UMFPACK libraries: $UMFPACK_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3313 X11 include flags: $X11_INCFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3314 X11 libraries: $X11_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3315 Z CPPFLAGS: $Z_CPPFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3316 Z LDFLAGS: $Z_LDFLAGS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3317 Z libraries: $Z_LIBS |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3318 |
ed1b0d5fa97c
always check for suitesparseconfig if any SuiteSparse libs found
John W. Eaton <jwe@octave.org>
parents:
22458
diff
changeset
|
3319 Default pager: $DEFAULT_PAGER |
26071
658153e1976d
Fix failing BIST tests and oddities when gnuplot is not present (bug #55023).
Rik <rik@octave.org>
parents:
25843
diff
changeset
|
3320 gnuplot: $GNUPLOT_BINARY |
1664 | 3321 |
25097
cc21f66ecb1c
display more info in configure summary about Qt version and missing features
John W. Eaton <jwe@octave.org>
parents:
25078
diff
changeset
|
3322 Build Octave Qt GUI: $BUILD_QT_SUMMARY_MSG |
22992
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3323 Build Java interface: $build_java |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3324 Build static libraries: $STATIC_LIBS |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3325 Build shared libraries: $SHARED_LIBS |
25882
22ee68edcf3a
require dynamic loading capabilities to build Octave
John W. Eaton <jwe@octave.org>
parents:
25844
diff
changeset
|
3326 Dynamic Linking API: $DL_API_MSG |
22992
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3327 Include support for GNU readline: $USE_READLINE |
27971
ec769a7ab9fb
fix more spelling errors (bug #57613)
John W. Eaton <jwe@octave.org>
parents:
27970
diff
changeset
|
3328 Use push parser in command line REPL: $ENABLE_COMMAND_LINE_PUSH_PARSER |
22992
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3329 64-bit array dims and indexing: $ENABLE_64 |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3330 64-bit BLAS array dims and indexing: $HAVE_64_BIT_BLAS |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3331 OpenMP SMP multithreading: $ENABLE_OPENMP |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3332 Truncate intermediate FP results: $ENABLE_FLOAT_TRUNCATE |
22992
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3333 Build cross tools: $cross_tools |
7d5c56e38801
report BLAS integer size in less alarming way
John W. Eaton <jwe@octave.org>
parents:
22986
diff
changeset
|
3334 Build docs: $ENABLE_DOCS |
1225 | 3335 ]) |
3105 | 3336 |
3337 warn_msg_printed=false | |
3338 | |
14605
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
3339 OCTAVE_CONFIGURE_WARNING_SUMMARY |
28e53daab1f8
Cleanup on autoconf warnings
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14579
diff
changeset
|
3340 |
21378
172479a97e6c
configure.ac: Remove overquoting in shell variables tests.
Rik <rik@octave.org>
parents:
21374
diff
changeset
|
3341 if test $opengl_graphics = no; then |
10011
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
3342 AC_MSG_WARN([]) |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3343 AC_MSG_WARN([The libraries needed for OpenGL graphics were not found.]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3344 AC_MSG_WARN([Creating plots is still possible if gnuplot is installed.]) |
10011
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
3345 warn_msg_printed=true |
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
3346 fi |
411325ce32d7
Better warnings when gnuplot is not installed but native graphics are available
Rik <rdrider0-list@yahoo.com>
parents:
10004
diff
changeset
|
3347 |
6191 | 3348 if $warn_msg_printed; then |
10003
2ea3110e15ed
Use M4 quoting for arguments to autoconf macros containing variables
Rik <rdrider0-list@yahoo.com>
parents:
9989
diff
changeset
|
3349 AC_MSG_NOTICE([]) |
24810
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3350 AC_MSG_NOTICE([NOTE: Libraries or auxiliary programs may be skipped if they are not found]) |
8a92f442c4a2
configure.ac: Overhaul file (bug #53186).
Rik <rik@octave.org>
parents:
24798
diff
changeset
|
3351 AC_MSG_NOTICE([NOTE: OR if they are missing required features on your system.]) |
6161 | 3352 fi |
3353 | |
3105 | 3354 ### End of configure. |