preconfigure 5.2 KB

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