| 1 |
# This file is generated from configure.ac by Autoconf. DO NOT EDIT! |
| 2 |
# Local preconfigure fragment for sysdeps/sh |
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 7 |
printf %s "checking for egrep -e... " >&6; } |
| 8 |
if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 9 |
then : |
| 10 |
printf %s "(cached) " >&6 |
| 11 |
else case e in #( |
| 12 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 13 |
ac_path_EGREP_TRADITIONAL_found=false |
| 14 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 15 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 17 |
do |
| 18 |
IFS=$as_save_IFS |
| 19 |
case $as_dir in #((( |
| 20 |
'') as_dir=./ ;; |
| 21 |
*/) ;; |
| 22 |
*) as_dir=$as_dir/ ;; |
| 23 |
esac |
| 24 |
for ac_prog in grep ggrep |
| 25 |
do |
| 26 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 27 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 28 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 29 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 30 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 31 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 32 |
*GNU*) |
| 33 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 34 |
#( |
| 35 |
*) |
| 36 |
ac_count=0 |
| 37 |
printf %s 0123456789 >"conftest.in" |
| 38 |
while : |
| 39 |
do |
| 40 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 41 |
mv "conftest.tmp" "conftest.in" |
| 42 |
cp "conftest.in" "conftest.nl" |
| 43 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 44 |
"$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 45 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 46 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 47 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 48 |
# Best one so far, save it but keep looking for a better one |
| 49 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 50 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 51 |
fi |
| 52 |
# 10*(2^10) chars as input seems more than enough |
| 53 |
test $ac_count -gt 10 && break |
| 54 |
done |
| 55 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 56 |
esac |
| 57 |
|
| 58 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 59 |
done |
| 60 |
done |
| 61 |
done |
| 62 |
IFS=$as_save_IFS |
| 63 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 64 |
: |
| 65 |
fi |
| 66 |
else |
| 67 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 68 |
fi |
| 69 |
|
| 70 |
if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 71 |
then : |
| 72 |
ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 73 |
else case e in #( |
| 74 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 75 |
ac_path_EGREP_TRADITIONAL_found=false |
| 76 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 77 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 78 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 79 |
do |
| 80 |
IFS=$as_save_IFS |
| 81 |
case $as_dir in #((( |
| 82 |
'') as_dir=./ ;; |
| 83 |
*/) ;; |
| 84 |
*) as_dir=$as_dir/ ;; |
| 85 |
esac |
| 86 |
for ac_prog in egrep |
| 87 |
do |
| 88 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 89 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 90 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 91 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 92 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 93 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 94 |
*GNU*) |
| 95 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 96 |
#( |
| 97 |
*) |
| 98 |
ac_count=0 |
| 99 |
printf %s 0123456789 >"conftest.in" |
| 100 |
while : |
| 101 |
do |
| 102 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 103 |
mv "conftest.tmp" "conftest.in" |
| 104 |
cp "conftest.in" "conftest.nl" |
| 105 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 106 |
"$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 107 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 108 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 109 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 110 |
# Best one so far, save it but keep looking for a better one |
| 111 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 112 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 113 |
fi |
| 114 |
# 10*(2^10) chars as input seems more than enough |
| 115 |
test $ac_count -gt 10 && break |
| 116 |
done |
| 117 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 118 |
esac |
| 119 |
|
| 120 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 121 |
done |
| 122 |
done |
| 123 |
done |
| 124 |
IFS=$as_save_IFS |
| 125 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 126 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 127 |
fi |
| 128 |
else |
| 129 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 130 |
fi |
| 131 |
;; |
| 132 |
esac |
| 133 |
fi ;; |
| 134 |
esac |
| 135 |
fi |
| 136 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 137 |
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 138 |
EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 139 |
|
| 140 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 141 |
/* end confdefs.h. */ |
| 142 |
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ |
| 143 |
yes |
| 144 |
#endif |
| 145 |
|
| 146 |
_ACEOF |
| 147 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 148 |
$EGREP_TRADITIONAL "yes" >/dev/null 2>&1 |
| 149 |
then : |
| 150 |
endianness=le |
| 151 |
else case e in #( |
| 152 |
e) endianness=be ;; |
| 153 |
esac |
| 154 |
fi |
| 155 |
rm -rf conftest* |
| 156 |
|
| 157 |
|
| 158 |
case "$machine" in |
| 159 |
sh3*) base_machine=sh |
| 160 |
machine=sh/$endianness/sh3 |
| 161 |
with_fp_cond="defined __SH_FPU_ANY__" |
| 162 |
;; |
| 163 |
sh4*) base_machine=sh |
| 164 |
machine=sh/$endianness/sh4 |
| 165 |
with_fp_cond="defined __SH_FPU_ANY__" |
| 166 |
;; |
| 167 |
esac |
| 168 |
|