equal
deleted
inserted
replaced
26 AC_PROG_MAKE_SET |
26 AC_PROG_MAKE_SET |
27 AC_PROG_RANLIB |
27 AC_PROG_RANLIB |
28 AC_PROG_AWK |
28 AC_PROG_AWK |
29 |
29 |
30 # Check bison version, we need a version great or equal than 2.4 to build matiec. |
30 # Check bison version, we need a version great or equal than 2.4 to build matiec. |
31 [[[ $(bison --version) =~ ([0-9][.][0-9]*) ]]] && version_bison="${BASH_REMATCH[[1]]}" |
31 version_bison="$(bison --version | sed q | cut -d' ' -f4)" |
|
32 version_bison=${version_bison:0:3} |
32 |
33 |
33 AS_IF([awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'], |
34 AS_IF([awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'], |
34 [have_bison_correct=yes], [have_bison_correct=no]) |
35 [have_bison_correct=yes], [have_bison_correct=no]) |
35 |
36 |
36 |
37 |