Mercurial > pytave
annotate configure.ac @ 152:313932d566c9
doc: Update project URL and repository location
* README, configure.ac: Update project URL and repository to point to the
bitbucket repository.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Tue, 05 Apr 2016 11:59:25 -0700 |
parents | a3dc9d24ae38 |
children | 210da27cd2de |
rev | line source |
---|---|
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
2 dnl |
150
a3dc9d24ae38
maint: Add myself to copyright notices
Mike Miller <mtmiller@octave.org>
parents:
149
diff
changeset
|
3 dnl Copyright (C) 2015-2016 Mike Miller |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
4 dnl Copyright (C) 2008 David Grundberg, HÃ¥kan Fors Nilsson |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
5 dnl Copyright (C) 2009 Jaroslav Hajek, VZLU Prague |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
6 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
7 ### This file is part of Pytave. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
8 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
9 ### Pytave is free software: you can redistribute it and/or modify it |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
10 ### under the terms of the GNU General Public License as published by the |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
11 ### Free Software Foundation, either version 3 of the License, or (at your |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
12 ### option) any later version. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
13 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
14 ### Pytave is distributed in the hope that it will be useful, but WITHOUT |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
15 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
16 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
17 ### for more details. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
18 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
19 ### You should have received a copy of the GNU General Public License |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
20 ### along with Pytave; see the file COPYING. If not, see |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
21 ### <http://www.gnu.org/licenses/>. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
22 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
23 AC_PREREQ(2.61) |
152
313932d566c9
doc: Update project URL and repository location
Mike Miller <mtmiller@octave.org>
parents:
150
diff
changeset
|
24 AC_INIT(pytave, dev, [[https://bitbucket.org/mtmiller/pytave/issues]]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
25 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
26 # Some important programs. |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
27 AC_LANG(C++) |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
28 AC_PROG_CXX |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
29 AC_PROG_CPP |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
30 AC_PROG_CC |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
31 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
32 # Load our custom m4 scripts (from the m4 directory) |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
33 AC_CONFIG_MACRO_DIR(m4) |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
34 AC_CONFIG_SRCDIR([pytave.cc]) |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
35 AC_CONFIG_HEADER([config.h]) |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
36 AC_CONFIG_FILES([Makefile]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
37 |
85
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
38 dnl Define a convenience m4 macro for appending to pytave_missing_libs |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
39 m4_define([addmissing], [pytave_missing_libs="$1 |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
40 $pytave_missing_libs"]) |
85
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
41 pytave_missing_libs= |
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
42 |
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
43 # Find Octave |
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
44 AX_OCTAVE([OCTAVE_CONFIG], [], [addmissing([Octave development files])]) |
37
798efee55cd0
Added --enable-float-matrices option. Some VPATH building issues fixed. Changelog now more standardized.
David Grundberg <individ@acc.umu.se>
parents:
30
diff
changeset
|
45 |
798efee55cd0
Added --enable-float-matrices option. Some VPATH building issues fixed. Changelog now more standardized.
David Grundberg <individ@acc.umu.se>
parents:
30
diff
changeset
|
46 # Pick a Python library to use |
85
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
47 AX_PYTHON_DEVEL([], [], [addmissing([Python development files])]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
48 |
101
0c19ed1ce349
Remove Numeric array support. Use numpy exclusively.
David Grundberg <individ@acc.umu.se>
parents:
98
diff
changeset
|
49 # Look for numpy headers |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
50 AX_PYTHON_NUMPY([AC_DEFINE([HAVE_NUMPY], 1, [Define if using NumPy])], |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
51 [addmissing([NumPy development files])]) |
83
8145ecfecfb9
Configuration changes. Detect numpy in ./configure.
David Grundberg <c04dgg@cs.umu.se>
parents:
72
diff
changeset
|
52 |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
53 # Look for boost::python |
29
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
54 pytave_old_libs="$LIBS" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
55 pytave_old_ldflags="$LDFLAGS" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
56 pytave_old_cppflags="$CPPFLAGS" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
57 LIBS="$LIBS $PYTHON_LIBS" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
58 LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
59 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS" |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
60 |
85
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
61 AX_BOOST_PYTHON([], [addmissing([Boost Python development files])]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
62 |
29
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
63 LIBS="$pytave_old_libs" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
64 LDFLAGS="$pytave_old_ldflags" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
65 CPPFLAGS="$pytave_old_cppflags" |
6d75691c5c07
Modified build configuration in the hope that it will be more stable.
David Grundberg <individ@acc.umu.se>
parents:
12
diff
changeset
|
66 |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
67 # Do some more initializations |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
68 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
69 AM_INIT_AUTOMAKE() |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
70 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
71 # Checks for programs. |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
72 AC_PROG_LIBTOOL |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
73 AC_PROG_RANLIB |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
74 AC_PROG_INSTALL |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
75 AC_PROG_LN_S |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
76 AC_PROG_MAKE_SET |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
77 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
78 # Checks for libraries. |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
79 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
80 # Checks for header files. |
72 | 81 AC_CHECK_HEADERS([locale.h]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
82 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
83 # Checks for typedefs, structures, and compiler characteristics. |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
84 AC_HEADER_STDBOOL |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
85 AC_C_CONST |
72 | 86 AC_C_INLINE |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
87 AC_TYPE_INT8_T |
72 | 88 AC_TYPE_INT16_T |
89 AC_TYPE_INT32_T | |
90 AC_TYPE_INT64_T | |
91 AC_TYPE_SIZE_T | |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
92 AC_TYPE_UINT8_T |
72 | 93 AC_TYPE_UINT16_T |
94 AC_TYPE_UINT32_T | |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
95 AC_TYPE_UINT64_T |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
96 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
97 # Checks for library functions. |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
98 AC_CHECK_FUNCS([uselocale], [pytave_have_uselocale=yes], |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
99 [pytave_have_uselocale=no]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
100 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
101 # This needs a more usable, less unusual solution. |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
102 AS_IF([test "x${prefix}" == "xNONE"], |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
103 [PYTAVE_MODULE_INSTALL_PATH=/../invalidpath], |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
104 [PYTAVE_MODULE_INSTALL_PATH=${prefix}]) |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
105 AC_SUBST(PYTAVE_MODULE_INSTALL_PATH) |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
106 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
107 AS_IF([test -n "$pytave_missing_libs"], |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
108 [AC_MSG_ERROR([One or more library dependencies could not be resolved. |
83
8145ecfecfb9
Configuration changes. Detect numpy in ./configure.
David Grundberg <c04dgg@cs.umu.se>
parents:
72
diff
changeset
|
109 |
85
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
110 Missing dependencies: |
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
111 $pytave_missing_libs |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
112 ])]) |
83
8145ecfecfb9
Configuration changes. Detect numpy in ./configure.
David Grundberg <c04dgg@cs.umu.se>
parents:
72
diff
changeset
|
113 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
114 AC_OUTPUT |
72 | 115 |
116 AC_MSG_NOTICE([ | |
117 ======================================================================== | |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
118 Pytave is configured with the following setup |
72 | 119 |
120 Dependencies | |
121 Octave ............. $OCTAVE_INCLUDEDIR | |
122 Python ............. $PYTHON_CPPFLAGS | |
123 executable ....... $PYTHON | |
85
891ec70aede9
Clearer description of what packages that are missing.
David <david@stacey>
parents:
83
diff
changeset
|
124 Python boost ....... $BOOST_PYTHON_LIB |
72 | 125 |
126 Features | |
127 uselocale .......... $pytave_have_uselocale | |
128 | |
129 ========================================================================]) | |
83
8145ecfecfb9
Configuration changes. Detect numpy in ./configure.
David Grundberg <c04dgg@cs.umu.se>
parents:
72
diff
changeset
|
130 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
131 AS_IF([test "x$pytave_have_uselocale" = "xno"], |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
132 [AC_MSG_WARN([This system doesn't have uselocale support. |
96
66bd40c8d36e
Make Pytave compile against Octave 3.3+. Fix configuration bugs.
David Grundberg <individ@acc.umu.se>
parents:
92
diff
changeset
|
133 The Octave interpreter will NOT work correctly in any |
66bd40c8d36e
Make Pytave compile against Octave 3.3+. Fix configuration bugs.
David Grundberg <individ@acc.umu.se>
parents:
92
diff
changeset
|
134 locale but the C (POSIX) locale. Pytave would use the |
66bd40c8d36e
Make Pytave compile against Octave 3.3+. Fix configuration bugs.
David Grundberg <individ@acc.umu.se>
parents:
92
diff
changeset
|
135 uselocale function to work around this limitation. Pytave |
66bd40c8d36e
Make Pytave compile against Octave 3.3+. Fix configuration bugs.
David Grundberg <individ@acc.umu.se>
parents:
92
diff
changeset
|
136 can be compiled without it but will only work correcly in C |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
137 (POSIX) locale.])]) |