From f7770a6b63f94c1a649b43ac0575dee058a5208e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 9 Oct 2008 19:58:11 +0000 Subject: [PATCH] In `bashrc', don't add non-existent directories to `ACLOCAL_PATH'. svn path=/nixos/trunk/; revision=13033 --- etc/bashrc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/etc/bashrc.sh b/etc/bashrc.sh index a396a7c302d..0a4195a56d1 100644 --- a/etc/bashrc.sh +++ b/etc/bashrc.sh @@ -39,7 +39,13 @@ for i in $NIX_PROFILES; do # !!! reverse export PATH=$i/bin:$i/sbin:$PATH export INFOPATH=$i/info:$i/share/info:$INFOPATH export PKG_CONFIG_PATH="$i/lib/pkgconfig:$PKG_CONFIG_PATH" - export ACLOCAL_PATH="$i/share/aclocal:$ACLOCAL_PATH" + + # Automake's `aclocal' bails out if it finds non-existent directories + # in its path. + if [ -d "$i/share/aclocal" ] + then + export ACLOCAL_PATH="$i/share/aclocal:$ACLOCAL_PATH" + fi done