1 # Local configure fragment for sysdeps/unix/sysv/linux/mips.
5 # Extract the first word of "$ac_prog", so it can be a program name with args.
6 set dummy $ac_prog; ac_word=$2
7 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8 echo "configure:9: checking for $ac_word" >&5
9 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
10 echo $ac_n "(cached) $ac_c" 1>&6
12 if test -n "$AS"; then
13 ac_cv_prog_AS="$AS" # Let the user override the test.
15 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
17 for ac_dir in $ac_dummy; do
18 test -z "$ac_dir" && ac_dir=.
19 if test -f $ac_dir/$ac_word; then
20 ac_cv_prog_AS="$ac_prog"
28 if test -n "$AS"; then
29 echo "$ac_t""$AS" 1>&6
34 test -n "$AS" && break
37 if test -z "$AS"; then
40 # Found it, now check the version.
41 echo $ac_n "checking version of $AS""... $ac_c" 1>&6
42 echo "configure:43: checking version of $AS" >&5
43 ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\(-ia64-[0-9]*\)*\).*$/\1/p'`
44 case $ac_prog_version in
45 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
46 2.11.90.0.[5-9]* | 2.11.90.[1-9]* | 2.11.9[1-9]* | 2.11.[1-9]* | 2.1[2-9]*| 2.[2-9]*)
47 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
48 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
51 echo "$ac_t""$ac_prog_version" 1>&6
53 if test $ac_verc_fail = yes; then
54 echo "configure: warning: *** Your binutils versions are too old.
55 *** We strongly advise to update binutils. For details check
56 *** the FAQ and INSTALL documents." 1>&2