Skip to content

Commit

Permalink
search for gnulib-tool in a few places.
Browse files Browse the repository at this point in the history
  • Loading branch information
lavv17 committed Dec 4, 2015
1 parent 159fbd6 commit 27499f9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ test -n "$NO_AUTOMAKE" || (aclocal --version) < /dev/null > /dev/null 2>&1 || {
DIE=1
}

# try to find gnulib-tool
for dir in gnulib ../gnulib "$HOME/gnulib" /usr/share/gnulib; do
if [ -x "$dir/gnulib-tool" ]; then
PATH=$dir:$PATH
break
fi
done


(gnulib-tool --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "**Error**: You must have \`gnulib-tool' in PATH to compile $PKG_NAME."
Expand Down Expand Up @@ -132,7 +141,7 @@ do
echo "Running gettextize... Ignore non-fatal messages."
echo "no" | gettextize --force --copy --no-changelog
mv configure.ac~ configure.ac
mv m4/Makefile.am~ m4/Makefile.am
mv m4/Makefile.am~ m4/Makefile.am
echo "Making $dr/aclocal.m4 writable ..."
test -r $dr/aclocal.m4 && chmod u+w $dr/aclocal.m4
fi
Expand Down

0 comments on commit 27499f9

Please sign in to comment.