Require autoconf 2.69
[glibc.git] / sysdeps / arm / configure
blob238b335f7d3809634da3857d496d6f0f6e280743
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
19 else
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
26   IFS=$as_save_IFS
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
35 *GNU*)
36   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
38   ac_count=0
39   $as_echo_n 0123456789 >"conftest.in"
40   while :
41   do
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
53     fi
54     # 10*(2^10) chars as input seems more than enough
55     test $ac_count -gt 10 && break
56   done
57   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
58 esac
60       $ac_path_GREP_found && break 3
61     done
62   done
63   done
64 IFS=$as_save_IFS
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
67   fi
68 else
69   ac_cv_path_GREP=$GREP
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
82 else
83   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
84    then ac_cv_path_EGREP="$GREP -E"
85    else
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
92   IFS=$as_save_IFS
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
101 *GNU*)
102   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
104   ac_count=0
105   $as_echo_n 0123456789 >"conftest.in"
106   while :
107   do
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
119     fi
120     # 10*(2^10) chars as input seems more than enough
121     test $ac_count -gt 10 && break
122   done
123   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
124 esac
126       $ac_path_EGREP_found && break 3
127     done
128   done
129   done
130 IFS=$as_save_IFS
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
133   fi
134 else
135   ac_cv_path_EGREP=$EGREP
138    fi
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
149 else
150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
151 /* end confdefs.h.  */
152 #ifdef __ARM_PCS_VFP
153                       yes
154                      #endif
156 _ACEOF
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
160 else
161   libc_cv_arm_pcs_vfp=no
163 rm -f conftest*
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
172 default-abi = hard"
173 else
174   config_vars="$config_vars
175 default-abi = soft"
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
182 else
183   old_CFLAGS="$CFLAGS"
184   CFLAGS="$CFLAGS -mtls-dialect=gnu2"
185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
186 /* end confdefs.h.  */
187 asm (".word\tfoo(tlsdesc)");
189 main ()
192   ;
193   return 0;
195 _ACEOF
196 if ac_fn_c_try_compile "$LINENO"; then :
197   libc_cv_arm_tls_desc=yes
198 else
199   libc_cv_arm_tls_desc=no
201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
202   CFLAGS="$old_CFLAGS"
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"
209 else
210   config_vars="$config_vars
211 have-arm-tls-desc = no"
214 libc_cv_gcc_unwind_find_fde=no
216 # Remove -fno-unwind-tables that was added in sysdeps/arm/preconfigure.ac.
217 CFLAGS=${CFLAGS% -fno-unwind-tables}
219 libc_cv_gcc_exceptions=yes
220 exceptions=-fexceptions