-# install Lustre Git commit hooks by default - LU-2083
-for HOOK in commit-msg prepare-commit-msg; do
- [ -e .git/hooks/$HOOK ] || ln -sf ../build/$HOOK .git/hooks/
+# NOTE: Please avoid bashisms (bash specific syntax) in this script
+
+set -e
+
+for dir in libcfs lnet lustre snmp ; do
+ ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"