4580 fi |
4580 fi |
4581 else |
4581 else |
4582 RANLIB="$ac_cv_prog_RANLIB" |
4582 RANLIB="$ac_cv_prog_RANLIB" |
4583 fi |
4583 fi |
4584 |
4584 |
|
4585 for ac_prog in gawk mawk nawk awk |
|
4586 do |
|
4587 # Extract the first word of "$ac_prog", so it can be a program name with args. |
|
4588 set dummy $ac_prog; ac_word=$2 |
|
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
4590 $as_echo_n "checking for $ac_word... " >&6; } |
|
4591 if ${ac_cv_prog_AWK+:} false; then : |
|
4592 $as_echo_n "(cached) " >&6 |
|
4593 else |
|
4594 if test -n "$AWK"; then |
|
4595 ac_cv_prog_AWK="$AWK" # Let the user override the test. |
|
4596 else |
|
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
4598 for as_dir in $PATH |
|
4599 do |
|
4600 IFS=$as_save_IFS |
|
4601 test -z "$as_dir" && as_dir=. |
|
4602 for ac_exec_ext in '' $ac_executable_extensions; do |
|
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
|
4604 ac_cv_prog_AWK="$ac_prog" |
|
4605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
|
4606 break 2 |
|
4607 fi |
|
4608 done |
|
4609 done |
|
4610 IFS=$as_save_IFS |
|
4611 |
|
4612 fi |
|
4613 fi |
|
4614 AWK=$ac_cv_prog_AWK |
|
4615 if test -n "$AWK"; then |
|
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
|
4617 $as_echo "$AWK" >&6; } |
|
4618 else |
|
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
4620 $as_echo "no" >&6; } |
|
4621 fi |
|
4622 |
|
4623 |
|
4624 test -n "$AWK" && break |
|
4625 done |
|
4626 |
|
4627 |
|
4628 # Check bison version, we need a version great or equal than 2.4 to build matiec. |
|
4629 [[ $(bison --version) =~ ([0-9][.][0-9]*) ]] && version_bison="${BASH_REMATCH[1]}" |
|
4630 |
|
4631 if awk -v ver="$version_bison" 'BEGIN { if (ver < 2.4) exit 1; }'; then : |
|
4632 have_bison_correct=yes |
|
4633 else |
|
4634 have_bison_correct=no |
|
4635 fi |
|
4636 |
|
4637 |
|
4638 if test "x${have_bison_correct}" = xno; then |
|
4639 echo "------------------------------------------" |
|
4640 echo " Wrong bison version: $version_bison < 2.4 " |
|
4641 echo "------------------------------------------" |
|
4642 (exit 1); exit 1; |
|
4643 fi |
4585 |
4644 |
4586 # Checks for header files. |
4645 # Checks for header files. |
4587 ac_ext=c |
4646 ac_ext=c |
4588 ac_cpp='$CPP $CPPFLAGS' |
4647 ac_cpp='$CPP $CPPFLAGS' |
4589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |