mapnik/configure
Michael Reichert a5a96aacad Fix configure script for variables read from mapnik-settings.env
Custom build variables (e.g. CXX_STD or CXX) read from
mapnik-settings.env have to be provided as command line arguments
because SCons does not respect the environment variables.
2023-11-23 22:04:58 +01:00

20 lines
555 B
Bash
Executable file

#! /bin/sh
set -eu
: ${PYTHON:=python}
# mapnik-settings.env is an optional file to store
# environment variables that should be used before
# running tests like PROJ_LIB, GDAL_DATA, and ICU_DATA
# These do not normally need to be set except when
# building against binary versions of dependencies like
# done via bootstrap.sh
if [ -f mapnik-settings.env ]; then
echo "Inheriting from mapnik-settings.env"
. ./mapnik-settings.env
fi
VARS=( $(cat mapnik-settings.env) )
$PYTHON scons/scons.py --implicit-deps-changed configure ${VARS[*]} "$@"