1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/arm.
4 #AC_DEFINE(PI_STATIC_AND_HIDDEN)
6 # We check to see if the compiler and flags are
7 # selecting the hard-float ABI and if they are then
8 # we set libc_cv_arm_pcs_vfp to yes which causes
9 # HAVE_ARM_PCS_VFP to be defined in config.h and
10 # in include/libc-symbols.h and thus available to
11 # shlib-versions to select the appropriate name for
12 # the dynamic linker via %ifdef.
15 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
16 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
17 if ${ac_cv_path_GREP+:} false; then :
18 $as_echo_n "(cached) " >&6
20 if test -z "$GREP"; then
21 ac_path_GREP_found=false
22 # Loop through the user's path and test for each of PROGNAME-LIST
23 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
27 test -z "$as_dir" && as_dir=.
28 for ac_prog in grep ggrep; do
29 for ac_exec_ext in '' $ac_executable_extensions; do
30 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
31 as_fn_executable_p "$ac_path_GREP" || continue
32 # Check for GNU ac_path_GREP and select it if it is found.
33 # Check for GNU $ac_path_GREP
34 case `"$ac_path_GREP" --version 2>&1` in
36 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
39 $as_echo_n 0123456789 >"conftest.in"
42 cat "conftest.in" "conftest.in" >"conftest.tmp"
43 mv "conftest.tmp" "conftest.in"
44 cp "conftest.in" "conftest.nl"
45 $as_echo 'GREP' >> "conftest.nl"
46 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
47 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
48 as_fn_arith $ac_count + 1 && ac_count=$as_val
49 if test $ac_count -gt ${ac_path_GREP_max-0}; then
50 # Best one so far, save it but keep looking for a better one
51 ac_cv_path_GREP="$ac_path_GREP"
52 ac_path_GREP_max=$ac_count
54 # 10*(2^10) chars as input seems more than enough
55 test $ac_count -gt 10 && break
57 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
60 $ac_path_GREP_found && break 3
65 if test -z "$ac_cv_path_GREP"; then
66 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
73 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
74 $as_echo "$ac_cv_path_GREP" >&6; }
75 GREP="$ac_cv_path_GREP"
78 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
79 $as_echo_n "checking for egrep... " >&6; }
80 if ${ac_cv_path_EGREP+:} false; then :
81 $as_echo_n "(cached) " >&6
83 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
84 then ac_cv_path_EGREP="$GREP -E"
86 if test -z "$EGREP"; then
87 ac_path_EGREP_found=false
88 # Loop through the user's path and test for each of PROGNAME-LIST
89 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
93 test -z "$as_dir" && as_dir=.
94 for ac_prog in egrep; do
95 for ac_exec_ext in '' $ac_executable_extensions; do
96 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
97 as_fn_executable_p "$ac_path_EGREP" || continue
98 # Check for GNU ac_path_EGREP and select it if it is found.
99 # Check for GNU $ac_path_EGREP
100 case `"$ac_path_EGREP" --version 2>&1` in
102 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
105 $as_echo_n 0123456789 >"conftest.in"
108 cat "conftest.in" "conftest.in" >"conftest.tmp"
109 mv "conftest.tmp" "conftest.in"
110 cp "conftest.in" "conftest.nl"
111 $as_echo 'EGREP' >> "conftest.nl"
112 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
113 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
114 as_fn_arith $ac_count + 1 && ac_count=$as_val
115 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
116 # Best one so far, save it but keep looking for a better one
117 ac_cv_path_EGREP="$ac_path_EGREP"
118 ac_path_EGREP_max=$ac_count
120 # 10*(2^10) chars as input seems more than enough
121 test $ac_count -gt 10 && break
123 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
126 $ac_path_EGREP_found && break 3
131 if test -z "$ac_cv_path_EGREP"; then
132 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
135 ac_cv_path_EGREP=$EGREP
140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
141 $as_echo "$ac_cv_path_EGREP" >&6; }
142 EGREP="$ac_cv_path_EGREP"
145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is using the ARM hard-float ABI" >&5
146 $as_echo_n "checking whether the compiler is using the ARM hard-float ABI... " >&6; }
147 if ${libc_cv_arm_pcs_vfp+:} false; then :
148 $as_echo_n "(cached) " >&6
150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
151 /* end confdefs.h. */
157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
158 $EGREP "yes" >/dev/null 2>&1; then :
159 libc_cv_arm_pcs_vfp=yes
161 libc_cv_arm_pcs_vfp=no
166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcs_vfp" >&5
167 $as_echo "$libc_cv_arm_pcs_vfp" >&6; }
168 if test $libc_cv_arm_pcs_vfp = yes; then
169 $as_echo "#define HAVE_ARM_PCS_VFP 1" >>confdefs.h
171 config_vars="$config_vars
174 config_vars="$config_vars
178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the build tools support the GNU descriptor TLS scheme" >&5
179 $as_echo_n "checking whether the build tools support the GNU descriptor TLS scheme... " >&6; }
180 if ${libc_cv_arm_tls_desc+:} false; then :
181 $as_echo_n "(cached) " >&6
184 CFLAGS="$CFLAGS -mtls-dialect=gnu2"
185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
186 /* end confdefs.h. */
187 asm (".word\tfoo(tlsdesc)");
196 if ac_fn_c_try_compile "$LINENO"; then :
197 libc_cv_arm_tls_desc=yes
199 libc_cv_arm_tls_desc=no
201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_tls_desc" >&5
205 $as_echo "$libc_cv_arm_tls_desc" >&6; }
206 if test $libc_cv_arm_tls_desc = yes; then
207 config_vars="$config_vars
208 have-arm-tls-desc = yes"
210 config_vars="$config_vars
211 have-arm-tls-desc = no"
214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PC-relative relocs in movw/movt work properly" >&5
215 $as_echo_n "checking whether PC-relative relocs in movw/movt work properly... " >&6; }
216 if ${libc_cv_arm_pcrel_movw+:} false; then :
217 $as_echo_n "(cached) " >&6
220 cat > conftest.s <<\EOF
228 foo: movw r0, #:lower16:symbol - 1f - 8
229 movt r0, #:upper16:symbol - 1f - 8
231 @ And now a case with a local symbol.
232 movw r0, #:lower16:3f - 2f - 8
233 movt r0, #:upper16:3f - 2f - 8
243 libc_cv_arm_pcrel_movw=no
244 ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
245 -nostartfiles -nostdlib -shared \
246 -o conftest.so conftest.s 1>&5 2>&5 &&
247 LC_ALL=C $READELF -dr conftest.so > conftest.dr 2>&5 &&
251 R_ARM_NONE' conftest.dr > /dev/null || libc_cv_arm_pcrel_movw=yes
255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arm_pcrel_movw" >&5
256 $as_echo "$libc_cv_arm_pcrel_movw" >&6; }
257 if test $libc_cv_arm_pcrel_movw = yes; then
258 $as_echo "#define ARM_PCREL_MOVW_OK 1" >>confdefs.h
262 libc_cv_gcc_unwind_find_fde=no
264 # Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.ac.
265 CFLAGS=${CFLAGS% -fno-unwind-tables}
267 libc_cv_gcc_exceptions=yes
268 exceptions=-fexceptions