1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/nios2.
4 # Nios II big endian is not yet supported.
7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
9 if ${ac_cv_path_GREP+:} false; then :
10 $as_echo_n "(cached) " >&6
12 if test -z "$GREP"; then
13 ac_path_GREP_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
19 test -z "$as_dir" && as_dir=.
20 for ac_prog in grep ggrep; do
21 for ac_exec_ext in '' $ac_executable_extensions; do
22 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
23 as_fn_executable_p "$ac_path_GREP" || continue
24 # Check for GNU ac_path_GREP and select it if it is found.
25 # Check for GNU $ac_path_GREP
26 case `"$ac_path_GREP" --version 2>&1` in
28 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
31 $as_echo_n 0123456789 >"conftest.in"
34 cat "conftest.in" "conftest.in" >"conftest.tmp"
35 mv "conftest.tmp" "conftest.in"
36 cp "conftest.in" "conftest.nl"
37 $as_echo 'GREP' >> "conftest.nl"
38 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
39 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
40 as_fn_arith $ac_count + 1 && ac_count=$as_val
41 if test $ac_count -gt ${ac_path_GREP_max-0}; then
42 # Best one so far, save it but keep looking for a better one
43 ac_cv_path_GREP="$ac_path_GREP"
44 ac_path_GREP_max=$ac_count
46 # 10*(2^10) chars as input seems more than enough
47 test $ac_count -gt 10 && break
49 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
52 $ac_path_GREP_found && break 3
57 if test -z "$ac_cv_path_GREP"; then
58 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
65 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
66 $as_echo "$ac_cv_path_GREP" >&6; }
67 GREP="$ac_cv_path_GREP"
70 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
71 $as_echo_n "checking for egrep... " >&6; }
72 if ${ac_cv_path_EGREP+:} false; then :
73 $as_echo_n "(cached) " >&6
75 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
76 then ac_cv_path_EGREP="$GREP -E"
78 if test -z "$EGREP"; then
79 ac_path_EGREP_found=false
80 # Loop through the user's path and test for each of PROGNAME-LIST
81 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
85 test -z "$as_dir" && as_dir=.
86 for ac_prog in egrep; do
87 for ac_exec_ext in '' $ac_executable_extensions; do
88 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
89 as_fn_executable_p "$ac_path_EGREP" || continue
90 # Check for GNU ac_path_EGREP and select it if it is found.
91 # Check for GNU $ac_path_EGREP
92 case `"$ac_path_EGREP" --version 2>&1` in
94 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
97 $as_echo_n 0123456789 >"conftest.in"
100 cat "conftest.in" "conftest.in" >"conftest.tmp"
101 mv "conftest.tmp" "conftest.in"
102 cp "conftest.in" "conftest.nl"
103 $as_echo 'EGREP' >> "conftest.nl"
104 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
106 as_fn_arith $ac_count + 1 && ac_count=$as_val
107 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
108 # Best one so far, save it but keep looking for a better one
109 ac_cv_path_EGREP="$ac_path_EGREP"
110 ac_path_EGREP_max=$ac_count
112 # 10*(2^10) chars as input seems more than enough
113 test $ac_count -gt 10 && break
115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
118 $ac_path_EGREP_found && break 3
123 if test -z "$ac_cv_path_EGREP"; then
124 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
127 ac_cv_path_EGREP=$EGREP
132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
133 $as_echo "$ac_cv_path_EGREP" >&6; }
134 EGREP="$ac_cv_path_EGREP"
137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
138 $as_echo_n "checking for big endian... " >&6; }
139 if ${libc_cv_nios2_be+:} false; then :
140 $as_echo_n "(cached) " >&6
142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
143 /* end confdefs.h. */
144 #ifdef __nios2_big_endian__
149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
150 $EGREP "yes" >/dev/null 2>&1; then :
158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_nios2_be" >&5
159 $as_echo "$libc_cv_nios2_be" >&6; }
160 if test $libc_cv_nios2_be = yes; then
161 as_fn_error $? "Big endian not supported for Nios II" "$LINENO" 5