3 # Copyright (C) 2020 Ahmet Artu Yildirim
5 # orca is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation, either version 3 of
8 # the License, or (at your option) any later version.
10 # orca is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with orca. If not, see <https://www.gnu.org/licenses/>.
18 AC_INIT(guile-orca, 0.1.0)
19 AC_CONFIG_SRCDIR(orca)
20 AC_CONFIG_AUX_DIR([build-aux])
21 AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
22 AC_CONFIG_MACRO_DIRS([m4])
24 GUILE_PKG([3.0 2.2 2.0])
28 if test "x$GUILD" = "x"; then
29 AC_MSG_ERROR(['guile' binary not found; please check your guile-2.x installation.])
32 AC_ARG_WITH([libmpi-path],
33 [AS_HELP_STRING([--with-libmpi-path=PATH], [PATH of mpi dynamic library])],
34 [LIBMPI_PATH="$withval"],
35 [LIBMPI_PATH="libmpich.so"])
37 AC_MSG_CHECKING([for libmpi shared library path])
38 AC_MSG_RESULT([$LIBMPI_PATH])
39 AC_SUBST([LIBMPI_PATH])
41 AC_CONFIG_FILES([Makefile orca/config.scm])
42 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])