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