]> git.lyx.org Git - lyx.git/commitdiff
Check for automake >= 1.5 and for gettext >= 0.12.
authorAngus Leeming <leeming@lyx.org>
Wed, 23 Feb 2005 14:54:20 +0000 (14:54 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 23 Feb 2005 14:54:20 +0000 (14:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9672 a592a061-630c-0410-9148-cb99ea01b6c8

ChangeLog
INSTALL
autogen.sh

index 409bb0b5ef94c0a8bbbcc6c46803044ee194e00b..1fa22ea6aca84ca384f5a524d2bfd2dfab7b1ce4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-02-23  Angus Leeming  <leeming@lyx.org>
+
+       * autogen.sh: test for automake >= 1.5 and for gettext >= 0.12.
+
+       * INSTALL: document these requirements.
+
 2005-02-09  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * Makefile.am: remove hack for making bindist work with autoconf
diff --git a/INSTALL b/INSTALL
index 6a4bd0fbbbfe95fa6e5b05748a10cd9b129c8cdc..a3d4db782ee5bda2b41a1e27a41feb7f221d3f6b 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -29,9 +29,11 @@ These four steps will compile, test and install LyX:
 Note for CVS checkouts
 ----------------------
 
-If you have checked this out from CVS, you need to have
-automake, autoconf, and gettext installed.  Then,
-type "./autogen.sh" to build the needed configuration
+If you have checked this out from CVS, you need to have:
+* automake >= 1.5
+* autoconf >= 2.52
+* gettext >= 0.12
+Then type "./autogen.sh" to build the needed configuration
 files and proceed as stated below.
 
 You will also probably need GNU m4 (perhaps installed as gm4).
@@ -41,16 +43,17 @@ Requirements
 
 First of all, you will also need a recent C++ compiler, where recent
 means that the compilers are close to C++ standard conforming.
-Compilers that are known to compile LyX are egcs 1.1.x, gcc 2.95.x and
-later, and Digital C++ version 6.1 and later. Please tell us your
-experience with other compilers. It is _not_ possible to compile LyX
-with gcc 2.7.x and 2.8.x, and this is not likely to change in the
-future.
-
-Note that, contrary to LyX 1.0.x, LyX 1.3.x makes great use of C++
-Standard Template Library (STL); this means that gcc users will have
-to install the relevant libstdc++ library to be able to compile this
-version.
+Compilers that are known to compile LyX are gcc 2.95.x and later
+and Digital C++ version 6.1 and later. Please tell us your experience
+with other compilers.
+
+It is _not_ possible to compile LyX with gcc 2.7.x and 2.8.x.
+
+LyX 1.4.x makes great use of C++ Standard Template Library (STL).
+This means that gcc users will have to install the relevant libstdc++
+library to be able to compile this version of LyX. Users of gcc 2.95.x
+will have to install the STLPort version of these libraries as the
+ones that come with gcc 2.95.x are too broken for us to use.
 
 * xforms frontend
 
index 0b75d7be01b4f15d7cebe68a6921e547f81ba700..20065e9545f991e6ebdd3b5f2772aa8f415312b3 100755 (executable)
@@ -6,12 +6,59 @@ 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`
+
+test "$automake_version" != "" && {
+    echo "Using $automake_version"
+} || {
+    echo "LyX requires automake >= 1.5"
+    exit
+}
+
+case $automake_version in
+    *' '1.[5-7]*)
+       ;;
+    *)
+    
+       echo "This automake version is not supported by LyX."
+        echo "LyX only supports automake 1.[5-7]."
+        exit
+        ;;
+esac
+                                                       
 # Discover what version of autoconf we are using.
-autoversion=`$AUTOCONF --version | head -n 1`
+autoversion=`$AUTOCONF --version 2>/dev/null | head -n 1`
 
-echo "Using $autoversion"
+test "$autoversion" != "" && {
+    echo "Using $autoversion"
+} || {
+    echo "LyX requires autoconf >= 2.52"
+    exit
+}
+           
 case $autoversion in
-    *2.5[2-9])
+    *' '2.5[2-9])
        EXTRA_ACINCLUDE_FILES="lyxinclude25x.m4"
        ;;
     *)