diff --git a/ChangeLog b/ChangeLog index dd8cc74feb..2fb6184bc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-03-05 Angus Leeming + + * autogen.sh: remove test for gettext. Belongs in configure. + Return 1 if autogen.sh exits abnormally. + 2005-03-02 Lars Gullik Bjonnes * configure.ac: dont setup gnome/Makefile diff --git a/autogen.sh b/autogen.sh index c96884bd04..8e45b0f43d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -6,26 +6,6 @@ AUTOMAKE="automake -a -c --foreign" AUTOCONF="autoconf" ACINCLUDE_FILES="lyxinclude.m4 libtool.m4 xforms.m4 qt.m4 gtk--.m4 gnome--.m4 gnome.m4 aspell.m4 pspell.m4 cygwin.m4 pkg.m4" -# Discover what version of gettext we are using. -gettext_version=`gettext --version 2>/dev/null | head -n 1` - -test "$gettext_version" != "" && { - echo "Using $gettext_version" -} || { - echo "LyX requires getttext >= 0.12" - exit -} - -case $gettext_version in - *' '0.1[2-4]*) - ;; - *) - echo "This gettext version is not supported by LyX." - echo "LyX supports only gettext 0.1[2-4]." - exit - ;; -esac - # Discover what version of automake we are using. automake_version=`$AUTOMAKE --version 2>/dev/null | head -n 1` @@ -33,7 +13,7 @@ test "$automake_version" != "" && { echo "Using $automake_version" } || { echo "LyX requires automake >= 1.5" - exit + exit 1 } case $automake_version in @@ -43,7 +23,7 @@ case $automake_version in echo "This automake version is not supported by LyX." echo "LyX only supports automake 1.[5-9]." - exit + exit 1 ;; esac @@ -54,7 +34,7 @@ test "$autoversion" != "" && { echo "Using $autoversion" } || { echo "LyX requires autoconf >= 2.52" - exit + exit 1 } case $autoversion in @@ -64,7 +44,7 @@ case $autoversion in *) echo "This autoconf version is not supported by LyX." echo "LyX only supports autoconf 2.5[2-9]." - exit + exit 1 ;; esac @@ -83,7 +63,7 @@ for prog in $M4 gm4 gnum4 m4; do done if test x$GNUM4 = x ; then echo "not found." - exit + exit 1 else echo `which $GNUM4` fi @@ -104,7 +84,7 @@ if ( $ACLOCAL --version ) < /dev/null > /dev/null 2>&1; then echo "done." else echo "aclocal not found -- aborting" - exit + exit 1 fi if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then @@ -116,7 +96,7 @@ if ( $AUTOHEADER --version ) < /dev/null > /dev/null 2>&1; then echo "done." else echo "autoheader not found -- aborting" - exit + exit 1 fi if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then @@ -128,7 +108,7 @@ if ( $AUTOMAKE --version ) < /dev/null > /dev/null 2>&1; then echo "done." else echo "automake not found -- aborting" - exit + exit 1 fi if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then @@ -140,7 +120,7 @@ if ( $AUTOCONF --version ) < /dev/null > /dev/null 2>&1; then echo "done." else echo "autoconf not found -- aborting" - exit + exit 1 fi # Autogenerate lib/configure.m4.