Re: Wrong test for newer/older version of autoconf in the cvs

2000-06-25 Thread Steinar H. Gunderson

On Sun, Jun 25, 2000 at 01:39:43AM +0200, David Odin wrote:
Testing autoconf...
expr: syntax error
too old! (Need 2.13, have 2.14
  [ ... ]

Most likely, you have 2.14a or something like that. I sent a patch
to Sven a few days ago that should fix this -- you may want to do
a CVS update to see if he's commited it. If not, here's the patch I
sent Sven:

--- autogen.sh.old  Sat Jun 24 02:01:48 2000
+++ autogen.sh  Sat Jun 24 02:07:27 2000
@@ -34,7 +34,7 @@
 echo

 echo "Testing autoconf... "
-VER=`autoconf --version | sed "s/.* \([0-9.]*\)$/\1/"`
+VER=`autoconf --version | sed "s/.* \([0-9.]*\)[a-z]\?$/\1/"`
 if expr $VER \= 2.13 /dev/null; then
echo "looks OK."
 else
@@ -43,7 +43,7 @@
 fi

 echo "Testing automake... "
-VER=`automake --version | grep automake | sed "s/.* \([0-9.]*\)$/\1/"`
+VER=`automake --version | grep automake | sed "s/.* \([0-9.]*\)[a-z]\?$/\1/"`
 if expr $VER \= 1.4 /dev/null; then
echo "looks OK."
 else
@@ -52,7 +52,7 @@
 fi

 echo "Testing gettextize... "
-VER=`gettextize --version | grep gettext | sed "s/.* \([0-9.]*\)$/\1/;s/0.//"`
+VER=`gettextize --version | grep gettext | sed "s/.* \([0-9.]*\)[a-z]\?$/\1/;s/0.//"`
 if expr $VER \= 10.35 /dev/null; then
echo "looks OK."
 else

/* Steinar */
-- 
Homepage: http://members.xoom.com/sneeze/



Re: Wrong test for newer/older version of autoconf in the cvs

2000-06-25 Thread David Odin

On Sun, Jun 25, 2000 at 03:30:55PM +0200, David Odin wrote:
 On Sun, Jun 25, 2000 at 02:26:57PM +0200, Steinar H. Gunderson wrote:
  On Sun, Jun 25, 2000 at 01:39:43AM +0200, David Odin wrote:
  Testing autoconf...
  expr: syntax error
  too old! (Need 2.13, have 2.14
[ ... ]
  
  Most likely, you have 2.14a or something like that.
 
   Yes I have 2.14a
 
  I sent a patch
  to Sven a few days ago that should fix this -- you may want to do
  a CVS update to see if he's commited it. If not, here's the patch I
  sent Sven:
[ ... ]
 
   This patch was already applied when I first report this buglet.
   It seems that $VER contains more than one line.
   The following patch fixes that problem:

  [ ... ]

After having tried w/ Autoconf 2.13, it seems that this patch is more
appropriate:

--
diff -Nru gimp.orig/autogen.sh gimp/autogen.sh
--- gimp.orig/autogen.shSat Jun 24 02:32:27 2000
+++ gimp/autogen.sh Sun Jun 25 15:21:56 2000
@@ -34,7 +34,7 @@
 echo
 
 echo "Testing autoconf... "
-VER=`autoconf --version | sed "s/.* \([0-9.]*\)[a-z]\?$/\1/"`
+VER=`autoconf --version | head -1 | sed "s/.* \([0-9.]*\)[a-z]\?$/\1/"`
 if expr $VER \= 2.13 /dev/null; then
echo "looks OK."
 else
---

Regards,

  DindinX

-- 
[EMAIL PROTECTED]
Author of the French Book: Programmation Linux avec GTK+

"There are some things that even a baby shouldn't fool around with."
   -- Tommy, from Angelica The Magnificent