X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=tools%2Fautomake%2Ffiles%2Faclocal;fp=tools%2Fautomake%2Ffiles%2Faclocal;h=60278e2ab089ffde394c908e2b49ec6cb784c470;hb=6b4e3e7609c9bb00df8c9c1e789ef95d95df69ab;hp=a586ccc61f31088ee35238532404bb0b2c180e6c;hpb=34837ea2ddce6d22d90eda3ffe198c6ba6267167;p=lede-git%2F.git diff --git a/tools/automake/files/aclocal b/tools/automake/files/aclocal index a586ccc61f..60278e2ab0 100755 --- a/tools/automake/files/aclocal +++ b/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 $@