1# This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
2 # Local preconfigure fragment for sysdeps/sh
3
4
5
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; }
8if ${ac_cv_path_GREP+:} false; then :
9  $as_echo_n "(cached) " >&6
10else
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
15for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16do
17  IFS=$as_save_IFS
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
25case `"$ac_path_GREP" --version 2>&1` in
26*GNU*)
27  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
28*)
29  ac_count=0
30  $as_echo_n 0123456789 >"conftest.in"
31  while :
32  do
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
44    fi
45    # 10*(2^10) chars as input seems more than enough
46    test $ac_count -gt 10 && break
47  done
48  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
49esac
50
51      $ac_path_GREP_found && break 3
52    done
53  done
54  done
55IFS=$as_save_IFS
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
58  fi
59else
60  ac_cv_path_GREP=$GREP
61fi
62
63fi
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"
67
68
69{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
70$as_echo_n "checking for egrep... " >&6; }
71if ${ac_cv_path_EGREP+:} false; then :
72  $as_echo_n "(cached) " >&6
73else
74  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
75   then ac_cv_path_EGREP="$GREP -E"
76   else
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
81for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
82do
83  IFS=$as_save_IFS
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
91case `"$ac_path_EGREP" --version 2>&1` in
92*GNU*)
93  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
94*)
95  ac_count=0
96  $as_echo_n 0123456789 >"conftest.in"
97  while :
98  do
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
110    fi
111    # 10*(2^10) chars as input seems more than enough
112    test $ac_count -gt 10 && break
113  done
114  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
115esac
116
117      $ac_path_EGREP_found && break 3
118    done
119  done
120  done
121IFS=$as_save_IFS
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
124  fi
125else
126  ac_cv_path_EGREP=$EGREP
127fi
128
129   fi
130fi
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"
134
135
136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
137/* end confdefs.h.  */
138#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
139                   yes
140                  #endif
141
142_ACEOF
143if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
144  $EGREP "yes" >/dev/null 2>&1; then :
145  endianness=le
146else
147  endianness=be
148fi
149rm -f conftest*
150
151
152case "$machine" in
153sh3*)           base_machine=sh
154                machine=sh/$endianness/sh3
155                with_fp_cond="defined __SH_FPU_ANY__"
156                ;;
157sh4*)           base_machine=sh
158                machine=sh/$endianness/sh4
159                with_fp_cond="defined __SH_FPU_ANY__"
160                ;;
161esac
162