Browse Source

Check for existence of target aclocal folder before including them.

SVN-Revision: 12934
Lars-Peter Clausen 17 years ago
parent
commit
6b4e3e7609
1 changed files with 9 additions and 4 deletions
  1. 9 4
      tools/automake/files/aclocal

+ 9 - 4
tools/automake/files/aclocal

@@ -1,5 +1,10 @@
 #!/usr/bin/env sh
-aclocal.real \
-    -I ${STAGING_DIR}/host/share/aclocal \
-    -I ${STAGING_DIR}/usr/share/aclocal \
-    $@
+if [ -d ${STAGING_DIR}/host/share/aclocal ]; then
+    aclocal_include_dirs="-I ${STAGING_DIR}/host/share/aclocal"
+else
+    aclocal_include_dirs=
+fi
+if [ -d ${STAGING_DIR}/usr/share/aclocal ]; then
+    aclocal_include_dirs="$aclocal_include_dirs -I ${STAGING_DIR}/usr/share/aclocal"
+fi
+aclocal.real $aclocal_include_dirs $@