Require autoconf 2.69
[glibc.git] / sysdeps / arm / armv7 / configure
blobfc8f43436d1f4c1a5ec67a24dcdc63cd9b21e588
1 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2  # Local configure fragment for sysdeps/arm/armv7.
4 # We need binutils 2.21 to ensure that NEON alignments are assembled correctly.
5 libc_cv_arm_as_version_ok=yes
6 for ac_prog in $AS
7 do
8   # Extract the first word of "$ac_prog", so it can be a program name with args.
9 set dummy $ac_prog; ac_word=$2
10 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11 $as_echo_n "checking for $ac_word... " >&6; }
12 if ${ac_cv_prog_AS+:} false; then :
13   $as_echo_n "(cached) " >&6
14 else
15   if test -n "$AS"; then
16   ac_cv_prog_AS="$AS" # Let the user override the test.
17 else
18 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19 for as_dir in $PATH
21   IFS=$as_save_IFS
22   test -z "$as_dir" && as_dir=.
23     for ac_exec_ext in '' $ac_executable_extensions; do
24   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25     ac_cv_prog_AS="$ac_prog"
26     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27     break 2
28   fi
29 done
30   done
31 IFS=$as_save_IFS
35 AS=$ac_cv_prog_AS
36 if test -n "$AS"; then
37   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
38 $as_echo "$AS" >&6; }
39 else
40   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41 $as_echo "no" >&6; }
45   test -n "$AS" && break
46 done
48 if test -z "$AS"; then
49   ac_verc_fail=yes
50 else
51   # Found it, now check the version.
52   { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of $AS" >&5
53 $as_echo_n "checking version of $AS... " >&6; }
54   ac_prog_version=`$AS --version 2>&1 | sed -n 's/^.*GNU assembler.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
55   case $ac_prog_version in
56     '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
57     2.1[0-9][0-9]*|2.2[1-9]*|2.[3-9][0-9]*|[3-9].*|[1-9][0-9]*)
58        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
59     *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
61   esac
62   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
63 $as_echo "$ac_prog_version" >&6; }
65 if test $ac_verc_fail = yes; then
66   libc_cv_arm_as_version_ok=no
70 if test $libc_cv_arm_as_version_ok != yes; then
71   as_fn_error $? "as version too old, at least 2.21 is required" "$LINENO" 5