1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/arm
6 # If the compiler enables unwind tables by default, this causes
7 # problems with undefined symbols in -nostdlib link tests. To
8 # avoid this, add -fno-unwind-tables here and remove it in
9 # sysdeps/arm/configure.ac after those tests have been run.
10 if test "${CFLAGS+set}" != "set"; then
13 CFLAGS="$CFLAGS -fno-unwind-tables"
16 # Lets ask the compiler which ARM family we've got
17 # Unfortunately it doesn't define any flags for implementations
18 # that you might pass to -mcpu or -mtune
19 # Note if you add patterns here you must ensure that
20 # an appropriate directory exists in sysdeps/arm
21 archcppflag=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null |
22 sed -n 's/^#define \(__ARM_ARCH_[0-9].*__\) .*$/\1/p'`
24 case "x$archcppflag" in
27 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found compiler is configured for something newer than v7 - using v7" >&5
28 printf "%s\n" "$as_me: Found compiler is configured for something newer than v7 - using v7" >&6;}
33 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
34 printf "%s\n" "$as_me: Found compiler is configured for $machine" >&6;}
39 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
40 printf "%s\n" "$as_me: Found compiler is configured for $machine" >&6;}
44 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Found compiler is configured for $machine" >&5
45 printf "%s\n" "$as_me: Found compiler is configured for $machine" >&6;}
49 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&5
50 printf "%s\n" "$as_me: WARNING: arm/preconfigure: Did not find ARM architecture type; using default" >&2;}
56 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
57 printf %s "checking for egrep -e... " >&6; }
58 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
60 printf %s "(cached) " >&6
62 e) if test -z "$EGREP_TRADITIONAL"; then
63 ac_path_EGREP_TRADITIONAL_found=false
64 # Loop through the user's path and test for each of PROGNAME-LIST
65 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
66 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
74 for ac_prog in grep ggrep
76 for ac_exec_ext in '' $ac_executable_extensions; do
77 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
78 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
79 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
80 # Check for GNU $ac_path_EGREP_TRADITIONAL
81 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
83 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
87 printf %s 0123456789 >"conftest.in"
90 cat "conftest.in" "conftest.in" >"conftest.tmp"
91 mv "conftest.tmp" "conftest.in"
92 cp "conftest.in" "conftest.nl"
93 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
94 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
95 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
96 as_fn_arith $ac_count + 1 && ac_count=$as_val
97 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
98 # Best one so far, save it but keep looking for a better one
99 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
100 ac_path_EGREP_TRADITIONAL_max=$ac_count
102 # 10*(2^10) chars as input seems more than enough
103 test $ac_count -gt 10 && break
105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
108 $ac_path_EGREP_TRADITIONAL_found && break 3
113 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
117 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
120 if test "$ac_cv_path_EGREP_TRADITIONAL"
122 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
124 e) if test -z "$EGREP_TRADITIONAL"; then
125 ac_path_EGREP_TRADITIONAL_found=false
126 # Loop through the user's path and test for each of PROGNAME-LIST
127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
134 *) as_dir=$as_dir/ ;;
138 for ac_exec_ext in '' $ac_executable_extensions; do
139 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
140 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
141 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
142 # Check for GNU $ac_path_EGREP_TRADITIONAL
143 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
145 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
149 printf %s 0123456789 >"conftest.in"
152 cat "conftest.in" "conftest.in" >"conftest.tmp"
153 mv "conftest.tmp" "conftest.in"
154 cp "conftest.in" "conftest.nl"
155 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
156 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
157 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
158 as_fn_arith $ac_count + 1 && ac_count=$as_val
159 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
160 # Best one so far, save it but keep looking for a better one
161 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
162 ac_path_EGREP_TRADITIONAL_max=$ac_count
164 # 10*(2^10) chars as input seems more than enough
165 test $ac_count -gt 10 && break
167 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
170 $ac_path_EGREP_TRADITIONAL_found && break 3
175 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
176 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
179 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
187 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
188 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
191 /* end confdefs.h. */
192 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
198 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
208 machine=arm/$endianness/$machine
209 with_fp_cond="!defined __SOFTFP__"