3 # guile-gdal --- FFI bindings for GDAL with extensions
4 # Copyright (c) 2021 Ahmet Artu Yildirim <ahmet@artulab.com>
6 # This file is part of guile-gdal.
8 # Guile-gdal is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as
10 # published by the Free Software Foundation; either version 3 of the
11 # License, or (at your option) any later version.
13 # Guile-gdal is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU Lesser General Public
19 # License along with guile-gdal. If not, see
20 # <http://www.gnu.org/licenses/>.
22 AC_INIT(guile-gdal, 0.0.1)
23 AC_CONFIG_SRCDIR(gdal)
24 AC_CONFIG_AUX_DIR([build-aux])
25 AM_INIT_AUTOMAKE([color-tests -Wall -Wno-portability foreign])
26 AC_CONFIG_MACRO_DIRS([m4])
28 GUILE_PKG([3.0 2.2 2.0])
32 if test "x$GUILD" = "x"; then
33 AC_MSG_ERROR(['guile' binary not found; please check your guile-2.x installation.])
38 if test "x$GDAL_VERSION" = "x"; then
39 AC_MSG_ERROR(['gdal' library not found; please check your gdal installation.])
43 AC_ARG_WITH([libgdal-path],
44 [AS_HELP_STRING([--with-libgdal-path=PATH], [PATH of gdal dynamic library])],
45 [LIBGDAL_PATH="$withval"],
46 [LIBGDAL_PATH="/usr/lib/libgdal.so"])
48 AC_MSG_CHECKING([for libgdal shared library path])
49 AC_MSG_RESULT([$LIBGDAL_PATH])
50 AC_SUBST([LIBGDAL_PATH])
52 AC_CONFIG_FILES([Makefile gdal/config.scm])
53 AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env])