]> sourceware.org Git - glibc.git/blob - sysdeps/unix/sysv/linux/mips/configure
* sysdeps/unix/sysv/linux/configure.in: Move binutils check to...
[glibc.git] / sysdeps / unix / sysv / linux / mips / configure
1 # Local configure fragment for sysdeps/unix/sysv/linux/mips.
2
3 for ac_prog in $AS
4 do
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
11 else
12 if test -n "$AS"; then
13 ac_cv_prog_AS="$AS" # Let the user override the test.
14 else
15 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16 ac_dummy="$PATH"
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"
21 break
22 fi
23 done
24 IFS="$ac_save_ifs"
25 fi
26 fi
27 AS="$ac_cv_prog_AS"
28 if test -n "$AS"; then
29 echo "$ac_t""$AS" 1>&6
30 else
31 echo "$ac_t""no" 1>&6
32 fi
33
34 test -n "$AS" && break
35 done
36
37 if test -z "$AS"; then
38 ac_verc_fail=yes
39 else
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;;
49
50 esac
51 echo "$ac_t""$ac_prog_version" 1>&6
52 fi
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
57 fi
58
59 s%@AS@%$AS%g
This page took 0.044561 seconds and 6 git commands to generate.