if some autotool fails, make sure we abort
SVN revision: 16446
This commit is contained in:
parent
0ceb458457
commit
df7dee0b37
20
autogen.sh
20
autogen.sh
|
@ -9,6 +9,12 @@ broken() {
|
||||||
echo "ERROR: $1 not found."
|
echo "ERROR: $1 not found."
|
||||||
exit -1
|
exit -1
|
||||||
}
|
}
|
||||||
|
abort() {
|
||||||
|
echo
|
||||||
|
echo "Running '$1' failed :("
|
||||||
|
echo "Try updating the package on your system and try again."
|
||||||
|
exit -2
|
||||||
|
}
|
||||||
|
|
||||||
DIE=0
|
DIE=0
|
||||||
|
|
||||||
|
@ -54,14 +60,16 @@ export LIBTOOLIZE ACLOCAL AUTOCONF AUTOHEADER AUTOMAKE
|
||||||
#fi
|
#fi
|
||||||
|
|
||||||
# Run the stuff.
|
# Run the stuff.
|
||||||
(set -x && $LIBTOOLIZE -c -f)
|
(set -x && $LIBTOOLIZE -c -f) || abort libtool
|
||||||
(set -x && $ACLOCAL -I . $ACLOCAL_FLAGS)
|
(set -x && $ACLOCAL -I . $ACLOCAL_FLAGS) || abort libtool
|
||||||
(set -x && $AUTOCONF)
|
(set -x && $AUTOCONF) || abort libtool
|
||||||
(set -x && $AUTOHEADER)
|
(set -x && $AUTOHEADER) || abort libtool
|
||||||
(set -x && $AUTOMAKE -a -c)
|
(set -x && $AUTOMAKE -a -c) || abort libtool
|
||||||
|
|
||||||
# Run configure.
|
# Run configure.
|
||||||
./configure "$@"
|
if test x"$NOCONFIGURE" = x; then
|
||||||
|
(set -x && ./configure "$@")
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f cvs.motd ]; then
|
if [ -f cvs.motd ]; then
|
||||||
echo "ATTENTION CVS Users!"
|
echo "ATTENTION CVS Users!"
|
||||||
|
|
Loading…
Reference in New Issue