[PATCH 1/2] autogen.sh: warn if gtkdocize is missing, exit on error



Signed-off-by: Petr Vorel <petr vorel gmail com>
---
 autogen.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/autogen.sh b/autogen.sh
index 5ec9a5a..86f89cc 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,7 +22,14 @@ PKG_NAME=NetworkManager
 
 cd $srcdir
 
-gtkdocize
+GTKDOCIZE=`which gtkdocize` || true
+if test -z $GTKDOCIZE; then
+    echo "**Error**: No GTK-Doc found, please install it" >&2
+    exit 1
+else
+    gtkdocize || exit $?
+fi
+
 autopoint --force
 AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose
 
-- 
2.1.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]