Mercurial > pytave
annotate configure.ac @ 418:a39b2e9112a0
build: reorganize and simplify configure script
* configure.ac: Remove unnecessary macros. Call AC_USE_SYSTEM_EXTENSIONS.
Reorganize remaining macro calls. Rewrite summary output to resemble Octave.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Thu, 04 May 2017 08:52:53 -0700 |
parents | 4e427ec1650a |
children |
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 |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
3 dnl Copyright (C) 2015-2017 Mike Miller |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
4 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
5 ### This file is part of Pytave. |
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 ### 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
|
8 ### 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
|
9 ### 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
|
10 ### option) any later version. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
11 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
12 ### 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
|
13 ### 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
|
14 ### 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
|
15 ### for more details. |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
16 ### |
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
17 ### 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
|
18 ### 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
|
19 ### <http://www.gnu.org/licenses/>. |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
20 |
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
21 AC_PREREQ(2.61) |
152
313932d566c9
doc: Update project URL and repository location
Mike Miller <mtmiller@octave.org>
parents:
150
diff
changeset
|
22 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
|
23 |
390
4ba06dcadecd
build: move auxiliary build scripts to build-aux directory
Mike Miller <mtmiller@octave.org>
parents:
389
diff
changeset
|
24 AC_CONFIG_AUX_DIR([build-aux]) |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
25 AC_CONFIG_FILES([Makefile]) |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
26 AC_CONFIG_HEADER([config.h]) |
390
4ba06dcadecd
build: move auxiliary build scripts to build-aux directory
Mike Miller <mtmiller@octave.org>
parents:
389
diff
changeset
|
27 AC_CONFIG_MACRO_DIR([m4]) |
389
d4061763a56b
Delete and no longer build Python extension module
Mike Miller <mtmiller@octave.org>
parents:
196
diff
changeset
|
28 AC_CONFIG_SRCDIR([oct-py-eval.cc]) |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
29 |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
30 AM_INIT_AUTOMAKE([foreign -Wno-portability]) |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
31 |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
32 AC_USE_SYSTEM_EXTENSIONS |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
33 |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
34 LT_INIT |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
35 |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
36 AC_PROG_CXX |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
37 |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
38 AC_LANG(C++) |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
39 |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
40 ### Check for Octave library and mkoctfile |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
41 |
166
f9a4cc5c64bd
configure: simplify handling of missing dependencies
Mike Miller <mtmiller@octave.org>
parents:
159
diff
changeset
|
42 AX_OCTAVE([OCTAVE_CONFIG], [], |
f9a4cc5c64bd
configure: simplify handling of missing dependencies
Mike Miller <mtmiller@octave.org>
parents:
159
diff
changeset
|
43 [AC_MSG_FAILURE([unable to find 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
|
44 |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
45 ### Check for Python library and interpreter |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
46 |
155
5cfff4925d14
build: Import latest versions of m4 macros from autoconf-archive
Mike Miller <mtmiller@octave.org>
parents:
154
diff
changeset
|
47 AX_PYTHON_DEVEL |
417
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
48 for opt in $PYTHON_LIBS; do |
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
49 case "$opt" in #( |
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
50 -L/usr*) : ;; #( |
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
51 -L*) PYTHON_LIBS="-R${opt#-L} $PYTHON_LIBS" ;; #( |
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
52 *) : ;; |
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
53 esac |
4e427ec1650a
build: add Python library directory to oct file runtime path
Mike Miller <mtmiller@octave.org>
parents:
416
diff
changeset
|
54 done |
0
4da14cce0890
First launchpad.net check in.
David Grundberg <c04dgg@cs.umu.se>
parents:
diff
changeset
|
55 |
149
6d9b4f69da66
Clean up build system functionality and style
Mike Miller <mtmiller@octave.org>
parents:
137
diff
changeset
|
56 AC_OUTPUT |
72 | 57 |
58 AC_MSG_NOTICE([ | |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
59 |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
60 Pytave is now configured for the following |
72 | 61 |
418
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
62 Octave header files: $OCTAVE_INCLUDEDIR |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
63 Octave libraries: $OCTAVE_LIBRARYDIR |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
64 Python header files: $PYTHON_CPPFLAGS |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
65 Python library: $PYTHON_LIBS |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
66 Python executable: $PYTHON |
a39b2e9112a0
build: reorganize and simplify configure script
Mike Miller <mtmiller@octave.org>
parents:
417
diff
changeset
|
67 ]) |