Mercurial > fem-fenics-eugenio
view src/configure.ac @ 266:6b37560b7cbb
Add save method for mesh
author | Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> |
---|---|
date | Fri, 08 Aug 2014 09:52:59 +0200 |
parents | e348b84ecb70 |
children |
line wrap: on
line source
## Copyright (C) 2013 Marco Vassallo <gedeone-octave@users.sourceforge.net> ## Copyright (C) 2014 Eugenio Gianniti <eugenio.gianniti@mail.polimi.it> ## ## This program is free software; you can redistribute it and/or modify it under ## the terms of the GNU General Public License as published by the Free Software ## Foundation; either version 3 of the License, or (at your option) any later ## version. ## ## This program is distributed in the hope that it will be useful, but WITHOUT ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more ## details. ## ## You should have received a copy of the GNU General Public License along with ## this program; if not, see <http://www.gnu.org/licenses/>. AC_PREREQ([2.67]) AC_INIT([Fem-fenics Package], [0.0.1]) AC_USE_SYSTEM_EXTENSIONS AC_PROG_CXX AC_LANG(C++) PKG_PROG_PKG_CONFIG # Get Dense include locations AC_ARG_WITH([eigen-includedir], [AS_HELP_STRING([--with-eigen-includedir=DIR], [location of the Eigen headers, defaults to /usr/include/])], [DENSE_CPPFLAGS="-I$withval"], [DENSE_CPPFLAGS='-I/usr/include/']) AC_SUBST(DENSE_CPPFLAGS) echo $DENSE_CPPFLAGS ## Check for Eigen AC_MSG_CHECKING([for eigen3]) EIGEN_CPPFLAGS= EIGEN_LIBS= PKG_CHECK_EXISTS([eigen3], [EIGEN_CPPFLAGS=`$PKG_CONFIG --cflags eigen3` EIGEN_LIBS=`$PKG_CONFIG --libs eigen3` AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([eigen3 required to install $PACKAGE_NAME])] ) AC_SUBST(EIGEN_CPPFLAGS) AC_SUBST(EIGEN_LIBS) ## Check for dolfin AC_MSG_CHECKING([for dolfin]) DOLFIN_CPPFLAGS= DOLFIN_LIBS= PKG_CHECK_EXISTS([dolfin], [DOLFIN_CPPFLAGS=`$PKG_CONFIG --cflags dolfin` DOLFIN_LIBS=`$PKG_CONFIG --libs dolfin` AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]) AC_MSG_ERROR([dolfin required to install $PACKAGE_NAME])] ) AC_SUBST(DOLFIN_CPPFLAGS) AC_SUBST(DOLFIN_LIBS) AC_CHECK_PROG([HAVE_FFC], [ffc], [yes], [no]) if [test $HAVE_FFC = "no"]; then AC_MSG_ERROR([ffc required to install $PACKAGE_NAME]) fi AC_CHECK_PROG([HAVE_MKOCTFILE], [mkoctfile], [yes], [no]) if [test $HAVE_MKOCTFILE = "no"]; then AC_MSG_ERROR([mkoctfile required to install $PACKAGE_NAME]) fi AC_CONFIG_FILES([Makefile ../inst/private/get_vars.m]) AC_OUTPUT