We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7caca85 commit fbac049Copy full SHA for fbac049
autogen.sh
@@ -22,7 +22,7 @@ if [ "`uname`" = "Darwin" ]; then
22
fi
23
24
# Check automake version
25
-AM_VERSION=`automake --version | sed -n -e 's#[^0-9]* \([0-9]*\)\.\([0-9]*\)\.*\([0-9]*\).*$#\1 \2 \3#p'`
+AM_VERSION=`automake --version | sed -n -e 's#^.* \([0-9]*\)\.\([0-9]*\)[^0-9]*\([0-9]*\).*$#\1 \2 \3#p'`
26
AM_V1=`echo $AM_VERSION | awk '{print $1}'`
27
AM_V2=`echo $AM_VERSION | awk '{print $2}'`
28
AM_V3=`echo $AM_VERSION | awk '{if ($NF > 2) print $3; else print "0";}'`
0 commit comments