Add support for NOCONFIGURE environment variable. Patch by Charles A Edwards
[claws.git] / autogen.sh
index 94d58e34fd5d04cc3247bd88622224082b6377b8..8f2d7468249c9205dbe76b561ce277fae16f3d32 100755 (executable)
@@ -74,11 +74,18 @@ else
        fi
 fi
 
+intltoolver=`intltoolize --version`
+if [ "$intltoolver" = "" ]; then
+       echo intltool is needed to compile Claws Mail git
+       exit 1
+fi
 
 aclocal -I m4 \
   && libtoolize --force --copy \
   && autoheader \
   && automake --add-missing --foreign --copy \
   && autoconf \
-  && intltoolize -f \
-  && ./configure --enable-maintainer-mode $@
+  && intltoolize -f --automake
+if test -z "$NOCONFIGURE"; then
+exec ./configure --enable-maintainer-mode $@
+fi