Linux: Consolidate typesizes.h
[glibc.git] / sysdeps / arc / configure
blob92050f44e30978ed7a6783531ababda355523cd3
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 cat >>confdefs.h <<_ACEOF
11 #define ASM_LINE_SEP $libc_cv_asm_line_sep
12 _ACEOF
15 # For big endian ABI, generate a symbol for selecting right dynamic linker
18 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
19 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
20 if ${ac_cv_path_GREP+:} false; then :
21   $as_echo_n "(cached) " >&6
22 else
23   if test -z "$GREP"; then
24   ac_path_GREP_found=false
25   # Loop through the user's path and test for each of PROGNAME-LIST
26   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
29   IFS=$as_save_IFS
30   test -z "$as_dir" && as_dir=.
31     for ac_prog in grep ggrep; do
32     for ac_exec_ext in '' $ac_executable_extensions; do
33       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
34       as_fn_executable_p "$ac_path_GREP" || continue
35 # Check for GNU ac_path_GREP and select it if it is found.
36   # Check for GNU $ac_path_GREP
37 case `"$ac_path_GREP" --version 2>&1` in
38 *GNU*)
39   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
41   ac_count=0
42   $as_echo_n 0123456789 >"conftest.in"
43   while :
44   do
45     cat "conftest.in" "conftest.in" >"conftest.tmp"
46     mv "conftest.tmp" "conftest.in"
47     cp "conftest.in" "conftest.nl"
48     $as_echo 'GREP' >> "conftest.nl"
49     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
50     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
51     as_fn_arith $ac_count + 1 && ac_count=$as_val
52     if test $ac_count -gt ${ac_path_GREP_max-0}; then
53       # Best one so far, save it but keep looking for a better one
54       ac_cv_path_GREP="$ac_path_GREP"
55       ac_path_GREP_max=$ac_count
56     fi
57     # 10*(2^10) chars as input seems more than enough
58     test $ac_count -gt 10 && break
59   done
60   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
61 esac
63       $ac_path_GREP_found && break 3
64     done
65   done
66   done
67 IFS=$as_save_IFS
68   if test -z "$ac_cv_path_GREP"; then
69     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
70   fi
71 else
72   ac_cv_path_GREP=$GREP
76 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
77 $as_echo "$ac_cv_path_GREP" >&6; }
78  GREP="$ac_cv_path_GREP"
81 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
82 $as_echo_n "checking for egrep... " >&6; }
83 if ${ac_cv_path_EGREP+:} false; then :
84   $as_echo_n "(cached) " >&6
85 else
86   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
87    then ac_cv_path_EGREP="$GREP -E"
88    else
89      if test -z "$EGREP"; then
90   ac_path_EGREP_found=false
91   # Loop through the user's path and test for each of PROGNAME-LIST
92   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     for ac_prog in egrep; do
98     for ac_exec_ext in '' $ac_executable_extensions; do
99       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
100       as_fn_executable_p "$ac_path_EGREP" || continue
101 # Check for GNU ac_path_EGREP and select it if it is found.
102   # Check for GNU $ac_path_EGREP
103 case `"$ac_path_EGREP" --version 2>&1` in
104 *GNU*)
105   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
107   ac_count=0
108   $as_echo_n 0123456789 >"conftest.in"
109   while :
110   do
111     cat "conftest.in" "conftest.in" >"conftest.tmp"
112     mv "conftest.tmp" "conftest.in"
113     cp "conftest.in" "conftest.nl"
114     $as_echo 'EGREP' >> "conftest.nl"
115     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
116     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
117     as_fn_arith $ac_count + 1 && ac_count=$as_val
118     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
119       # Best one so far, save it but keep looking for a better one
120       ac_cv_path_EGREP="$ac_path_EGREP"
121       ac_path_EGREP_max=$ac_count
122     fi
123     # 10*(2^10) chars as input seems more than enough
124     test $ac_count -gt 10 && break
125   done
126   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
127 esac
129       $ac_path_EGREP_found && break 3
130     done
131   done
132   done
133 IFS=$as_save_IFS
134   if test -z "$ac_cv_path_EGREP"; then
135     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
136   fi
137 else
138   ac_cv_path_EGREP=$EGREP
141    fi
143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
144 $as_echo "$ac_cv_path_EGREP" >&6; }
145  EGREP="$ac_cv_path_EGREP"
148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for big endian" >&5
149 $as_echo_n "checking for big endian... " >&6; }
150 if ${libc_cv_arc_be+:} false; then :
151   $as_echo_n "(cached) " >&6
152 else
153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
154 /* end confdefs.h.  */
155 #ifdef __BIG_ENDIAN__
156                       yes
157                      #endif
159 _ACEOF
160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
161   $EGREP "yes" >/dev/null 2>&1; then :
162   libc_cv_arc_be=yes
163 else
164   libc_cv_arc_be=no
166 rm -f conftest*
169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_arc_be" >&5
170 $as_echo "$libc_cv_arc_be" >&6; }
171 if test $libc_cv_arc_be = yes; then
172   # For shlib-versions.
173   $as_echo "#define HAVE_ARC_BE 1" >>confdefs.h
175   config_vars="$config_vars
176 default-abi = arcbe"
177 else
178   config_vars="$config_vars
179 default-abi = arcle"