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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.sh	Sat 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

-- 
David.Odin@xxxxxxxxxxx
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


[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux