MIPS: Regenerate ulps
[glibc.git] / sysdeps / arc / configure
blob08e4f23f89b41f1e0a2f2e85bb36e152d4dd9682
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}
19 then :
20   printf %s "(cached) " >&6
21 else case e in #(
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
28   IFS=$as_save_IFS
29   case $as_dir in #(((
30     '') as_dir=./ ;;
31     */) ;;
32     *) as_dir=$as_dir/ ;;
33   esac
34     for ac_prog in grep ggrep
35    do
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 #(
42 *GNU*)
43   ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
46   ac_count=0
47   printf %s 0123456789 >"conftest.in"
48   while :
49   do
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
61     fi
62     # 10*(2^10) chars as input seems more than enough
63     test $ac_count -gt 10 && break
64   done
65   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
66 esac
68       $ac_path_EGREP_TRADITIONAL_found && break 3
69     done
70   done
71   done
72 IFS=$as_save_IFS
73   if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
74     :
75   fi
76 else
77   ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
80     if test "$ac_cv_path_EGREP_TRADITIONAL"
81 then :
82   ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
83 else case e in #(
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
90   IFS=$as_save_IFS
91   case $as_dir in #(((
92     '') as_dir=./ ;;
93     */) ;;
94     *) as_dir=$as_dir/ ;;
95   esac
96     for ac_prog in egrep
97    do
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 #(
104 *GNU*)
105   ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
108   ac_count=0
109   printf %s 0123456789 >"conftest.in"
110   while :
111   do
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
123     fi
124     # 10*(2^10) chars as input seems more than enough
125     test $ac_count -gt 10 && break
126   done
127   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
128 esac
130       $ac_path_EGREP_TRADITIONAL_found && break 3
131     done
132   done
133   done
134 IFS=$as_save_IFS
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
137   fi
138 else
139   ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
141  ;;
142 esac
143 fi ;;
144 esac
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}
153 then :
154   printf %s "(cached) " >&6
155 else case e in #(
156   e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
157 /* end confdefs.h.  */
158 #ifdef __BIG_ENDIAN__
159                       yes
160                      #endif
162 _ACEOF
163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
164   $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
165 then :
166   libc_cv_arc_be=yes
167 else case e in #(
168   e) libc_cv_arc_be=no ;;
169 esac
171 rm -rf conftest*
172  ;;
173 esac
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
182 default-abi = arcbe"
183 else
184   config_vars="$config_vars
185 default-abi = arcle"