apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr/build buildcheck.sh
Date Sun, 04 Jan 2004 11:26:22 GMT
jorton      2004/01/04 03:26:22

  Modified:    build    buildcheck.sh
  Log:
  * build/buildcheck.sh: Determine libtool version correctly for
  --version output from current libtool CVS.
  
  Revision  Changes    Path
  1.8       +7 -2      apr/build/buildcheck.sh
  
  Index: buildcheck.sh
  ===================================================================
  RCS file: /home/cvs/apr/build/buildcheck.sh,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -b -d -u -r1.7 -r1.8
  --- buildcheck.sh	16 Jun 2003 20:47:21 -0000	1.7
  +++ buildcheck.sh	4 Jan 2004 11:26:22 -0000	1.8
  @@ -20,9 +20,14 @@
   echo "buildconf: autoconf version $ac_version (ok)"
   fi
   
  -# libtool 1.3.3 or newer
  +# Sample libtool --version outputs:
  +# ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
  +# ltmain.sh (GNU libtool 1.1361 2004/01/02 23:10:52) 1.5a
  +# output is multiline from 1.5 onwards
  +
  +# Require libtool 1.3.3 or newer
   libtool=`build/PrintPath glibtool libtool`
  -lt_pversion=`$libtool --version 2>/dev/null|head -1|sed -e 's/^[^0-9]*//' -e 's/[- ].*//'`
  +lt_pversion=`$libtool --version 2>/dev/null|sed -e 's/([^)]*)//g;s/^[^0-9]*//;s/[- ].*//g;q'`
   if test -z "$lt_pversion"; then
   echo "buildconf: libtool not found."
   echo "           You need libtool version 1.3.3 or newer installed"
  
  
  

Mime
View raw message