Mercurial > mxe-octave
annotate configure.ac @ 6032:476b6731b2f4
* dist-files.mk: fix typo in sdl2.mk
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Tue, 04 Jan 2022 13:18:08 -0500 |
parents | 7c0066684448 |
children | 92633c7288cd |
rev | line source |
---|---|
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
3 AC_PREREQ([2.62]) |
4650
1d9448607538
Use https in links whenever possible (Bug #53555).
Rik <rik@octave.org>
parents:
4488
diff
changeset
|
4 AC_INIT([MXE-Octave], [0.0.35], [https://octave.org/bugs.html], [mxe-octave]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
5 |
4740
9942a9c37ffe
remove octave 'alpha' package
John W. Eaton <jwe@octave.org>
parents:
4650
diff
changeset
|
6 AC_CONFIG_SRCDIR([src/default-octave.mk]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
7 AC_CONFIG_AUX_DIR([tools]) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
8 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
9 ### Check for bootstrap tools. This list is probably not complete yet. |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
10 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 AC_PROG_AWK |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
12 AC_PROG_GREP |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
13 AC_PROG_LN_S |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
14 AC_PROG_MKDIR_P |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
15 AC_PROG_INSTALL |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 AC_PROG_CC |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 AC_PROG_CPP |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
18 AC_PROG_GCC_TRADITIONAL |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
19 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 dnl PKG_PROG_PKG_CONFIG |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 dnl OCTAVE_PROG_FIND |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 dnl OCTAVE_PROG_SED |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
23 dnl OCTAVE_PROG_PERL |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
24 dnl OCTAVE_PROG_GPERF |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 dnl OCTAVE_PROG_FLEX |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 dnl OCTAVE_PROG_BISON |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 dnl OCTAVE_PROG_MAKEINFO |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 dnl OCTAVE_PROG_TEXI2DVI |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 dnl OCTAVE_PROG_TEXI2PDF |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 dnl OCTAVE_PROG_GHOSTSCRIPT |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 dnl OCTAVE_PROG_GNUPLOT |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 dnl OCTAVE_PROG_PAGER |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 dnl OCTAVE_PROG_PYTHON |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 dnl OCTAVE_CHECK_LIB_TERMLIB |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
35 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 ### Define the path to the shell on the host system. Most systems will |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 ### ensure /bin/sh is the default shell so this can be safely ignored by |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
38 ### almost everyone. However, when building for Android, for example, |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 ### this will need to be set. |
4460
ce2a3053aabc
configure: set SHELL to /bin/bash
Mike Miller <mtmiller@octave.org>
parents:
4320
diff
changeset
|
40 SHELL=/bin/bash |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
41 AC_ARG_WITH([shell], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 [AS_HELP_STRING([--with-shell=SHELL], |
4460
ce2a3053aabc
configure: set SHELL to /bin/bash
Mike Miller <mtmiller@octave.org>
parents:
4320
diff
changeset
|
43 [use SHELL as the shell interpreter (default: /bin/bash)])]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
44 case $with_shell in |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
45 no) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
46 AC_MSG_ERROR([A shell interpreter is required]) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
47 ;; |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
48 yes | "") |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
49 ;; |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
50 *) |
3044 | 51 SHELL=$with_shell |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
52 ;; |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
53 esac |
3044 | 54 AC_SUBST(SHELL) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
55 |
4197
667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
John W. Eaton <jwe@octave.org>
parents:
4195
diff
changeset
|
56 PKG_DIR="pkg" |
4193
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
57 AC_ARG_WITH([pkg-dir], |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
58 [AS_HELP_STRING([--with-pkg-dir=DIR], |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
59 [use DIR as the location for downloaded packages (default: pkg)])]) |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
60 case $with_pkg_dir in |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
61 no) |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
62 AC_MSG_ERROR([A pkg directory is required]) |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
63 ;; |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
64 yes | "") |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
65 ;; |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
66 *) |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
67 PKG_DIR="$withval" |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
68 ;; |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
69 esac |
4197
667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
John W. Eaton <jwe@octave.org>
parents:
4195
diff
changeset
|
70 ## Ensure directory exists and that we refer to it using an absolute name |
667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
John W. Eaton <jwe@octave.org>
parents:
4195
diff
changeset
|
71 if ! test -d "$PKG_DIR"; then |
667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
John W. Eaton <jwe@octave.org>
parents:
4195
diff
changeset
|
72 mkdir -p "$PKG_DIR" |
667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
John W. Eaton <jwe@octave.org>
parents:
4195
diff
changeset
|
73 fi |
667aa26d9dd4
* configure.ac: Don't use undefined in default definition of PKG_DIR.
John W. Eaton <jwe@octave.org>
parents:
4195
diff
changeset
|
74 PKG_DIR=`(cd "$PKG_DIR"; pwd)` |
4193
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
75 AC_SUBST(PKG_DIR) |
32814edc00db
allow location of pkg directory to be specified
John W. Eaton <jwe@octave.org>
parents:
4162
diff
changeset
|
76 |
4194
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
77 AC_ARG_WITH([ccache], |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
78 [AS_HELP_STRING([--with-ccache], [use ccache (default: no)])], |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
79 [case $withval in |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
80 no) USE_CCACHE=no ;; |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
81 yes) USE_CCACHE=yes ;; |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
82 *) AC_MSG_ERROR([bad value "$enableval" for --with-ccache]) ;; |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
83 esac], [USE_CCACHE=no]) |
4853
2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
John W. Eaton <jwe@octave.org>
parents:
4796
diff
changeset
|
84 if test "$USE_CCACHE" = yes; then |
4854
990b5e6b1970
use AC_PATH_PROG to check for ccache; use result in ccache-links Makefile rule
John W. Eaton <jwe@octave.org>
parents:
4853
diff
changeset
|
85 AC_PATH_PROG(CCACHE, ccache) |
4853
2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
John W. Eaton <jwe@octave.org>
parents:
4796
diff
changeset
|
86 if test -z "$CCACHE"; then |
2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
John W. Eaton <jwe@octave.org>
parents:
4796
diff
changeset
|
87 AC_MSG_WARN([ccache program not found; not using ccache for build]) |
2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
John W. Eaton <jwe@octave.org>
parents:
4796
diff
changeset
|
88 USE_CCACHE=no |
2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
John W. Eaton <jwe@octave.org>
parents:
4796
diff
changeset
|
89 fi |
2ee6a02e6f28
check for ccache; don't attempt to use ccache if it is missing (bug #54746)
John W. Eaton <jwe@octave.org>
parents:
4796
diff
changeset
|
90 fi |
4194
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
91 AC_SUBST(USE_CCACHE) |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
92 |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4748
diff
changeset
|
93 AC_ARG_WITH([msys2], |
4796
8fd91da9df90
configure.ac: use msys2 by default.
John W. Eaton <jwe@octave.org>
parents:
4793
diff
changeset
|
94 [AS_HELP_STRING([--with-msys2], [use msys2 in windows distribution (default: yes)])], |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4748
diff
changeset
|
95 [case $withval in |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4748
diff
changeset
|
96 no) USE_MSYS2=no ;; |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4748
diff
changeset
|
97 yes) USE_MSYS2=yes ;; |
4796
8fd91da9df90
configure.ac: use msys2 by default.
John W. Eaton <jwe@octave.org>
parents:
4793
diff
changeset
|
98 *) AC_MSG_ERROR([bad value "$enableval" for --with-msys2]) ;; |
8fd91da9df90
configure.ac: use msys2 by default.
John W. Eaton <jwe@octave.org>
parents:
4793
diff
changeset
|
99 esac], [USE_MSYS2=yes]) |
4793
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4748
diff
changeset
|
100 AC_SUBST(USE_MSYS2) |
202fa20cf559
add msys2 environment/tools option, use seprate post-install script to finalize install
John Donoghue
parents:
4748
diff
changeset
|
101 |
5961
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
102 # Use "msvcrt" or "ucrt" on Windows |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
103 AC_ARG_WITH([windows-msvcrt], |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
104 [AS_HELP_STRING([--with-windows-msvcrt=msvcrt], [select C runtime for windows distribution (default: msvcrt)])], |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
105 [case $withval in |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
106 no) AC_MSG_ERROR([A runtime for Windows is required for --with-windows-msvcrt]) ;; |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
107 yes | "") HOST_MSVCRT=msvcrt ;; |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
108 *) HOST_MSVCRT="$withval" ;; |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
109 esac], [HOST_MSVCRT=msvcrt]) |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
110 AC_SUBST(HOST_MSVCRT) |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
111 |
4977 | 112 # try find pkg-config build paths |
113 BUILD_PKG_CONFIG_PATH=auto | |
114 AC_ARG_WITH([build-pkg-config-path], | |
115 [AS_HELP_STRING([--with-build-pkg-config-path=PATH], | |
116 [use PATH as the build pkg-config path (default: auto)])], | |
117 [BUILD_PKG_CONFIG_PATH=$withval], | |
118 [BUILD_PKG_CONFIG_PATH=auto]) | |
119 | |
120 if test "x$BUILD_PKG_CONFIG_PATH" = "xauto"; then | |
121 PKG_CHECK_VAR([BUILDPKGCONFIGPATH], [pkg-config], [pc_path]) | |
122 AC_MSG_CHECKING([for build pkg-config paths]) | |
123 if test "x$BUILDPKGCONFIGPATH" = "x"; then | |
124 AC_MSG_RESULT([couldnt auto detect pkg-config paths"]) | |
125 BUILD_PKG_CONFIG_PATH="" | |
126 else | |
127 BUILD_PKG_CONFIG_PATH="$BUILDPKGCONFIGPATH" | |
128 AC_MSG_RESULT([$BUILD_PKG_CONFIG_PATH]) | |
129 fi | |
130 fi | |
131 AC_SUBST(BUILD_PKG_CONFIG_PATH) | |
132 | |
133 | |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
134 AC_ARG_ENABLE([windows-64], |
4307
d15e1b63b01f
make --enable-windows-64 the default
John W. Eaton <jwe@octave.org>
parents:
4304
diff
changeset
|
135 [AS_HELP_STRING([--disable-windows-64], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
136 [build Windows 32bit binaries (default: enable, i.e. 64bit binaries)])], |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
137 [case $enableval in |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
138 no) ENABLE_WINDOWS_64=no ;; |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
139 yes) ENABLE_WINDOWS_64=yes ;; |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
140 *) AC_MSG_ERROR([bad value "$enableval" for --enable-windows-64]) ;; |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
141 esac], [ENABLE_WINDOWS_64=yes]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
142 |
5961
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
143 if test "$ENABLE_WINDOWS_64" = "no" && test "$HOST_MSVCRT" = "ucrt"; then |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
144 AC_MSG_NOTICE([UCRT is only supported with --enable-windows-64]) |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
145 fi |
7c0066684448
Add support for building with UCRT on Windows.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5545
diff
changeset
|
146 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
147 AC_ARG_ENABLE([64], |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
148 [AS_HELP_STRING([--enable-64], |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
149 [use 64-bit integers for array dimensions and indexing])], |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
150 [case $enableval in |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
151 no) ENABLE_64=no ;; |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
152 yes) ENABLE_64=yes ;; |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
153 *) AC_MSG_ERROR([bad value "$enableval" for --enable-64]) ;; |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
154 esac], [ENABLE_64=unknown]) |
3710
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
155 |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
156 if test "$ENABLE_64" = unknown; then |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
157 ENABLE_64="$ENABLE_WINDOWS_64" |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
158 fi |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
159 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
160 AC_ARG_ENABLE([fortran-int64], |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4301
diff
changeset
|
161 [AS_HELP_STRING([--enable-fortran-int64], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
162 [use 64-bit integers for fortran (and other) numerical library code (default: disable)])], |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
163 [case $enableval in |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
164 no) ENABLE_FORTRAN_INT64=no ;; |
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
165 yes) ENABLE_FORTRAN_INT64=yes ;; |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
166 *) AC_MSG_ERROR([bad value "$enableval" for --enable-fortran-int64]) ;; |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
167 esac], [ENABLE_FORTRAN_INT64=no]) |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4301
diff
changeset
|
168 |
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4301
diff
changeset
|
169 if test "$ENABLE_64" = yes || test "$ENABLE_FORTRAN_INT64" = yes; then |
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4301
diff
changeset
|
170 if test "$ENABLE_WINDOWS_64" = no; then |
4319
79bddf470912
fix 64-bit --enable feature options
John W. Eaton <jwe@octave.org>
parents:
4307
diff
changeset
|
171 AC_MSG_ERROR([--enable-fortran-int64 and --enable-64 both require --enable-windows-64]) |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4301
diff
changeset
|
172 fi |
3710
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
173 fi |
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
174 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
175 AC_SUBST(ENABLE_64) |
4304
0db33a326eec
make --enable-64 the default
John W. Eaton <jwe@octave.org>
parents:
4301
diff
changeset
|
176 AC_SUBST(ENABLE_FORTRAN_INT64) |
3710
1220a9158bc1
make building 64-bit Windows binaries independent from enabling 64-bit indexing in Octave
John W. Eaton <jwe@octave.org>
parents:
3702
diff
changeset
|
177 AC_SUBST(ENABLE_WINDOWS_64) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
178 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
179 AC_ARG_ENABLE([shared], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
180 [AS_HELP_STRING([--disable-shared], [Disable shared libraries (default: enable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
181 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
182 no) BUILD_SHARED=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
183 yes) BUILD_SHARED=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
184 *) AC_MSG_ERROR([bad value "$enableval" for --enable-shared]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
185 esac], [BUILD_SHARED=yes]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
186 AC_SUBST(BUILD_SHARED) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
187 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
188 AC_ARG_ENABLE([static], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
189 [AS_HELP_STRING([--enable-static], [Enable static libraries (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
190 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
191 no) BUILD_STATIC=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
192 yes) BUILD_STATIC=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
193 *) AC_MSG_ERROR([bad value "$enableval" for --enable-static]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
194 esac], [BUILD_STATIC=no]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
195 AC_SUBST(BUILD_STATIC) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
196 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
197 AC_ARG_ENABLE([jit], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
198 [AS_HELP_STRING([--enable-jit], [Enable Octave JIT compiler (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
199 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
200 no) ENABLE_JIT=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
201 yes) ENABLE_JIT=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
202 *) AC_MSG_ERROR([bad value "$enableval" for --enable-jit]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
203 esac], [ENABLE_JIT=no]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
204 AC_SUBST(ENABLE_JIT) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
205 |
3333
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
206 AC_ARG_ENABLE([java], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
207 [AS_HELP_STRING([--disable-java], [Disable Java/Octave interface (default: enable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
208 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
209 no) ENABLE_JAVA=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
210 yes) ENABLE_JAVA=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
211 *) AC_MSG_ERROR([bad value "$enableval" for --enable-java]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
212 esac], [ENABLE_JAVA=yes]) |
3333
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
213 AC_SUBST(ENABLE_JAVA) |
4372645ff7e3
Add --disable-java option to configure.
Rik <rik@octave.org>
parents:
3253
diff
changeset
|
214 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
215 AC_ARG_ENABLE([[docs]], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
216 [AS_HELP_STRING([--disable-docs], [Disable building Octave documentation (default: enable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
217 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
218 no) ENABLE_DOCS=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
219 yes) ENABLE_DOCS=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
220 *) AC_MSG_ERROR([bad value "$enableval" for --enable-[docs]]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
221 esac], [ENABLE_DOCS=yes]) |
3367
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
222 AC_SUBST(ENABLE_DOCS) |
cfcbe03c9160
installer: Enable documentation build and add to installer.
John Donoghue <john.donoghue@ieee.org>
parents:
3333
diff
changeset
|
223 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
224 AC_ARG_ENABLE([[native-build]], |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
225 [AS_HELP_STRING([--enable-native-build], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
226 [Enable native build (default is cross compile for mingw)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
227 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
228 no) MXE_NATIVE_BUILD=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
229 yes) MXE_NATIVE_BUILD=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
230 *) AC_MSG_ERROR([bad value "$enableval" for --enable-[native-build]]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
231 esac], [MXE_NATIVE_BUILD=no]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
232 AC_SUBST(MXE_NATIVE_BUILD) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
233 |
3208
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
234 AC_ARG_ENABLE([system-fontconfig], |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
235 [AS_HELP_STRING([--enable-system-fontconfig], |
5545
78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5531
diff
changeset
|
236 [Use fontconfig already installed on system (default: same as native-build)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
237 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
238 no) USE_SYSTEM_FONTCONFIG=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
239 yes) USE_SYSTEM_FONTCONFIG=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
240 *) AC_MSG_ERROR([bad value "$enableval" for --enable-system-fontconfig]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
241 esac], [USE_SYSTEM_FONTCONFIG=$MXE_NATIVE_BUILD]) |
3208
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
242 AC_SUBST(USE_SYSTEM_FONTCONFIG) |
1080856f48c4
new configure option: --enable-system-fontconfig
John W. Eaton <jwe@octave.org>
parents:
3207
diff
changeset
|
243 |
4488
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
244 AC_ARG_ENABLE([system-opengl], |
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
245 [AS_HELP_STRING([--disable-system-opengl], |
5545
78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5531
diff
changeset
|
246 [Use OpenGL libraries already installed on system (default: same as native-build)])], |
4488
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
247 [case "$enableval" in |
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
248 no) USE_SYSTEM_OPENGL=no ;; |
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
249 yes) USE_SYSTEM_OPENGL=yes ;; |
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
250 *) AC_MSG_ERROR([bad value "$enableval" for --enable-system-opengl]) ;; |
5120
b1e27bf20a85
* configure.ac: Default use system opengl to no for cross build
John Donoghue
parents:
4977
diff
changeset
|
251 esac], [USE_SYSTEM_OPENGL=$MXE_NATIVE_BUILD]) |
4488
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
252 AC_SUBST(USE_SYSTEM_OPENGL) |
8f9bee27223f
optionally build mesa OpenGL library
John W. Eaton <jwe@octave.org>
parents:
4461
diff
changeset
|
253 |
3827
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
254 AC_ARG_ENABLE([system-x11-libs], |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
255 [AS_HELP_STRING([--enable-system-x11-libs], |
5545
78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5531
diff
changeset
|
256 [Use X11 libraries already installed on system (default: same as native-build)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
257 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
258 no) USE_SYSTEM_X11_LIBS=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
259 yes) USE_SYSTEM_X11_LIBS=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
260 *) AC_MSG_ERROR([bad value "$enableval" for --enable-system-x11-libs]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
261 esac], [USE_SYSTEM_X11_LIBS=$MXE_NATIVE_BUILD]) |
3827
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
262 AC_SUBST(USE_SYSTEM_X11_LIBS) |
02990526ae69
allow building of X11 libs to be disabled
John W. Eaton <jwe@octave.org>
parents:
3756
diff
changeset
|
263 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
264 AC_ARG_ENABLE([system-gcc], |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
265 [AS_HELP_STRING([--enable-system-gcc], |
5545
78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5531
diff
changeset
|
266 [Use GCC already installed on system (default: same as native-build)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
267 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
268 no) USE_SYSTEM_GCC=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
269 yes) USE_SYSTEM_GCC=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
270 *) AC_MSG_ERROR([bad value "$enableval" for --enable-system-gcc]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
271 esac], [USE_SYSTEM_GCC=$MXE_NATIVE_BUILD]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
272 AC_SUBST(USE_SYSTEM_GCC) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
273 |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
274 AC_ARG_ENABLE([lib64-directory], |
3226
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
275 [AS_HELP_STRING([--enable-lib64-directory], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
276 [Search lib64 directory for libraries (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
277 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
278 no) ENABLE_LIB64_DIRECTORY=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
279 yes) ENABLE_LIB64_DIRECTORY=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
280 *) AC_MSG_ERROR([bad value "$enableval" for --enable-lib64-directory]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
281 esac], [ENABLE_LIB64_DIRECTORY=no]) |
3226
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
282 AC_SUBST(ENABLE_LIB64_DIRECTORY) |
c56f388f1297
make using lib64 directory configurable
John W. Eaton <jwe@octave.org>
parents:
3219
diff
changeset
|
283 |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
284 AC_ARG_ENABLE([pic-flag], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
285 [AS_HELP_STRING([--enable-pic-flag], [Compile with PIC flag (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
286 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
287 no) USE_PIC_FLAG=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
288 yes) USE_PIC_FLAG=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
289 *) AC_MSG_ERROR([bad value "$enableval" for --enable-pic-flag]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
290 esac], [USE_PIC_FLAG=no]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
291 AC_SUBST(USE_PIC_FLAG) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
292 |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
293 AC_ARG_ENABLE([strip-dist-files], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
294 [AS_HELP_STRING([--disable-strip-dist-files], [Don't strip distributed files (default: enable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
295 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
296 no) STRIP_DIST_FILES=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
297 yes) STRIP_DIST_FILES=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
298 *) AC_MSG_ERROR([bad value "$enableval" for --enable-strip-dist-files]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
299 esac], [STRIP_DIST_FILES=yes]) |
3431
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
300 AC_SUBST(STRIP_DIST_FILES) |
a7c772aa106f
Move mk-dist script functionality into Makefile.
John W. Eaton <jwe@octave.org>
parents:
3429
diff
changeset
|
301 |
3068
fb0836e4a677
Add --enable-openblas option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
302 AC_ARG_ENABLE([openblas], |
3693 | 303 [AS_HELP_STRING([--disable-openblas], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
304 [Disable use of OpenBLAS in Octave (default: enable, i.e. build and use package)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
305 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
306 no) ENABLE_OPENBLAS=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
307 yes) ENABLE_OPENBLAS=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
308 *) AC_MSG_ERROR([bad value "$enableval" for --enable-openblas]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
309 esac], [ENABLE_OPENBLAS=yes]) |
3068
fb0836e4a677
Add --enable-openblas option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
310 AC_SUBST(ENABLE_OPENBLAS) |
fb0836e4a677
Add --enable-openblas option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3060
diff
changeset
|
311 |
3887
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
312 AC_ARG_ENABLE([qhull-no-strict-aliasing-flag], |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
313 [AS_HELP_STRING([--enable-qhull-no-strict-aliasing-flag], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
314 [Compile Qhull with -fno-strict-aliasing flag (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
315 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
316 no) ENABLE_QHULL_NO_STRICT_ALIASING_FLAG=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
317 yes) ENABLE_QHULL_NO_STRICT_ALIASING_FLAG=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
318 *) AC_MSG_ERROR([bad value "$enableval" for --enable-qhull-no-strict-aliasing-flag]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
319 esac], [ENABLE_QHULL_NO_STRICT_ALIASING_FLAG=no]) |
3887
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
320 AC_SUBST(ENABLE_QHULL_NO_STRICT_ALIASING_FLAG) |
768c5d4c5b4e
new configure option: --enable-qhull-no-strict-aliasing-flag
John W. Eaton <jwe@octave.org>
parents:
3853
diff
changeset
|
321 |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
322 AC_ARG_ENABLE([octave], |
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
323 [AS_HELP_STRING([--enable-octave=stable], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
324 [Enable a specific build of Octave (release, stable, default) (default: "release")])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
325 [case $enableval in |
4748
a6b4355efbd6
new organization for release, stable, and default versions of Octave
John W. Eaton <jwe@octave.org>
parents:
4740
diff
changeset
|
326 release) ENABLE_OCTAVE="release-" ;; |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
327 stable) ENABLE_OCTAVE="stable-" ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
328 default) ENABLE_OCTAVE="default-" ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
329 *) AC_MSG_ERROR([bad value "$enableval" for --enable-octave]) ;; |
4748
a6b4355efbd6
new organization for release, stable, and default versions of Octave
John W. Eaton <jwe@octave.org>
parents:
4740
diff
changeset
|
330 esac], [ENABLE_OCTAVE="release-"]) |
3721
933b99febcf1
Expand options to support 3 possible sources of octave
John Donoghue <john.donoghue@ieee.org>
parents:
3716
diff
changeset
|
331 AC_SUBST(ENABLE_OCTAVE) |
3611 | 332 |
3853
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
333 AC_ARG_ENABLE([binary-packages], |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
334 [AS_HELP_STRING([--enable-binary-packages], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
335 [Enable building binary Octave Forge packages (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
336 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
337 no) ENABLE_BINARY_PACKAGES=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
338 yes) ENABLE_BINARY_PACKAGES=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
339 *) AC_MSG_ERROR([bad value "$enableval" for --enable-binary-packages]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
340 esac], [ENABLE_BINARY_PACKAGES=no]) |
3853
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
341 AC_SUBST(ENABLE_BINARY_PACKAGES) |
58935b4de51f
Enable build cross mkoctfile and compile of-XXXX package files
John Donoghue
parents:
3827
diff
changeset
|
342 |
5531
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
343 AC_ARG_ENABLE([system-octave], |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
344 [AS_HELP_STRING([--disable-system-octave], |
5545
78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5531
diff
changeset
|
345 [Build a minimal Octave that runs on the build system. This only applies if binary packages are cross-built (default: same as native-build)])], |
5531
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
346 [case "$enableval" in |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
347 no) USE_SYSTEM_OCTAVE=no ;; |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
348 yes) USE_SYSTEM_OCTAVE=yes ;; |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
349 *) AC_MSG_ERROR([bad value "$enableval" for --disable-system-octave]) ;; |
5545
78a98ff1efd8
configure.ac: Default USE_SYSTEM_OCTAVE to MXE_NATIVE_BUILD (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5531
diff
changeset
|
350 esac], [USE_SYSTEM_OCTAVE=$MXE_NATIVE_BUILD]) |
5531
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
351 AC_SUBST(USE_SYSTEM_OCTAVE) |
eae508c12529
Add build rule for build-octave (bug #49503).
Markus Mützel <markus.muetzel@gmx.de>
parents:
5530
diff
changeset
|
352 |
3958
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
353 AC_ARG_ENABLE([devel-tools], |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
354 [AS_HELP_STRING([--enable-devel-tools], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
355 [Enable building developer tools such as gdb (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
356 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
357 no) ENABLE_DEVEL_TOOLS=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
358 yes) ENABLE_DEVEL_TOOLS=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
359 *) AC_MSG_ERROR([bad value "$enableval" for --enable-devel-tools]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
360 esac], [ENABLE_DEVEL_TOOLS=no]) |
3958
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
361 AC_SUBST(ENABLE_DEVEL_TOOLS) |
ac3abcea55e8
Add --enable-devel-tools option to configure
John Donoghue <john.donoghue@ieee.org>
parents:
3890
diff
changeset
|
362 |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4197
diff
changeset
|
363 AC_ARG_ENABLE([qt5], |
4461
cc4433ef0b89
configure: build with Qt 5 by default now
Mike Miller <mtmiller@octave.org>
parents:
4460
diff
changeset
|
364 [AS_HELP_STRING([--disable-qt5], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
365 [Build GNU Octave using Qt 4 instead of the default Qt 5 (default: enable, i.e. use Qt5)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
366 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
367 no) ENABLE_QT5=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
368 yes) ENABLE_QT5=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
369 *) AC_MSG_ERROR([bad value "$enableval" for --enable-qt5]) ;; |
4461
cc4433ef0b89
configure: build with Qt 5 by default now
Mike Miller <mtmiller@octave.org>
parents:
4460
diff
changeset
|
370 esac], [ENABLE_QT5=yes]) |
4222
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4197
diff
changeset
|
371 AC_SUBST(ENABLE_QT5) |
44b1a9b2193e
qt5: add initial qt5 to mxe-octave, based on mxe.cc
John D
parents:
4197
diff
changeset
|
372 |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
373 # install documentation of build dependency packages (or not to save space) |
4301 | 374 AC_ARG_ENABLE([dep-docs], |
5530
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
375 [AS_HELP_STRING([--enable-dep-docs], |
1b16d40c6611
* configure.ac: Slightly improve help strings for configure switches.
Markus Mützel <markus.muetzel@gmx.de>
parents:
5120
diff
changeset
|
376 [Enable installation of documentation for dependency packages (default: disable)])], |
4320
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
377 [case "$enableval" in |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
378 no) ENABLE_DEP_DOCS=no ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
379 yes) ENABLE_DEP_DOCS=yes ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
380 *) AC_MSG_ERROR([bad value "$enableval" for --enable-dep-docs]) ;; |
26e2e3ace9e6
handle unknown/unspecified AC_ARG options consistently
John W. Eaton <jwe@octave.org>
parents:
4319
diff
changeset
|
381 esac], [ENABLE_DEP_DOCS=no]) |
4301 | 382 AC_SUBST(ENABLE_DEP_DOCS) |
383 | |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
384 ### Default is to cross compile for mingw. |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
385 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
386 echo $host_alias |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
387 if test -n "$host_alias"; then |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
388 MXE_SYSTEM=$host_alias |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
389 else |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
390 MXE_SYSTEM=mingw |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
391 fi |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
392 AC_SUBST(MXE_SYSTEM) |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
393 |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
3044
diff
changeset
|
394 # set MXE_ROOTDIR for knowing the mxe root |
4066 | 395 MXE_ROOTDIR=`cd "$builddir"; pwd` |
3060
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
3044
diff
changeset
|
396 AC_SUBST(MXE_ROOTDIR) |
cbdf4575016d
add set_mxe_env.sh.in to tools
"John Donoghue <john.donoghue@ieee.org>
parents:
3044
diff
changeset
|
397 |
4194
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
398 if test "$MXE_NATIVE_BUILD" = no; then |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
399 if test "$ENABLE_WINDOWS_64" = yes; then |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
400 MXE_TARGET=x86_64-w64-mingw32 |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
401 else |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
402 MXE_TARGET=i686-w64-mingw32 |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
403 fi |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
404 fi |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
405 AC_SUBST(MXE_TARGET) |
3dc897731d3b
new option to enable ccache
John W. Eaton <jwe@octave.org>
parents:
4193
diff
changeset
|
406 |
3429
6cf5d50556d4
* tools/set-mxe-env.sh.in: Rename from tools/set_mxe_env.sh.in.
John W. Eaton <jwe@octave.org>
parents:
3367
diff
changeset
|
407 AC_CONFIG_FILES([Makefile tools/set-mxe-env.sh]) |
4124
5ae69991eaa1
installer: detect win64/win32 java depending on octave 32/64 (Bug #47606)
John Donoghue
parents:
4066
diff
changeset
|
408 AC_CONFIG_FILES([tools/makeinst-script.sh], [chmod a+x tools/makeinst-script.sh]) |
3043
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
409 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
410 AC_OUTPUT |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
411 |
cbfe5d38ff2c
use configure script to generate Makefile
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
412 ### End of configure. |