From f1855d38361f0c7c76e2bf063ed3243836afd1de Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Feb 2017 18:26:28 +0300 Subject: Add support for ACLOCAL_PATH in packages. New function env_aclocal_path New variable ENV_ACLOCAL_PATH --- scripts/include/common.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/include') diff --git a/scripts/include/common.sh b/scripts/include/common.sh index 0df1bba..c61111f 100644 --- a/scripts/include/common.sh +++ b/scripts/include/common.sh @@ -78,6 +78,11 @@ function env_path { check_error $? } +function env_aclocal_path { + echo "export ACLOCAL_PATH=${bindir}/$1:\$PATH" >>"${envfile}" + check_error $? +} + function env_lib_library_path { echo "export LD_LIBRARY_PATH=${bindir}/$1:\$LD_LIBRARY_PATH" >>"${envfile}" check_error $? @@ -249,6 +254,7 @@ function package_use { repack_paths "$ENV_LD_LIBRARY_PATH" "LD_LIBRARY_PATH" repack_paths "$ENV_PKG_CONFIG_PATH" "PKG_CONFIG_PATH" repack_paths "$ENV_MANPATH" "MANPATH" + repack_paths "$ENV_ACLOCAL_PATH" "ACLOCAL_PATH" } function common_use_package { -- cgit v1.2.3-70-g09d2