diff --git a/autogen.sh b/autogen.sh index 8b47ea506cbfd270dc3e5c69b9be81e5a96ff481..8e74485a363ea70308d8b48018579ba4758e37db 100755 --- a/autogen.sh +++ b/autogen.sh @@ -32,6 +32,14 @@ DIE=0 echo "or see http://www.gnu.org/software/automake" } +if ! test -f "$(aclocal --print-ac-dir)"/pkg.m4; then + echo + DIE=1 + echo "You must have pkg-config installed to compile libxml." + echo "Download the appropriate package for your distribution," + echo "or see https://www.freedesktop.org/wiki/Software/pkg-config/" +fi + if test "$DIE" -eq 1; then exit 1 fi