[DVDnav-discuss] r1080 - trunk/libdvdread/autogen.sh

nicodvb subversion at mplayerhq.hu
Fri Jun 6 22:42:52 CEST 2008


Author: nicodvb
Date: Fri Jun  6 22:42:52 2008
New Revision: 1080

Log:
simplified try_libtool_executable()

Modified:
   trunk/libdvdread/autogen.sh

Modified: trunk/libdvdread/autogen.sh
==============================================================================
--- trunk/libdvdread/autogen.sh	(original)
+++ trunk/libdvdread/autogen.sh	Fri Jun  6 22:42:52 2008
@@ -85,17 +85,13 @@ run_autoconf () {
 #-------------------
 try_libtool_executable() {
   libtool=$1
-  set -- `type $libtool 2>/dev/null`
-  RETVAL=$?
-  NUM_RESULT=$#
-  RESULT_FILE=$3
-  if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then
     LT="`$libtool --version | awk '{ print $4 }' | sed -e 's/[a-zA-Z\ \.\(\)\-\;]//g'`"
+    if test "$LT" -ne "" ; then
     LIBTOOL_MIN="`echo $LIBTOOL_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`"
     if test $LT -lt 100 ; then
       LT=`expr $LT \* 10`
     fi
-    if [ `expr $LT` -ge $LIBTOOL_MIN ]; then
+    if [ `expr "$LT"` -ge $LIBTOOL_MIN ]; then
       libtool_ok=yes
     fi
   fi



More information about the DVDnav-discuss mailing list