configure
changeset 647 99b45154eb2c
parent 624 c2546c6e0cfa
child 649 83688d55d1ad
equal deleted inserted replaced
646:dd76ce4a7e22 647:99b45154eb2c
  4611   test -n "$AWK" && break
  4611   test -n "$AWK" && break
  4612 done
  4612 done
  4613 
  4613 
  4614 
  4614 
  4615 # Check bison version, we need a version great or equal than 2.4 to build matiec.
  4615 # Check bison version, we need a version great or equal than 2.4 to build matiec.
  4616 [[ $(bison --version) =~ ([0-9][.][0-9]*) ]] && version_bison="${BASH_REMATCH[1]}"
  4616 version_bison="$(bison --version | sed q | cut -d' ' -f4)"
       
  4617 version_bison=${version_bison:0:3}
  4617 
  4618 
  4618 if awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'; then :
  4619 if awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'; then :
  4619   have_bison_correct=yes
  4620   have_bison_correct=yes
  4620 else
  4621 else
  4621   have_bison_correct=no
  4622   have_bison_correct=no