From 2f77108c45a5f38589d34482655d64c10c3b6ae5 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Sun, 13 Jul 2014 17:40:57 -0700 Subject: autogen: Check for autopoint before attempting to run it (bzr r13453) --- autogen.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/autogen.sh b/autogen.sh index fcac2d4de..0a9cb7924 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,18 +15,24 @@ test -n "$srcdir" || srcdir=. olddir=`pwd` cd $srcdir -AUTORECONF=`which autoreconf` -if test -z $AUTORECONF; then +WHICH_AUTORECONF=`which autoreconf` +if test -z $WHICH_AUTORECONF; then echo "*** No autoreconf found, please install it ***" exit 1 fi -INTLTOOLIZE=`which intltoolize` -if test -z $INTLTOOLIZE; then +WHICH_INTLTOOLIZE=`which intltoolize` +if test -z $WHICH_INTLTOOLIZE; then echo "*** No intltoolize found, please install the intltool package ***" exit 1 fi +WHICH_AUTOPOINT=`which autopoint` +if test -z $WHICH_AUTOPOINT; then + echo "*** No autopoint found, please install the autopoint package ***" + exit 1 +fi + autopoint --force AUTOPOINT='intltoolize --automake --copy' autoreconf --force --install --verbose -- cgit v1.2.3