Mercurial > fem-fenics-eugenio
annotate src/configure.ac @ 245:e348b84ecb70 fem-fenics 0.0.2
Add copyright notice to build system files
author | Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
---|---|
date | Sat, 28 Jun 2014 12:31:02 +0200 |
parents | 1a3674836579 |
children |
rev | line source |
---|---|
245
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
1 ## Copyright (C) 2013 Marco Vassallo <gedeone-octave@users.sourceforge.net> |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
2 ## Copyright (C) 2014 Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
3 ## |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
4 ## This program is free software; you can redistribute it and/or modify it under |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
5 ## the terms of the GNU General Public License as published by the Free Software |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
6 ## Foundation; either version 3 of the License, or (at your option) any later |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
7 ## version. |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
8 ## |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
9 ## This program is distributed in the hope that it will be useful, but WITHOUT |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
10 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
11 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
12 ## details. |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
13 ## |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
14 ## You should have received a copy of the GNU General Public License along with |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
15 ## this program; if not, see <http://www.gnu.org/licenses/>. |
e348b84ecb70
Add copyright notice to build system files
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
230
diff
changeset
|
16 |
5
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
17 AC_PREREQ([2.67]) |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
18 AC_INIT([Fem-fenics Package], [0.0.1]) |
5
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
19 |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
20 AC_USE_SYSTEM_EXTENSIONS |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
21 |
5
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
22 AC_PROG_CXX |
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
23 AC_LANG(C++) |
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
24 |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
25 PKG_PROG_PKG_CONFIG |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
26 |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
27 # Get Dense include locations |
211
5b2a3d09f524
maint: changing configure.ac option to ---with-eigen-includedir
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
210
diff
changeset
|
28 AC_ARG_WITH([eigen-includedir], |
5b2a3d09f524
maint: changing configure.ac option to ---with-eigen-includedir
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
210
diff
changeset
|
29 [AS_HELP_STRING([--with-eigen-includedir=DIR], |
5b2a3d09f524
maint: changing configure.ac option to ---with-eigen-includedir
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
210
diff
changeset
|
30 [location of the Eigen headers, defaults to /usr/include/])], |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
31 [DENSE_CPPFLAGS="-I$withval"], |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
32 [DENSE_CPPFLAGS='-I/usr/include/']) |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
33 AC_SUBST(DENSE_CPPFLAGS) |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
34 echo $DENSE_CPPFLAGS |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
35 |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
36 ## Check for Eigen |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
37 AC_MSG_CHECKING([for eigen3]) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
38 |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
39 EIGEN_CPPFLAGS= |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
40 EIGEN_LIBS= |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
41 |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
42 PKG_CHECK_EXISTS([eigen3], |
229
194f8c66b45a
Add unused compiler/linker flags
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
217
diff
changeset
|
43 [EIGEN_CPPFLAGS=`$PKG_CONFIG --cflags eigen3` |
194f8c66b45a
Add unused compiler/linker flags
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
217
diff
changeset
|
44 EIGEN_LIBS=`$PKG_CONFIG --libs eigen3` |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
45 AC_MSG_RESULT([yes])], |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
46 [AC_MSG_RESULT([no]) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
47 AC_MSG_ERROR([eigen3 required to install $PACKAGE_NAME])] |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
48 ) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
49 |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
50 AC_SUBST(EIGEN_CPPFLAGS) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
51 AC_SUBST(EIGEN_LIBS) |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
52 |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
53 ## Check for dolfin |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
54 AC_MSG_CHECKING([for dolfin]) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
55 |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
56 DOLFIN_CPPFLAGS= |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
57 DOLFIN_LIBS= |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
58 |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
59 PKG_CHECK_EXISTS([dolfin], |
229
194f8c66b45a
Add unused compiler/linker flags
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
217
diff
changeset
|
60 [DOLFIN_CPPFLAGS=`$PKG_CONFIG --cflags dolfin` |
194f8c66b45a
Add unused compiler/linker flags
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
217
diff
changeset
|
61 DOLFIN_LIBS=`$PKG_CONFIG --libs dolfin` |
217
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
62 AC_MSG_RESULT([yes])], |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
63 [AC_MSG_RESULT([no]) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
64 AC_MSG_ERROR([dolfin required to install $PACKAGE_NAME])] |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
65 ) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
66 |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
67 AC_SUBST(DOLFIN_CPPFLAGS) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
68 AC_SUBST(DOLFIN_LIBS) |
5292e0614efc
New patches submitted from eg123 for the automatization of
gedeone-octave <marcovass89@hotmail.it>
parents:
211
diff
changeset
|
69 |
210
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
70 |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
71 AC_CHECK_PROG([HAVE_FFC], [ffc], [yes], [no]) |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
72 if [test $HAVE_FFC = "no"]; then |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
73 AC_MSG_ERROR([ffc required to install $PACKAGE_NAME]) |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
74 fi |
b9999ff4fe5e
maint: configure.ac accpets includedir for Dense.
Juan Pablo Carbajal <ajuanpi+dev@gmail.com>
parents:
27
diff
changeset
|
75 |
5
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
76 AC_CHECK_PROG([HAVE_MKOCTFILE], [mkoctfile], [yes], [no]) |
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
77 if [test $HAVE_MKOCTFILE = "no"]; then |
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
78 AC_MSG_ERROR([mkoctfile required to install $PACKAGE_NAME]) |
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
79 fi |
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
80 |
230
1a3674836579
Provide flags for just-in-time compilation
Eugenio Gianniti <eugenio.gianniti@mail.polimi.it>
parents:
229
diff
changeset
|
81 AC_CONFIG_FILES([Makefile ../inst/private/get_vars.m]) |
5
e74ff416fd54
File for the configuration and compilation of the pkg
gedeone-octave <marco.vassallo@outlook.com>
parents:
diff
changeset
|
82 AC_OUTPUT |