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 egrep -e" >&5
17 printf %s "checking for egrep -e... " >&6; }
18 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
20 printf %s "(cached) " >&6
22 e) if test -z "$EGREP_TRADITIONAL"; then
23 ac_path_EGREP_TRADITIONAL_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_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
38 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
39 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
40 # Check for GNU $ac_path_EGREP_TRADITIONAL
41 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
43 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
47 printf %s 0123456789 >"conftest.in"
50 cat "conftest.in" "conftest.in" >"conftest.tmp"
51 mv "conftest.tmp" "conftest.in"
52 cp "conftest.in" "conftest.nl"
53 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
54 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
55 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
56 as_fn_arith $ac_count + 1 && ac_count=$as_val
57 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
58 # Best one so far, save it but keep looking for a better one
59 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
60 ac_path_EGREP_TRADITIONAL_max=$ac_count
62 # 10*(2^10) chars as input seems more than enough
63 test $ac_count -gt 10 && break
65 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
68 $ac_path_EGREP_TRADITIONAL_found && break 3
73 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
77 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
80 if test "$ac_cv_path_EGREP_TRADITIONAL"
82 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
84 e) if test -z "$EGREP_TRADITIONAL"; then
85 ac_path_EGREP_TRADITIONAL_found=false
86 # Loop through the user's path and test for each of PROGNAME-LIST
87 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
88 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
98 for ac_exec_ext in '' $ac_executable_extensions; do
99 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
100 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
101 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
102 # Check for GNU $ac_path_EGREP_TRADITIONAL
103 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
105 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
109 printf %s 0123456789 >"conftest.in"
112 cat "conftest.in" "conftest.in" >"conftest.tmp"
113 mv "conftest.tmp" "conftest.in"
114 cp "conftest.in" "conftest.nl"
115 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
116 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
117 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
118 as_fn_arith $ac_count + 1 && ac_count=$as_val
119 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
120 # Best one so far, save it but keep looking for a better one
121 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
122 ac_path_EGREP_TRADITIONAL_max=$ac_count
124 # 10*(2^10) chars as input seems more than enough
125 test $ac_count -gt 10 && break
127 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
130 $ac_path_EGREP_TRADITIONAL_found && break 3
135 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
136 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
139 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
147 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
148 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
151 printf %s "checking for big endian... " >&6; }
152 if test ${libc_cv_arc_be+y}
154 printf %s "(cached) " >&6
156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157 /* end confdefs.h. */
158 #ifdef __BIG_ENDIAN__
163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
164 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
168 e) libc_cv_arc_be=no ;;
175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5
176 printf "%s\n" "$libc_cv_arc_be" >&6; }
177 if test $libc_cv_arc_be = yes; then
178 # For shlib-versions.
179 printf "%s\n" "#define HAVE_ARC_BE 1" >>confdefs.h
181 config_vars="$config_vars
184 config_vars="$config_vars