1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/sh
6 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8 if ${ac_cv_path_GREP+:} false; then :
9 $as_echo_n "(cached) " >&6
11 if test -z "$GREP"; then
12 ac_path_GREP_found=false
13 # Loop through the user's path and test for each of PROGNAME-LIST
14 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18 test -z "$as_dir" && as_dir=.
19 for ac_prog in grep ggrep; do
20 for ac_exec_ext in '' $ac_executable_extensions; do
21 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22 as_fn_executable_p "$ac_path_GREP" || continue
23 # Check for GNU ac_path_GREP and select it if it is found.
24 # Check for GNU $ac_path_GREP
25 case `"$ac_path_GREP" --version 2>&1` in
27 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
30 $as_echo_n 0123456789 >"conftest.in"
33 cat "conftest.in" "conftest.in" >"conftest.tmp"
34 mv "conftest.tmp" "conftest.in"
35 cp "conftest.in" "conftest.nl"
36 $as_echo 'GREP' >> "conftest.nl"
37 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
39 as_fn_arith $ac_count + 1 && ac_count=$as_val
40 if test $ac_count -gt ${ac_path_GREP_max-0}; then
41 # Best one so far, save it but keep looking for a better one
42 ac_cv_path_GREP="$ac_path_GREP"
43 ac_path_GREP_max=$ac_count
45 # 10*(2^10) chars as input seems more than enough
46 test $ac_count -gt 10 && break
48 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
51 $ac_path_GREP_found && break 3
56 if test -z "$ac_cv_path_GREP"; then
57 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
64 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
65 $as_echo "$ac_cv_path_GREP" >&6; }
66 GREP="$ac_cv_path_GREP"
69 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
70 $as_echo_n "checking for egrep... " >&6; }
71 if ${ac_cv_path_EGREP+:} false; then :
72 $as_echo_n "(cached) " >&6
74 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
75 then ac_cv_path_EGREP="$GREP -E"
77 if test -z "$EGREP"; then
78 ac_path_EGREP_found=false
79 # Loop through the user's path and test for each of PROGNAME-LIST
80 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
84 test -z "$as_dir" && as_dir=.
85 for ac_prog in egrep; do
86 for ac_exec_ext in '' $ac_executable_extensions; do
87 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
88 as_fn_executable_p "$ac_path_EGREP" || continue
89 # Check for GNU ac_path_EGREP and select it if it is found.
90 # Check for GNU $ac_path_EGREP
91 case `"$ac_path_EGREP" --version 2>&1` in
93 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
96 $as_echo_n 0123456789 >"conftest.in"
99 cat "conftest.in" "conftest.in" >"conftest.tmp"
100 mv "conftest.tmp" "conftest.in"
101 cp "conftest.in" "conftest.nl"
102 $as_echo 'EGREP' >> "conftest.nl"
103 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
105 as_fn_arith $ac_count + 1 && ac_count=$as_val
106 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
107 # Best one so far, save it but keep looking for a better one
108 ac_cv_path_EGREP="$ac_path_EGREP"
109 ac_path_EGREP_max=$ac_count
111 # 10*(2^10) chars as input seems more than enough
112 test $ac_count -gt 10 && break
114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
117 $ac_path_EGREP_found && break 3
122 if test -z "$ac_cv_path_EGREP"; then
123 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
126 ac_cv_path_EGREP=$EGREP
131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
132 $as_echo "$ac_cv_path_EGREP" >&6; }
133 EGREP="$ac_cv_path_EGREP"
136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
137 /* end confdefs.h. */
138 #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
144 $EGREP "yes" >/dev/null 2>&1; then :
153 sh3*) base_machine=sh
154 machine=sh/$endianness/sh3
155 with_fp_cond="defined __SH_FPU_ANY__"
157 sh4*) base_machine=sh
158 machine=sh/$endianness/sh4
159 with_fp_cond="defined __SH_FPU_ANY__"