support for automake 1.10. Patch courtesy of scop on trac. Fix #1041
authorChristophe Mutricy <xtophe@videolan.org>
Sun, 4 Feb 2007 20:20:41 +0000 (20:20 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Sun, 4 Feb 2007 20:20:41 +0000 (20:20 +0000)
bootstrap

index 06199fd..54c112c 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -64,10 +64,10 @@ esac
 
 # Check for automake
 amvers="no"
-for v in "-1.9" "19" "-1.8" "18" "-1.7" "17"; do
+for v in "-1.10" "110" "-1.9" "19" "-1.8" "18" "-1.7" "17"; do
   if automake${v} --version >/dev/null 2>&1; then
     amsuff="${v}"
-    amvers="${v}"
+    amvers="`echo ${v} | sed -e 's/^-//'`"
     break
   fi
 done
@@ -125,8 +125,8 @@ else
   PKGCONFIG=no
 fi
 
-aclocal=aclocal${amvers}
-automake=automake${amvers}
+aclocal=aclocal${amsuff}
+automake=automake${amsuff}
 autoconf=autoconf
 autoheader=autoheader