]> sourceware.org Git - glibc.git/blob - sysdeps/aarch64/configure
Require autoconf 2.69
[glibc.git] / sysdeps / aarch64 / configure
1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/aarch64.
3
4 # We check to see if the compiler and flags are
5 # selecting the big endian ABI and if they are then
6 # we set libc_cv_aarch64_be to yes which causes
7 # HAVE_AARCH64_BE to be defined in config.h and
8 # in include/libc-symbols.h and thus available to
9 # shlib-versions to select the appropriate name for
10 # the dynamic linker via %ifdef.
11
12
13 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
14 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
15 if ${ac_cv_path_GREP+:} false; then :
16 $as_echo_n "(cached) " >&6
17 else
18 if test -z "$GREP"; then
19 ac_path_GREP_found=false
20 # Loop through the user's path and test for each of PROGNAME-LIST
21 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
23 do
24 IFS=$as_save_IFS
25 test -z "$as_dir" && as_dir=.
26 for ac_prog in grep ggrep; do
27 for ac_exec_ext in '' $ac_executable_extensions; do
28 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
29 as_fn_executable_p "$ac_path_GREP" || continue
30 # Check for GNU ac_path_GREP and select it if it is found.
31 # Check for GNU $ac_path_GREP
32 case `"$ac_path_GREP" --version 2>&1` in
33 *GNU*)
34 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
35 *)
36 ac_count=0
37 $as_echo_n 0123456789 >"conftest.in"
38 while :
39 do
40 cat "conftest.in" "conftest.in" >"conftest.tmp"
41 mv "conftest.tmp" "conftest.in"
42 cp "conftest.in" "conftest.nl"
43 $as_echo 'GREP' >> "conftest.nl"
44 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
45 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
46 as_fn_arith $ac_count + 1 && ac_count=$as_val
47 if test $ac_count -gt ${ac_path_GREP_max-0}; then
48 # Best one so far, save it but keep looking for a better one
49 ac_cv_path_GREP="$ac_path_GREP"
50 ac_path_GREP_max=$ac_count
51 fi
52 # 10*(2^10) chars as input seems more than enough
53 test $ac_count -gt 10 && break
54 done
55 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
56 esac
57
58 $ac_path_GREP_found && break 3
59 done
60 done
61 done
62 IFS=$as_save_IFS
63 if test -z "$ac_cv_path_GREP"; then
64 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
65 fi
66 else
67 ac_cv_path_GREP=$GREP
68 fi
69
70 fi
71 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
72 $as_echo "$ac_cv_path_GREP" >&6; }
73 GREP="$ac_cv_path_GREP"
74
75
76 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
77 $as_echo_n "checking for egrep... " >&6; }
78 if ${ac_cv_path_EGREP+:} false; then :
79 $as_echo_n "(cached) " >&6
80 else
81 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
82 then ac_cv_path_EGREP="$GREP -E"
83 else
84 if test -z "$EGREP"; then
85 ac_path_EGREP_found=false
86 # Loop through the user's path and test for each of PROGNAME-LIST
87 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
89 do
90 IFS=$as_save_IFS
91 test -z "$as_dir" && as_dir=.
92 for ac_prog in egrep; do
93 for ac_exec_ext in '' $ac_executable_extensions; do
94 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
95 as_fn_executable_p "$ac_path_EGREP" || continue
96 # Check for GNU ac_path_EGREP and select it if it is found.
97 # Check for GNU $ac_path_EGREP
98 case `"$ac_path_EGREP" --version 2>&1` in
99 *GNU*)
100 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
101 *)
102 ac_count=0
103 $as_echo_n 0123456789 >"conftest.in"
104 while :
105 do
106 cat "conftest.in" "conftest.in" >"conftest.tmp"
107 mv "conftest.tmp" "conftest.in"
108 cp "conftest.in" "conftest.nl"
109 $as_echo 'EGREP' >> "conftest.nl"
110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
112 as_fn_arith $ac_count + 1 && ac_count=$as_val
113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
114 # Best one so far, save it but keep looking for a better one
115 ac_cv_path_EGREP="$ac_path_EGREP"
116 ac_path_EGREP_max=$ac_count
117 fi
118 # 10*(2^10) chars as input seems more than enough
119 test $ac_count -gt 10 && break
120 done
121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
122 esac
123
124 $ac_path_EGREP_found && break 3
125 done
126 done
127 done
128 IFS=$as_save_IFS
129 if test -z "$ac_cv_path_EGREP"; then
130 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
131 fi
132 else
133 ac_cv_path_EGREP=$EGREP
134 fi
135
136 fi
137 fi
138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
139 $as_echo "$ac_cv_path_EGREP" >&6; }
140 EGREP="$ac_cv_path_EGREP"
141
142
143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
144 $as_echo_n "checking for big endian... " >&6; }
145 if ${libc_cv_aarch64_be+:} false; then :
146 $as_echo_n "(cached) " >&6
147 else
148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
149 /* end confdefs.h. */
150 #ifdef __AARCH64EB__
151 yes
152 #endif
153
154 _ACEOF
155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
156 $EGREP "yes" >/dev/null 2>&1; then :
157 libc_cv_aarch64_be=yes
158 else
159 libc_cv_aarch64_be=no
160 fi
161 rm -f conftest*
162
163 fi
164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_aarch64_be" >&5
165 $as_echo "$libc_cv_aarch64_be" >&6; }
166 if test $libc_cv_aarch64_be = yes; then
167 $as_echo "#define HAVE_AARCH64_BE 1" >>confdefs.h
168
169 config_vars="$config_vars
170 default-abi = lp64_be"
171 else
172 config_vars="$config_vars
173 default-abi = lp64"
174 fi
This page took 0.042965 seconds and 5 git commands to generate.