1 # This file is generated from configure.ac by Autoconf. DO NOT EDIT!
2 # Local configure fragment for sysdeps/arc.
4 libc_cv_have_sdata_section=no
6 # For ARC, historically ; was used for comments and not newline
7 # Later # also got added to comment list, but ; couldn't be switched to
8 # canonical newline as there's lots of code out there which will break
9 libc_cv_asm_line_sep='`'
10 printf "%s\n" "#define ASM_LINE_SEP $libc_cv_asm_line_sep" >>confdefs.h
13 # For big endian ABI, generate a symbol for selecting right dynamic linker
16 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
17 printf %s "checking for grep that handles long lines and -e... " >&6; }
18 if test ${ac_cv_path_GREP+y}
20 printf %s "(cached) " >&6
22 if test -z "$GREP"; then
23 ac_path_GREP_found=false
24 # Loop through the user's path and test for each of PROGNAME-LIST
25 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
34 for ac_prog in grep ggrep
36 for ac_exec_ext in '' $ac_executable_extensions; do
37 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
38 as_fn_executable_p "$ac_path_GREP" || continue
39 # Check for GNU ac_path_GREP and select it if it is found.
40 # Check for GNU $ac_path_GREP
41 case `"$ac_path_GREP" --version 2>&1` in
43 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
46 printf %s 0123456789 >"conftest.in"
49 cat "conftest.in" "conftest.in" >"conftest.tmp"
50 mv "conftest.tmp" "conftest.in"
51 cp "conftest.in" "conftest.nl"
52 printf "%s\n" 'GREP' >> "conftest.nl"
53 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
54 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
55 as_fn_arith $ac_count + 1 && ac_count=$as_val
56 if test $ac_count -gt ${ac_path_GREP_max-0}; then
57 # Best one so far, save it but keep looking for a better one
58 ac_cv_path_GREP="$ac_path_GREP"
59 ac_path_GREP_max=$ac_count
61 # 10*(2^10) chars as input seems more than enough
62 test $ac_count -gt 10 && break
64 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
67 $ac_path_GREP_found && break 3
72 if test -z "$ac_cv_path_GREP"; then
73 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
80 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
81 printf "%s\n" "$ac_cv_path_GREP" >&6; }
82 GREP="$ac_cv_path_GREP"
85 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
86 printf %s "checking for egrep... " >&6; }
87 if test ${ac_cv_path_EGREP+y}
89 printf %s "(cached) " >&6
91 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
92 then ac_cv_path_EGREP="$GREP -E"
94 if test -z "$EGREP"; then
95 ac_path_EGREP_found=false
96 # Loop through the user's path and test for each of PROGNAME-LIST
97 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
104 *) as_dir=$as_dir/ ;;
108 for ac_exec_ext in '' $ac_executable_extensions; do
109 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
110 as_fn_executable_p "$ac_path_EGREP" || continue
111 # Check for GNU ac_path_EGREP and select it if it is found.
112 # Check for GNU $ac_path_EGREP
113 case `"$ac_path_EGREP" --version 2>&1` in
115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
118 printf %s 0123456789 >"conftest.in"
121 cat "conftest.in" "conftest.in" >"conftest.tmp"
122 mv "conftest.tmp" "conftest.in"
123 cp "conftest.in" "conftest.nl"
124 printf "%s\n" 'EGREP' >> "conftest.nl"
125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
127 as_fn_arith $ac_count + 1 && ac_count=$as_val
128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
129 # Best one so far, save it but keep looking for a better one
130 ac_cv_path_EGREP="$ac_path_EGREP"
131 ac_path_EGREP_max=$ac_count
133 # 10*(2^10) chars as input seems more than enough
134 test $ac_count -gt 10 && break
136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
139 $ac_path_EGREP_found && break 3
144 if test -z "$ac_cv_path_EGREP"; then
145 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
148 ac_cv_path_EGREP=$EGREP
153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
154 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
155 EGREP="$ac_cv_path_EGREP"
158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
159 printf %s "checking for big endian... " >&6; }
160 if test ${libc_cv_arc_be+y}
162 printf %s "(cached) " >&6
164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
165 /* end confdefs.h. */
166 #ifdef __BIG_ENDIAN__
171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
172 $EGREP "yes" >/dev/null 2>&1
181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5
182 printf "%s\n" "$libc_cv_arc_be" >&6; }
183 if test $libc_cv_arc_be = yes; then
184 # For shlib-versions.
185 printf "%s\n" "#define HAVE_ARC_BE 1" >>confdefs.h
187 config_vars="$config_vars
190 config_vars="$config_vars