1 | #! /bin/sh |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.69. |
3 | # Generated by GNU Autoconf 2.71. |
4 | # |
4 | # |
5 | # |
5 | # |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
|
|
7 | # Inc. |
7 | # |
8 | # |
8 | # |
9 | # |
9 | # This configure script is free software; the Free Software Foundation |
10 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## -------------------- ## |
12 | ## -------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## M4sh Initialization. ## |
13 | ## -------------------- ## |
14 | ## -------------------- ## |
14 | |
15 | |
15 | # Be more Bourne compatible |
16 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
17 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
18 | as_nop=: |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
19 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
20 | then : |
18 | emulate sh |
21 | emulate sh |
19 | NULLCMD=: |
22 | NULLCMD=: |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
23 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
24 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
25 | alias -g '${1+"$@"}'='"$@"' |
23 | setopt NO_GLOB_SUBST |
26 | setopt NO_GLOB_SUBST |
24 | else |
27 | else $as_nop |
25 | case `(set -o) 2>/dev/null` in #( |
28 | case `(set -o) 2>/dev/null` in #( |
26 | *posix*) : |
29 | *posix*) : |
27 | set -o posix ;; #( |
30 | set -o posix ;; #( |
28 | *) : |
31 | *) : |
29 | ;; |
32 | ;; |
30 | esac |
33 | esac |
31 | fi |
34 | fi |
32 | |
35 | |
33 | |
36 | |
|
|
37 | |
|
|
38 | # Reset variables that may have inherited troublesome values from |
|
|
39 | # the environment. |
|
|
40 | |
|
|
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
43 | # side effect of setting IFS to empty, thus disabling word splitting.) |
|
|
44 | # Quoting is to prevent editors from complaining about space-tab. |
34 | as_nl=' |
45 | as_nl=' |
35 | ' |
46 | ' |
36 | export as_nl |
47 | export as_nl |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
48 | IFS=" "" $as_nl" |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
49 | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
50 | PS1='$ ' |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
51 | PS2='> ' |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
52 | PS4='+ ' |
42 | # but without wasting forks for bash or zsh. |
53 | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
54 | # Ensure predictable behavior from utilities with locale-dependent output. |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
55 | LC_ALL=C |
45 | as_echo='print -r --' |
56 | export LC_ALL |
46 | as_echo_n='print -rn --' |
57 | LANGUAGE=C |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
58 | export LANGUAGE |
48 | as_echo='printf %s\n' |
59 | |
49 | as_echo_n='printf %s' |
60 | # We cannot yet rely on "unset" to work, but we need these variables |
50 | else |
61 | # to be unset--not just set to an empty or harmless value--now, to |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
63 | # also avoids known problems related to "unset" and subshell syntax |
53 | as_echo_n='/usr/ucb/echo -n' |
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
54 | else |
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
66 | do eval test \${$as_var+y} \ |
56 | as_echo_n_body='eval |
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
57 | arg=$1; |
68 | done |
58 | case $arg in #( |
69 | |
59 | *"$as_nl"*) |
70 | # Ensure that fds 0, 1, and 2 are open. |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
62 | esac; |
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
|
64 | ' |
|
|
65 | export as_echo_n_body |
|
|
66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|
|
67 | fi |
|
|
68 | export as_echo_body |
|
|
69 | as_echo='sh -c $as_echo_body as_echo' |
|
|
70 | fi |
|
|
71 | |
74 | |
72 | # The user is always right. |
75 | # The user is always right. |
73 | if test "${PATH_SEPARATOR+set}" != set; then |
76 | if ${PATH_SEPARATOR+false} :; then |
74 | PATH_SEPARATOR=: |
77 | PATH_SEPARATOR=: |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 | PATH_SEPARATOR=';' |
80 | PATH_SEPARATOR=';' |
78 | } |
81 | } |
79 | fi |
82 | fi |
80 | |
83 | |
81 | |
|
|
82 | # IFS |
|
|
83 | # We need space, tab and new line, in precisely that order. Quoting is |
|
|
84 | # there to prevent editors from complaining about space-tab. |
|
|
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
86 | # splitting by setting IFS to empty value.) |
|
|
87 | IFS=" "" $as_nl" |
|
|
88 | |
84 | |
89 | # Find who we are. Look in the path if we contain no directory separator. |
85 | # Find who we are. Look in the path if we contain no directory separator. |
90 | as_myself= |
86 | as_myself= |
91 | case $0 in #(( |
87 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; |
88 | *[\\/]* ) as_myself=$0 ;; |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
94 | for as_dir in $PATH |
90 | for as_dir in $PATH |
95 | do |
91 | do |
96 | IFS=$as_save_IFS |
92 | IFS=$as_save_IFS |
97 | test -z "$as_dir" && as_dir=. |
93 | case $as_dir in #((( |
|
|
94 | '') as_dir=./ ;; |
|
|
95 | */) ;; |
|
|
96 | *) as_dir=$as_dir/ ;; |
|
|
97 | esac |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
99 | done |
99 | done |
100 | IFS=$as_save_IFS |
100 | IFS=$as_save_IFS |
101 | |
101 | |
102 | ;; |
102 | ;; |
103 | esac |
103 | esac |
… | |
… | |
105 | # in which case we are not to be found in the path. |
105 | # in which case we are not to be found in the path. |
106 | if test "x$as_myself" = x; then |
106 | if test "x$as_myself" = x; then |
107 | as_myself=$0 |
107 | as_myself=$0 |
108 | fi |
108 | fi |
109 | if test ! -f "$as_myself"; then |
109 | if test ! -f "$as_myself"; then |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 | exit 1 |
111 | exit 1 |
112 | fi |
112 | fi |
113 | |
113 | |
114 | # Unset variables that we do not need and which cause bugs (e.g. in |
|
|
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
|
116 | # suppresses any "Segmentation fault" message there. '((' could |
|
|
117 | # trigger a bug in pdksh 5.2.14. |
|
|
118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|
|
119 | do eval test x\${$as_var+set} = xset \ |
|
|
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
121 | done |
|
|
122 | PS1='$ ' |
|
|
123 | PS2='> ' |
|
|
124 | PS4='+ ' |
|
|
125 | |
|
|
126 | # NLS nuisances. |
|
|
127 | LC_ALL=C |
|
|
128 | export LC_ALL |
|
|
129 | LANGUAGE=C |
|
|
130 | export LANGUAGE |
|
|
131 | |
|
|
132 | # CDPATH. |
|
|
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
134 | |
114 | |
135 | # Use a proper internal environment variable to ensure we don't fall |
115 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. |
116 | # into an infinite loop, continuously re-executing ourselves. |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
138 | _as_can_reexec=no; export _as_can_reexec; |
118 | _as_can_reexec=no; export _as_can_reexec; |
… | |
… | |
150 | * ) as_opts= ;; |
130 | * ) as_opts= ;; |
151 | esac |
131 | esac |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
153 | # Admittedly, this is quite paranoid, since all the known shells bail |
133 | # Admittedly, this is quite paranoid, since all the known shells bail |
154 | # out after a failed `exec'. |
134 | # out after a failed `exec'. |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 | as_fn_exit 255 |
136 | exit 255 |
157 | fi |
137 | fi |
158 | # We don't want this to propagate to other subprocesses. |
138 | # We don't want this to propagate to other subprocesses. |
159 | { _as_can_reexec=; unset _as_can_reexec;} |
139 | { _as_can_reexec=; unset _as_can_reexec;} |
160 | if test "x$CONFIG_SHELL" = x; then |
140 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
141 | as_bourne_compatible="as_nop=: |
|
|
142 | if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
143 | then : |
162 | emulate sh |
144 | emulate sh |
163 | NULLCMD=: |
145 | NULLCMD=: |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
146 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
165 | # is contrary to our usage. Disable this feature. |
147 | # is contrary to our usage. Disable this feature. |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
148 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
167 | setopt NO_GLOB_SUBST |
149 | setopt NO_GLOB_SUBST |
168 | else |
150 | else \$as_nop |
169 | case \`(set -o) 2>/dev/null\` in #( |
151 | case \`(set -o) 2>/dev/null\` in #( |
170 | *posix*) : |
152 | *posix*) : |
171 | set -o posix ;; #( |
153 | set -o posix ;; #( |
172 | *) : |
154 | *) : |
173 | ;; |
155 | ;; |
… | |
… | |
183 | exitcode=0 |
165 | exitcode=0 |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
|
|
171 | then : |
189 | |
172 | |
190 | else |
173 | else \$as_nop |
191 | exitcode=1; echo positional parameters were not saved. |
174 | exitcode=1; echo positional parameters were not saved. |
192 | fi |
175 | fi |
193 | test x\$exitcode = x0 || exit 1 |
176 | test x\$exitcode = x0 || exit 1 |
|
|
177 | blah=\$(echo \$(echo blah)) |
|
|
178 | test x\"\$blah\" = xblah || exit 1 |
194 | test -x / || exit 1" |
179 | test -x / || exit 1" |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
180 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
181 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
182 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
183 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
199 | test \$(( 1 + 1 )) = 2 || exit 1" |
|
|
200 | if (eval "$as_required") 2>/dev/null; then : |
184 | if (eval "$as_required") 2>/dev/null |
|
|
185 | then : |
201 | as_have_required=yes |
186 | as_have_required=yes |
202 | else |
187 | else $as_nop |
203 | as_have_required=no |
188 | as_have_required=no |
204 | fi |
189 | fi |
205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
190 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
|
|
191 | then : |
206 | |
192 | |
207 | else |
193 | else $as_nop |
208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
209 | as_found=false |
195 | as_found=false |
210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
196 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
211 | do |
197 | do |
212 | IFS=$as_save_IFS |
198 | IFS=$as_save_IFS |
213 | test -z "$as_dir" && as_dir=. |
199 | case $as_dir in #((( |
|
|
200 | '') as_dir=./ ;; |
|
|
201 | */) ;; |
|
|
202 | *) as_dir=$as_dir/ ;; |
|
|
203 | esac |
214 | as_found=: |
204 | as_found=: |
215 | case $as_dir in #( |
205 | case $as_dir in #( |
216 | /*) |
206 | /*) |
217 | for as_base in sh bash ksh sh5; do |
207 | for as_base in sh bash ksh sh5; do |
218 | # Try only shells that exist, to save several forks. |
208 | # Try only shells that exist, to save several forks. |
219 | as_shell=$as_dir/$as_base |
209 | as_shell=$as_dir$as_base |
220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
210 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
211 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
212 | then : |
222 | CONFIG_SHELL=$as_shell as_have_required=yes |
213 | CONFIG_SHELL=$as_shell as_have_required=yes |
223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
214 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
|
|
215 | then : |
224 | break 2 |
216 | break 2 |
225 | fi |
217 | fi |
226 | fi |
218 | fi |
227 | done;; |
219 | done;; |
228 | esac |
220 | esac |
229 | as_found=false |
221 | as_found=false |
230 | done |
222 | done |
|
|
223 | IFS=$as_save_IFS |
|
|
224 | if $as_found |
|
|
225 | then : |
|
|
226 | |
|
|
227 | else $as_nop |
231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
228 | if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
229 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
|
|
230 | then : |
233 | CONFIG_SHELL=$SHELL as_have_required=yes |
231 | CONFIG_SHELL=$SHELL as_have_required=yes |
234 | fi; } |
232 | fi |
235 | IFS=$as_save_IFS |
233 | fi |
236 | |
234 | |
237 | |
235 | |
238 | if test "x$CONFIG_SHELL" != x; then : |
236 | if test "x$CONFIG_SHELL" != x |
|
|
237 | then : |
239 | export CONFIG_SHELL |
238 | export CONFIG_SHELL |
240 | # We cannot yet assume a decent shell, so we have to provide a |
239 | # We cannot yet assume a decent shell, so we have to provide a |
241 | # neutralization value for shells without unset; and this also |
240 | # neutralization value for shells without unset; and this also |
242 | # works around shells that cannot unset nonexistent variables. |
241 | # works around shells that cannot unset nonexistent variables. |
243 | # Preserve -v and -x to the replacement shell. |
242 | # Preserve -v and -x to the replacement shell. |
… | |
… | |
251 | * ) as_opts= ;; |
250 | * ) as_opts= ;; |
252 | esac |
251 | esac |
253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
252 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
254 | # Admittedly, this is quite paranoid, since all the known shells bail |
253 | # Admittedly, this is quite paranoid, since all the known shells bail |
255 | # out after a failed `exec'. |
254 | # out after a failed `exec'. |
256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
255 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 | exit 255 |
256 | exit 255 |
258 | fi |
257 | fi |
259 | |
258 | |
260 | if test x$as_have_required = xno; then : |
259 | if test x$as_have_required = xno |
|
|
260 | then : |
261 | $as_echo "$0: This script requires a shell more modern than all" |
261 | printf "%s\n" "$0: This script requires a shell more modern than all" |
262 | $as_echo "$0: the shells that I found on your system." |
262 | printf "%s\n" "$0: the shells that I found on your system." |
263 | if test x${ZSH_VERSION+set} = xset ; then |
263 | if test ${ZSH_VERSION+y} ; then |
264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
264 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
265 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
266 | else |
266 | else |
267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
267 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, |
268 | $0: including any error possibly output before this |
268 | $0: including any error possibly output before this |
269 | $0: message. Then install a modern shell, or manually run |
269 | $0: message. Then install a modern shell, or manually run |
270 | $0: the script under such a shell if you do have one." |
270 | $0: the script under such a shell if you do have one." |
271 | fi |
271 | fi |
272 | exit 1 |
272 | exit 1 |
… | |
… | |
289 | { |
289 | { |
290 | { eval $1=; unset $1;} |
290 | { eval $1=; unset $1;} |
291 | } |
291 | } |
292 | as_unset=as_fn_unset |
292 | as_unset=as_fn_unset |
293 | |
293 | |
|
|
294 | |
294 | # as_fn_set_status STATUS |
295 | # as_fn_set_status STATUS |
295 | # ----------------------- |
296 | # ----------------------- |
296 | # Set $? to STATUS, without forking. |
297 | # Set $? to STATUS, without forking. |
297 | as_fn_set_status () |
298 | as_fn_set_status () |
298 | { |
299 | { |
… | |
… | |
306 | { |
307 | { |
307 | set +e |
308 | set +e |
308 | as_fn_set_status $1 |
309 | as_fn_set_status $1 |
309 | exit $1 |
310 | exit $1 |
310 | } # as_fn_exit |
311 | } # as_fn_exit |
|
|
312 | # as_fn_nop |
|
|
313 | # --------- |
|
|
314 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
315 | as_fn_nop () |
|
|
316 | { |
|
|
317 | return $? |
|
|
318 | } |
|
|
319 | as_nop=as_fn_nop |
311 | |
320 | |
312 | # as_fn_mkdir_p |
321 | # as_fn_mkdir_p |
313 | # ------------- |
322 | # ------------- |
314 | # Create "$as_dir" as a directory, including parents if necessary. |
323 | # Create "$as_dir" as a directory, including parents if necessary. |
315 | as_fn_mkdir_p () |
324 | as_fn_mkdir_p () |
… | |
… | |
320 | esac |
329 | esac |
321 | test -d "$as_dir" || eval $as_mkdir_p || { |
330 | test -d "$as_dir" || eval $as_mkdir_p || { |
322 | as_dirs= |
331 | as_dirs= |
323 | while :; do |
332 | while :; do |
324 | case $as_dir in #( |
333 | case $as_dir in #( |
325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
334 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
326 | *) as_qdir=$as_dir;; |
335 | *) as_qdir=$as_dir;; |
327 | esac |
336 | esac |
328 | as_dirs="'$as_qdir' $as_dirs" |
337 | as_dirs="'$as_qdir' $as_dirs" |
329 | as_dir=`$as_dirname -- "$as_dir" || |
338 | as_dir=`$as_dirname -- "$as_dir" || |
330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
339 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
340 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
332 | X"$as_dir" : 'X\(//\)$' \| \ |
341 | X"$as_dir" : 'X\(//\)$' \| \ |
333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
342 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
334 | $as_echo X"$as_dir" | |
343 | printf "%s\n" X"$as_dir" | |
335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
344 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
336 | s//\1/ |
345 | s//\1/ |
337 | q |
346 | q |
338 | } |
347 | } |
339 | /^X\(\/\/\)[^/].*/{ |
348 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
368 | # ---------------------- |
377 | # ---------------------- |
369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
378 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
370 | # advantage of any shell optimizations that allow amortized linear growth over |
379 | # advantage of any shell optimizations that allow amortized linear growth over |
371 | # repeated appends, instead of the typical quadratic growth present in naive |
380 | # repeated appends, instead of the typical quadratic growth present in naive |
372 | # implementations. |
381 | # implementations. |
373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
382 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
383 | then : |
374 | eval 'as_fn_append () |
384 | eval 'as_fn_append () |
375 | { |
385 | { |
376 | eval $1+=\$2 |
386 | eval $1+=\$2 |
377 | }' |
387 | }' |
378 | else |
388 | else $as_nop |
379 | as_fn_append () |
389 | as_fn_append () |
380 | { |
390 | { |
381 | eval $1=\$$1\$2 |
391 | eval $1=\$$1\$2 |
382 | } |
392 | } |
383 | fi # as_fn_append |
393 | fi # as_fn_append |
… | |
… | |
385 | # as_fn_arith ARG... |
395 | # as_fn_arith ARG... |
386 | # ------------------ |
396 | # ------------------ |
387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
397 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
398 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
389 | # must be portable across $(()) and expr. |
399 | # must be portable across $(()) and expr. |
390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
400 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
401 | then : |
391 | eval 'as_fn_arith () |
402 | eval 'as_fn_arith () |
392 | { |
403 | { |
393 | as_val=$(( $* )) |
404 | as_val=$(( $* )) |
394 | }' |
405 | }' |
395 | else |
406 | else $as_nop |
396 | as_fn_arith () |
407 | as_fn_arith () |
397 | { |
408 | { |
398 | as_val=`expr "$@" || test $? -eq 1` |
409 | as_val=`expr "$@" || test $? -eq 1` |
399 | } |
410 | } |
400 | fi # as_fn_arith |
411 | fi # as_fn_arith |
401 | |
412 | |
|
|
413 | # as_fn_nop |
|
|
414 | # --------- |
|
|
415 | # Do nothing but, unlike ":", preserve the value of $?. |
|
|
416 | as_fn_nop () |
|
|
417 | { |
|
|
418 | return $? |
|
|
419 | } |
|
|
420 | as_nop=as_fn_nop |
402 | |
421 | |
403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
422 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 | # ---------------------------------------- |
423 | # ---------------------------------------- |
405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
424 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
425 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
… | |
… | |
408 | as_fn_error () |
427 | as_fn_error () |
409 | { |
428 | { |
410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
429 | as_status=$1; test $as_status -eq 0 && as_status=1 |
411 | if test "$4"; then |
430 | if test "$4"; then |
412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
431 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
432 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
414 | fi |
433 | fi |
415 | $as_echo "$as_me: error: $2" >&2 |
434 | printf "%s\n" "$as_me: error: $2" >&2 |
416 | as_fn_exit $as_status |
435 | as_fn_exit $as_status |
417 | } # as_fn_error |
436 | } # as_fn_error |
418 | |
437 | |
419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
438 | if expr a : '\(a\)' >/dev/null 2>&1 && |
420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
439 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
… | |
… | |
437 | |
456 | |
438 | as_me=`$as_basename -- "$0" || |
457 | as_me=`$as_basename -- "$0" || |
439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 | X"$0" : 'X\(//\)$' \| \ |
459 | X"$0" : 'X\(//\)$' \| \ |
441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
460 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 | $as_echo X/"$0" | |
461 | printf "%s\n" X/"$0" | |
443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
462 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
444 | s//\1/ |
463 | s//\1/ |
445 | q |
464 | q |
446 | } |
465 | } |
447 | /^X\/\(\/\/\)$/{ |
466 | /^X\/\(\/\/\)$/{ |
… | |
… | |
481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
500 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
482 | t loop |
501 | t loop |
483 | s/-\n.*// |
502 | s/-\n.*// |
484 | ' >$as_me.lineno && |
503 | ' >$as_me.lineno && |
485 | chmod +x "$as_me.lineno" || |
504 | chmod +x "$as_me.lineno" || |
486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
505 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
487 | |
506 | |
488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
507 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
489 | # already done that, so ensure we don't try to do so again and fall |
508 | # already done that, so ensure we don't try to do so again and fall |
490 | # in an infinite loop. This has already happened in practice. |
509 | # in an infinite loop. This has already happened in practice. |
491 | _as_can_reexec=no; export _as_can_reexec |
510 | _as_can_reexec=no; export _as_can_reexec |
… | |
… | |
495 | . "./$as_me.lineno" |
514 | . "./$as_me.lineno" |
496 | # Exit status is that of the last command. |
515 | # Exit status is that of the last command. |
497 | exit |
516 | exit |
498 | } |
517 | } |
499 | |
518 | |
|
|
519 | |
|
|
520 | # Determine whether it's possible to make 'echo' print without a newline. |
|
|
521 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
|
|
522 | # for compatibility with existing Makefiles. |
500 | ECHO_C= ECHO_N= ECHO_T= |
523 | ECHO_C= ECHO_N= ECHO_T= |
501 | case `echo -n x` in #((((( |
524 | case `echo -n x` in #((((( |
502 | -n*) |
525 | -n*) |
503 | case `echo 'xy\c'` in |
526 | case `echo 'xy\c'` in |
504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
527 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
… | |
… | |
507 | ECHO_T=' ';; |
530 | ECHO_T=' ';; |
508 | esac;; |
531 | esac;; |
509 | *) |
532 | *) |
510 | ECHO_N='-n';; |
533 | ECHO_N='-n';; |
511 | esac |
534 | esac |
|
|
535 | |
|
|
536 | # For backward compatibility with old third-party macros, we provide |
|
|
537 | # the shell variables $as_echo and $as_echo_n. New code should use |
|
|
538 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
|
|
539 | as_echo='printf %s\n' |
|
|
540 | as_echo_n='printf %s' |
|
|
541 | |
512 | |
542 | |
513 | rm -f conf$$ conf$$.exe conf$$.file |
543 | rm -f conf$$ conf$$.exe conf$$.file |
514 | if test -d conf$$.dir; then |
544 | if test -d conf$$.dir; then |
515 | rm -f conf$$.dir/conf$$.file |
545 | rm -f conf$$.dir/conf$$.file |
516 | else |
546 | else |
… | |
… | |
573 | subdirs= |
603 | subdirs= |
574 | MFLAGS= |
604 | MFLAGS= |
575 | MAKEFLAGS= |
605 | MAKEFLAGS= |
576 | |
606 | |
577 | # Identity of this package. |
607 | # Identity of this package. |
578 | PACKAGE_NAME= |
608 | PACKAGE_NAME='' |
579 | PACKAGE_TARNAME= |
609 | PACKAGE_TARNAME='' |
580 | PACKAGE_VERSION= |
610 | PACKAGE_VERSION='' |
581 | PACKAGE_STRING= |
611 | PACKAGE_STRING='' |
582 | PACKAGE_BUGREPORT= |
612 | PACKAGE_BUGREPORT='' |
583 | PACKAGE_URL= |
613 | PACKAGE_URL='' |
584 | |
614 | |
585 | ac_unique_file="libeio/eio.h" |
615 | ac_unique_file="libeio/eio.h" |
586 | # Factoring default headers for most tests. |
616 | # Factoring default headers for most tests. |
587 | ac_includes_default="\ |
617 | ac_includes_default="\ |
|
|
618 | #include <stddef.h> |
|
|
619 | #ifdef HAVE_STDIO_H |
588 | #include <stdio.h> |
620 | # include <stdio.h> |
589 | #ifdef HAVE_SYS_TYPES_H |
|
|
590 | # include <sys/types.h> |
|
|
591 | #endif |
621 | #endif |
592 | #ifdef HAVE_SYS_STAT_H |
622 | #ifdef HAVE_STDLIB_H |
593 | # include <sys/stat.h> |
|
|
594 | #endif |
|
|
595 | #ifdef STDC_HEADERS |
|
|
596 | # include <stdlib.h> |
623 | # include <stdlib.h> |
597 | # include <stddef.h> |
|
|
598 | #else |
|
|
599 | # ifdef HAVE_STDLIB_H |
|
|
600 | # include <stdlib.h> |
|
|
601 | # endif |
|
|
602 | #endif |
624 | #endif |
603 | #ifdef HAVE_STRING_H |
625 | #ifdef HAVE_STRING_H |
604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
|
|
605 | # include <memory.h> |
|
|
606 | # endif |
|
|
607 | # include <string.h> |
626 | # include <string.h> |
608 | #endif |
|
|
609 | #ifdef HAVE_STRINGS_H |
|
|
610 | # include <strings.h> |
|
|
611 | #endif |
627 | #endif |
612 | #ifdef HAVE_INTTYPES_H |
628 | #ifdef HAVE_INTTYPES_H |
613 | # include <inttypes.h> |
629 | # include <inttypes.h> |
614 | #endif |
630 | #endif |
615 | #ifdef HAVE_STDINT_H |
631 | #ifdef HAVE_STDINT_H |
616 | # include <stdint.h> |
632 | # include <stdint.h> |
617 | #endif |
633 | #endif |
|
|
634 | #ifdef HAVE_STRINGS_H |
|
|
635 | # include <strings.h> |
|
|
636 | #endif |
|
|
637 | #ifdef HAVE_SYS_TYPES_H |
|
|
638 | # include <sys/types.h> |
|
|
639 | #endif |
|
|
640 | #ifdef HAVE_SYS_STAT_H |
|
|
641 | # include <sys/stat.h> |
|
|
642 | #endif |
618 | #ifdef HAVE_UNISTD_H |
643 | #ifdef HAVE_UNISTD_H |
619 | # include <unistd.h> |
644 | # include <unistd.h> |
620 | #endif" |
645 | #endif" |
621 | |
646 | |
|
|
647 | ac_header_c_list= |
622 | ac_subst_vars='LTLIBOBJS |
648 | ac_subst_vars='LTLIBOBJS |
623 | LIBOBJS |
649 | LIBOBJS |
624 | EGREP |
|
|
625 | GREP |
|
|
626 | CPP |
|
|
627 | OBJEXT |
650 | OBJEXT |
628 | EXEEXT |
651 | EXEEXT |
629 | ac_ct_CC |
652 | ac_ct_CC |
630 | CPPFLAGS |
653 | CPPFLAGS |
631 | LDFLAGS |
654 | LDFLAGS |
… | |
… | |
679 | target_alias |
702 | target_alias |
680 | CC |
703 | CC |
681 | CFLAGS |
704 | CFLAGS |
682 | LDFLAGS |
705 | LDFLAGS |
683 | LIBS |
706 | LIBS |
684 | CPPFLAGS |
707 | CPPFLAGS' |
685 | CPP' |
|
|
686 | |
708 | |
687 | |
709 | |
688 | # Initialize some variables set by options. |
710 | # Initialize some variables set by options. |
689 | ac_init_help= |
711 | ac_init_help= |
690 | ac_init_version=false |
712 | ac_init_version=false |
… | |
… | |
749 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
771 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
750 | *=) ac_optarg= ;; |
772 | *=) ac_optarg= ;; |
751 | *) ac_optarg=yes ;; |
773 | *) ac_optarg=yes ;; |
752 | esac |
774 | esac |
753 | |
775 | |
754 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|
|
755 | |
|
|
756 | case $ac_dashdash$ac_option in |
776 | case $ac_dashdash$ac_option in |
757 | --) |
777 | --) |
758 | ac_dashdash=yes ;; |
778 | ac_dashdash=yes ;; |
759 | |
779 | |
760 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
780 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
… | |
… | |
791 | |
811 | |
792 | -disable-* | --disable-*) |
812 | -disable-* | --disable-*) |
793 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
813 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
794 | # Reject names that are not valid shell variable names. |
814 | # Reject names that are not valid shell variable names. |
795 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
815 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
796 | as_fn_error $? "invalid feature name: $ac_useropt" |
816 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
797 | ac_useropt_orig=$ac_useropt |
817 | ac_useropt_orig=$ac_useropt |
798 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
818 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
799 | case $ac_user_opts in |
819 | case $ac_user_opts in |
800 | *" |
820 | *" |
801 | "enable_$ac_useropt" |
821 | "enable_$ac_useropt" |
802 | "*) ;; |
822 | "*) ;; |
803 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
823 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
… | |
… | |
817 | |
837 | |
818 | -enable-* | --enable-*) |
838 | -enable-* | --enable-*) |
819 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
839 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
820 | # Reject names that are not valid shell variable names. |
840 | # Reject names that are not valid shell variable names. |
821 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
841 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
822 | as_fn_error $? "invalid feature name: $ac_useropt" |
842 | as_fn_error $? "invalid feature name: \`$ac_useropt'" |
823 | ac_useropt_orig=$ac_useropt |
843 | ac_useropt_orig=$ac_useropt |
824 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
844 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
825 | case $ac_user_opts in |
845 | case $ac_user_opts in |
826 | *" |
846 | *" |
827 | "enable_$ac_useropt" |
847 | "enable_$ac_useropt" |
828 | "*) ;; |
848 | "*) ;; |
829 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
849 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
… | |
… | |
1030 | |
1050 | |
1031 | -with-* | --with-*) |
1051 | -with-* | --with-*) |
1032 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1052 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1033 | # Reject names that are not valid shell variable names. |
1053 | # Reject names that are not valid shell variable names. |
1034 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1054 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1035 | as_fn_error $? "invalid package name: $ac_useropt" |
1055 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1036 | ac_useropt_orig=$ac_useropt |
1056 | ac_useropt_orig=$ac_useropt |
1037 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1057 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1038 | case $ac_user_opts in |
1058 | case $ac_user_opts in |
1039 | *" |
1059 | *" |
1040 | "with_$ac_useropt" |
1060 | "with_$ac_useropt" |
1041 | "*) ;; |
1061 | "*) ;; |
1042 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1062 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
… | |
… | |
1046 | |
1066 | |
1047 | -without-* | --without-*) |
1067 | -without-* | --without-*) |
1048 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1068 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1049 | # Reject names that are not valid shell variable names. |
1069 | # Reject names that are not valid shell variable names. |
1050 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1070 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1051 | as_fn_error $? "invalid package name: $ac_useropt" |
1071 | as_fn_error $? "invalid package name: \`$ac_useropt'" |
1052 | ac_useropt_orig=$ac_useropt |
1072 | ac_useropt_orig=$ac_useropt |
1053 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1073 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1054 | case $ac_user_opts in |
1074 | case $ac_user_opts in |
1055 | *" |
1075 | *" |
1056 | "with_$ac_useropt" |
1076 | "with_$ac_useropt" |
1057 | "*) ;; |
1077 | "*) ;; |
1058 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1078 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
… | |
… | |
1092 | eval $ac_envvar=\$ac_optarg |
1112 | eval $ac_envvar=\$ac_optarg |
1093 | export $ac_envvar ;; |
1113 | export $ac_envvar ;; |
1094 | |
1114 | |
1095 | *) |
1115 | *) |
1096 | # FIXME: should be removed in autoconf 3.0. |
1116 | # FIXME: should be removed in autoconf 3.0. |
1097 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1117 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1098 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1118 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1099 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1119 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1100 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1120 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1101 | ;; |
1121 | ;; |
1102 | |
1122 | |
1103 | esac |
1123 | esac |
1104 | done |
1124 | done |
… | |
… | |
1110 | |
1130 | |
1111 | if test -n "$ac_unrecognized_opts"; then |
1131 | if test -n "$ac_unrecognized_opts"; then |
1112 | case $enable_option_checking in |
1132 | case $enable_option_checking in |
1113 | no) ;; |
1133 | no) ;; |
1114 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1134 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1115 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1135 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1116 | esac |
1136 | esac |
1117 | fi |
1137 | fi |
1118 | |
1138 | |
1119 | # Check all directory arguments for consistency. |
1139 | # Check all directory arguments for consistency. |
1120 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1140 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
… | |
… | |
1174 | ac_confdir=`$as_dirname -- "$as_myself" || |
1194 | ac_confdir=`$as_dirname -- "$as_myself" || |
1175 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1195 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1176 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1196 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1177 | X"$as_myself" : 'X\(//\)$' \| \ |
1197 | X"$as_myself" : 'X\(//\)$' \| \ |
1178 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1198 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1179 | $as_echo X"$as_myself" | |
1199 | printf "%s\n" X"$as_myself" | |
1180 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1200 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1181 | s//\1/ |
1201 | s//\1/ |
1182 | q |
1202 | q |
1183 | } |
1203 | } |
1184 | /^X\(\/\/\)[^/].*/{ |
1204 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
1303 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1323 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1304 | nonstandard directory <lib dir> |
1324 | nonstandard directory <lib dir> |
1305 | LIBS libraries to pass to the linker, e.g. -l<library> |
1325 | LIBS libraries to pass to the linker, e.g. -l<library> |
1306 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1326 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1307 | you have headers in a nonstandard directory <include dir> |
1327 | you have headers in a nonstandard directory <include dir> |
1308 | CPP C preprocessor |
|
|
1309 | |
1328 | |
1310 | Use these variables to override the choices made by `configure' or to help |
1329 | Use these variables to override the choices made by `configure' or to help |
1311 | it to find libraries and programs with nonstandard names/locations. |
1330 | it to find libraries and programs with nonstandard names/locations. |
1312 | |
1331 | |
1313 | Report bugs to the package provider. |
1332 | Report bugs to the package provider. |
… | |
… | |
1324 | ac_builddir=. |
1343 | ac_builddir=. |
1325 | |
1344 | |
1326 | case "$ac_dir" in |
1345 | case "$ac_dir" in |
1327 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1346 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1328 | *) |
1347 | *) |
1329 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1348 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1330 | # A ".." for each directory in $ac_dir_suffix. |
1349 | # A ".." for each directory in $ac_dir_suffix. |
1331 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1350 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1332 | case $ac_top_builddir_sub in |
1351 | case $ac_top_builddir_sub in |
1333 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1352 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1334 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1353 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1335 | esac ;; |
1354 | esac ;; |
1336 | esac |
1355 | esac |
… | |
… | |
1354 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1373 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1355 | esac |
1374 | esac |
1356 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1375 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1357 | |
1376 | |
1358 | cd "$ac_dir" || { ac_status=$?; continue; } |
1377 | cd "$ac_dir" || { ac_status=$?; continue; } |
1359 | # Check for guested configure. |
1378 | # Check for configure.gnu first; this name is used for a wrapper for |
|
|
1379 | # Metaconfig's "Configure" on case-insensitive file systems. |
1360 | if test -f "$ac_srcdir/configure.gnu"; then |
1380 | if test -f "$ac_srcdir/configure.gnu"; then |
1361 | echo && |
1381 | echo && |
1362 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1382 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1363 | elif test -f "$ac_srcdir/configure"; then |
1383 | elif test -f "$ac_srcdir/configure"; then |
1364 | echo && |
1384 | echo && |
1365 | $SHELL "$ac_srcdir/configure" --help=recursive |
1385 | $SHELL "$ac_srcdir/configure" --help=recursive |
1366 | else |
1386 | else |
1367 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1387 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1368 | fi || ac_status=$? |
1388 | fi || ac_status=$? |
1369 | cd "$ac_pwd" || { ac_status=$?; break; } |
1389 | cd "$ac_pwd" || { ac_status=$?; break; } |
1370 | done |
1390 | done |
1371 | fi |
1391 | fi |
1372 | |
1392 | |
1373 | test -n "$ac_init_help" && exit $ac_status |
1393 | test -n "$ac_init_help" && exit $ac_status |
1374 | if $ac_init_version; then |
1394 | if $ac_init_version; then |
1375 | cat <<\_ACEOF |
1395 | cat <<\_ACEOF |
1376 | configure |
1396 | configure |
1377 | generated by GNU Autoconf 2.69 |
1397 | generated by GNU Autoconf 2.71 |
1378 | |
1398 | |
1379 | Copyright (C) 2012 Free Software Foundation, Inc. |
1399 | Copyright (C) 2021 Free Software Foundation, Inc. |
1380 | This configure script is free software; the Free Software Foundation |
1400 | This configure script is free software; the Free Software Foundation |
1381 | gives unlimited permission to copy, distribute and modify it. |
1401 | gives unlimited permission to copy, distribute and modify it. |
1382 | _ACEOF |
1402 | _ACEOF |
1383 | exit |
1403 | exit |
1384 | fi |
1404 | fi |
… | |
… | |
1391 | # -------------------------- |
1411 | # -------------------------- |
1392 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1412 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
1393 | ac_fn_c_try_compile () |
1413 | ac_fn_c_try_compile () |
1394 | { |
1414 | { |
1395 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1415 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1396 | rm -f conftest.$ac_objext |
1416 | rm -f conftest.$ac_objext conftest.beam |
1397 | if { { ac_try="$ac_compile" |
1417 | if { { ac_try="$ac_compile" |
1398 | case "(($ac_try" in |
1418 | case "(($ac_try" in |
1399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1400 | *) ac_try_echo=$ac_try;; |
1420 | *) ac_try_echo=$ac_try;; |
1401 | esac |
1421 | esac |
1402 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1422 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1403 | $as_echo "$ac_try_echo"; } >&5 |
1423 | printf "%s\n" "$ac_try_echo"; } >&5 |
1404 | (eval "$ac_compile") 2>conftest.err |
1424 | (eval "$ac_compile") 2>conftest.err |
1405 | ac_status=$? |
1425 | ac_status=$? |
1406 | if test -s conftest.err; then |
1426 | if test -s conftest.err; then |
1407 | grep -v '^ *+' conftest.err >conftest.er1 |
1427 | grep -v '^ *+' conftest.err >conftest.er1 |
1408 | cat conftest.er1 >&5 |
1428 | cat conftest.er1 >&5 |
1409 | mv -f conftest.er1 conftest.err |
1429 | mv -f conftest.er1 conftest.err |
1410 | fi |
1430 | fi |
1411 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1431 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1412 | test $ac_status = 0; } && { |
1432 | test $ac_status = 0; } && { |
1413 | test -z "$ac_c_werror_flag" || |
1433 | test -z "$ac_c_werror_flag" || |
1414 | test ! -s conftest.err |
1434 | test ! -s conftest.err |
1415 | } && test -s conftest.$ac_objext; then : |
1435 | } && test -s conftest.$ac_objext |
|
|
1436 | then : |
1416 | ac_retval=0 |
1437 | ac_retval=0 |
1417 | else |
1438 | else $as_nop |
1418 | $as_echo "$as_me: failed program was:" >&5 |
1439 | printf "%s\n" "$as_me: failed program was:" >&5 |
1419 | sed 's/^/| /' conftest.$ac_ext >&5 |
1440 | sed 's/^/| /' conftest.$ac_ext >&5 |
1420 | |
1441 | |
1421 | ac_retval=1 |
1442 | ac_retval=1 |
1422 | fi |
1443 | fi |
1423 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1444 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1424 | as_fn_set_status $ac_retval |
1445 | as_fn_set_status $ac_retval |
1425 | |
1446 | |
1426 | } # ac_fn_c_try_compile |
1447 | } # ac_fn_c_try_compile |
1427 | |
1448 | |
1428 | # ac_fn_c_try_cpp LINENO |
1449 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1429 | # ---------------------- |
1450 | # ------------------------------------------------------- |
1430 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1451 | # Tests whether HEADER exists and can be compiled using the include files in |
1431 | ac_fn_c_try_cpp () |
1452 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1453 | ac_fn_c_check_header_compile () |
1432 | { |
1454 | { |
1433 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1455 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1434 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
|
|
1435 | case "(($ac_try" in |
|
|
1436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1437 | *) ac_try_echo=$ac_try;; |
|
|
1438 | esac |
|
|
1439 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1440 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1441 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
|
|
1442 | ac_status=$? |
|
|
1443 | if test -s conftest.err; then |
|
|
1444 | grep -v '^ *+' conftest.err >conftest.er1 |
|
|
1445 | cat conftest.er1 >&5 |
|
|
1446 | mv -f conftest.er1 conftest.err |
|
|
1447 | fi |
|
|
1448 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1449 | test $ac_status = 0; } > conftest.i && { |
|
|
1450 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
|
|
1451 | test ! -s conftest.err |
|
|
1452 | }; then : |
|
|
1453 | ac_retval=0 |
|
|
1454 | else |
|
|
1455 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1456 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1457 | |
|
|
1458 | ac_retval=1 |
|
|
1459 | fi |
|
|
1460 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1461 | as_fn_set_status $ac_retval |
|
|
1462 | |
|
|
1463 | } # ac_fn_c_try_cpp |
|
|
1464 | |
|
|
1465 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
|
|
1466 | # ------------------------------------------------------- |
|
|
1467 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
|
|
1468 | # the include files in INCLUDES and setting the cache variable VAR |
|
|
1469 | # accordingly. |
|
|
1470 | ac_fn_c_check_header_mongrel () |
|
|
1471 | { |
|
|
1472 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1473 | if eval \${$3+:} false; then : |
|
|
1474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1475 | $as_echo_n "checking for $2... " >&6; } |
1457 | printf %s "checking for $2... " >&6; } |
1476 | if eval \${$3+:} false; then : |
1458 | if eval test \${$3+y} |
1477 | $as_echo_n "(cached) " >&6 |
1459 | then : |
1478 | fi |
1460 | printf %s "(cached) " >&6 |
1479 | eval ac_res=\$$3 |
1461 | else $as_nop |
1480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1481 | $as_echo "$ac_res" >&6; } |
|
|
1482 | else |
|
|
1483 | # Is the header compilable? |
|
|
1484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
|
|
1485 | $as_echo_n "checking $2 usability... " >&6; } |
|
|
1486 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1487 | /* end confdefs.h. */ |
1463 | /* end confdefs.h. */ |
1488 | $4 |
1464 | $4 |
1489 | #include <$2> |
1465 | #include <$2> |
1490 | _ACEOF |
1466 | _ACEOF |
1491 | if ac_fn_c_try_compile "$LINENO"; then : |
1467 | if ac_fn_c_try_compile "$LINENO" |
1492 | ac_header_compiler=yes |
1468 | then : |
1493 | else |
1469 | eval "$3=yes" |
1494 | ac_header_compiler=no |
1470 | else $as_nop |
|
|
1471 | eval "$3=no" |
1495 | fi |
1472 | fi |
1496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1473 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
|
|
1498 | $as_echo "$ac_header_compiler" >&6; } |
|
|
1499 | |
|
|
1500 | # Is the header present? |
|
|
1501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
|
|
1502 | $as_echo_n "checking $2 presence... " >&6; } |
|
|
1503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1504 | /* end confdefs.h. */ |
|
|
1505 | #include <$2> |
|
|
1506 | _ACEOF |
|
|
1507 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
1508 | ac_header_preproc=yes |
|
|
1509 | else |
|
|
1510 | ac_header_preproc=no |
|
|
1511 | fi |
|
|
1512 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
1513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
|
|
1514 | $as_echo "$ac_header_preproc" >&6; } |
|
|
1515 | |
|
|
1516 | # So? What about this header? |
|
|
1517 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
|
|
1518 | yes:no: ) |
|
|
1519 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
|
|
1520 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
|
|
1521 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
|
1522 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
|
1523 | ;; |
|
|
1524 | no:yes:* ) |
|
|
1525 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
|
|
1526 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
|
|
1527 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
|
|
1528 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
|
|
1529 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
|
|
1530 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
|
|
1531 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
|
|
1532 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
|
|
1533 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
|
|
1534 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
|
|
1535 | ;; |
|
|
1536 | esac |
|
|
1537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1538 | $as_echo_n "checking for $2... " >&6; } |
|
|
1539 | if eval \${$3+:} false; then : |
|
|
1540 | $as_echo_n "(cached) " >&6 |
|
|
1541 | else |
|
|
1542 | eval "$3=\$ac_header_compiler" |
|
|
1543 | fi |
1474 | fi |
1544 | eval ac_res=\$$3 |
1475 | eval ac_res=\$$3 |
1545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1546 | $as_echo "$ac_res" >&6; } |
1477 | printf "%s\n" "$ac_res" >&6; } |
1547 | fi |
|
|
1548 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1478 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1549 | |
1479 | |
1550 | } # ac_fn_c_check_header_mongrel |
1480 | } # ac_fn_c_check_header_compile |
1551 | |
1481 | |
1552 | # ac_fn_c_try_run LINENO |
1482 | # ac_fn_c_try_link LINENO |
1553 | # ---------------------- |
1483 | # ----------------------- |
1554 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1484 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1555 | # that executables *can* be run. |
|
|
1556 | ac_fn_c_try_run () |
1485 | ac_fn_c_try_link () |
1557 | { |
1486 | { |
1558 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1487 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1488 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1559 | if { { ac_try="$ac_link" |
1489 | if { { ac_try="$ac_link" |
1560 | case "(($ac_try" in |
1490 | case "(($ac_try" in |
1561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1562 | *) ac_try_echo=$ac_try;; |
1492 | *) ac_try_echo=$ac_try;; |
1563 | esac |
1493 | esac |
1564 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1565 | $as_echo "$ac_try_echo"; } >&5 |
1495 | printf "%s\n" "$ac_try_echo"; } >&5 |
1566 | (eval "$ac_link") 2>&5 |
|
|
1567 | ac_status=$? |
|
|
1568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1569 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
|
|
1570 | { { case "(($ac_try" in |
|
|
1571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1572 | *) ac_try_echo=$ac_try;; |
|
|
1573 | esac |
|
|
1574 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1575 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1576 | (eval "$ac_try") 2>&5 |
|
|
1577 | ac_status=$? |
|
|
1578 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
|
|
1579 | test $ac_status = 0; }; }; then : |
|
|
1580 | ac_retval=0 |
|
|
1581 | else |
|
|
1582 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
|
|
1583 | $as_echo "$as_me: failed program was:" >&5 |
|
|
1584 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
1585 | |
|
|
1586 | ac_retval=$ac_status |
|
|
1587 | fi |
|
|
1588 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
|
|
1589 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1590 | as_fn_set_status $ac_retval |
|
|
1591 | |
|
|
1592 | } # ac_fn_c_try_run |
|
|
1593 | |
|
|
1594 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
|
|
1595 | # ------------------------------------------------------- |
|
|
1596 | # Tests whether HEADER exists and can be compiled using the include files in |
|
|
1597 | # INCLUDES, setting the cache variable VAR accordingly. |
|
|
1598 | ac_fn_c_check_header_compile () |
|
|
1599 | { |
|
|
1600 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
|
|
1602 | $as_echo_n "checking for $2... " >&6; } |
|
|
1603 | if eval \${$3+:} false; then : |
|
|
1604 | $as_echo_n "(cached) " >&6 |
|
|
1605 | else |
|
|
1606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
1607 | /* end confdefs.h. */ |
|
|
1608 | $4 |
|
|
1609 | #include <$2> |
|
|
1610 | _ACEOF |
|
|
1611 | if ac_fn_c_try_compile "$LINENO"; then : |
|
|
1612 | eval "$3=yes" |
|
|
1613 | else |
|
|
1614 | eval "$3=no" |
|
|
1615 | fi |
|
|
1616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
|
|
1617 | fi |
|
|
1618 | eval ac_res=\$$3 |
|
|
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
|
|
1620 | $as_echo "$ac_res" >&6; } |
|
|
1621 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
|
|
1622 | |
|
|
1623 | } # ac_fn_c_check_header_compile |
|
|
1624 | |
|
|
1625 | # ac_fn_c_try_link LINENO |
|
|
1626 | # ----------------------- |
|
|
1627 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
|
|
1628 | ac_fn_c_try_link () |
|
|
1629 | { |
|
|
1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
|
|
1631 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
1632 | if { { ac_try="$ac_link" |
|
|
1633 | case "(($ac_try" in |
|
|
1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
1635 | *) ac_try_echo=$ac_try;; |
|
|
1636 | esac |
|
|
1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
|
|
1638 | $as_echo "$ac_try_echo"; } >&5 |
|
|
1639 | (eval "$ac_link") 2>conftest.err |
1496 | (eval "$ac_link") 2>conftest.err |
1640 | ac_status=$? |
1497 | ac_status=$? |
1641 | if test -s conftest.err; then |
1498 | if test -s conftest.err; then |
1642 | grep -v '^ *+' conftest.err >conftest.er1 |
1499 | grep -v '^ *+' conftest.err >conftest.er1 |
1643 | cat conftest.er1 >&5 |
1500 | cat conftest.er1 >&5 |
1644 | mv -f conftest.er1 conftest.err |
1501 | mv -f conftest.er1 conftest.err |
1645 | fi |
1502 | fi |
1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1503 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1647 | test $ac_status = 0; } && { |
1504 | test $ac_status = 0; } && { |
1648 | test -z "$ac_c_werror_flag" || |
1505 | test -z "$ac_c_werror_flag" || |
1649 | test ! -s conftest.err |
1506 | test ! -s conftest.err |
1650 | } && test -s conftest$ac_exeext && { |
1507 | } && test -s conftest$ac_exeext && { |
1651 | test "$cross_compiling" = yes || |
1508 | test "$cross_compiling" = yes || |
1652 | test -x conftest$ac_exeext |
1509 | test -x conftest$ac_exeext |
1653 | }; then : |
1510 | } |
|
|
1511 | then : |
1654 | ac_retval=0 |
1512 | ac_retval=0 |
1655 | else |
1513 | else $as_nop |
1656 | $as_echo "$as_me: failed program was:" >&5 |
1514 | printf "%s\n" "$as_me: failed program was:" >&5 |
1657 | sed 's/^/| /' conftest.$ac_ext >&5 |
1515 | sed 's/^/| /' conftest.$ac_ext >&5 |
1658 | |
1516 | |
1659 | ac_retval=1 |
1517 | ac_retval=1 |
1660 | fi |
1518 | fi |
1661 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1519 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
… | |
… | |
1665 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1523 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1666 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1524 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1667 | as_fn_set_status $ac_retval |
1525 | as_fn_set_status $ac_retval |
1668 | |
1526 | |
1669 | } # ac_fn_c_try_link |
1527 | } # ac_fn_c_try_link |
|
|
1528 | ac_configure_args_raw= |
|
|
1529 | for ac_arg |
|
|
1530 | do |
|
|
1531 | case $ac_arg in |
|
|
1532 | *\'*) |
|
|
1533 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
|
|
1534 | esac |
|
|
1535 | as_fn_append ac_configure_args_raw " '$ac_arg'" |
|
|
1536 | done |
|
|
1537 | |
|
|
1538 | case $ac_configure_args_raw in |
|
|
1539 | *$as_nl*) |
|
|
1540 | ac_safe_unquote= ;; |
|
|
1541 | *) |
|
|
1542 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
|
|
1543 | ac_unsafe_a="$ac_unsafe_z#~" |
|
|
1544 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
|
|
1545 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
|
|
1546 | esac |
|
|
1547 | |
1670 | cat >config.log <<_ACEOF |
1548 | cat >config.log <<_ACEOF |
1671 | This file contains any messages produced by compilers while |
1549 | This file contains any messages produced by compilers while |
1672 | running configure, to aid debugging if configure makes a mistake. |
1550 | running configure, to aid debugging if configure makes a mistake. |
1673 | |
1551 | |
1674 | It was created by $as_me, which was |
1552 | It was created by $as_me, which was |
1675 | generated by GNU Autoconf 2.69. Invocation command line was |
1553 | generated by GNU Autoconf 2.71. Invocation command line was |
1676 | |
1554 | |
1677 | $ $0 $@ |
1555 | $ $0$ac_configure_args_raw |
1678 | |
1556 | |
1679 | _ACEOF |
1557 | _ACEOF |
1680 | exec 5>>config.log |
1558 | exec 5>>config.log |
1681 | { |
1559 | { |
1682 | cat <<_ASUNAME |
1560 | cat <<_ASUNAME |
… | |
… | |
1705 | |
1583 | |
1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1707 | for as_dir in $PATH |
1585 | for as_dir in $PATH |
1708 | do |
1586 | do |
1709 | IFS=$as_save_IFS |
1587 | IFS=$as_save_IFS |
1710 | test -z "$as_dir" && as_dir=. |
1588 | case $as_dir in #((( |
1711 | $as_echo "PATH: $as_dir" |
1589 | '') as_dir=./ ;; |
|
|
1590 | */) ;; |
|
|
1591 | *) as_dir=$as_dir/ ;; |
|
|
1592 | esac |
|
|
1593 | printf "%s\n" "PATH: $as_dir" |
1712 | done |
1594 | done |
1713 | IFS=$as_save_IFS |
1595 | IFS=$as_save_IFS |
1714 | |
1596 | |
1715 | } >&5 |
1597 | } >&5 |
1716 | |
1598 | |
… | |
… | |
1741 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1623 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1742 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1624 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1743 | | -silent | --silent | --silen | --sile | --sil) |
1625 | | -silent | --silent | --silen | --sile | --sil) |
1744 | continue ;; |
1626 | continue ;; |
1745 | *\'*) |
1627 | *\'*) |
1746 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1628 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1747 | esac |
1629 | esac |
1748 | case $ac_pass in |
1630 | case $ac_pass in |
1749 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1631 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1750 | 2) |
1632 | 2) |
1751 | as_fn_append ac_configure_args1 " '$ac_arg'" |
1633 | as_fn_append ac_configure_args1 " '$ac_arg'" |
… | |
… | |
1776 | # config.log. We remove comments because anyway the quotes in there |
1658 | # config.log. We remove comments because anyway the quotes in there |
1777 | # would cause problems or look ugly. |
1659 | # would cause problems or look ugly. |
1778 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1660 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1779 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1661 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1780 | trap 'exit_status=$? |
1662 | trap 'exit_status=$? |
|
|
1663 | # Sanitize IFS. |
|
|
1664 | IFS=" "" $as_nl" |
1781 | # Save into config.log some information that might help in debugging. |
1665 | # Save into config.log some information that might help in debugging. |
1782 | { |
1666 | { |
1783 | echo |
1667 | echo |
1784 | |
1668 | |
1785 | $as_echo "## ---------------- ## |
1669 | printf "%s\n" "## ---------------- ## |
1786 | ## Cache variables. ## |
1670 | ## Cache variables. ## |
1787 | ## ---------------- ##" |
1671 | ## ---------------- ##" |
1788 | echo |
1672 | echo |
1789 | # The following way of writing the cache mishandles newlines in values, |
1673 | # The following way of writing the cache mishandles newlines in values, |
1790 | ( |
1674 | ( |
1791 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1675 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1792 | eval ac_val=\$$ac_var |
1676 | eval ac_val=\$$ac_var |
1793 | case $ac_val in #( |
1677 | case $ac_val in #( |
1794 | *${as_nl}*) |
1678 | *${as_nl}*) |
1795 | case $ac_var in #( |
1679 | case $ac_var in #( |
1796 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1680 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1797 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1681 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1798 | esac |
1682 | esac |
1799 | case $ac_var in #( |
1683 | case $ac_var in #( |
1800 | _ | IFS | as_nl) ;; #( |
1684 | _ | IFS | as_nl) ;; #( |
1801 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1685 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1802 | *) { eval $ac_var=; unset $ac_var;} ;; |
1686 | *) { eval $ac_var=; unset $ac_var;} ;; |
… | |
… | |
1816 | esac | |
1700 | esac | |
1817 | sort |
1701 | sort |
1818 | ) |
1702 | ) |
1819 | echo |
1703 | echo |
1820 | |
1704 | |
1821 | $as_echo "## ----------------- ## |
1705 | printf "%s\n" "## ----------------- ## |
1822 | ## Output variables. ## |
1706 | ## Output variables. ## |
1823 | ## ----------------- ##" |
1707 | ## ----------------- ##" |
1824 | echo |
1708 | echo |
1825 | for ac_var in $ac_subst_vars |
1709 | for ac_var in $ac_subst_vars |
1826 | do |
1710 | do |
1827 | eval ac_val=\$$ac_var |
1711 | eval ac_val=\$$ac_var |
1828 | case $ac_val in |
1712 | case $ac_val in |
1829 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1713 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1830 | esac |
1714 | esac |
1831 | $as_echo "$ac_var='\''$ac_val'\''" |
1715 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1832 | done | sort |
1716 | done | sort |
1833 | echo |
1717 | echo |
1834 | |
1718 | |
1835 | if test -n "$ac_subst_files"; then |
1719 | if test -n "$ac_subst_files"; then |
1836 | $as_echo "## ------------------- ## |
1720 | printf "%s\n" "## ------------------- ## |
1837 | ## File substitutions. ## |
1721 | ## File substitutions. ## |
1838 | ## ------------------- ##" |
1722 | ## ------------------- ##" |
1839 | echo |
1723 | echo |
1840 | for ac_var in $ac_subst_files |
1724 | for ac_var in $ac_subst_files |
1841 | do |
1725 | do |
1842 | eval ac_val=\$$ac_var |
1726 | eval ac_val=\$$ac_var |
1843 | case $ac_val in |
1727 | case $ac_val in |
1844 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1728 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1845 | esac |
1729 | esac |
1846 | $as_echo "$ac_var='\''$ac_val'\''" |
1730 | printf "%s\n" "$ac_var='\''$ac_val'\''" |
1847 | done | sort |
1731 | done | sort |
1848 | echo |
1732 | echo |
1849 | fi |
1733 | fi |
1850 | |
1734 | |
1851 | if test -s confdefs.h; then |
1735 | if test -s confdefs.h; then |
1852 | $as_echo "## ----------- ## |
1736 | printf "%s\n" "## ----------- ## |
1853 | ## confdefs.h. ## |
1737 | ## confdefs.h. ## |
1854 | ## ----------- ##" |
1738 | ## ----------- ##" |
1855 | echo |
1739 | echo |
1856 | cat confdefs.h |
1740 | cat confdefs.h |
1857 | echo |
1741 | echo |
1858 | fi |
1742 | fi |
1859 | test "$ac_signal" != 0 && |
1743 | test "$ac_signal" != 0 && |
1860 | $as_echo "$as_me: caught signal $ac_signal" |
1744 | printf "%s\n" "$as_me: caught signal $ac_signal" |
1861 | $as_echo "$as_me: exit $exit_status" |
1745 | printf "%s\n" "$as_me: exit $exit_status" |
1862 | } >&5 |
1746 | } >&5 |
1863 | rm -f core *.core core.conftest.* && |
1747 | rm -f core *.core core.conftest.* && |
1864 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1748 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1865 | exit $exit_status |
1749 | exit $exit_status |
1866 | ' 0 |
1750 | ' 0 |
… | |
… | |
1870 | ac_signal=0 |
1754 | ac_signal=0 |
1871 | |
1755 | |
1872 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1756 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1873 | rm -f -r conftest* confdefs.h |
1757 | rm -f -r conftest* confdefs.h |
1874 | |
1758 | |
1875 | $as_echo "/* confdefs.h */" > confdefs.h |
1759 | printf "%s\n" "/* confdefs.h */" > confdefs.h |
1876 | |
1760 | |
1877 | # Predefined preprocessor variables. |
1761 | # Predefined preprocessor variables. |
1878 | |
1762 | |
1879 | cat >>confdefs.h <<_ACEOF |
1763 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
1880 | #define PACKAGE_NAME "$PACKAGE_NAME" |
|
|
1881 | _ACEOF |
|
|
1882 | |
1764 | |
1883 | cat >>confdefs.h <<_ACEOF |
1765 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
1884 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
|
|
1885 | _ACEOF |
|
|
1886 | |
1766 | |
1887 | cat >>confdefs.h <<_ACEOF |
1767 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
1888 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
|
|
1889 | _ACEOF |
|
|
1890 | |
1768 | |
1891 | cat >>confdefs.h <<_ACEOF |
1769 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
1892 | #define PACKAGE_STRING "$PACKAGE_STRING" |
|
|
1893 | _ACEOF |
|
|
1894 | |
1770 | |
1895 | cat >>confdefs.h <<_ACEOF |
1771 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
1896 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
|
|
1897 | _ACEOF |
|
|
1898 | |
1772 | |
1899 | cat >>confdefs.h <<_ACEOF |
1773 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
1900 | #define PACKAGE_URL "$PACKAGE_URL" |
|
|
1901 | _ACEOF |
|
|
1902 | |
1774 | |
1903 | |
1775 | |
1904 | # Let the site file select an alternate cache file if it wants to. |
1776 | # Let the site file select an alternate cache file if it wants to. |
1905 | # Prefer an explicitly selected file to automatically selected ones. |
1777 | # Prefer an explicitly selected file to automatically selected ones. |
1906 | ac_site_file1=NONE |
|
|
1907 | ac_site_file2=NONE |
|
|
1908 | if test -n "$CONFIG_SITE"; then |
1778 | if test -n "$CONFIG_SITE"; then |
1909 | # We do not want a PATH search for config.site. |
|
|
1910 | case $CONFIG_SITE in #(( |
|
|
1911 | -*) ac_site_file1=./$CONFIG_SITE;; |
|
|
1912 | */*) ac_site_file1=$CONFIG_SITE;; |
1779 | ac_site_files="$CONFIG_SITE" |
1913 | *) ac_site_file1=./$CONFIG_SITE;; |
|
|
1914 | esac |
|
|
1915 | elif test "x$prefix" != xNONE; then |
1780 | elif test "x$prefix" != xNONE; then |
1916 | ac_site_file1=$prefix/share/config.site |
1781 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
1917 | ac_site_file2=$prefix/etc/config.site |
|
|
1918 | else |
1782 | else |
1919 | ac_site_file1=$ac_default_prefix/share/config.site |
1783 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
1920 | ac_site_file2=$ac_default_prefix/etc/config.site |
|
|
1921 | fi |
1784 | fi |
|
|
1785 | |
1922 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1786 | for ac_site_file in $ac_site_files |
1923 | do |
1787 | do |
1924 | test "x$ac_site_file" = xNONE && continue |
1788 | case $ac_site_file in #( |
|
|
1789 | */*) : |
|
|
1790 | ;; #( |
|
|
1791 | *) : |
|
|
1792 | ac_site_file=./$ac_site_file ;; |
|
|
1793 | esac |
1925 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
1794 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1927 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1796 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
1928 | sed 's/^/| /' "$ac_site_file" >&5 |
1797 | sed 's/^/| /' "$ac_site_file" >&5 |
1929 | . "$ac_site_file" \ |
1798 | . "$ac_site_file" \ |
1930 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1799 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1931 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1800 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
1932 | as_fn_error $? "failed to load site script $ac_site_file |
1801 | as_fn_error $? "failed to load site script $ac_site_file |
1933 | See \`config.log' for more details" "$LINENO" 5; } |
1802 | See \`config.log' for more details" "$LINENO" 5; } |
1934 | fi |
1803 | fi |
1935 | done |
1804 | done |
1936 | |
1805 | |
1937 | if test -r "$cache_file"; then |
1806 | if test -r "$cache_file"; then |
1938 | # Some versions of bash will fail to source /dev/null (special files |
1807 | # Some versions of bash will fail to source /dev/null (special files |
1939 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1808 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
1940 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1809 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1941 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1942 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
1811 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
1943 | case $cache_file in |
1812 | case $cache_file in |
1944 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1813 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1945 | *) . "./$cache_file";; |
1814 | *) . "./$cache_file";; |
1946 | esac |
1815 | esac |
1947 | fi |
1816 | fi |
1948 | else |
1817 | else |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1818 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1950 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
1819 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
1951 | >$cache_file |
1820 | >$cache_file |
1952 | fi |
1821 | fi |
1953 | |
1822 | |
|
|
1823 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
|
|
1824 | # Test code for whether the C compiler supports C89 (global declarations) |
|
|
1825 | ac_c_conftest_c89_globals=' |
|
|
1826 | /* Does the compiler advertise C89 conformance? |
|
|
1827 | Do not test the value of __STDC__, because some compilers set it to 0 |
|
|
1828 | while being otherwise adequately conformant. */ |
|
|
1829 | #if !defined __STDC__ |
|
|
1830 | # error "Compiler does not advertise C89 conformance" |
|
|
1831 | #endif |
|
|
1832 | |
|
|
1833 | #include <stddef.h> |
|
|
1834 | #include <stdarg.h> |
|
|
1835 | struct stat; |
|
|
1836 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
|
|
1837 | struct buf { int x; }; |
|
|
1838 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
1839 | static char *e (p, i) |
|
|
1840 | char **p; |
|
|
1841 | int i; |
|
|
1842 | { |
|
|
1843 | return p[i]; |
|
|
1844 | } |
|
|
1845 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
1846 | { |
|
|
1847 | char *s; |
|
|
1848 | va_list v; |
|
|
1849 | va_start (v,p); |
|
|
1850 | s = g (p, va_arg (v,int)); |
|
|
1851 | va_end (v); |
|
|
1852 | return s; |
|
|
1853 | } |
|
|
1854 | |
|
|
1855 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
1856 | function prototypes and stuff, but not \xHH hex character constants. |
|
|
1857 | These do not provoke an error unfortunately, instead are silently treated |
|
|
1858 | as an "x". The following induces an error, until -std is added to get |
|
|
1859 | proper ANSI mode. Curiously \x00 != x always comes out true, for an |
|
|
1860 | array size at least. It is necessary to write \x00 == 0 to get something |
|
|
1861 | that is true only with -std. */ |
|
|
1862 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
|
|
1863 | |
|
|
1864 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
1865 | inside strings and character constants. */ |
|
|
1866 | #define FOO(x) '\''x'\'' |
|
|
1867 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
|
|
1868 | |
|
|
1869 | int test (int i, double x); |
|
|
1870 | struct s1 {int (*f) (int a);}; |
|
|
1871 | struct s2 {int (*f) (double a);}; |
|
|
1872 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
|
|
1873 | int, int);' |
|
|
1874 | |
|
|
1875 | # Test code for whether the C compiler supports C89 (body of main). |
|
|
1876 | ac_c_conftest_c89_main=' |
|
|
1877 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
|
|
1878 | ' |
|
|
1879 | |
|
|
1880 | # Test code for whether the C compiler supports C99 (global declarations) |
|
|
1881 | ac_c_conftest_c99_globals=' |
|
|
1882 | // Does the compiler advertise C99 conformance? |
|
|
1883 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
|
|
1884 | # error "Compiler does not advertise C99 conformance" |
|
|
1885 | #endif |
|
|
1886 | |
|
|
1887 | #include <stdbool.h> |
|
|
1888 | extern int puts (const char *); |
|
|
1889 | extern int printf (const char *, ...); |
|
|
1890 | extern int dprintf (int, const char *, ...); |
|
|
1891 | extern void *malloc (size_t); |
|
|
1892 | |
|
|
1893 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
|
|
1894 | // dprintf is used instead of fprintf to avoid needing to declare |
|
|
1895 | // FILE and stderr. |
|
|
1896 | #define debug(...) dprintf (2, __VA_ARGS__) |
|
|
1897 | #define showlist(...) puts (#__VA_ARGS__) |
|
|
1898 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
|
|
1899 | static void |
|
|
1900 | test_varargs_macros (void) |
|
|
1901 | { |
|
|
1902 | int x = 1234; |
|
|
1903 | int y = 5678; |
|
|
1904 | debug ("Flag"); |
|
|
1905 | debug ("X = %d\n", x); |
|
|
1906 | showlist (The first, second, and third items.); |
|
|
1907 | report (x>y, "x is %d but y is %d", x, y); |
|
|
1908 | } |
|
|
1909 | |
|
|
1910 | // Check long long types. |
|
|
1911 | #define BIG64 18446744073709551615ull |
|
|
1912 | #define BIG32 4294967295ul |
|
|
1913 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
|
|
1914 | #if !BIG_OK |
|
|
1915 | #error "your preprocessor is broken" |
|
|
1916 | #endif |
|
|
1917 | #if BIG_OK |
|
|
1918 | #else |
|
|
1919 | #error "your preprocessor is broken" |
|
|
1920 | #endif |
|
|
1921 | static long long int bignum = -9223372036854775807LL; |
|
|
1922 | static unsigned long long int ubignum = BIG64; |
|
|
1923 | |
|
|
1924 | struct incomplete_array |
|
|
1925 | { |
|
|
1926 | int datasize; |
|
|
1927 | double data[]; |
|
|
1928 | }; |
|
|
1929 | |
|
|
1930 | struct named_init { |
|
|
1931 | int number; |
|
|
1932 | const wchar_t *name; |
|
|
1933 | double average; |
|
|
1934 | }; |
|
|
1935 | |
|
|
1936 | typedef const char *ccp; |
|
|
1937 | |
|
|
1938 | static inline int |
|
|
1939 | test_restrict (ccp restrict text) |
|
|
1940 | { |
|
|
1941 | // See if C++-style comments work. |
|
|
1942 | // Iterate through items via the restricted pointer. |
|
|
1943 | // Also check for declarations in for loops. |
|
|
1944 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
|
|
1945 | continue; |
|
|
1946 | return 0; |
|
|
1947 | } |
|
|
1948 | |
|
|
1949 | // Check varargs and va_copy. |
|
|
1950 | static bool |
|
|
1951 | test_varargs (const char *format, ...) |
|
|
1952 | { |
|
|
1953 | va_list args; |
|
|
1954 | va_start (args, format); |
|
|
1955 | va_list args_copy; |
|
|
1956 | va_copy (args_copy, args); |
|
|
1957 | |
|
|
1958 | const char *str = ""; |
|
|
1959 | int number = 0; |
|
|
1960 | float fnumber = 0; |
|
|
1961 | |
|
|
1962 | while (*format) |
|
|
1963 | { |
|
|
1964 | switch (*format++) |
|
|
1965 | { |
|
|
1966 | case '\''s'\'': // string |
|
|
1967 | str = va_arg (args_copy, const char *); |
|
|
1968 | break; |
|
|
1969 | case '\''d'\'': // int |
|
|
1970 | number = va_arg (args_copy, int); |
|
|
1971 | break; |
|
|
1972 | case '\''f'\'': // float |
|
|
1973 | fnumber = va_arg (args_copy, double); |
|
|
1974 | break; |
|
|
1975 | default: |
|
|
1976 | break; |
|
|
1977 | } |
|
|
1978 | } |
|
|
1979 | va_end (args_copy); |
|
|
1980 | va_end (args); |
|
|
1981 | |
|
|
1982 | return *str && number && fnumber; |
|
|
1983 | } |
|
|
1984 | ' |
|
|
1985 | |
|
|
1986 | # Test code for whether the C compiler supports C99 (body of main). |
|
|
1987 | ac_c_conftest_c99_main=' |
|
|
1988 | // Check bool. |
|
|
1989 | _Bool success = false; |
|
|
1990 | success |= (argc != 0); |
|
|
1991 | |
|
|
1992 | // Check restrict. |
|
|
1993 | if (test_restrict ("String literal") == 0) |
|
|
1994 | success = true; |
|
|
1995 | char *restrict newvar = "Another string"; |
|
|
1996 | |
|
|
1997 | // Check varargs. |
|
|
1998 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
|
|
1999 | test_varargs_macros (); |
|
|
2000 | |
|
|
2001 | // Check flexible array members. |
|
|
2002 | struct incomplete_array *ia = |
|
|
2003 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
|
|
2004 | ia->datasize = 10; |
|
|
2005 | for (int i = 0; i < ia->datasize; ++i) |
|
|
2006 | ia->data[i] = i * 1.234; |
|
|
2007 | |
|
|
2008 | // Check named initializers. |
|
|
2009 | struct named_init ni = { |
|
|
2010 | .number = 34, |
|
|
2011 | .name = L"Test wide string", |
|
|
2012 | .average = 543.34343, |
|
|
2013 | }; |
|
|
2014 | |
|
|
2015 | ni.number = 58; |
|
|
2016 | |
|
|
2017 | int dynamic_array[ni.number]; |
|
|
2018 | dynamic_array[0] = argv[0][0]; |
|
|
2019 | dynamic_array[ni.number - 1] = 543; |
|
|
2020 | |
|
|
2021 | // work around unused variable warnings |
|
|
2022 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
|
|
2023 | || dynamic_array[ni.number - 1] != 543); |
|
|
2024 | ' |
|
|
2025 | |
|
|
2026 | # Test code for whether the C compiler supports C11 (global declarations) |
|
|
2027 | ac_c_conftest_c11_globals=' |
|
|
2028 | // Does the compiler advertise C11 conformance? |
|
|
2029 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
|
|
2030 | # error "Compiler does not advertise C11 conformance" |
|
|
2031 | #endif |
|
|
2032 | |
|
|
2033 | // Check _Alignas. |
|
|
2034 | char _Alignas (double) aligned_as_double; |
|
|
2035 | char _Alignas (0) no_special_alignment; |
|
|
2036 | extern char aligned_as_int; |
|
|
2037 | char _Alignas (0) _Alignas (int) aligned_as_int; |
|
|
2038 | |
|
|
2039 | // Check _Alignof. |
|
|
2040 | enum |
|
|
2041 | { |
|
|
2042 | int_alignment = _Alignof (int), |
|
|
2043 | int_array_alignment = _Alignof (int[100]), |
|
|
2044 | char_alignment = _Alignof (char) |
|
|
2045 | }; |
|
|
2046 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
|
|
2047 | |
|
|
2048 | // Check _Noreturn. |
|
|
2049 | int _Noreturn does_not_return (void) { for (;;) continue; } |
|
|
2050 | |
|
|
2051 | // Check _Static_assert. |
|
|
2052 | struct test_static_assert |
|
|
2053 | { |
|
|
2054 | int x; |
|
|
2055 | _Static_assert (sizeof (int) <= sizeof (long int), |
|
|
2056 | "_Static_assert does not work in struct"); |
|
|
2057 | long int y; |
|
|
2058 | }; |
|
|
2059 | |
|
|
2060 | // Check UTF-8 literals. |
|
|
2061 | #define u8 syntax error! |
|
|
2062 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
|
|
2063 | |
|
|
2064 | // Check duplicate typedefs. |
|
|
2065 | typedef long *long_ptr; |
|
|
2066 | typedef long int *long_ptr; |
|
|
2067 | typedef long_ptr long_ptr; |
|
|
2068 | |
|
|
2069 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
|
|
2070 | struct anonymous |
|
|
2071 | { |
|
|
2072 | union { |
|
|
2073 | struct { int i; int j; }; |
|
|
2074 | struct { int k; long int l; } w; |
|
|
2075 | }; |
|
|
2076 | int m; |
|
|
2077 | } v1; |
|
|
2078 | ' |
|
|
2079 | |
|
|
2080 | # Test code for whether the C compiler supports C11 (body of main). |
|
|
2081 | ac_c_conftest_c11_main=' |
|
|
2082 | _Static_assert ((offsetof (struct anonymous, i) |
|
|
2083 | == offsetof (struct anonymous, w.k)), |
|
|
2084 | "Anonymous union alignment botch"); |
|
|
2085 | v1.i = 2; |
|
|
2086 | v1.w.k = 5; |
|
|
2087 | ok |= v1.i != 5; |
|
|
2088 | ' |
|
|
2089 | |
|
|
2090 | # Test code for whether the C compiler supports C11 (complete). |
|
|
2091 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
|
|
2092 | ${ac_c_conftest_c99_globals} |
|
|
2093 | ${ac_c_conftest_c11_globals} |
|
|
2094 | |
|
|
2095 | int |
|
|
2096 | main (int argc, char **argv) |
|
|
2097 | { |
|
|
2098 | int ok = 0; |
|
|
2099 | ${ac_c_conftest_c89_main} |
|
|
2100 | ${ac_c_conftest_c99_main} |
|
|
2101 | ${ac_c_conftest_c11_main} |
|
|
2102 | return ok; |
|
|
2103 | } |
|
|
2104 | " |
|
|
2105 | |
|
|
2106 | # Test code for whether the C compiler supports C99 (complete). |
|
|
2107 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
|
|
2108 | ${ac_c_conftest_c99_globals} |
|
|
2109 | |
|
|
2110 | int |
|
|
2111 | main (int argc, char **argv) |
|
|
2112 | { |
|
|
2113 | int ok = 0; |
|
|
2114 | ${ac_c_conftest_c89_main} |
|
|
2115 | ${ac_c_conftest_c99_main} |
|
|
2116 | return ok; |
|
|
2117 | } |
|
|
2118 | " |
|
|
2119 | |
|
|
2120 | # Test code for whether the C compiler supports C89 (complete). |
|
|
2121 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
|
|
2122 | |
|
|
2123 | int |
|
|
2124 | main (int argc, char **argv) |
|
|
2125 | { |
|
|
2126 | int ok = 0; |
|
|
2127 | ${ac_c_conftest_c89_main} |
|
|
2128 | return ok; |
|
|
2129 | } |
|
|
2130 | " |
|
|
2131 | |
|
|
2132 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
|
|
2133 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
|
|
2134 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
|
|
2135 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
|
|
2136 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
|
|
2137 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
|
|
2138 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
|
|
2139 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
|
|
2140 | as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
|
|
2141 | as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
1954 | # Check that the precious variables saved in the cache have kept the same |
2142 | # Check that the precious variables saved in the cache have kept the same |
1955 | # value. |
2143 | # value. |
1956 | ac_cache_corrupted=false |
2144 | ac_cache_corrupted=false |
1957 | for ac_var in $ac_precious_vars; do |
2145 | for ac_var in $ac_precious_vars; do |
1958 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2146 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1959 | eval ac_new_set=\$ac_env_${ac_var}_set |
2147 | eval ac_new_set=\$ac_env_${ac_var}_set |
1960 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2148 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1961 | eval ac_new_val=\$ac_env_${ac_var}_value |
2149 | eval ac_new_val=\$ac_env_${ac_var}_value |
1962 | case $ac_old_set,$ac_new_set in |
2150 | case $ac_old_set,$ac_new_set in |
1963 | set,) |
2151 | set,) |
1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1965 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2153 | printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1966 | ac_cache_corrupted=: ;; |
2154 | ac_cache_corrupted=: ;; |
1967 | ,set) |
2155 | ,set) |
1968 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2156 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
1969 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2157 | printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1970 | ac_cache_corrupted=: ;; |
2158 | ac_cache_corrupted=: ;; |
1971 | ,);; |
2159 | ,);; |
1972 | *) |
2160 | *) |
1973 | if test "x$ac_old_val" != "x$ac_new_val"; then |
2161 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1974 | # differences in whitespace do not lead to failure. |
2162 | # differences in whitespace do not lead to failure. |
1975 | ac_old_val_w=`echo x $ac_old_val` |
2163 | ac_old_val_w=`echo x $ac_old_val` |
1976 | ac_new_val_w=`echo x $ac_new_val` |
2164 | ac_new_val_w=`echo x $ac_new_val` |
1977 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2165 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
1979 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2167 | printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1980 | ac_cache_corrupted=: |
2168 | ac_cache_corrupted=: |
1981 | else |
2169 | else |
1982 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2170 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
1983 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2171 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
1984 | eval $ac_var=\$ac_old_val |
2172 | eval $ac_var=\$ac_old_val |
1985 | fi |
2173 | fi |
1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
1987 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2175 | printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
1988 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2176 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
1989 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2177 | printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
1990 | fi;; |
2178 | fi;; |
1991 | esac |
2179 | esac |
1992 | # Pass precious variables to config.status. |
2180 | # Pass precious variables to config.status. |
1993 | if test "$ac_new_set" = set; then |
2181 | if test "$ac_new_set" = set; then |
1994 | case $ac_new_val in |
2182 | case $ac_new_val in |
1995 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2183 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1996 | *) ac_arg=$ac_var=$ac_new_val ;; |
2184 | *) ac_arg=$ac_var=$ac_new_val ;; |
1997 | esac |
2185 | esac |
1998 | case " $ac_configure_args " in |
2186 | case " $ac_configure_args " in |
1999 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2187 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2000 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2188 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2001 | esac |
2189 | esac |
2002 | fi |
2190 | fi |
2003 | done |
2191 | done |
2004 | if $ac_cache_corrupted; then |
2192 | if $ac_cache_corrupted; then |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2006 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2194 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2008 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2196 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
2009 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2197 | as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
|
|
2198 | and start over" "$LINENO" 5 |
2010 | fi |
2199 | fi |
2011 | ## -------------------- ## |
2200 | ## -------------------- ## |
2012 | ## Main body of script. ## |
2201 | ## Main body of script. ## |
2013 | ## -------------------- ## |
2202 | ## -------------------- ## |
2014 | |
2203 | |
… | |
… | |
2018 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2019 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2020 | |
2209 | |
2021 | |
2210 | |
2022 | |
2211 | |
2023 | ac_config_headers="$ac_config_headers libeio/config.h" |
2212 | ac_config_headers="$ac_config_headers config.h" |
|
|
2213 | |
|
|
2214 | |
|
|
2215 | |
|
|
2216 | |
|
|
2217 | |
|
|
2218 | |
|
|
2219 | |
|
|
2220 | |
|
|
2221 | |
2024 | |
2222 | |
2025 | |
2223 | |
2026 | |
2224 | |
2027 | ac_ext=c |
2225 | ac_ext=c |
2028 | ac_cpp='$CPP $CPPFLAGS' |
2226 | ac_cpp='$CPP $CPPFLAGS' |
… | |
… | |
2030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2228 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2229 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2032 | if test -n "$ac_tool_prefix"; then |
2230 | if test -n "$ac_tool_prefix"; then |
2033 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2231 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2034 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2232 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2036 | $as_echo_n "checking for $ac_word... " >&6; } |
2234 | printf %s "checking for $ac_word... " >&6; } |
2037 | if ${ac_cv_prog_CC+:} false; then : |
2235 | if test ${ac_cv_prog_CC+y} |
2038 | $as_echo_n "(cached) " >&6 |
2236 | then : |
2039 | else |
2237 | printf %s "(cached) " >&6 |
|
|
2238 | else $as_nop |
2040 | if test -n "$CC"; then |
2239 | if test -n "$CC"; then |
2041 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2240 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2042 | else |
2241 | else |
2043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2242 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2044 | for as_dir in $PATH |
2243 | for as_dir in $PATH |
2045 | do |
2244 | do |
2046 | IFS=$as_save_IFS |
2245 | IFS=$as_save_IFS |
2047 | test -z "$as_dir" && as_dir=. |
2246 | case $as_dir in #((( |
|
|
2247 | '') as_dir=./ ;; |
|
|
2248 | */) ;; |
|
|
2249 | *) as_dir=$as_dir/ ;; |
|
|
2250 | esac |
2048 | for ac_exec_ext in '' $ac_executable_extensions; do |
2251 | for ac_exec_ext in '' $ac_executable_extensions; do |
2049 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2252 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2050 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2253 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2051 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2254 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2052 | break 2 |
2255 | break 2 |
2053 | fi |
2256 | fi |
2054 | done |
2257 | done |
2055 | done |
2258 | done |
2056 | IFS=$as_save_IFS |
2259 | IFS=$as_save_IFS |
2057 | |
2260 | |
2058 | fi |
2261 | fi |
2059 | fi |
2262 | fi |
2060 | CC=$ac_cv_prog_CC |
2263 | CC=$ac_cv_prog_CC |
2061 | if test -n "$CC"; then |
2264 | if test -n "$CC"; then |
2062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2063 | $as_echo "$CC" >&6; } |
2266 | printf "%s\n" "$CC" >&6; } |
2064 | else |
2267 | else |
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2268 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2066 | $as_echo "no" >&6; } |
2269 | printf "%s\n" "no" >&6; } |
2067 | fi |
2270 | fi |
2068 | |
2271 | |
2069 | |
2272 | |
2070 | fi |
2273 | fi |
2071 | if test -z "$ac_cv_prog_CC"; then |
2274 | if test -z "$ac_cv_prog_CC"; then |
2072 | ac_ct_CC=$CC |
2275 | ac_ct_CC=$CC |
2073 | # Extract the first word of "gcc", so it can be a program name with args. |
2276 | # Extract the first word of "gcc", so it can be a program name with args. |
2074 | set dummy gcc; ac_word=$2 |
2277 | set dummy gcc; ac_word=$2 |
2075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2076 | $as_echo_n "checking for $ac_word... " >&6; } |
2279 | printf %s "checking for $ac_word... " >&6; } |
2077 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2280 | if test ${ac_cv_prog_ac_ct_CC+y} |
2078 | $as_echo_n "(cached) " >&6 |
2281 | then : |
2079 | else |
2282 | printf %s "(cached) " >&6 |
|
|
2283 | else $as_nop |
2080 | if test -n "$ac_ct_CC"; then |
2284 | if test -n "$ac_ct_CC"; then |
2081 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2285 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2082 | else |
2286 | else |
2083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2084 | for as_dir in $PATH |
2288 | for as_dir in $PATH |
2085 | do |
2289 | do |
2086 | IFS=$as_save_IFS |
2290 | IFS=$as_save_IFS |
2087 | test -z "$as_dir" && as_dir=. |
2291 | case $as_dir in #((( |
|
|
2292 | '') as_dir=./ ;; |
|
|
2293 | */) ;; |
|
|
2294 | *) as_dir=$as_dir/ ;; |
|
|
2295 | esac |
2088 | for ac_exec_ext in '' $ac_executable_extensions; do |
2296 | for ac_exec_ext in '' $ac_executable_extensions; do |
2089 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2297 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2090 | ac_cv_prog_ac_ct_CC="gcc" |
2298 | ac_cv_prog_ac_ct_CC="gcc" |
2091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2299 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2092 | break 2 |
2300 | break 2 |
2093 | fi |
2301 | fi |
2094 | done |
2302 | done |
2095 | done |
2303 | done |
2096 | IFS=$as_save_IFS |
2304 | IFS=$as_save_IFS |
2097 | |
2305 | |
2098 | fi |
2306 | fi |
2099 | fi |
2307 | fi |
2100 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2308 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2101 | if test -n "$ac_ct_CC"; then |
2309 | if test -n "$ac_ct_CC"; then |
2102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2310 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2103 | $as_echo "$ac_ct_CC" >&6; } |
2311 | printf "%s\n" "$ac_ct_CC" >&6; } |
2104 | else |
2312 | else |
2105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2313 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2106 | $as_echo "no" >&6; } |
2314 | printf "%s\n" "no" >&6; } |
2107 | fi |
2315 | fi |
2108 | |
2316 | |
2109 | if test "x$ac_ct_CC" = x; then |
2317 | if test "x$ac_ct_CC" = x; then |
2110 | CC="" |
2318 | CC="" |
2111 | else |
2319 | else |
2112 | case $cross_compiling:$ac_tool_warned in |
2320 | case $cross_compiling:$ac_tool_warned in |
2113 | yes:) |
2321 | yes:) |
2114 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2115 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2323 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2116 | ac_tool_warned=yes ;; |
2324 | ac_tool_warned=yes ;; |
2117 | esac |
2325 | esac |
2118 | CC=$ac_ct_CC |
2326 | CC=$ac_ct_CC |
2119 | fi |
2327 | fi |
2120 | else |
2328 | else |
… | |
… | |
2123 | |
2331 | |
2124 | if test -z "$CC"; then |
2332 | if test -z "$CC"; then |
2125 | if test -n "$ac_tool_prefix"; then |
2333 | if test -n "$ac_tool_prefix"; then |
2126 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2334 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2127 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2335 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2129 | $as_echo_n "checking for $ac_word... " >&6; } |
2337 | printf %s "checking for $ac_word... " >&6; } |
2130 | if ${ac_cv_prog_CC+:} false; then : |
2338 | if test ${ac_cv_prog_CC+y} |
2131 | $as_echo_n "(cached) " >&6 |
2339 | then : |
2132 | else |
2340 | printf %s "(cached) " >&6 |
|
|
2341 | else $as_nop |
2133 | if test -n "$CC"; then |
2342 | if test -n "$CC"; then |
2134 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2343 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2135 | else |
2344 | else |
2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2345 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2137 | for as_dir in $PATH |
2346 | for as_dir in $PATH |
2138 | do |
2347 | do |
2139 | IFS=$as_save_IFS |
2348 | IFS=$as_save_IFS |
2140 | test -z "$as_dir" && as_dir=. |
2349 | case $as_dir in #((( |
|
|
2350 | '') as_dir=./ ;; |
|
|
2351 | */) ;; |
|
|
2352 | *) as_dir=$as_dir/ ;; |
|
|
2353 | esac |
2141 | for ac_exec_ext in '' $ac_executable_extensions; do |
2354 | for ac_exec_ext in '' $ac_executable_extensions; do |
2142 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2355 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2143 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2356 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2357 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2145 | break 2 |
2358 | break 2 |
2146 | fi |
2359 | fi |
2147 | done |
2360 | done |
2148 | done |
2361 | done |
2149 | IFS=$as_save_IFS |
2362 | IFS=$as_save_IFS |
2150 | |
2363 | |
2151 | fi |
2364 | fi |
2152 | fi |
2365 | fi |
2153 | CC=$ac_cv_prog_CC |
2366 | CC=$ac_cv_prog_CC |
2154 | if test -n "$CC"; then |
2367 | if test -n "$CC"; then |
2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2156 | $as_echo "$CC" >&6; } |
2369 | printf "%s\n" "$CC" >&6; } |
2157 | else |
2370 | else |
2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2159 | $as_echo "no" >&6; } |
2372 | printf "%s\n" "no" >&6; } |
2160 | fi |
2373 | fi |
2161 | |
2374 | |
2162 | |
2375 | |
2163 | fi |
2376 | fi |
2164 | fi |
2377 | fi |
2165 | if test -z "$CC"; then |
2378 | if test -z "$CC"; then |
2166 | # Extract the first word of "cc", so it can be a program name with args. |
2379 | # Extract the first word of "cc", so it can be a program name with args. |
2167 | set dummy cc; ac_word=$2 |
2380 | set dummy cc; ac_word=$2 |
2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2381 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2169 | $as_echo_n "checking for $ac_word... " >&6; } |
2382 | printf %s "checking for $ac_word... " >&6; } |
2170 | if ${ac_cv_prog_CC+:} false; then : |
2383 | if test ${ac_cv_prog_CC+y} |
2171 | $as_echo_n "(cached) " >&6 |
2384 | then : |
2172 | else |
2385 | printf %s "(cached) " >&6 |
|
|
2386 | else $as_nop |
2173 | if test -n "$CC"; then |
2387 | if test -n "$CC"; then |
2174 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2388 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2175 | else |
2389 | else |
2176 | ac_prog_rejected=no |
2390 | ac_prog_rejected=no |
2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2178 | for as_dir in $PATH |
2392 | for as_dir in $PATH |
2179 | do |
2393 | do |
2180 | IFS=$as_save_IFS |
2394 | IFS=$as_save_IFS |
2181 | test -z "$as_dir" && as_dir=. |
2395 | case $as_dir in #((( |
|
|
2396 | '') as_dir=./ ;; |
|
|
2397 | */) ;; |
|
|
2398 | *) as_dir=$as_dir/ ;; |
|
|
2399 | esac |
2182 | for ac_exec_ext in '' $ac_executable_extensions; do |
2400 | for ac_exec_ext in '' $ac_executable_extensions; do |
2183 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2401 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2402 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2185 | ac_prog_rejected=yes |
2403 | ac_prog_rejected=yes |
2186 | continue |
2404 | continue |
2187 | fi |
2405 | fi |
2188 | ac_cv_prog_CC="cc" |
2406 | ac_cv_prog_CC="cc" |
2189 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2407 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2190 | break 2 |
2408 | break 2 |
2191 | fi |
2409 | fi |
2192 | done |
2410 | done |
2193 | done |
2411 | done |
2194 | IFS=$as_save_IFS |
2412 | IFS=$as_save_IFS |
… | |
… | |
2200 | if test $# != 0; then |
2418 | if test $# != 0; then |
2201 | # We chose a different compiler from the bogus one. |
2419 | # We chose a different compiler from the bogus one. |
2202 | # However, it has the same basename, so the bogon will be chosen |
2420 | # However, it has the same basename, so the bogon will be chosen |
2203 | # first if we set CC to just the basename; use the full file name. |
2421 | # first if we set CC to just the basename; use the full file name. |
2204 | shift |
2422 | shift |
2205 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2423 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
2206 | fi |
2424 | fi |
2207 | fi |
2425 | fi |
2208 | fi |
2426 | fi |
2209 | fi |
2427 | fi |
2210 | CC=$ac_cv_prog_CC |
2428 | CC=$ac_cv_prog_CC |
2211 | if test -n "$CC"; then |
2429 | if test -n "$CC"; then |
2212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2213 | $as_echo "$CC" >&6; } |
2431 | printf "%s\n" "$CC" >&6; } |
2214 | else |
2432 | else |
2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2433 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2216 | $as_echo "no" >&6; } |
2434 | printf "%s\n" "no" >&6; } |
2217 | fi |
2435 | fi |
2218 | |
2436 | |
2219 | |
2437 | |
2220 | fi |
2438 | fi |
2221 | if test -z "$CC"; then |
2439 | if test -z "$CC"; then |
2222 | if test -n "$ac_tool_prefix"; then |
2440 | if test -n "$ac_tool_prefix"; then |
2223 | for ac_prog in cl.exe |
2441 | for ac_prog in cl.exe |
2224 | do |
2442 | do |
2225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2443 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2444 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2445 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2228 | $as_echo_n "checking for $ac_word... " >&6; } |
2446 | printf %s "checking for $ac_word... " >&6; } |
2229 | if ${ac_cv_prog_CC+:} false; then : |
2447 | if test ${ac_cv_prog_CC+y} |
2230 | $as_echo_n "(cached) " >&6 |
2448 | then : |
2231 | else |
2449 | printf %s "(cached) " >&6 |
|
|
2450 | else $as_nop |
2232 | if test -n "$CC"; then |
2451 | if test -n "$CC"; then |
2233 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2452 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2234 | else |
2453 | else |
2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2236 | for as_dir in $PATH |
2455 | for as_dir in $PATH |
2237 | do |
2456 | do |
2238 | IFS=$as_save_IFS |
2457 | IFS=$as_save_IFS |
2239 | test -z "$as_dir" && as_dir=. |
2458 | case $as_dir in #((( |
|
|
2459 | '') as_dir=./ ;; |
|
|
2460 | */) ;; |
|
|
2461 | *) as_dir=$as_dir/ ;; |
|
|
2462 | esac |
2240 | for ac_exec_ext in '' $ac_executable_extensions; do |
2463 | for ac_exec_ext in '' $ac_executable_extensions; do |
2241 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2464 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2465 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2243 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2466 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2244 | break 2 |
2467 | break 2 |
2245 | fi |
2468 | fi |
2246 | done |
2469 | done |
2247 | done |
2470 | done |
2248 | IFS=$as_save_IFS |
2471 | IFS=$as_save_IFS |
2249 | |
2472 | |
2250 | fi |
2473 | fi |
2251 | fi |
2474 | fi |
2252 | CC=$ac_cv_prog_CC |
2475 | CC=$ac_cv_prog_CC |
2253 | if test -n "$CC"; then |
2476 | if test -n "$CC"; then |
2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2477 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2255 | $as_echo "$CC" >&6; } |
2478 | printf "%s\n" "$CC" >&6; } |
2256 | else |
2479 | else |
2257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2258 | $as_echo "no" >&6; } |
2481 | printf "%s\n" "no" >&6; } |
2259 | fi |
2482 | fi |
2260 | |
2483 | |
2261 | |
2484 | |
2262 | test -n "$CC" && break |
2485 | test -n "$CC" && break |
2263 | done |
2486 | done |
… | |
… | |
2266 | ac_ct_CC=$CC |
2489 | ac_ct_CC=$CC |
2267 | for ac_prog in cl.exe |
2490 | for ac_prog in cl.exe |
2268 | do |
2491 | do |
2269 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2492 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2270 | set dummy $ac_prog; ac_word=$2 |
2493 | set dummy $ac_prog; ac_word=$2 |
2271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2272 | $as_echo_n "checking for $ac_word... " >&6; } |
2495 | printf %s "checking for $ac_word... " >&6; } |
2273 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2496 | if test ${ac_cv_prog_ac_ct_CC+y} |
2274 | $as_echo_n "(cached) " >&6 |
2497 | then : |
2275 | else |
2498 | printf %s "(cached) " >&6 |
|
|
2499 | else $as_nop |
2276 | if test -n "$ac_ct_CC"; then |
2500 | if test -n "$ac_ct_CC"; then |
2277 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2501 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2278 | else |
2502 | else |
2279 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2280 | for as_dir in $PATH |
2504 | for as_dir in $PATH |
2281 | do |
2505 | do |
2282 | IFS=$as_save_IFS |
2506 | IFS=$as_save_IFS |
2283 | test -z "$as_dir" && as_dir=. |
2507 | case $as_dir in #((( |
|
|
2508 | '') as_dir=./ ;; |
|
|
2509 | */) ;; |
|
|
2510 | *) as_dir=$as_dir/ ;; |
|
|
2511 | esac |
2284 | for ac_exec_ext in '' $ac_executable_extensions; do |
2512 | for ac_exec_ext in '' $ac_executable_extensions; do |
2285 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2513 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2286 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2514 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2287 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2288 | break 2 |
2516 | break 2 |
2289 | fi |
2517 | fi |
2290 | done |
2518 | done |
2291 | done |
2519 | done |
2292 | IFS=$as_save_IFS |
2520 | IFS=$as_save_IFS |
2293 | |
2521 | |
2294 | fi |
2522 | fi |
2295 | fi |
2523 | fi |
2296 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2524 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2297 | if test -n "$ac_ct_CC"; then |
2525 | if test -n "$ac_ct_CC"; then |
2298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2299 | $as_echo "$ac_ct_CC" >&6; } |
2527 | printf "%s\n" "$ac_ct_CC" >&6; } |
2300 | else |
2528 | else |
2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2302 | $as_echo "no" >&6; } |
2530 | printf "%s\n" "no" >&6; } |
2303 | fi |
2531 | fi |
2304 | |
2532 | |
2305 | |
2533 | |
2306 | test -n "$ac_ct_CC" && break |
2534 | test -n "$ac_ct_CC" && break |
2307 | done |
2535 | done |
… | |
… | |
2309 | if test "x$ac_ct_CC" = x; then |
2537 | if test "x$ac_ct_CC" = x; then |
2310 | CC="" |
2538 | CC="" |
2311 | else |
2539 | else |
2312 | case $cross_compiling:$ac_tool_warned in |
2540 | case $cross_compiling:$ac_tool_warned in |
2313 | yes:) |
2541 | yes:) |
2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2542 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
2315 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2543 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
2316 | ac_tool_warned=yes ;; |
2544 | ac_tool_warned=yes ;; |
2317 | esac |
2545 | esac |
2318 | CC=$ac_ct_CC |
2546 | CC=$ac_ct_CC |
2319 | fi |
2547 | fi |
2320 | fi |
2548 | fi |
2321 | |
2549 | |
2322 | fi |
2550 | fi |
|
|
2551 | if test -z "$CC"; then |
|
|
2552 | if test -n "$ac_tool_prefix"; then |
|
|
2553 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
2554 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
2555 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2556 | printf %s "checking for $ac_word... " >&6; } |
|
|
2557 | if test ${ac_cv_prog_CC+y} |
|
|
2558 | then : |
|
|
2559 | printf %s "(cached) " >&6 |
|
|
2560 | else $as_nop |
|
|
2561 | if test -n "$CC"; then |
|
|
2562 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
2563 | else |
|
|
2564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2565 | for as_dir in $PATH |
|
|
2566 | do |
|
|
2567 | IFS=$as_save_IFS |
|
|
2568 | case $as_dir in #((( |
|
|
2569 | '') as_dir=./ ;; |
|
|
2570 | */) ;; |
|
|
2571 | *) as_dir=$as_dir/ ;; |
|
|
2572 | esac |
|
|
2573 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2574 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2575 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
2576 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2577 | break 2 |
|
|
2578 | fi |
|
|
2579 | done |
|
|
2580 | done |
|
|
2581 | IFS=$as_save_IFS |
2323 | |
2582 | |
|
|
2583 | fi |
|
|
2584 | fi |
|
|
2585 | CC=$ac_cv_prog_CC |
|
|
2586 | if test -n "$CC"; then |
|
|
2587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
2588 | printf "%s\n" "$CC" >&6; } |
|
|
2589 | else |
|
|
2590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2591 | printf "%s\n" "no" >&6; } |
|
|
2592 | fi |
2324 | |
2593 | |
|
|
2594 | |
|
|
2595 | fi |
|
|
2596 | if test -z "$ac_cv_prog_CC"; then |
|
|
2597 | ac_ct_CC=$CC |
|
|
2598 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
2599 | set dummy clang; ac_word=$2 |
|
|
2600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
2601 | printf %s "checking for $ac_word... " >&6; } |
|
|
2602 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
2603 | then : |
|
|
2604 | printf %s "(cached) " >&6 |
|
|
2605 | else $as_nop |
|
|
2606 | if test -n "$ac_ct_CC"; then |
|
|
2607 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
2608 | else |
|
|
2609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2610 | for as_dir in $PATH |
|
|
2611 | do |
|
|
2612 | IFS=$as_save_IFS |
|
|
2613 | case $as_dir in #((( |
|
|
2614 | '') as_dir=./ ;; |
|
|
2615 | */) ;; |
|
|
2616 | *) as_dir=$as_dir/ ;; |
|
|
2617 | esac |
|
|
2618 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2619 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
2620 | ac_cv_prog_ac_ct_CC="clang" |
|
|
2621 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
2622 | break 2 |
|
|
2623 | fi |
|
|
2624 | done |
|
|
2625 | done |
|
|
2626 | IFS=$as_save_IFS |
|
|
2627 | |
|
|
2628 | fi |
|
|
2629 | fi |
|
|
2630 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
2631 | if test -n "$ac_ct_CC"; then |
|
|
2632 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
2633 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
2634 | else |
|
|
2635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
2636 | printf "%s\n" "no" >&6; } |
|
|
2637 | fi |
|
|
2638 | |
|
|
2639 | if test "x$ac_ct_CC" = x; then |
|
|
2640 | CC="" |
|
|
2641 | else |
|
|
2642 | case $cross_compiling:$ac_tool_warned in |
|
|
2643 | yes:) |
|
|
2644 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
2645 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
2646 | ac_tool_warned=yes ;; |
|
|
2647 | esac |
|
|
2648 | CC=$ac_ct_CC |
|
|
2649 | fi |
|
|
2650 | else |
|
|
2651 | CC="$ac_cv_prog_CC" |
|
|
2652 | fi |
|
|
2653 | |
|
|
2654 | fi |
|
|
2655 | |
|
|
2656 | |
2325 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2657 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2326 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2658 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2327 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2659 | as_fn_error $? "no acceptable C compiler found in \$PATH |
2328 | See \`config.log' for more details" "$LINENO" 5; } |
2660 | See \`config.log' for more details" "$LINENO" 5; } |
2329 | |
2661 | |
2330 | # Provide some information about the compiler. |
2662 | # Provide some information about the compiler. |
2331 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2663 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2332 | set X $ac_compile |
2664 | set X $ac_compile |
2333 | ac_compiler=$2 |
2665 | ac_compiler=$2 |
2334 | for ac_option in --version -v -V -qversion; do |
2666 | for ac_option in --version -v -V -qversion -version; do |
2335 | { { ac_try="$ac_compiler $ac_option >&5" |
2667 | { { ac_try="$ac_compiler $ac_option >&5" |
2336 | case "(($ac_try" in |
2668 | case "(($ac_try" in |
2337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2338 | *) ac_try_echo=$ac_try;; |
2670 | *) ac_try_echo=$ac_try;; |
2339 | esac |
2671 | esac |
2340 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2341 | $as_echo "$ac_try_echo"; } >&5 |
2673 | printf "%s\n" "$ac_try_echo"; } >&5 |
2342 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2674 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2343 | ac_status=$? |
2675 | ac_status=$? |
2344 | if test -s conftest.err; then |
2676 | if test -s conftest.err; then |
2345 | sed '10a\ |
2677 | sed '10a\ |
2346 | ... rest of stderr output deleted ... |
2678 | ... rest of stderr output deleted ... |
2347 | 10q' conftest.err >conftest.er1 |
2679 | 10q' conftest.err >conftest.er1 |
2348 | cat conftest.er1 >&5 |
2680 | cat conftest.er1 >&5 |
2349 | fi |
2681 | fi |
2350 | rm -f conftest.er1 conftest.err |
2682 | rm -f conftest.er1 conftest.err |
2351 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2683 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2352 | test $ac_status = 0; } |
2684 | test $ac_status = 0; } |
2353 | done |
2685 | done |
2354 | |
2686 | |
2355 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2356 | /* end confdefs.h. */ |
2688 | /* end confdefs.h. */ |
2357 | |
2689 | |
2358 | int |
2690 | int |
2359 | main () |
2691 | main (void) |
2360 | { |
2692 | { |
2361 | |
2693 | |
2362 | ; |
2694 | ; |
2363 | return 0; |
2695 | return 0; |
2364 | } |
2696 | } |
… | |
… | |
2366 | ac_clean_files_save=$ac_clean_files |
2698 | ac_clean_files_save=$ac_clean_files |
2367 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2699 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
2368 | # Try to create an executable without -o first, disregard a.out. |
2700 | # Try to create an executable without -o first, disregard a.out. |
2369 | # It will help us diagnose broken compilers, and finding out an intuition |
2701 | # It will help us diagnose broken compilers, and finding out an intuition |
2370 | # of exeext. |
2702 | # of exeext. |
2371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2372 | $as_echo_n "checking whether the C compiler works... " >&6; } |
2704 | printf %s "checking whether the C compiler works... " >&6; } |
2373 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2705 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2374 | |
2706 | |
2375 | # The possible output files: |
2707 | # The possible output files: |
2376 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2708 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2377 | |
2709 | |
2378 | ac_rmfiles= |
2710 | ac_rmfiles= |
… | |
… | |
2389 | case "(($ac_try" in |
2721 | case "(($ac_try" in |
2390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2391 | *) ac_try_echo=$ac_try;; |
2723 | *) ac_try_echo=$ac_try;; |
2392 | esac |
2724 | esac |
2393 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2394 | $as_echo "$ac_try_echo"; } >&5 |
2726 | printf "%s\n" "$ac_try_echo"; } >&5 |
2395 | (eval "$ac_link_default") 2>&5 |
2727 | (eval "$ac_link_default") 2>&5 |
2396 | ac_status=$? |
2728 | ac_status=$? |
2397 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2729 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2398 | test $ac_status = 0; }; then : |
2730 | test $ac_status = 0; } |
|
|
2731 | then : |
2399 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2732 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2400 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2733 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2401 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2734 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2402 | # so that the user can short-circuit this test for compilers unknown to |
2735 | # so that the user can short-circuit this test for compilers unknown to |
2403 | # Autoconf. |
2736 | # Autoconf. |
… | |
… | |
2410 | [ab].out ) |
2743 | [ab].out ) |
2411 | # We found the default executable, but exeext='' is most |
2744 | # We found the default executable, but exeext='' is most |
2412 | # certainly right. |
2745 | # certainly right. |
2413 | break;; |
2746 | break;; |
2414 | *.* ) |
2747 | *.* ) |
2415 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2748 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
2416 | then :; else |
2749 | then :; else |
2417 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2750 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2418 | fi |
2751 | fi |
2419 | # We set ac_cv_exeext here because the later test for it is not |
2752 | # We set ac_cv_exeext here because the later test for it is not |
2420 | # safe: cross compilers may not add the suffix if given an `-o' |
2753 | # safe: cross compilers may not add the suffix if given an `-o' |
… | |
… | |
2426 | break;; |
2759 | break;; |
2427 | esac |
2760 | esac |
2428 | done |
2761 | done |
2429 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2762 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2430 | |
2763 | |
2431 | else |
2764 | else $as_nop |
2432 | ac_file='' |
2765 | ac_file='' |
2433 | fi |
2766 | fi |
2434 | if test -z "$ac_file"; then : |
2767 | if test -z "$ac_file" |
|
|
2768 | then : |
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2436 | $as_echo "no" >&6; } |
2770 | printf "%s\n" "no" >&6; } |
2437 | $as_echo "$as_me: failed program was:" >&5 |
2771 | printf "%s\n" "$as_me: failed program was:" >&5 |
2438 | sed 's/^/| /' conftest.$ac_ext >&5 |
2772 | sed 's/^/| /' conftest.$ac_ext >&5 |
2439 | |
2773 | |
2440 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2774 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2775 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2442 | as_fn_error 77 "C compiler cannot create executables |
2776 | as_fn_error 77 "C compiler cannot create executables |
2443 | See \`config.log' for more details" "$LINENO" 5; } |
2777 | See \`config.log' for more details" "$LINENO" 5; } |
2444 | else |
2778 | else $as_nop |
2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2446 | $as_echo "yes" >&6; } |
2780 | printf "%s\n" "yes" >&6; } |
2447 | fi |
2781 | fi |
2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2782 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
2449 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
2783 | printf %s "checking for C compiler default output file name... " >&6; } |
2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2784 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2451 | $as_echo "$ac_file" >&6; } |
2785 | printf "%s\n" "$ac_file" >&6; } |
2452 | ac_exeext=$ac_cv_exeext |
2786 | ac_exeext=$ac_cv_exeext |
2453 | |
2787 | |
2454 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2788 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2455 | ac_clean_files=$ac_clean_files_save |
2789 | ac_clean_files=$ac_clean_files_save |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2457 | $as_echo_n "checking for suffix of executables... " >&6; } |
2791 | printf %s "checking for suffix of executables... " >&6; } |
2458 | if { { ac_try="$ac_link" |
2792 | if { { ac_try="$ac_link" |
2459 | case "(($ac_try" in |
2793 | case "(($ac_try" in |
2460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2794 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2461 | *) ac_try_echo=$ac_try;; |
2795 | *) ac_try_echo=$ac_try;; |
2462 | esac |
2796 | esac |
2463 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2797 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2464 | $as_echo "$ac_try_echo"; } >&5 |
2798 | printf "%s\n" "$ac_try_echo"; } >&5 |
2465 | (eval "$ac_link") 2>&5 |
2799 | (eval "$ac_link") 2>&5 |
2466 | ac_status=$? |
2800 | ac_status=$? |
2467 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2801 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2468 | test $ac_status = 0; }; then : |
2802 | test $ac_status = 0; } |
|
|
2803 | then : |
2469 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2804 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2470 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2805 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2471 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2806 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2472 | # `rm'. |
2807 | # `rm'. |
2473 | for ac_file in conftest.exe conftest conftest.*; do |
2808 | for ac_file in conftest.exe conftest conftest.*; do |
… | |
… | |
2477 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2812 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2478 | break;; |
2813 | break;; |
2479 | * ) break;; |
2814 | * ) break;; |
2480 | esac |
2815 | esac |
2481 | done |
2816 | done |
2482 | else |
2817 | else $as_nop |
2483 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2818 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2484 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2819 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2485 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2820 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2486 | See \`config.log' for more details" "$LINENO" 5; } |
2821 | See \`config.log' for more details" "$LINENO" 5; } |
2487 | fi |
2822 | fi |
2488 | rm -f conftest conftest$ac_cv_exeext |
2823 | rm -f conftest conftest$ac_cv_exeext |
2489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2490 | $as_echo "$ac_cv_exeext" >&6; } |
2825 | printf "%s\n" "$ac_cv_exeext" >&6; } |
2491 | |
2826 | |
2492 | rm -f conftest.$ac_ext |
2827 | rm -f conftest.$ac_ext |
2493 | EXEEXT=$ac_cv_exeext |
2828 | EXEEXT=$ac_cv_exeext |
2494 | ac_exeext=$EXEEXT |
2829 | ac_exeext=$EXEEXT |
2495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2830 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2496 | /* end confdefs.h. */ |
2831 | /* end confdefs.h. */ |
2497 | #include <stdio.h> |
2832 | #include <stdio.h> |
2498 | int |
2833 | int |
2499 | main () |
2834 | main (void) |
2500 | { |
2835 | { |
2501 | FILE *f = fopen ("conftest.out", "w"); |
2836 | FILE *f = fopen ("conftest.out", "w"); |
2502 | return ferror (f) || fclose (f) != 0; |
2837 | return ferror (f) || fclose (f) != 0; |
2503 | |
2838 | |
2504 | ; |
2839 | ; |
… | |
… | |
2506 | } |
2841 | } |
2507 | _ACEOF |
2842 | _ACEOF |
2508 | ac_clean_files="$ac_clean_files conftest.out" |
2843 | ac_clean_files="$ac_clean_files conftest.out" |
2509 | # Check that the compiler produces executables we can run. If not, either |
2844 | # Check that the compiler produces executables we can run. If not, either |
2510 | # the compiler is broken, or we cross compile. |
2845 | # the compiler is broken, or we cross compile. |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2512 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
2847 | printf %s "checking whether we are cross compiling... " >&6; } |
2513 | if test "$cross_compiling" != yes; then |
2848 | if test "$cross_compiling" != yes; then |
2514 | { { ac_try="$ac_link" |
2849 | { { ac_try="$ac_link" |
2515 | case "(($ac_try" in |
2850 | case "(($ac_try" in |
2516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2517 | *) ac_try_echo=$ac_try;; |
2852 | *) ac_try_echo=$ac_try;; |
2518 | esac |
2853 | esac |
2519 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2520 | $as_echo "$ac_try_echo"; } >&5 |
2855 | printf "%s\n" "$ac_try_echo"; } >&5 |
2521 | (eval "$ac_link") 2>&5 |
2856 | (eval "$ac_link") 2>&5 |
2522 | ac_status=$? |
2857 | ac_status=$? |
2523 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2858 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2524 | test $ac_status = 0; } |
2859 | test $ac_status = 0; } |
2525 | if { ac_try='./conftest$ac_cv_exeext' |
2860 | if { ac_try='./conftest$ac_cv_exeext' |
2526 | { { case "(($ac_try" in |
2861 | { { case "(($ac_try" in |
2527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2528 | *) ac_try_echo=$ac_try;; |
2863 | *) ac_try_echo=$ac_try;; |
2529 | esac |
2864 | esac |
2530 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2865 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2531 | $as_echo "$ac_try_echo"; } >&5 |
2866 | printf "%s\n" "$ac_try_echo"; } >&5 |
2532 | (eval "$ac_try") 2>&5 |
2867 | (eval "$ac_try") 2>&5 |
2533 | ac_status=$? |
2868 | ac_status=$? |
2534 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2869 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2535 | test $ac_status = 0; }; }; then |
2870 | test $ac_status = 0; }; }; then |
2536 | cross_compiling=no |
2871 | cross_compiling=no |
2537 | else |
2872 | else |
2538 | if test "$cross_compiling" = maybe; then |
2873 | if test "$cross_compiling" = maybe; then |
2539 | cross_compiling=yes |
2874 | cross_compiling=yes |
2540 | else |
2875 | else |
2541 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2876 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2877 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2543 | as_fn_error $? "cannot run C compiled programs. |
2878 | as_fn_error 77 "cannot run C compiled programs. |
2544 | If you meant to cross compile, use \`--host'. |
2879 | If you meant to cross compile, use \`--host'. |
2545 | See \`config.log' for more details" "$LINENO" 5; } |
2880 | See \`config.log' for more details" "$LINENO" 5; } |
2546 | fi |
2881 | fi |
2547 | fi |
2882 | fi |
2548 | fi |
2883 | fi |
2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2884 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2550 | $as_echo "$cross_compiling" >&6; } |
2885 | printf "%s\n" "$cross_compiling" >&6; } |
2551 | |
2886 | |
2552 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2887 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2553 | ac_clean_files=$ac_clean_files_save |
2888 | ac_clean_files=$ac_clean_files_save |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2889 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2555 | $as_echo_n "checking for suffix of object files... " >&6; } |
2890 | printf %s "checking for suffix of object files... " >&6; } |
2556 | if ${ac_cv_objext+:} false; then : |
2891 | if test ${ac_cv_objext+y} |
2557 | $as_echo_n "(cached) " >&6 |
2892 | then : |
2558 | else |
2893 | printf %s "(cached) " >&6 |
|
|
2894 | else $as_nop |
2559 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2560 | /* end confdefs.h. */ |
2896 | /* end confdefs.h. */ |
2561 | |
2897 | |
2562 | int |
2898 | int |
2563 | main () |
2899 | main (void) |
2564 | { |
2900 | { |
2565 | |
2901 | |
2566 | ; |
2902 | ; |
2567 | return 0; |
2903 | return 0; |
2568 | } |
2904 | } |
… | |
… | |
2572 | case "(($ac_try" in |
2908 | case "(($ac_try" in |
2573 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2574 | *) ac_try_echo=$ac_try;; |
2910 | *) ac_try_echo=$ac_try;; |
2575 | esac |
2911 | esac |
2576 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2912 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2577 | $as_echo "$ac_try_echo"; } >&5 |
2913 | printf "%s\n" "$ac_try_echo"; } >&5 |
2578 | (eval "$ac_compile") 2>&5 |
2914 | (eval "$ac_compile") 2>&5 |
2579 | ac_status=$? |
2915 | ac_status=$? |
2580 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2916 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2581 | test $ac_status = 0; }; then : |
2917 | test $ac_status = 0; } |
|
|
2918 | then : |
2582 | for ac_file in conftest.o conftest.obj conftest.*; do |
2919 | for ac_file in conftest.o conftest.obj conftest.*; do |
2583 | test -f "$ac_file" || continue; |
2920 | test -f "$ac_file" || continue; |
2584 | case $ac_file in |
2921 | case $ac_file in |
2585 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2586 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2923 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2587 | break;; |
2924 | break;; |
2588 | esac |
2925 | esac |
2589 | done |
2926 | done |
2590 | else |
2927 | else $as_nop |
2591 | $as_echo "$as_me: failed program was:" >&5 |
2928 | printf "%s\n" "$as_me: failed program was:" >&5 |
2592 | sed 's/^/| /' conftest.$ac_ext >&5 |
2929 | sed 's/^/| /' conftest.$ac_ext >&5 |
2593 | |
2930 | |
2594 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2931 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2595 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2932 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2596 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2933 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
2597 | See \`config.log' for more details" "$LINENO" 5; } |
2934 | See \`config.log' for more details" "$LINENO" 5; } |
2598 | fi |
2935 | fi |
2599 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2936 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2600 | fi |
2937 | fi |
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2602 | $as_echo "$ac_cv_objext" >&6; } |
2939 | printf "%s\n" "$ac_cv_objext" >&6; } |
2603 | OBJEXT=$ac_cv_objext |
2940 | OBJEXT=$ac_cv_objext |
2604 | ac_objext=$OBJEXT |
2941 | ac_objext=$OBJEXT |
2605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
2606 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
2943 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
2607 | if ${ac_cv_c_compiler_gnu+:} false; then : |
2944 | if test ${ac_cv_c_compiler_gnu+y} |
2608 | $as_echo_n "(cached) " >&6 |
2945 | then : |
2609 | else |
2946 | printf %s "(cached) " >&6 |
|
|
2947 | else $as_nop |
2610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2611 | /* end confdefs.h. */ |
2949 | /* end confdefs.h. */ |
2612 | |
2950 | |
2613 | int |
2951 | int |
2614 | main () |
2952 | main (void) |
2615 | { |
2953 | { |
2616 | #ifndef __GNUC__ |
2954 | #ifndef __GNUC__ |
2617 | choke me |
2955 | choke me |
2618 | #endif |
2956 | #endif |
2619 | |
2957 | |
2620 | ; |
2958 | ; |
2621 | return 0; |
2959 | return 0; |
2622 | } |
2960 | } |
2623 | _ACEOF |
2961 | _ACEOF |
2624 | if ac_fn_c_try_compile "$LINENO"; then : |
2962 | if ac_fn_c_try_compile "$LINENO" |
|
|
2963 | then : |
2625 | ac_compiler_gnu=yes |
2964 | ac_compiler_gnu=yes |
2626 | else |
2965 | else $as_nop |
2627 | ac_compiler_gnu=no |
2966 | ac_compiler_gnu=no |
2628 | fi |
2967 | fi |
2629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2968 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2630 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2969 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2631 | |
2970 | |
2632 | fi |
2971 | fi |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2972 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2634 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2973 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
2974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2975 | |
2635 | if test $ac_compiler_gnu = yes; then |
2976 | if test $ac_compiler_gnu = yes; then |
2636 | GCC=yes |
2977 | GCC=yes |
2637 | else |
2978 | else |
2638 | GCC= |
2979 | GCC= |
2639 | fi |
2980 | fi |
2640 | ac_test_CFLAGS=${CFLAGS+set} |
2981 | ac_test_CFLAGS=${CFLAGS+y} |
2641 | ac_save_CFLAGS=$CFLAGS |
2982 | ac_save_CFLAGS=$CFLAGS |
2642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2983 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2643 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
2984 | printf %s "checking whether $CC accepts -g... " >&6; } |
2644 | if ${ac_cv_prog_cc_g+:} false; then : |
2985 | if test ${ac_cv_prog_cc_g+y} |
2645 | $as_echo_n "(cached) " >&6 |
2986 | then : |
2646 | else |
2987 | printf %s "(cached) " >&6 |
|
|
2988 | else $as_nop |
2647 | ac_save_c_werror_flag=$ac_c_werror_flag |
2989 | ac_save_c_werror_flag=$ac_c_werror_flag |
2648 | ac_c_werror_flag=yes |
2990 | ac_c_werror_flag=yes |
2649 | ac_cv_prog_cc_g=no |
2991 | ac_cv_prog_cc_g=no |
2650 | CFLAGS="-g" |
2992 | CFLAGS="-g" |
2651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2993 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2652 | /* end confdefs.h. */ |
2994 | /* end confdefs.h. */ |
2653 | |
2995 | |
2654 | int |
2996 | int |
2655 | main () |
2997 | main (void) |
2656 | { |
2998 | { |
2657 | |
2999 | |
2658 | ; |
3000 | ; |
2659 | return 0; |
3001 | return 0; |
2660 | } |
3002 | } |
2661 | _ACEOF |
3003 | _ACEOF |
2662 | if ac_fn_c_try_compile "$LINENO"; then : |
3004 | if ac_fn_c_try_compile "$LINENO" |
|
|
3005 | then : |
2663 | ac_cv_prog_cc_g=yes |
3006 | ac_cv_prog_cc_g=yes |
2664 | else |
3007 | else $as_nop |
2665 | CFLAGS="" |
3008 | CFLAGS="" |
2666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2667 | /* end confdefs.h. */ |
3010 | /* end confdefs.h. */ |
2668 | |
3011 | |
2669 | int |
3012 | int |
2670 | main () |
3013 | main (void) |
2671 | { |
3014 | { |
2672 | |
3015 | |
2673 | ; |
3016 | ; |
2674 | return 0; |
3017 | return 0; |
2675 | } |
3018 | } |
2676 | _ACEOF |
3019 | _ACEOF |
2677 | if ac_fn_c_try_compile "$LINENO"; then : |
3020 | if ac_fn_c_try_compile "$LINENO" |
|
|
3021 | then : |
2678 | |
3022 | |
2679 | else |
3023 | else $as_nop |
2680 | ac_c_werror_flag=$ac_save_c_werror_flag |
3024 | ac_c_werror_flag=$ac_save_c_werror_flag |
2681 | CFLAGS="-g" |
3025 | CFLAGS="-g" |
2682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2683 | /* end confdefs.h. */ |
3027 | /* end confdefs.h. */ |
2684 | |
3028 | |
2685 | int |
3029 | int |
2686 | main () |
3030 | main (void) |
2687 | { |
3031 | { |
2688 | |
3032 | |
2689 | ; |
3033 | ; |
2690 | return 0; |
3034 | return 0; |
2691 | } |
3035 | } |
2692 | _ACEOF |
3036 | _ACEOF |
2693 | if ac_fn_c_try_compile "$LINENO"; then : |
3037 | if ac_fn_c_try_compile "$LINENO" |
|
|
3038 | then : |
2694 | ac_cv_prog_cc_g=yes |
3039 | ac_cv_prog_cc_g=yes |
2695 | fi |
3040 | fi |
2696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3041 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2697 | fi |
3042 | fi |
2698 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3043 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2699 | fi |
3044 | fi |
2700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3045 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
2701 | ac_c_werror_flag=$ac_save_c_werror_flag |
3046 | ac_c_werror_flag=$ac_save_c_werror_flag |
2702 | fi |
3047 | fi |
2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3048 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2704 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
3049 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
2705 | if test "$ac_test_CFLAGS" = set; then |
3050 | if test $ac_test_CFLAGS; then |
2706 | CFLAGS=$ac_save_CFLAGS |
3051 | CFLAGS=$ac_save_CFLAGS |
2707 | elif test $ac_cv_prog_cc_g = yes; then |
3052 | elif test $ac_cv_prog_cc_g = yes; then |
2708 | if test "$GCC" = yes; then |
3053 | if test "$GCC" = yes; then |
2709 | CFLAGS="-g -O2" |
3054 | CFLAGS="-g -O2" |
2710 | else |
3055 | else |
… | |
… | |
2715 | CFLAGS="-O2" |
3060 | CFLAGS="-O2" |
2716 | else |
3061 | else |
2717 | CFLAGS= |
3062 | CFLAGS= |
2718 | fi |
3063 | fi |
2719 | fi |
3064 | fi |
|
|
3065 | ac_prog_cc_stdc=no |
|
|
3066 | if test x$ac_prog_cc_stdc = xno |
|
|
3067 | then : |
|
|
3068 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3069 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3070 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3071 | then : |
|
|
3072 | printf %s "(cached) " >&6 |
|
|
3073 | else $as_nop |
|
|
3074 | ac_cv_prog_cc_c11=no |
|
|
3075 | ac_save_CC=$CC |
|
|
3076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3077 | /* end confdefs.h. */ |
|
|
3078 | $ac_c_conftest_c11_program |
|
|
3079 | _ACEOF |
|
|
3080 | for ac_arg in '' -std=gnu11 |
|
|
3081 | do |
|
|
3082 | CC="$ac_save_CC $ac_arg" |
|
|
3083 | if ac_fn_c_try_compile "$LINENO" |
|
|
3084 | then : |
|
|
3085 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3086 | fi |
|
|
3087 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3088 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3089 | done |
|
|
3090 | rm -f conftest.$ac_ext |
|
|
3091 | CC=$ac_save_CC |
|
|
3092 | fi |
|
|
3093 | |
|
|
3094 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3095 | then : |
|
|
3096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3097 | printf "%s\n" "unsupported" >&6; } |
|
|
3098 | else $as_nop |
|
|
3099 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
3100 | then : |
|
|
3101 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3102 | printf "%s\n" "none needed" >&6; } |
|
|
3103 | else $as_nop |
|
|
3104 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
3105 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
3106 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
3107 | fi |
|
|
3108 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
3109 | ac_prog_cc_stdc=c11 |
|
|
3110 | fi |
|
|
3111 | fi |
|
|
3112 | if test x$ac_prog_cc_stdc = xno |
|
|
3113 | then : |
|
|
3114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
3115 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
3116 | if test ${ac_cv_prog_cc_c99+y} |
|
|
3117 | then : |
|
|
3118 | printf %s "(cached) " >&6 |
|
|
3119 | else $as_nop |
|
|
3120 | ac_cv_prog_cc_c99=no |
|
|
3121 | ac_save_CC=$CC |
|
|
3122 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3123 | /* end confdefs.h. */ |
|
|
3124 | $ac_c_conftest_c99_program |
|
|
3125 | _ACEOF |
|
|
3126 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
3127 | do |
|
|
3128 | CC="$ac_save_CC $ac_arg" |
|
|
3129 | if ac_fn_c_try_compile "$LINENO" |
|
|
3130 | then : |
|
|
3131 | ac_cv_prog_cc_c99=$ac_arg |
|
|
3132 | fi |
|
|
3133 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3134 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
3135 | done |
|
|
3136 | rm -f conftest.$ac_ext |
|
|
3137 | CC=$ac_save_CC |
|
|
3138 | fi |
|
|
3139 | |
|
|
3140 | if test "x$ac_cv_prog_cc_c99" = xno |
|
|
3141 | then : |
|
|
3142 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
3143 | printf "%s\n" "unsupported" >&6; } |
|
|
3144 | else $as_nop |
|
|
3145 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
3146 | then : |
|
|
3147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3148 | printf "%s\n" "none needed" >&6; } |
|
|
3149 | else $as_nop |
|
|
3150 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
3151 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
3152 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
3153 | fi |
|
|
3154 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
3155 | ac_prog_cc_stdc=c99 |
|
|
3156 | fi |
|
|
3157 | fi |
|
|
3158 | if test x$ac_prog_cc_stdc = xno |
|
|
3159 | then : |
2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
2721 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3161 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
2722 | if ${ac_cv_prog_cc_c89+:} false; then : |
3162 | if test ${ac_cv_prog_cc_c89+y} |
2723 | $as_echo_n "(cached) " >&6 |
3163 | then : |
2724 | else |
3164 | printf %s "(cached) " >&6 |
|
|
3165 | else $as_nop |
2725 | ac_cv_prog_cc_c89=no |
3166 | ac_cv_prog_cc_c89=no |
2726 | ac_save_CC=$CC |
3167 | ac_save_CC=$CC |
2727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3168 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2728 | /* end confdefs.h. */ |
3169 | /* end confdefs.h. */ |
2729 | #include <stdarg.h> |
3170 | $ac_c_conftest_c89_program |
2730 | #include <stdio.h> |
|
|
2731 | struct stat; |
|
|
2732 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
2733 | struct buf { int x; }; |
|
|
2734 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
2735 | static char *e (p, i) |
|
|
2736 | char **p; |
|
|
2737 | int i; |
|
|
2738 | { |
|
|
2739 | return p[i]; |
|
|
2740 | } |
|
|
2741 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
2742 | { |
|
|
2743 | char *s; |
|
|
2744 | va_list v; |
|
|
2745 | va_start (v,p); |
|
|
2746 | s = g (p, va_arg (v,int)); |
|
|
2747 | va_end (v); |
|
|
2748 | return s; |
|
|
2749 | } |
|
|
2750 | |
|
|
2751 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
2752 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
2753 | These don't provoke an error unfortunately, instead are silently treated |
|
|
2754 | as 'x'. The following induces an error, until -std is added to get |
|
|
2755 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
2756 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
2757 | that's true only with -std. */ |
|
|
2758 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
2759 | |
|
|
2760 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
2761 | inside strings and character constants. */ |
|
|
2762 | #define FOO(x) 'x' |
|
|
2763 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
2764 | |
|
|
2765 | int test (int i, double x); |
|
|
2766 | struct s1 {int (*f) (int a);}; |
|
|
2767 | struct s2 {int (*f) (double a);}; |
|
|
2768 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
2769 | int argc; |
|
|
2770 | char **argv; |
|
|
2771 | int |
|
|
2772 | main () |
|
|
2773 | { |
|
|
2774 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
2775 | ; |
|
|
2776 | return 0; |
|
|
2777 | } |
|
|
2778 | _ACEOF |
3171 | _ACEOF |
2779 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3172 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2780 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
2781 | do |
3173 | do |
2782 | CC="$ac_save_CC $ac_arg" |
3174 | CC="$ac_save_CC $ac_arg" |
2783 | if ac_fn_c_try_compile "$LINENO"; then : |
3175 | if ac_fn_c_try_compile "$LINENO" |
|
|
3176 | then : |
2784 | ac_cv_prog_cc_c89=$ac_arg |
3177 | ac_cv_prog_cc_c89=$ac_arg |
2785 | fi |
3178 | fi |
2786 | rm -f core conftest.err conftest.$ac_objext |
3179 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
2787 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3180 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
2788 | done |
3181 | done |
2789 | rm -f conftest.$ac_ext |
3182 | rm -f conftest.$ac_ext |
2790 | CC=$ac_save_CC |
3183 | CC=$ac_save_CC |
2791 | |
|
|
2792 | fi |
3184 | fi |
2793 | # AC_CACHE_VAL |
3185 | |
2794 | case "x$ac_cv_prog_cc_c89" in |
3186 | if test "x$ac_cv_prog_cc_c89" = xno |
2795 | x) |
3187 | then : |
2796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
2797 | $as_echo "none needed" >&6; } ;; |
|
|
2798 | xno) |
|
|
2799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3188 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
2800 | $as_echo "unsupported" >&6; } ;; |
3189 | printf "%s\n" "unsupported" >&6; } |
2801 | *) |
3190 | else $as_nop |
|
|
3191 | if test "x$ac_cv_prog_cc_c89" = x |
|
|
3192 | then : |
|
|
3193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3194 | printf "%s\n" "none needed" >&6; } |
|
|
3195 | else $as_nop |
|
|
3196 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
3197 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
2802 | CC="$CC $ac_cv_prog_cc_c89" |
3198 | CC="$CC $ac_cv_prog_cc_c89" |
2803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3199 | fi |
2804 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3200 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
2805 | esac |
3201 | ac_prog_cc_stdc=c89 |
2806 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
3202 | fi |
2807 | |
|
|
2808 | fi |
3203 | fi |
2809 | |
3204 | |
2810 | ac_ext=c |
3205 | ac_ext=c |
2811 | ac_cpp='$CPP $CPPFLAGS' |
3206 | ac_cpp='$CPP $CPPFLAGS' |
2812 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3207 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2813 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3208 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2814 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3209 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2815 | |
3210 | |
2816 | |
3211 | |
2817 | ac_ext=c |
3212 | ac_header= ac_cache= |
2818 | ac_cpp='$CPP $CPPFLAGS' |
3213 | for ac_item in $ac_header_c_list |
2819 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2820 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2821 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
|
|
2823 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
|
|
2824 | # On Suns, sometimes $CPP names a directory. |
|
|
2825 | if test -n "$CPP" && test -d "$CPP"; then |
|
|
2826 | CPP= |
|
|
2827 | fi |
|
|
2828 | if test -z "$CPP"; then |
|
|
2829 | if ${ac_cv_prog_CPP+:} false; then : |
|
|
2830 | $as_echo_n "(cached) " >&6 |
|
|
2831 | else |
|
|
2832 | # Double quotes because CPP needs to be expanded |
|
|
2833 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
|
|
2834 | do |
|
|
2835 | ac_preproc_ok=false |
|
|
2836 | for ac_c_preproc_warn_flag in '' yes |
|
|
2837 | do |
3214 | do |
2838 | # Use a header file that comes with gcc, so configuring glibc |
3215 | if test $ac_cache; then |
2839 | # with a fresh cross-compiler works. |
3216 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
2840 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3217 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
2841 | # <limits.h> exists even on freestanding compilers. |
3218 | printf "%s\n" "#define $ac_item 1" >> confdefs.h |
2842 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3219 | fi |
2843 | # not just through cpp. "Syntax error" is here to catch this case. |
3220 | ac_header= ac_cache= |
|
|
3221 | elif test $ac_header; then |
|
|
3222 | ac_cache=$ac_item |
|
|
3223 | else |
|
|
3224 | ac_header=$ac_item |
|
|
3225 | fi |
|
|
3226 | done |
|
|
3227 | |
|
|
3228 | |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | |
|
|
3232 | |
|
|
3233 | |
|
|
3234 | |
|
|
3235 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
|
|
3236 | then : |
|
|
3237 | |
|
|
3238 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
|
|
3239 | |
|
|
3240 | fi |
|
|
3241 | |
|
|
3242 | |
|
|
3243 | |
|
|
3244 | |
|
|
3245 | |
|
|
3246 | |
|
|
3247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
|
|
3248 | printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
|
|
3249 | if test ${ac_cv_safe_to_define___extensions__+y} |
|
|
3250 | then : |
|
|
3251 | printf %s "(cached) " >&6 |
|
|
3252 | else $as_nop |
2844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3253 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2845 | /* end confdefs.h. */ |
3254 | /* end confdefs.h. */ |
2846 | #ifdef __STDC__ |
|
|
2847 | # include <limits.h> |
|
|
2848 | #else |
|
|
2849 | # include <assert.h> |
|
|
2850 | #endif |
|
|
2851 | Syntax error |
|
|
2852 | _ACEOF |
|
|
2853 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2854 | |
3255 | |
2855 | else |
3256 | # define __EXTENSIONS__ 1 |
2856 | # Broken: fails on valid input. |
3257 | $ac_includes_default |
2857 | continue |
|
|
2858 | fi |
|
|
2859 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2860 | |
|
|
2861 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
2862 | # can be detected and how. |
|
|
2863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2864 | /* end confdefs.h. */ |
|
|
2865 | #include <ac_nonexistent.h> |
|
|
2866 | _ACEOF |
|
|
2867 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2868 | # Broken: success on invalid input. |
|
|
2869 | continue |
|
|
2870 | else |
|
|
2871 | # Passes both tests. |
|
|
2872 | ac_preproc_ok=: |
|
|
2873 | break |
|
|
2874 | fi |
|
|
2875 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2876 | |
|
|
2877 | done |
|
|
2878 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
2879 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
2880 | if $ac_preproc_ok; then : |
|
|
2881 | break |
|
|
2882 | fi |
|
|
2883 | |
|
|
2884 | done |
|
|
2885 | ac_cv_prog_CPP=$CPP |
|
|
2886 | |
|
|
2887 | fi |
|
|
2888 | CPP=$ac_cv_prog_CPP |
|
|
2889 | else |
|
|
2890 | ac_cv_prog_CPP=$CPP |
|
|
2891 | fi |
|
|
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
|
|
2893 | $as_echo "$CPP" >&6; } |
|
|
2894 | ac_preproc_ok=false |
|
|
2895 | for ac_c_preproc_warn_flag in '' yes |
|
|
2896 | do |
|
|
2897 | # Use a header file that comes with gcc, so configuring glibc |
|
|
2898 | # with a fresh cross-compiler works. |
|
|
2899 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|
|
2900 | # <limits.h> exists even on freestanding compilers. |
|
|
2901 | # On the NeXT, cc -E runs the code through the compiler's parser, |
|
|
2902 | # not just through cpp. "Syntax error" is here to catch this case. |
|
|
2903 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2904 | /* end confdefs.h. */ |
|
|
2905 | #ifdef __STDC__ |
|
|
2906 | # include <limits.h> |
|
|
2907 | #else |
|
|
2908 | # include <assert.h> |
|
|
2909 | #endif |
|
|
2910 | Syntax error |
|
|
2911 | _ACEOF |
|
|
2912 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2913 | |
|
|
2914 | else |
|
|
2915 | # Broken: fails on valid input. |
|
|
2916 | continue |
|
|
2917 | fi |
|
|
2918 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2919 | |
|
|
2920 | # OK, works on sane cases. Now check whether nonexistent headers |
|
|
2921 | # can be detected and how. |
|
|
2922 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
2923 | /* end confdefs.h. */ |
|
|
2924 | #include <ac_nonexistent.h> |
|
|
2925 | _ACEOF |
|
|
2926 | if ac_fn_c_try_cpp "$LINENO"; then : |
|
|
2927 | # Broken: success on invalid input. |
|
|
2928 | continue |
|
|
2929 | else |
|
|
2930 | # Passes both tests. |
|
|
2931 | ac_preproc_ok=: |
|
|
2932 | break |
|
|
2933 | fi |
|
|
2934 | rm -f conftest.err conftest.i conftest.$ac_ext |
|
|
2935 | |
|
|
2936 | done |
|
|
2937 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
|
|
2938 | rm -f conftest.i conftest.err conftest.$ac_ext |
|
|
2939 | if $ac_preproc_ok; then : |
|
|
2940 | |
|
|
2941 | else |
|
|
2942 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
|
|
2943 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
|
|
2944 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
|
|
2945 | See \`config.log' for more details" "$LINENO" 5; } |
|
|
2946 | fi |
|
|
2947 | |
|
|
2948 | ac_ext=c |
|
|
2949 | ac_cpp='$CPP $CPPFLAGS' |
|
|
2950 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
|
|
2951 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
|
|
2952 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
2953 | |
|
|
2954 | |
|
|
2955 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
|
|
2956 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
|
|
2957 | if ${ac_cv_path_GREP+:} false; then : |
|
|
2958 | $as_echo_n "(cached) " >&6 |
|
|
2959 | else |
|
|
2960 | if test -z "$GREP"; then |
|
|
2961 | ac_path_GREP_found=false |
|
|
2962 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
2963 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
2964 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
2965 | do |
|
|
2966 | IFS=$as_save_IFS |
|
|
2967 | test -z "$as_dir" && as_dir=. |
|
|
2968 | for ac_prog in grep ggrep; do |
|
|
2969 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
2970 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
2971 | as_fn_executable_p "$ac_path_GREP" || continue |
|
|
2972 | # Check for GNU ac_path_GREP and select it if it is found. |
|
|
2973 | # Check for GNU $ac_path_GREP |
|
|
2974 | case `"$ac_path_GREP" --version 2>&1` in |
|
|
2975 | *GNU*) |
|
|
2976 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
|
|
2977 | *) |
|
|
2978 | ac_count=0 |
|
|
2979 | $as_echo_n 0123456789 >"conftest.in" |
|
|
2980 | while : |
|
|
2981 | do |
|
|
2982 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
2983 | mv "conftest.tmp" "conftest.in" |
|
|
2984 | cp "conftest.in" "conftest.nl" |
|
|
2985 | $as_echo 'GREP' >> "conftest.nl" |
|
|
2986 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
2987 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
2988 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
2989 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
|
|
2990 | # Best one so far, save it but keep looking for a better one |
|
|
2991 | ac_cv_path_GREP="$ac_path_GREP" |
|
|
2992 | ac_path_GREP_max=$ac_count |
|
|
2993 | fi |
|
|
2994 | # 10*(2^10) chars as input seems more than enough |
|
|
2995 | test $ac_count -gt 10 && break |
|
|
2996 | done |
|
|
2997 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
2998 | esac |
|
|
2999 | |
|
|
3000 | $ac_path_GREP_found && break 3 |
|
|
3001 | done |
|
|
3002 | done |
|
|
3003 | done |
|
|
3004 | IFS=$as_save_IFS |
|
|
3005 | if test -z "$ac_cv_path_GREP"; then |
|
|
3006 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
3007 | fi |
|
|
3008 | else |
|
|
3009 | ac_cv_path_GREP=$GREP |
|
|
3010 | fi |
|
|
3011 | |
|
|
3012 | fi |
|
|
3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
|
|
3014 | $as_echo "$ac_cv_path_GREP" >&6; } |
|
|
3015 | GREP="$ac_cv_path_GREP" |
|
|
3016 | |
|
|
3017 | |
|
|
3018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
|
|
3019 | $as_echo_n "checking for egrep... " >&6; } |
|
|
3020 | if ${ac_cv_path_EGREP+:} false; then : |
|
|
3021 | $as_echo_n "(cached) " >&6 |
|
|
3022 | else |
|
|
3023 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
|
|
3024 | then ac_cv_path_EGREP="$GREP -E" |
|
|
3025 | else |
|
|
3026 | if test -z "$EGREP"; then |
|
|
3027 | ac_path_EGREP_found=false |
|
|
3028 | # Loop through the user's path and test for each of PROGNAME-LIST |
|
|
3029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3030 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
|
|
3031 | do |
|
|
3032 | IFS=$as_save_IFS |
|
|
3033 | test -z "$as_dir" && as_dir=. |
|
|
3034 | for ac_prog in egrep; do |
|
|
3035 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3036 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
|
|
3037 | as_fn_executable_p "$ac_path_EGREP" || continue |
|
|
3038 | # Check for GNU ac_path_EGREP and select it if it is found. |
|
|
3039 | # Check for GNU $ac_path_EGREP |
|
|
3040 | case `"$ac_path_EGREP" --version 2>&1` in |
|
|
3041 | *GNU*) |
|
|
3042 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
|
|
3043 | *) |
|
|
3044 | ac_count=0 |
|
|
3045 | $as_echo_n 0123456789 >"conftest.in" |
|
|
3046 | while : |
|
|
3047 | do |
|
|
3048 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
|
|
3049 | mv "conftest.tmp" "conftest.in" |
|
|
3050 | cp "conftest.in" "conftest.nl" |
|
|
3051 | $as_echo 'EGREP' >> "conftest.nl" |
|
|
3052 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
|
|
3053 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
|
|
3054 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
|
|
3055 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
|
|
3056 | # Best one so far, save it but keep looking for a better one |
|
|
3057 | ac_cv_path_EGREP="$ac_path_EGREP" |
|
|
3058 | ac_path_EGREP_max=$ac_count |
|
|
3059 | fi |
|
|
3060 | # 10*(2^10) chars as input seems more than enough |
|
|
3061 | test $ac_count -gt 10 && break |
|
|
3062 | done |
|
|
3063 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
|
|
3064 | esac |
|
|
3065 | |
|
|
3066 | $ac_path_EGREP_found && break 3 |
|
|
3067 | done |
|
|
3068 | done |
|
|
3069 | done |
|
|
3070 | IFS=$as_save_IFS |
|
|
3071 | if test -z "$ac_cv_path_EGREP"; then |
|
|
3072 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
|
|
3073 | fi |
|
|
3074 | else |
|
|
3075 | ac_cv_path_EGREP=$EGREP |
|
|
3076 | fi |
|
|
3077 | |
|
|
3078 | fi |
|
|
3079 | fi |
|
|
3080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
|
|
3081 | $as_echo "$ac_cv_path_EGREP" >&6; } |
|
|
3082 | EGREP="$ac_cv_path_EGREP" |
|
|
3083 | |
|
|
3084 | |
|
|
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
|
|
3086 | $as_echo_n "checking for ANSI C header files... " >&6; } |
|
|
3087 | if ${ac_cv_header_stdc+:} false; then : |
|
|
3088 | $as_echo_n "(cached) " >&6 |
|
|
3089 | else |
|
|
3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3091 | /* end confdefs.h. */ |
|
|
3092 | #include <stdlib.h> |
|
|
3093 | #include <stdarg.h> |
|
|
3094 | #include <string.h> |
|
|
3095 | #include <float.h> |
|
|
3096 | |
|
|
3097 | int |
3258 | int |
3098 | main () |
3259 | main (void) |
3099 | { |
3260 | { |
3100 | |
3261 | |
3101 | ; |
3262 | ; |
3102 | return 0; |
3263 | return 0; |
3103 | } |
3264 | } |
3104 | _ACEOF |
3265 | _ACEOF |
3105 | if ac_fn_c_try_compile "$LINENO"; then : |
3266 | if ac_fn_c_try_compile "$LINENO" |
3106 | ac_cv_header_stdc=yes |
3267 | then : |
3107 | else |
3268 | ac_cv_safe_to_define___extensions__=yes |
3108 | ac_cv_header_stdc=no |
3269 | else $as_nop |
|
|
3270 | ac_cv_safe_to_define___extensions__=no |
3109 | fi |
3271 | fi |
3110 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3272 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3273 | fi |
|
|
3274 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
|
|
3275 | printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } |
3111 | |
3276 | |
|
|
3277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
|
|
3278 | printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
|
|
3279 | if test ${ac_cv_should_define__xopen_source+y} |
|
|
3280 | then : |
|
|
3281 | printf %s "(cached) " >&6 |
|
|
3282 | else $as_nop |
|
|
3283 | ac_cv_should_define__xopen_source=no |
3112 | if test $ac_cv_header_stdc = yes; then |
3284 | if test $ac_cv_header_wchar_h = yes |
3113 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3285 | then : |
3114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3115 | /* end confdefs.h. */ |
3287 | /* end confdefs.h. */ |
3116 | #include <string.h> |
|
|
3117 | |
3288 | |
3118 | _ACEOF |
3289 | #include <wchar.h> |
3119 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3290 | mbstate_t x; |
3120 | $EGREP "memchr" >/dev/null 2>&1; then : |
|
|
3121 | |
|
|
3122 | else |
|
|
3123 | ac_cv_header_stdc=no |
|
|
3124 | fi |
|
|
3125 | rm -f conftest* |
|
|
3126 | |
|
|
3127 | fi |
|
|
3128 | |
|
|
3129 | if test $ac_cv_header_stdc = yes; then |
|
|
3130 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
|
|
3131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3132 | /* end confdefs.h. */ |
|
|
3133 | #include <stdlib.h> |
|
|
3134 | |
|
|
3135 | _ACEOF |
|
|
3136 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
3137 | $EGREP "free" >/dev/null 2>&1; then : |
|
|
3138 | |
|
|
3139 | else |
|
|
3140 | ac_cv_header_stdc=no |
|
|
3141 | fi |
|
|
3142 | rm -f conftest* |
|
|
3143 | |
|
|
3144 | fi |
|
|
3145 | |
|
|
3146 | if test $ac_cv_header_stdc = yes; then |
|
|
3147 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
3148 | if test "$cross_compiling" = yes; then : |
|
|
3149 | : |
|
|
3150 | else |
|
|
3151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3152 | /* end confdefs.h. */ |
|
|
3153 | #include <ctype.h> |
|
|
3154 | #include <stdlib.h> |
|
|
3155 | #if ((' ' & 0x0FF) == 0x020) |
|
|
3156 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
3157 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
3158 | #else |
|
|
3159 | # define ISLOWER(c) \ |
|
|
3160 | (('a' <= (c) && (c) <= 'i') \ |
|
|
3161 | || ('j' <= (c) && (c) <= 'r') \ |
|
|
3162 | || ('s' <= (c) && (c) <= 'z')) |
|
|
3163 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
|
|
3164 | #endif |
|
|
3165 | |
|
|
3166 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
3167 | int |
3291 | int |
3168 | main () |
3292 | main (void) |
3169 | { |
|
|
3170 | int i; |
|
|
3171 | for (i = 0; i < 256; i++) |
|
|
3172 | if (XOR (islower (i), ISLOWER (i)) |
|
|
3173 | || toupper (i) != TOUPPER (i)) |
|
|
3174 | return 2; |
|
|
3175 | return 0; |
|
|
3176 | } |
|
|
3177 | _ACEOF |
|
|
3178 | if ac_fn_c_try_run "$LINENO"; then : |
|
|
3179 | |
|
|
3180 | else |
|
|
3181 | ac_cv_header_stdc=no |
|
|
3182 | fi |
|
|
3183 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
|
|
3184 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3185 | fi |
|
|
3186 | |
|
|
3187 | fi |
|
|
3188 | fi |
|
|
3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
|
|
3190 | $as_echo "$ac_cv_header_stdc" >&6; } |
|
|
3191 | if test $ac_cv_header_stdc = yes; then |
|
|
3192 | |
|
|
3193 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
|
|
3194 | |
|
|
3195 | fi |
|
|
3196 | |
|
|
3197 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
|
|
3198 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
|
|
3199 | inttypes.h stdint.h unistd.h |
|
|
3200 | do : |
|
|
3201 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
|
|
3202 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
|
|
3203 | " |
|
|
3204 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
|
|
3205 | cat >>confdefs.h <<_ACEOF |
|
|
3206 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
|
|
3207 | _ACEOF |
|
|
3208 | |
|
|
3209 | fi |
|
|
3210 | |
|
|
3211 | done |
|
|
3212 | |
|
|
3213 | |
|
|
3214 | |
|
|
3215 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
|
|
3216 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
|
|
3217 | MINIX=yes |
|
|
3218 | else |
|
|
3219 | MINIX= |
|
|
3220 | fi |
|
|
3221 | |
|
|
3222 | |
|
|
3223 | if test "$MINIX" = yes; then |
|
|
3224 | |
|
|
3225 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
|
|
3226 | |
|
|
3227 | |
|
|
3228 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
|
|
3229 | |
|
|
3230 | |
|
|
3231 | $as_echo "#define _MINIX 1" >>confdefs.h |
|
|
3232 | |
|
|
3233 | fi |
|
|
3234 | |
|
|
3235 | |
|
|
3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
|
|
3237 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
|
|
3238 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
|
|
3239 | $as_echo_n "(cached) " >&6 |
|
|
3240 | else |
|
|
3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3242 | /* end confdefs.h. */ |
|
|
3243 | |
|
|
3244 | # define __EXTENSIONS__ 1 |
|
|
3245 | $ac_includes_default |
|
|
3246 | int |
|
|
3247 | main () |
|
|
3248 | { |
3293 | { |
3249 | |
3294 | |
3250 | ; |
3295 | ; |
3251 | return 0; |
3296 | return 0; |
3252 | } |
3297 | } |
3253 | _ACEOF |
3298 | _ACEOF |
3254 | if ac_fn_c_try_compile "$LINENO"; then : |
3299 | if ac_fn_c_try_compile "$LINENO" |
3255 | ac_cv_safe_to_define___extensions__=yes |
3300 | then : |
3256 | else |
3301 | |
3257 | ac_cv_safe_to_define___extensions__=no |
3302 | else $as_nop |
|
|
3303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3304 | /* end confdefs.h. */ |
|
|
3305 | |
|
|
3306 | #define _XOPEN_SOURCE 500 |
|
|
3307 | #include <wchar.h> |
|
|
3308 | mbstate_t x; |
|
|
3309 | int |
|
|
3310 | main (void) |
|
|
3311 | { |
|
|
3312 | |
|
|
3313 | ; |
|
|
3314 | return 0; |
|
|
3315 | } |
|
|
3316 | _ACEOF |
|
|
3317 | if ac_fn_c_try_compile "$LINENO" |
|
|
3318 | then : |
|
|
3319 | ac_cv_should_define__xopen_source=yes |
3258 | fi |
3320 | fi |
3259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3321 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3260 | fi |
3322 | fi |
|
|
3323 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
3324 | fi |
|
|
3325 | fi |
3261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
3262 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
3327 | printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } |
|
|
3328 | |
|
|
3329 | printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
|
|
3330 | |
|
|
3331 | printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
|
|
3332 | |
|
|
3333 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
|
|
3334 | |
|
|
3335 | printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
|
|
3336 | |
|
|
3337 | printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
|
|
3338 | |
|
|
3339 | printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
|
|
3340 | |
|
|
3341 | printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
|
|
3342 | |
|
|
3343 | printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
|
|
3344 | |
|
|
3345 | printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
|
|
3346 | |
|
|
3347 | printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
|
|
3348 | |
|
|
3349 | printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
|
|
3350 | |
|
|
3351 | printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
|
|
3352 | |
|
|
3353 | printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
|
|
3354 | |
|
|
3355 | printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
|
|
3356 | |
|
|
3357 | printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
|
3358 | |
|
|
3359 | if test $ac_cv_header_minix_config_h = yes |
|
|
3360 | then : |
|
|
3361 | MINIX=yes |
|
|
3362 | printf "%s\n" "#define _MINIX 1" >>confdefs.h |
|
|
3363 | |
|
|
3364 | printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
|
|
3365 | |
|
|
3366 | printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
|
|
3367 | |
|
|
3368 | else $as_nop |
|
|
3369 | MINIX= |
|
|
3370 | fi |
3263 | test $ac_cv_safe_to_define___extensions__ = yes && |
3371 | if test $ac_cv_safe_to_define___extensions__ = yes |
|
|
3372 | then : |
3264 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
3373 | printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
3265 | |
3374 | |
3266 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
3375 | fi |
|
|
3376 | if test $ac_cv_should_define__xopen_source = yes |
|
|
3377 | then : |
|
|
3378 | printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
3267 | |
3379 | |
3268 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3380 | fi |
3269 | |
|
|
3270 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
|
|
3271 | |
|
|
3272 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
|
|
3273 | |
|
|
3274 | |
3381 | |
3275 | |
3382 | |
3276 | ac_ext=c |
3383 | ac_ext=c |
3277 | ac_cpp='$CPP $CPPFLAGS' |
3384 | ac_cpp='$CPP $CPPFLAGS' |
3278 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3385 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3279 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3386 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3280 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3387 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3281 | if test -n "$ac_tool_prefix"; then |
3388 | if test -n "$ac_tool_prefix"; then |
3282 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3389 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3283 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3390 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3285 | $as_echo_n "checking for $ac_word... " >&6; } |
3392 | printf %s "checking for $ac_word... " >&6; } |
3286 | if ${ac_cv_prog_CC+:} false; then : |
3393 | if test ${ac_cv_prog_CC+y} |
3287 | $as_echo_n "(cached) " >&6 |
3394 | then : |
3288 | else |
3395 | printf %s "(cached) " >&6 |
|
|
3396 | else $as_nop |
3289 | if test -n "$CC"; then |
3397 | if test -n "$CC"; then |
3290 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3398 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3291 | else |
3399 | else |
3292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3293 | for as_dir in $PATH |
3401 | for as_dir in $PATH |
3294 | do |
3402 | do |
3295 | IFS=$as_save_IFS |
3403 | IFS=$as_save_IFS |
3296 | test -z "$as_dir" && as_dir=. |
3404 | case $as_dir in #((( |
|
|
3405 | '') as_dir=./ ;; |
|
|
3406 | */) ;; |
|
|
3407 | *) as_dir=$as_dir/ ;; |
|
|
3408 | esac |
3297 | for ac_exec_ext in '' $ac_executable_extensions; do |
3409 | for ac_exec_ext in '' $ac_executable_extensions; do |
3298 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3410 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3299 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3411 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3300 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3412 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3301 | break 2 |
3413 | break 2 |
3302 | fi |
3414 | fi |
3303 | done |
3415 | done |
3304 | done |
3416 | done |
3305 | IFS=$as_save_IFS |
3417 | IFS=$as_save_IFS |
3306 | |
3418 | |
3307 | fi |
3419 | fi |
3308 | fi |
3420 | fi |
3309 | CC=$ac_cv_prog_CC |
3421 | CC=$ac_cv_prog_CC |
3310 | if test -n "$CC"; then |
3422 | if test -n "$CC"; then |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3312 | $as_echo "$CC" >&6; } |
3424 | printf "%s\n" "$CC" >&6; } |
3313 | else |
3425 | else |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3426 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3315 | $as_echo "no" >&6; } |
3427 | printf "%s\n" "no" >&6; } |
3316 | fi |
3428 | fi |
3317 | |
3429 | |
3318 | |
3430 | |
3319 | fi |
3431 | fi |
3320 | if test -z "$ac_cv_prog_CC"; then |
3432 | if test -z "$ac_cv_prog_CC"; then |
3321 | ac_ct_CC=$CC |
3433 | ac_ct_CC=$CC |
3322 | # Extract the first word of "gcc", so it can be a program name with args. |
3434 | # Extract the first word of "gcc", so it can be a program name with args. |
3323 | set dummy gcc; ac_word=$2 |
3435 | set dummy gcc; ac_word=$2 |
3324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3436 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3325 | $as_echo_n "checking for $ac_word... " >&6; } |
3437 | printf %s "checking for $ac_word... " >&6; } |
3326 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3438 | if test ${ac_cv_prog_ac_ct_CC+y} |
3327 | $as_echo_n "(cached) " >&6 |
3439 | then : |
3328 | else |
3440 | printf %s "(cached) " >&6 |
|
|
3441 | else $as_nop |
3329 | if test -n "$ac_ct_CC"; then |
3442 | if test -n "$ac_ct_CC"; then |
3330 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3443 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3331 | else |
3444 | else |
3332 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3333 | for as_dir in $PATH |
3446 | for as_dir in $PATH |
3334 | do |
3447 | do |
3335 | IFS=$as_save_IFS |
3448 | IFS=$as_save_IFS |
3336 | test -z "$as_dir" && as_dir=. |
3449 | case $as_dir in #((( |
|
|
3450 | '') as_dir=./ ;; |
|
|
3451 | */) ;; |
|
|
3452 | *) as_dir=$as_dir/ ;; |
|
|
3453 | esac |
3337 | for ac_exec_ext in '' $ac_executable_extensions; do |
3454 | for ac_exec_ext in '' $ac_executable_extensions; do |
3338 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3455 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3339 | ac_cv_prog_ac_ct_CC="gcc" |
3456 | ac_cv_prog_ac_ct_CC="gcc" |
3340 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3457 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3341 | break 2 |
3458 | break 2 |
3342 | fi |
3459 | fi |
3343 | done |
3460 | done |
3344 | done |
3461 | done |
3345 | IFS=$as_save_IFS |
3462 | IFS=$as_save_IFS |
3346 | |
3463 | |
3347 | fi |
3464 | fi |
3348 | fi |
3465 | fi |
3349 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3466 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3350 | if test -n "$ac_ct_CC"; then |
3467 | if test -n "$ac_ct_CC"; then |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3468 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3352 | $as_echo "$ac_ct_CC" >&6; } |
3469 | printf "%s\n" "$ac_ct_CC" >&6; } |
3353 | else |
3470 | else |
3354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3355 | $as_echo "no" >&6; } |
3472 | printf "%s\n" "no" >&6; } |
3356 | fi |
3473 | fi |
3357 | |
3474 | |
3358 | if test "x$ac_ct_CC" = x; then |
3475 | if test "x$ac_ct_CC" = x; then |
3359 | CC="" |
3476 | CC="" |
3360 | else |
3477 | else |
3361 | case $cross_compiling:$ac_tool_warned in |
3478 | case $cross_compiling:$ac_tool_warned in |
3362 | yes:) |
3479 | yes:) |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3480 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3364 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3481 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3365 | ac_tool_warned=yes ;; |
3482 | ac_tool_warned=yes ;; |
3366 | esac |
3483 | esac |
3367 | CC=$ac_ct_CC |
3484 | CC=$ac_ct_CC |
3368 | fi |
3485 | fi |
3369 | else |
3486 | else |
… | |
… | |
3372 | |
3489 | |
3373 | if test -z "$CC"; then |
3490 | if test -z "$CC"; then |
3374 | if test -n "$ac_tool_prefix"; then |
3491 | if test -n "$ac_tool_prefix"; then |
3375 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3492 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3376 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3493 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3494 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3378 | $as_echo_n "checking for $ac_word... " >&6; } |
3495 | printf %s "checking for $ac_word... " >&6; } |
3379 | if ${ac_cv_prog_CC+:} false; then : |
3496 | if test ${ac_cv_prog_CC+y} |
3380 | $as_echo_n "(cached) " >&6 |
3497 | then : |
3381 | else |
3498 | printf %s "(cached) " >&6 |
|
|
3499 | else $as_nop |
3382 | if test -n "$CC"; then |
3500 | if test -n "$CC"; then |
3383 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3501 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3384 | else |
3502 | else |
3385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3386 | for as_dir in $PATH |
3504 | for as_dir in $PATH |
3387 | do |
3505 | do |
3388 | IFS=$as_save_IFS |
3506 | IFS=$as_save_IFS |
3389 | test -z "$as_dir" && as_dir=. |
3507 | case $as_dir in #((( |
|
|
3508 | '') as_dir=./ ;; |
|
|
3509 | */) ;; |
|
|
3510 | *) as_dir=$as_dir/ ;; |
|
|
3511 | esac |
3390 | for ac_exec_ext in '' $ac_executable_extensions; do |
3512 | for ac_exec_ext in '' $ac_executable_extensions; do |
3391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3513 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3392 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3514 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3515 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3394 | break 2 |
3516 | break 2 |
3395 | fi |
3517 | fi |
3396 | done |
3518 | done |
3397 | done |
3519 | done |
3398 | IFS=$as_save_IFS |
3520 | IFS=$as_save_IFS |
3399 | |
3521 | |
3400 | fi |
3522 | fi |
3401 | fi |
3523 | fi |
3402 | CC=$ac_cv_prog_CC |
3524 | CC=$ac_cv_prog_CC |
3403 | if test -n "$CC"; then |
3525 | if test -n "$CC"; then |
3404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3405 | $as_echo "$CC" >&6; } |
3527 | printf "%s\n" "$CC" >&6; } |
3406 | else |
3528 | else |
3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3408 | $as_echo "no" >&6; } |
3530 | printf "%s\n" "no" >&6; } |
3409 | fi |
3531 | fi |
3410 | |
3532 | |
3411 | |
3533 | |
3412 | fi |
3534 | fi |
3413 | fi |
3535 | fi |
3414 | if test -z "$CC"; then |
3536 | if test -z "$CC"; then |
3415 | # Extract the first word of "cc", so it can be a program name with args. |
3537 | # Extract the first word of "cc", so it can be a program name with args. |
3416 | set dummy cc; ac_word=$2 |
3538 | set dummy cc; ac_word=$2 |
3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3539 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3418 | $as_echo_n "checking for $ac_word... " >&6; } |
3540 | printf %s "checking for $ac_word... " >&6; } |
3419 | if ${ac_cv_prog_CC+:} false; then : |
3541 | if test ${ac_cv_prog_CC+y} |
3420 | $as_echo_n "(cached) " >&6 |
3542 | then : |
3421 | else |
3543 | printf %s "(cached) " >&6 |
|
|
3544 | else $as_nop |
3422 | if test -n "$CC"; then |
3545 | if test -n "$CC"; then |
3423 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3546 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3424 | else |
3547 | else |
3425 | ac_prog_rejected=no |
3548 | ac_prog_rejected=no |
3426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3427 | for as_dir in $PATH |
3550 | for as_dir in $PATH |
3428 | do |
3551 | do |
3429 | IFS=$as_save_IFS |
3552 | IFS=$as_save_IFS |
3430 | test -z "$as_dir" && as_dir=. |
3553 | case $as_dir in #((( |
|
|
3554 | '') as_dir=./ ;; |
|
|
3555 | */) ;; |
|
|
3556 | *) as_dir=$as_dir/ ;; |
|
|
3557 | esac |
3431 | for ac_exec_ext in '' $ac_executable_extensions; do |
3558 | for ac_exec_ext in '' $ac_executable_extensions; do |
3432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3559 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3433 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3560 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3434 | ac_prog_rejected=yes |
3561 | ac_prog_rejected=yes |
3435 | continue |
3562 | continue |
3436 | fi |
3563 | fi |
3437 | ac_cv_prog_CC="cc" |
3564 | ac_cv_prog_CC="cc" |
3438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3565 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3439 | break 2 |
3566 | break 2 |
3440 | fi |
3567 | fi |
3441 | done |
3568 | done |
3442 | done |
3569 | done |
3443 | IFS=$as_save_IFS |
3570 | IFS=$as_save_IFS |
… | |
… | |
3449 | if test $# != 0; then |
3576 | if test $# != 0; then |
3450 | # We chose a different compiler from the bogus one. |
3577 | # We chose a different compiler from the bogus one. |
3451 | # However, it has the same basename, so the bogon will be chosen |
3578 | # However, it has the same basename, so the bogon will be chosen |
3452 | # first if we set CC to just the basename; use the full file name. |
3579 | # first if we set CC to just the basename; use the full file name. |
3453 | shift |
3580 | shift |
3454 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3581 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
3455 | fi |
3582 | fi |
3456 | fi |
3583 | fi |
3457 | fi |
3584 | fi |
3458 | fi |
3585 | fi |
3459 | CC=$ac_cv_prog_CC |
3586 | CC=$ac_cv_prog_CC |
3460 | if test -n "$CC"; then |
3587 | if test -n "$CC"; then |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3588 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3462 | $as_echo "$CC" >&6; } |
3589 | printf "%s\n" "$CC" >&6; } |
3463 | else |
3590 | else |
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3591 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3465 | $as_echo "no" >&6; } |
3592 | printf "%s\n" "no" >&6; } |
3466 | fi |
3593 | fi |
3467 | |
3594 | |
3468 | |
3595 | |
3469 | fi |
3596 | fi |
3470 | if test -z "$CC"; then |
3597 | if test -z "$CC"; then |
3471 | if test -n "$ac_tool_prefix"; then |
3598 | if test -n "$ac_tool_prefix"; then |
3472 | for ac_prog in cl.exe |
3599 | for ac_prog in cl.exe |
3473 | do |
3600 | do |
3474 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3601 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3475 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3602 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3477 | $as_echo_n "checking for $ac_word... " >&6; } |
3604 | printf %s "checking for $ac_word... " >&6; } |
3478 | if ${ac_cv_prog_CC+:} false; then : |
3605 | if test ${ac_cv_prog_CC+y} |
3479 | $as_echo_n "(cached) " >&6 |
3606 | then : |
3480 | else |
3607 | printf %s "(cached) " >&6 |
|
|
3608 | else $as_nop |
3481 | if test -n "$CC"; then |
3609 | if test -n "$CC"; then |
3482 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3610 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3483 | else |
3611 | else |
3484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3485 | for as_dir in $PATH |
3613 | for as_dir in $PATH |
3486 | do |
3614 | do |
3487 | IFS=$as_save_IFS |
3615 | IFS=$as_save_IFS |
3488 | test -z "$as_dir" && as_dir=. |
3616 | case $as_dir in #((( |
|
|
3617 | '') as_dir=./ ;; |
|
|
3618 | */) ;; |
|
|
3619 | *) as_dir=$as_dir/ ;; |
|
|
3620 | esac |
3489 | for ac_exec_ext in '' $ac_executable_extensions; do |
3621 | for ac_exec_ext in '' $ac_executable_extensions; do |
3490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3622 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3491 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3623 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3624 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3493 | break 2 |
3625 | break 2 |
3494 | fi |
3626 | fi |
3495 | done |
3627 | done |
3496 | done |
3628 | done |
3497 | IFS=$as_save_IFS |
3629 | IFS=$as_save_IFS |
3498 | |
3630 | |
3499 | fi |
3631 | fi |
3500 | fi |
3632 | fi |
3501 | CC=$ac_cv_prog_CC |
3633 | CC=$ac_cv_prog_CC |
3502 | if test -n "$CC"; then |
3634 | if test -n "$CC"; then |
3503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3635 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3504 | $as_echo "$CC" >&6; } |
3636 | printf "%s\n" "$CC" >&6; } |
3505 | else |
3637 | else |
3506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3638 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3507 | $as_echo "no" >&6; } |
3639 | printf "%s\n" "no" >&6; } |
3508 | fi |
3640 | fi |
3509 | |
3641 | |
3510 | |
3642 | |
3511 | test -n "$CC" && break |
3643 | test -n "$CC" && break |
3512 | done |
3644 | done |
… | |
… | |
3515 | ac_ct_CC=$CC |
3647 | ac_ct_CC=$CC |
3516 | for ac_prog in cl.exe |
3648 | for ac_prog in cl.exe |
3517 | do |
3649 | do |
3518 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3650 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3519 | set dummy $ac_prog; ac_word=$2 |
3651 | set dummy $ac_prog; ac_word=$2 |
3520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3521 | $as_echo_n "checking for $ac_word... " >&6; } |
3653 | printf %s "checking for $ac_word... " >&6; } |
3522 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3654 | if test ${ac_cv_prog_ac_ct_CC+y} |
3523 | $as_echo_n "(cached) " >&6 |
3655 | then : |
3524 | else |
3656 | printf %s "(cached) " >&6 |
|
|
3657 | else $as_nop |
3525 | if test -n "$ac_ct_CC"; then |
3658 | if test -n "$ac_ct_CC"; then |
3526 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3659 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3527 | else |
3660 | else |
3528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3529 | for as_dir in $PATH |
3662 | for as_dir in $PATH |
3530 | do |
3663 | do |
3531 | IFS=$as_save_IFS |
3664 | IFS=$as_save_IFS |
3532 | test -z "$as_dir" && as_dir=. |
3665 | case $as_dir in #((( |
|
|
3666 | '') as_dir=./ ;; |
|
|
3667 | */) ;; |
|
|
3668 | *) as_dir=$as_dir/ ;; |
|
|
3669 | esac |
3533 | for ac_exec_ext in '' $ac_executable_extensions; do |
3670 | for ac_exec_ext in '' $ac_executable_extensions; do |
3534 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3671 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3535 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3672 | ac_cv_prog_ac_ct_CC="$ac_prog" |
3536 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3673 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3537 | break 2 |
3674 | break 2 |
3538 | fi |
3675 | fi |
3539 | done |
3676 | done |
3540 | done |
3677 | done |
3541 | IFS=$as_save_IFS |
3678 | IFS=$as_save_IFS |
3542 | |
3679 | |
3543 | fi |
3680 | fi |
3544 | fi |
3681 | fi |
3545 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3682 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3546 | if test -n "$ac_ct_CC"; then |
3683 | if test -n "$ac_ct_CC"; then |
3547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3684 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3548 | $as_echo "$ac_ct_CC" >&6; } |
3685 | printf "%s\n" "$ac_ct_CC" >&6; } |
3549 | else |
3686 | else |
3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3687 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3551 | $as_echo "no" >&6; } |
3688 | printf "%s\n" "no" >&6; } |
3552 | fi |
3689 | fi |
3553 | |
3690 | |
3554 | |
3691 | |
3555 | test -n "$ac_ct_CC" && break |
3692 | test -n "$ac_ct_CC" && break |
3556 | done |
3693 | done |
… | |
… | |
3558 | if test "x$ac_ct_CC" = x; then |
3695 | if test "x$ac_ct_CC" = x; then |
3559 | CC="" |
3696 | CC="" |
3560 | else |
3697 | else |
3561 | case $cross_compiling:$ac_tool_warned in |
3698 | case $cross_compiling:$ac_tool_warned in |
3562 | yes:) |
3699 | yes:) |
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3564 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3701 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3565 | ac_tool_warned=yes ;; |
3702 | ac_tool_warned=yes ;; |
3566 | esac |
3703 | esac |
3567 | CC=$ac_ct_CC |
3704 | CC=$ac_ct_CC |
3568 | fi |
3705 | fi |
3569 | fi |
3706 | fi |
3570 | |
3707 | |
3571 | fi |
3708 | fi |
|
|
3709 | if test -z "$CC"; then |
|
|
3710 | if test -n "$ac_tool_prefix"; then |
|
|
3711 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
|
|
3712 | set dummy ${ac_tool_prefix}clang; ac_word=$2 |
|
|
3713 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3714 | printf %s "checking for $ac_word... " >&6; } |
|
|
3715 | if test ${ac_cv_prog_CC+y} |
|
|
3716 | then : |
|
|
3717 | printf %s "(cached) " >&6 |
|
|
3718 | else $as_nop |
|
|
3719 | if test -n "$CC"; then |
|
|
3720 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|
|
3721 | else |
|
|
3722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3723 | for as_dir in $PATH |
|
|
3724 | do |
|
|
3725 | IFS=$as_save_IFS |
|
|
3726 | case $as_dir in #((( |
|
|
3727 | '') as_dir=./ ;; |
|
|
3728 | */) ;; |
|
|
3729 | *) as_dir=$as_dir/ ;; |
|
|
3730 | esac |
|
|
3731 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3732 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3733 | ac_cv_prog_CC="${ac_tool_prefix}clang" |
|
|
3734 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3735 | break 2 |
|
|
3736 | fi |
|
|
3737 | done |
|
|
3738 | done |
|
|
3739 | IFS=$as_save_IFS |
3572 | |
3740 | |
|
|
3741 | fi |
|
|
3742 | fi |
|
|
3743 | CC=$ac_cv_prog_CC |
|
|
3744 | if test -n "$CC"; then |
|
|
3745 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
|
|
3746 | printf "%s\n" "$CC" >&6; } |
|
|
3747 | else |
|
|
3748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3749 | printf "%s\n" "no" >&6; } |
|
|
3750 | fi |
3573 | |
3751 | |
|
|
3752 | |
|
|
3753 | fi |
|
|
3754 | if test -z "$ac_cv_prog_CC"; then |
|
|
3755 | ac_ct_CC=$CC |
|
|
3756 | # Extract the first word of "clang", so it can be a program name with args. |
|
|
3757 | set dummy clang; ac_word=$2 |
|
|
3758 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
|
|
3759 | printf %s "checking for $ac_word... " >&6; } |
|
|
3760 | if test ${ac_cv_prog_ac_ct_CC+y} |
|
|
3761 | then : |
|
|
3762 | printf %s "(cached) " >&6 |
|
|
3763 | else $as_nop |
|
|
3764 | if test -n "$ac_ct_CC"; then |
|
|
3765 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
|
|
3766 | else |
|
|
3767 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
|
|
3768 | for as_dir in $PATH |
|
|
3769 | do |
|
|
3770 | IFS=$as_save_IFS |
|
|
3771 | case $as_dir in #((( |
|
|
3772 | '') as_dir=./ ;; |
|
|
3773 | */) ;; |
|
|
3774 | *) as_dir=$as_dir/ ;; |
|
|
3775 | esac |
|
|
3776 | for ac_exec_ext in '' $ac_executable_extensions; do |
|
|
3777 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
|
|
3778 | ac_cv_prog_ac_ct_CC="clang" |
|
|
3779 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
|
|
3780 | break 2 |
|
|
3781 | fi |
|
|
3782 | done |
|
|
3783 | done |
|
|
3784 | IFS=$as_save_IFS |
|
|
3785 | |
|
|
3786 | fi |
|
|
3787 | fi |
|
|
3788 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
|
|
3789 | if test -n "$ac_ct_CC"; then |
|
|
3790 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
|
|
3791 | printf "%s\n" "$ac_ct_CC" >&6; } |
|
|
3792 | else |
|
|
3793 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
|
|
3794 | printf "%s\n" "no" >&6; } |
|
|
3795 | fi |
|
|
3796 | |
|
|
3797 | if test "x$ac_ct_CC" = x; then |
|
|
3798 | CC="" |
|
|
3799 | else |
|
|
3800 | case $cross_compiling:$ac_tool_warned in |
|
|
3801 | yes:) |
|
|
3802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
|
|
3803 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
|
|
3804 | ac_tool_warned=yes ;; |
|
|
3805 | esac |
|
|
3806 | CC=$ac_ct_CC |
|
|
3807 | fi |
|
|
3808 | else |
|
|
3809 | CC="$ac_cv_prog_CC" |
|
|
3810 | fi |
|
|
3811 | |
|
|
3812 | fi |
|
|
3813 | |
|
|
3814 | |
3574 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3815 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3575 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3816 | printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
3576 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3817 | as_fn_error $? "no acceptable C compiler found in \$PATH |
3577 | See \`config.log' for more details" "$LINENO" 5; } |
3818 | See \`config.log' for more details" "$LINENO" 5; } |
3578 | |
3819 | |
3579 | # Provide some information about the compiler. |
3820 | # Provide some information about the compiler. |
3580 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3821 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3581 | set X $ac_compile |
3822 | set X $ac_compile |
3582 | ac_compiler=$2 |
3823 | ac_compiler=$2 |
3583 | for ac_option in --version -v -V -qversion; do |
3824 | for ac_option in --version -v -V -qversion -version; do |
3584 | { { ac_try="$ac_compiler $ac_option >&5" |
3825 | { { ac_try="$ac_compiler $ac_option >&5" |
3585 | case "(($ac_try" in |
3826 | case "(($ac_try" in |
3586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3587 | *) ac_try_echo=$ac_try;; |
3828 | *) ac_try_echo=$ac_try;; |
3588 | esac |
3829 | esac |
3589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3590 | $as_echo "$ac_try_echo"; } >&5 |
3831 | printf "%s\n" "$ac_try_echo"; } >&5 |
3591 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3832 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3592 | ac_status=$? |
3833 | ac_status=$? |
3593 | if test -s conftest.err; then |
3834 | if test -s conftest.err; then |
3594 | sed '10a\ |
3835 | sed '10a\ |
3595 | ... rest of stderr output deleted ... |
3836 | ... rest of stderr output deleted ... |
3596 | 10q' conftest.err >conftest.er1 |
3837 | 10q' conftest.err >conftest.er1 |
3597 | cat conftest.er1 >&5 |
3838 | cat conftest.er1 >&5 |
3598 | fi |
3839 | fi |
3599 | rm -f conftest.er1 conftest.err |
3840 | rm -f conftest.er1 conftest.err |
3600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3841 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3601 | test $ac_status = 0; } |
3842 | test $ac_status = 0; } |
3602 | done |
3843 | done |
3603 | |
3844 | |
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
3605 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3846 | printf %s "checking whether the compiler supports GNU C... " >&6; } |
3606 | if ${ac_cv_c_compiler_gnu+:} false; then : |
3847 | if test ${ac_cv_c_compiler_gnu+y} |
3607 | $as_echo_n "(cached) " >&6 |
3848 | then : |
3608 | else |
3849 | printf %s "(cached) " >&6 |
|
|
3850 | else $as_nop |
3609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3610 | /* end confdefs.h. */ |
3852 | /* end confdefs.h. */ |
3611 | |
3853 | |
3612 | int |
3854 | int |
3613 | main () |
3855 | main (void) |
3614 | { |
3856 | { |
3615 | #ifndef __GNUC__ |
3857 | #ifndef __GNUC__ |
3616 | choke me |
3858 | choke me |
3617 | #endif |
3859 | #endif |
3618 | |
3860 | |
3619 | ; |
3861 | ; |
3620 | return 0; |
3862 | return 0; |
3621 | } |
3863 | } |
3622 | _ACEOF |
3864 | _ACEOF |
3623 | if ac_fn_c_try_compile "$LINENO"; then : |
3865 | if ac_fn_c_try_compile "$LINENO" |
|
|
3866 | then : |
3624 | ac_compiler_gnu=yes |
3867 | ac_compiler_gnu=yes |
3625 | else |
3868 | else $as_nop |
3626 | ac_compiler_gnu=no |
3869 | ac_compiler_gnu=no |
3627 | fi |
3870 | fi |
3628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3871 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3629 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3872 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3630 | |
3873 | |
3631 | fi |
3874 | fi |
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3633 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3876 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
|
|
3877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
|
|
3878 | |
3634 | if test $ac_compiler_gnu = yes; then |
3879 | if test $ac_compiler_gnu = yes; then |
3635 | GCC=yes |
3880 | GCC=yes |
3636 | else |
3881 | else |
3637 | GCC= |
3882 | GCC= |
3638 | fi |
3883 | fi |
3639 | ac_test_CFLAGS=${CFLAGS+set} |
3884 | ac_test_CFLAGS=${CFLAGS+y} |
3640 | ac_save_CFLAGS=$CFLAGS |
3885 | ac_save_CFLAGS=$CFLAGS |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3642 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3887 | printf %s "checking whether $CC accepts -g... " >&6; } |
3643 | if ${ac_cv_prog_cc_g+:} false; then : |
3888 | if test ${ac_cv_prog_cc_g+y} |
3644 | $as_echo_n "(cached) " >&6 |
3889 | then : |
3645 | else |
3890 | printf %s "(cached) " >&6 |
|
|
3891 | else $as_nop |
3646 | ac_save_c_werror_flag=$ac_c_werror_flag |
3892 | ac_save_c_werror_flag=$ac_c_werror_flag |
3647 | ac_c_werror_flag=yes |
3893 | ac_c_werror_flag=yes |
3648 | ac_cv_prog_cc_g=no |
3894 | ac_cv_prog_cc_g=no |
3649 | CFLAGS="-g" |
3895 | CFLAGS="-g" |
3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3896 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3651 | /* end confdefs.h. */ |
3897 | /* end confdefs.h. */ |
3652 | |
3898 | |
3653 | int |
3899 | int |
3654 | main () |
3900 | main (void) |
3655 | { |
3901 | { |
3656 | |
3902 | |
3657 | ; |
3903 | ; |
3658 | return 0; |
3904 | return 0; |
3659 | } |
3905 | } |
3660 | _ACEOF |
3906 | _ACEOF |
3661 | if ac_fn_c_try_compile "$LINENO"; then : |
3907 | if ac_fn_c_try_compile "$LINENO" |
|
|
3908 | then : |
3662 | ac_cv_prog_cc_g=yes |
3909 | ac_cv_prog_cc_g=yes |
3663 | else |
3910 | else $as_nop |
3664 | CFLAGS="" |
3911 | CFLAGS="" |
3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3666 | /* end confdefs.h. */ |
3913 | /* end confdefs.h. */ |
3667 | |
3914 | |
3668 | int |
3915 | int |
3669 | main () |
3916 | main (void) |
3670 | { |
3917 | { |
3671 | |
3918 | |
3672 | ; |
3919 | ; |
3673 | return 0; |
3920 | return 0; |
3674 | } |
3921 | } |
3675 | _ACEOF |
3922 | _ACEOF |
3676 | if ac_fn_c_try_compile "$LINENO"; then : |
3923 | if ac_fn_c_try_compile "$LINENO" |
|
|
3924 | then : |
3677 | |
3925 | |
3678 | else |
3926 | else $as_nop |
3679 | ac_c_werror_flag=$ac_save_c_werror_flag |
3927 | ac_c_werror_flag=$ac_save_c_werror_flag |
3680 | CFLAGS="-g" |
3928 | CFLAGS="-g" |
3681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3682 | /* end confdefs.h. */ |
3930 | /* end confdefs.h. */ |
3683 | |
3931 | |
3684 | int |
3932 | int |
3685 | main () |
3933 | main (void) |
3686 | { |
3934 | { |
3687 | |
3935 | |
3688 | ; |
3936 | ; |
3689 | return 0; |
3937 | return 0; |
3690 | } |
3938 | } |
3691 | _ACEOF |
3939 | _ACEOF |
3692 | if ac_fn_c_try_compile "$LINENO"; then : |
3940 | if ac_fn_c_try_compile "$LINENO" |
|
|
3941 | then : |
3693 | ac_cv_prog_cc_g=yes |
3942 | ac_cv_prog_cc_g=yes |
3694 | fi |
3943 | fi |
3695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3944 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3696 | fi |
3945 | fi |
3697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3946 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3698 | fi |
3947 | fi |
3699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3948 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
3700 | ac_c_werror_flag=$ac_save_c_werror_flag |
3949 | ac_c_werror_flag=$ac_save_c_werror_flag |
3701 | fi |
3950 | fi |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3703 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
3952 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
3704 | if test "$ac_test_CFLAGS" = set; then |
3953 | if test $ac_test_CFLAGS; then |
3705 | CFLAGS=$ac_save_CFLAGS |
3954 | CFLAGS=$ac_save_CFLAGS |
3706 | elif test $ac_cv_prog_cc_g = yes; then |
3955 | elif test $ac_cv_prog_cc_g = yes; then |
3707 | if test "$GCC" = yes; then |
3956 | if test "$GCC" = yes; then |
3708 | CFLAGS="-g -O2" |
3957 | CFLAGS="-g -O2" |
3709 | else |
3958 | else |
… | |
… | |
3714 | CFLAGS="-O2" |
3963 | CFLAGS="-O2" |
3715 | else |
3964 | else |
3716 | CFLAGS= |
3965 | CFLAGS= |
3717 | fi |
3966 | fi |
3718 | fi |
3967 | fi |
|
|
3968 | ac_prog_cc_stdc=no |
|
|
3969 | if test x$ac_prog_cc_stdc = xno |
|
|
3970 | then : |
|
|
3971 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
|
|
3972 | printf %s "checking for $CC option to enable C11 features... " >&6; } |
|
|
3973 | if test ${ac_cv_prog_cc_c11+y} |
|
|
3974 | then : |
|
|
3975 | printf %s "(cached) " >&6 |
|
|
3976 | else $as_nop |
|
|
3977 | ac_cv_prog_cc_c11=no |
|
|
3978 | ac_save_CC=$CC |
|
|
3979 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
3980 | /* end confdefs.h. */ |
|
|
3981 | $ac_c_conftest_c11_program |
|
|
3982 | _ACEOF |
|
|
3983 | for ac_arg in '' -std=gnu11 |
|
|
3984 | do |
|
|
3985 | CC="$ac_save_CC $ac_arg" |
|
|
3986 | if ac_fn_c_try_compile "$LINENO" |
|
|
3987 | then : |
|
|
3988 | ac_cv_prog_cc_c11=$ac_arg |
|
|
3989 | fi |
|
|
3990 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
3991 | test "x$ac_cv_prog_cc_c11" != "xno" && break |
|
|
3992 | done |
|
|
3993 | rm -f conftest.$ac_ext |
|
|
3994 | CC=$ac_save_CC |
|
|
3995 | fi |
|
|
3996 | |
|
|
3997 | if test "x$ac_cv_prog_cc_c11" = xno |
|
|
3998 | then : |
|
|
3999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4000 | printf "%s\n" "unsupported" >&6; } |
|
|
4001 | else $as_nop |
|
|
4002 | if test "x$ac_cv_prog_cc_c11" = x |
|
|
4003 | then : |
|
|
4004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4005 | printf "%s\n" "none needed" >&6; } |
|
|
4006 | else $as_nop |
|
|
4007 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
|
|
4008 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
|
|
4009 | CC="$CC $ac_cv_prog_cc_c11" |
|
|
4010 | fi |
|
|
4011 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
|
|
4012 | ac_prog_cc_stdc=c11 |
|
|
4013 | fi |
|
|
4014 | fi |
|
|
4015 | if test x$ac_prog_cc_stdc = xno |
|
|
4016 | then : |
|
|
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
|
|
4018 | printf %s "checking for $CC option to enable C99 features... " >&6; } |
|
|
4019 | if test ${ac_cv_prog_cc_c99+y} |
|
|
4020 | then : |
|
|
4021 | printf %s "(cached) " >&6 |
|
|
4022 | else $as_nop |
|
|
4023 | ac_cv_prog_cc_c99=no |
|
|
4024 | ac_save_CC=$CC |
|
|
4025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4026 | /* end confdefs.h. */ |
|
|
4027 | $ac_c_conftest_c99_program |
|
|
4028 | _ACEOF |
|
|
4029 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
|
|
4030 | do |
|
|
4031 | CC="$ac_save_CC $ac_arg" |
|
|
4032 | if ac_fn_c_try_compile "$LINENO" |
|
|
4033 | then : |
|
|
4034 | ac_cv_prog_cc_c99=$ac_arg |
|
|
4035 | fi |
|
|
4036 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
|
|
4037 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
|
|
4038 | done |
|
|
4039 | rm -f conftest.$ac_ext |
|
|
4040 | CC=$ac_save_CC |
|
|
4041 | fi |
|
|
4042 | |
|
|
4043 | if test "x$ac_cv_prog_cc_c99" = xno |
|
|
4044 | then : |
|
|
4045 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
|
|
4046 | printf "%s\n" "unsupported" >&6; } |
|
|
4047 | else $as_nop |
|
|
4048 | if test "x$ac_cv_prog_cc_c99" = x |
|
|
4049 | then : |
|
|
4050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4051 | printf "%s\n" "none needed" >&6; } |
|
|
4052 | else $as_nop |
|
|
4053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
|
|
4054 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
|
|
4055 | CC="$CC $ac_cv_prog_cc_c99" |
|
|
4056 | fi |
|
|
4057 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
|
|
4058 | ac_prog_cc_stdc=c99 |
|
|
4059 | fi |
|
|
4060 | fi |
|
|
4061 | if test x$ac_prog_cc_stdc = xno |
|
|
4062 | then : |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
3720 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4064 | printf %s "checking for $CC option to enable C89 features... " >&6; } |
3721 | if ${ac_cv_prog_cc_c89+:} false; then : |
4065 | if test ${ac_cv_prog_cc_c89+y} |
3722 | $as_echo_n "(cached) " >&6 |
4066 | then : |
3723 | else |
4067 | printf %s "(cached) " >&6 |
|
|
4068 | else $as_nop |
3724 | ac_cv_prog_cc_c89=no |
4069 | ac_cv_prog_cc_c89=no |
3725 | ac_save_CC=$CC |
4070 | ac_save_CC=$CC |
3726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3727 | /* end confdefs.h. */ |
4072 | /* end confdefs.h. */ |
3728 | #include <stdarg.h> |
4073 | $ac_c_conftest_c89_program |
3729 | #include <stdio.h> |
|
|
3730 | struct stat; |
|
|
3731 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
|
|
3732 | struct buf { int x; }; |
|
|
3733 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
|
|
3734 | static char *e (p, i) |
|
|
3735 | char **p; |
|
|
3736 | int i; |
|
|
3737 | { |
|
|
3738 | return p[i]; |
|
|
3739 | } |
|
|
3740 | static char *f (char * (*g) (char **, int), char **p, ...) |
|
|
3741 | { |
|
|
3742 | char *s; |
|
|
3743 | va_list v; |
|
|
3744 | va_start (v,p); |
|
|
3745 | s = g (p, va_arg (v,int)); |
|
|
3746 | va_end (v); |
|
|
3747 | return s; |
|
|
3748 | } |
|
|
3749 | |
|
|
3750 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
|
|
3751 | function prototypes and stuff, but not '\xHH' hex character constants. |
|
|
3752 | These don't provoke an error unfortunately, instead are silently treated |
|
|
3753 | as 'x'. The following induces an error, until -std is added to get |
|
|
3754 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
|
|
3755 | array size at least. It's necessary to write '\x00'==0 to get something |
|
|
3756 | that's true only with -std. */ |
|
|
3757 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
|
|
3758 | |
|
|
3759 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
|
|
3760 | inside strings and character constants. */ |
|
|
3761 | #define FOO(x) 'x' |
|
|
3762 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
|
|
3763 | |
|
|
3764 | int test (int i, double x); |
|
|
3765 | struct s1 {int (*f) (int a);}; |
|
|
3766 | struct s2 {int (*f) (double a);}; |
|
|
3767 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
|
|
3768 | int argc; |
|
|
3769 | char **argv; |
|
|
3770 | int |
|
|
3771 | main () |
|
|
3772 | { |
|
|
3773 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
|
|
3774 | ; |
|
|
3775 | return 0; |
|
|
3776 | } |
|
|
3777 | _ACEOF |
4074 | _ACEOF |
3778 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4075 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3779 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
|
|
3780 | do |
4076 | do |
3781 | CC="$ac_save_CC $ac_arg" |
4077 | CC="$ac_save_CC $ac_arg" |
3782 | if ac_fn_c_try_compile "$LINENO"; then : |
4078 | if ac_fn_c_try_compile "$LINENO" |
|
|
4079 | then : |
3783 | ac_cv_prog_cc_c89=$ac_arg |
4080 | ac_cv_prog_cc_c89=$ac_arg |
3784 | fi |
4081 | fi |
3785 | rm -f core conftest.err conftest.$ac_objext |
4082 | rm -f core conftest.err conftest.$ac_objext conftest.beam |
3786 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4083 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3787 | done |
4084 | done |
3788 | rm -f conftest.$ac_ext |
4085 | rm -f conftest.$ac_ext |
3789 | CC=$ac_save_CC |
4086 | CC=$ac_save_CC |
3790 | |
|
|
3791 | fi |
4087 | fi |
3792 | # AC_CACHE_VAL |
4088 | |
3793 | case "x$ac_cv_prog_cc_c89" in |
4089 | if test "x$ac_cv_prog_cc_c89" = xno |
3794 | x) |
4090 | then : |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
3796 | $as_echo "none needed" >&6; } ;; |
|
|
3797 | xno) |
|
|
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4091 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
3799 | $as_echo "unsupported" >&6; } ;; |
4092 | printf "%s\n" "unsupported" >&6; } |
3800 | *) |
4093 | else $as_nop |
|
|
4094 | if test "x$ac_cv_prog_cc_c89" = x |
|
|
4095 | then : |
|
|
4096 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
|
|
4097 | printf "%s\n" "none needed" >&6; } |
|
|
4098 | else $as_nop |
|
|
4099 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
|
|
4100 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
3801 | CC="$CC $ac_cv_prog_cc_c89" |
4101 | CC="$CC $ac_cv_prog_cc_c89" |
3802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4102 | fi |
3803 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4103 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
3804 | esac |
4104 | ac_prog_cc_stdc=c89 |
3805 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
4105 | fi |
3806 | |
|
|
3807 | fi |
4106 | fi |
3808 | |
4107 | |
3809 | ac_ext=c |
4108 | ac_ext=c |
3810 | ac_cpp='$CPP $CPPFLAGS' |
4109 | ac_cpp='$CPP $CPPFLAGS' |
3811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4110 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4111 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4112 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3814 | |
4113 | |
3815 | |
4114 | |
3816 | for ac_header in stdint.h sys/syscall.h sys/prctl.h |
4115 | ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
3817 | do : |
4116 | if test "x$ac_cv_header_stdint_h" = xyes |
3818 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4117 | then : |
|
|
4118 | printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h |
|
|
4119 | |
|
|
4120 | fi |
|
|
4121 | ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" |
|
|
4122 | if test "x$ac_cv_header_sys_syscall_h" = xyes |
|
|
4123 | then : |
|
|
4124 | printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h |
|
|
4125 | |
|
|
4126 | fi |
3819 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
4127 | ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" |
3820 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4128 | if test "x$ac_cv_header_sys_prctl_h" = xyes |
3821 | cat >>confdefs.h <<_ACEOF |
4129 | then : |
3822 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4130 | printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h |
3823 | _ACEOF |
|
|
3824 | |
4131 | |
3825 | fi |
4132 | fi |
3826 | |
4133 | |
3827 | done |
|
|
3828 | |
4134 | |
3829 | |
|
|
3830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
4135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
3831 | $as_echo_n "checking for library containing pthread_create... " >&6; } |
4136 | printf %s "checking for library containing pthread_create... " >&6; } |
3832 | if ${ac_cv_search_pthread_create+:} false; then : |
4137 | if test ${ac_cv_search_pthread_create+y} |
3833 | $as_echo_n "(cached) " >&6 |
4138 | then : |
3834 | else |
4139 | printf %s "(cached) " >&6 |
|
|
4140 | else $as_nop |
3835 | ac_func_search_save_LIBS=$LIBS |
4141 | ac_func_search_save_LIBS=$LIBS |
3836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3837 | /* end confdefs.h. */ |
4143 | /* end confdefs.h. */ |
3838 | |
4144 | |
3839 | /* Override any GCC internal prototype to avoid an error. |
4145 | /* Override any GCC internal prototype to avoid an error. |
3840 | Use char because int might match the return type of a GCC |
4146 | Use char because int might match the return type of a GCC |
3841 | builtin and then its argument prototype would still apply. */ |
4147 | builtin and then its argument prototype would still apply. */ |
3842 | #ifdef __cplusplus |
|
|
3843 | extern "C" |
|
|
3844 | #endif |
|
|
3845 | char pthread_create (); |
4148 | char pthread_create (); |
3846 | int |
4149 | int |
3847 | main () |
4150 | main (void) |
3848 | { |
4151 | { |
3849 | return pthread_create (); |
4152 | return pthread_create (); |
3850 | ; |
4153 | ; |
3851 | return 0; |
4154 | return 0; |
3852 | } |
4155 | } |
3853 | _ACEOF |
4156 | _ACEOF |
3854 | for ac_lib in '' pthread pthreads pthreadVC2; do |
4157 | for ac_lib in '' pthread pthreads pthreadVC2 |
|
|
4158 | do |
3855 | if test -z "$ac_lib"; then |
4159 | if test -z "$ac_lib"; then |
3856 | ac_res="none required" |
4160 | ac_res="none required" |
3857 | else |
4161 | else |
3858 | ac_res=-l$ac_lib |
4162 | ac_res=-l$ac_lib |
3859 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4163 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3860 | fi |
4164 | fi |
3861 | if ac_fn_c_try_link "$LINENO"; then : |
4165 | if ac_fn_c_try_link "$LINENO" |
|
|
4166 | then : |
3862 | ac_cv_search_pthread_create=$ac_res |
4167 | ac_cv_search_pthread_create=$ac_res |
3863 | fi |
4168 | fi |
3864 | rm -f core conftest.err conftest.$ac_objext \ |
4169 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3865 | conftest$ac_exeext |
4170 | conftest$ac_exeext |
3866 | if ${ac_cv_search_pthread_create+:} false; then : |
4171 | if test ${ac_cv_search_pthread_create+y} |
|
|
4172 | then : |
3867 | break |
4173 | break |
3868 | fi |
4174 | fi |
3869 | done |
4175 | done |
3870 | if ${ac_cv_search_pthread_create+:} false; then : |
4176 | if test ${ac_cv_search_pthread_create+y} |
|
|
4177 | then : |
3871 | |
4178 | |
3872 | else |
4179 | else $as_nop |
3873 | ac_cv_search_pthread_create=no |
4180 | ac_cv_search_pthread_create=no |
3874 | fi |
4181 | fi |
3875 | rm conftest.$ac_ext |
4182 | rm conftest.$ac_ext |
3876 | LIBS=$ac_func_search_save_LIBS |
4183 | LIBS=$ac_func_search_save_LIBS |
3877 | fi |
4184 | fi |
3878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
4185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
3879 | $as_echo "$ac_cv_search_pthread_create" >&6; } |
4186 | printf "%s\n" "$ac_cv_search_pthread_create" >&6; } |
3880 | ac_res=$ac_cv_search_pthread_create |
4187 | ac_res=$ac_cv_search_pthread_create |
3881 | if test "$ac_res" != no; then : |
4188 | if test "$ac_res" != no |
|
|
4189 | then : |
3882 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
4190 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3883 | |
4191 | |
3884 | else |
4192 | else $as_nop |
3885 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
4193 | as_fn_error $? "pthread functions not found" "$LINENO" 5 |
3886 | |
4194 | |
3887 | fi |
4195 | fi |
3888 | |
4196 | |
3889 | |
4197 | |
3890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
4198 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
3891 | $as_echo_n "checking for utimes... " >&6; } |
4199 | printf %s "checking for utimes... " >&6; } |
3892 | if ${ac_cv_utimes+:} false; then : |
4200 | if test ${ac_cv_utimes+y} |
3893 | $as_echo_n "(cached) " >&6 |
4201 | then : |
3894 | else |
4202 | printf %s "(cached) " >&6 |
|
|
4203 | else $as_nop |
3895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3896 | /* end confdefs.h. */ |
4205 | /* end confdefs.h. */ |
3897 | |
4206 | |
3898 | #include <sys/types.h> |
4207 | #include <sys/types.h> |
3899 | #include <sys/time.h> |
4208 | #include <sys/time.h> |
… | |
… | |
3905 | res = utimes ("/", tv); |
4214 | res = utimes ("/", tv); |
3906 | return 0; |
4215 | return 0; |
3907 | } |
4216 | } |
3908 | |
4217 | |
3909 | _ACEOF |
4218 | _ACEOF |
3910 | if ac_fn_c_try_link "$LINENO"; then : |
4219 | if ac_fn_c_try_link "$LINENO" |
|
|
4220 | then : |
3911 | ac_cv_utimes=yes |
4221 | ac_cv_utimes=yes |
3912 | else |
4222 | else $as_nop |
3913 | ac_cv_utimes=no |
4223 | ac_cv_utimes=no |
3914 | fi |
4224 | fi |
3915 | rm -f core conftest.err conftest.$ac_objext \ |
4225 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3916 | conftest$ac_exeext conftest.$ac_ext |
4226 | conftest$ac_exeext conftest.$ac_ext |
3917 | fi |
4227 | fi |
3918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
4228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
3919 | $as_echo "$ac_cv_utimes" >&6; } |
4229 | printf "%s\n" "$ac_cv_utimes" >&6; } |
3920 | test $ac_cv_utimes = yes && |
4230 | test $ac_cv_utimes = yes && |
3921 | $as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
4231 | printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
3922 | |
4232 | |
3923 | |
4233 | |
3924 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
4234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
3925 | $as_echo_n "checking for futimes... " >&6; } |
4235 | printf %s "checking for futimes... " >&6; } |
3926 | if ${ac_cv_futimes+:} false; then : |
4236 | if test ${ac_cv_futimes+y} |
3927 | $as_echo_n "(cached) " >&6 |
4237 | then : |
3928 | else |
4238 | printf %s "(cached) " >&6 |
|
|
4239 | else $as_nop |
3929 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3930 | /* end confdefs.h. */ |
4241 | /* end confdefs.h. */ |
3931 | |
4242 | |
3932 | #include <sys/types.h> |
4243 | #include <sys/types.h> |
3933 | #include <sys/time.h> |
4244 | #include <sys/time.h> |
… | |
… | |
3940 | res = futimes (fd, tv); |
4251 | res = futimes (fd, tv); |
3941 | return 0; |
4252 | return 0; |
3942 | } |
4253 | } |
3943 | |
4254 | |
3944 | _ACEOF |
4255 | _ACEOF |
3945 | if ac_fn_c_try_link "$LINENO"; then : |
4256 | if ac_fn_c_try_link "$LINENO" |
|
|
4257 | then : |
3946 | ac_cv_futimes=yes |
4258 | ac_cv_futimes=yes |
3947 | else |
4259 | else $as_nop |
3948 | ac_cv_futimes=no |
4260 | ac_cv_futimes=no |
3949 | fi |
4261 | fi |
3950 | rm -f core conftest.err conftest.$ac_objext \ |
4262 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3951 | conftest$ac_exeext conftest.$ac_ext |
4263 | conftest$ac_exeext conftest.$ac_ext |
3952 | fi |
4264 | fi |
3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
4265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
3954 | $as_echo "$ac_cv_futimes" >&6; } |
4266 | printf "%s\n" "$ac_cv_futimes" >&6; } |
3955 | test $ac_cv_futimes = yes && |
4267 | test $ac_cv_futimes = yes && |
3956 | $as_echo "#define HAVE_FUTIMES 1" >>confdefs.h |
4268 | printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h |
3957 | |
4269 | |
3958 | |
4270 | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
4271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
3960 | $as_echo_n "checking for readahead... " >&6; } |
4272 | printf %s "checking for readahead... " >&6; } |
3961 | if ${ac_cv_readahead+:} false; then : |
4273 | if test ${ac_cv_readahead+y} |
3962 | $as_echo_n "(cached) " >&6 |
4274 | then : |
3963 | else |
4275 | printf %s "(cached) " >&6 |
|
|
4276 | else $as_nop |
3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3965 | /* end confdefs.h. */ |
4278 | /* end confdefs.h. */ |
3966 | |
4279 | |
|
|
4280 | #include <sys/types.h> |
3967 | #include <fcntl.h> |
4281 | #include <fcntl.h> |
3968 | int main (void) |
4282 | int main (void) |
3969 | { |
4283 | { |
3970 | int fd = 0; |
4284 | int fd = 0; |
3971 | size_t count = 2; |
4285 | size_t count = 2; |
… | |
… | |
3973 | res = readahead (fd, 0, count); |
4287 | res = readahead (fd, 0, count); |
3974 | return 0; |
4288 | return 0; |
3975 | } |
4289 | } |
3976 | |
4290 | |
3977 | _ACEOF |
4291 | _ACEOF |
3978 | if ac_fn_c_try_link "$LINENO"; then : |
4292 | if ac_fn_c_try_link "$LINENO" |
|
|
4293 | then : |
3979 | ac_cv_readahead=yes |
4294 | ac_cv_readahead=yes |
3980 | else |
4295 | else $as_nop |
3981 | ac_cv_readahead=no |
4296 | ac_cv_readahead=no |
3982 | fi |
4297 | fi |
3983 | rm -f core conftest.err conftest.$ac_objext \ |
4298 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
3984 | conftest$ac_exeext conftest.$ac_ext |
4299 | conftest$ac_exeext conftest.$ac_ext |
3985 | fi |
4300 | fi |
3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
4301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
3987 | $as_echo "$ac_cv_readahead" >&6; } |
4302 | printf "%s\n" "$ac_cv_readahead" >&6; } |
3988 | test $ac_cv_readahead = yes && |
4303 | test $ac_cv_readahead = yes && |
3989 | $as_echo "#define HAVE_READAHEAD 1" >>confdefs.h |
4304 | printf "%s\n" "#define HAVE_READAHEAD 1" >>confdefs.h |
3990 | |
4305 | |
3991 | |
4306 | |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
4307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
3993 | $as_echo_n "checking for fdatasync... " >&6; } |
4308 | printf %s "checking for fdatasync... " >&6; } |
3994 | if ${ac_cv_fdatasync+:} false; then : |
4309 | if test ${ac_cv_fdatasync+y} |
3995 | $as_echo_n "(cached) " >&6 |
4310 | then : |
3996 | else |
4311 | printf %s "(cached) " >&6 |
|
|
4312 | else $as_nop |
3997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3998 | /* end confdefs.h. */ |
4314 | /* end confdefs.h. */ |
3999 | |
4315 | |
4000 | #include <unistd.h> |
4316 | #include <unistd.h> |
4001 | int main (void) |
4317 | int main (void) |
… | |
… | |
4004 | fdatasync (fd); |
4320 | fdatasync (fd); |
4005 | return 0; |
4321 | return 0; |
4006 | } |
4322 | } |
4007 | |
4323 | |
4008 | _ACEOF |
4324 | _ACEOF |
4009 | if ac_fn_c_try_link "$LINENO"; then : |
4325 | if ac_fn_c_try_link "$LINENO" |
|
|
4326 | then : |
4010 | ac_cv_fdatasync=yes |
4327 | ac_cv_fdatasync=yes |
4011 | else |
4328 | else $as_nop |
4012 | ac_cv_fdatasync=no |
4329 | ac_cv_fdatasync=no |
4013 | fi |
4330 | fi |
4014 | rm -f core conftest.err conftest.$ac_objext \ |
4331 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4015 | conftest$ac_exeext conftest.$ac_ext |
4332 | conftest$ac_exeext conftest.$ac_ext |
4016 | fi |
4333 | fi |
4017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
4334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
4018 | $as_echo "$ac_cv_fdatasync" >&6; } |
4335 | printf "%s\n" "$ac_cv_fdatasync" >&6; } |
4019 | test $ac_cv_fdatasync = yes && |
4336 | test $ac_cv_fdatasync = yes && |
4020 | $as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
4337 | printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
4021 | |
4338 | |
4022 | |
4339 | |
4023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
4340 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
4024 | $as_echo_n "checking for sendfile... " >&6; } |
4341 | printf %s "checking for sendfile... " >&6; } |
4025 | if ${ac_cv_sendfile+:} false; then : |
4342 | if test ${ac_cv_sendfile+y} |
4026 | $as_echo_n "(cached) " >&6 |
4343 | then : |
4027 | else |
4344 | printf %s "(cached) " >&6 |
|
|
4345 | else $as_nop |
4028 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4029 | /* end confdefs.h. */ |
4347 | /* end confdefs.h. */ |
4030 | |
4348 | |
4031 | # include <sys/types.h> |
4349 | # include <sys/types.h> |
4032 | #if __linux |
4350 | #if __linux |
… | |
… | |
4054 | #endif |
4372 | #endif |
4055 | return 0; |
4373 | return 0; |
4056 | } |
4374 | } |
4057 | |
4375 | |
4058 | _ACEOF |
4376 | _ACEOF |
4059 | if ac_fn_c_try_link "$LINENO"; then : |
4377 | if ac_fn_c_try_link "$LINENO" |
|
|
4378 | then : |
4060 | ac_cv_sendfile=yes |
4379 | ac_cv_sendfile=yes |
4061 | else |
4380 | else $as_nop |
4062 | ac_cv_sendfile=no |
4381 | ac_cv_sendfile=no |
4063 | fi |
4382 | fi |
4064 | rm -f core conftest.err conftest.$ac_objext \ |
4383 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4065 | conftest$ac_exeext conftest.$ac_ext |
4384 | conftest$ac_exeext conftest.$ac_ext |
4066 | fi |
4385 | fi |
4067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
4386 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
4068 | $as_echo "$ac_cv_sendfile" >&6; } |
4387 | printf "%s\n" "$ac_cv_sendfile" >&6; } |
4069 | test $ac_cv_sendfile = yes && |
4388 | test $ac_cv_sendfile = yes && |
4070 | $as_echo "#define HAVE_SENDFILE 1" >>confdefs.h |
4389 | printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
4071 | |
4390 | |
4072 | |
4391 | |
4073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
4392 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
4074 | $as_echo_n "checking for sync_file_range... " >&6; } |
4393 | printf %s "checking for sync_file_range... " >&6; } |
4075 | if ${ac_cv_sync_file_range+:} false; then : |
4394 | if test ${ac_cv_sync_file_range+y} |
4076 | $as_echo_n "(cached) " >&6 |
4395 | then : |
4077 | else |
4396 | printf %s "(cached) " >&6 |
|
|
4397 | else $as_nop |
4078 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4079 | /* end confdefs.h. */ |
4399 | /* end confdefs.h. */ |
4080 | |
4400 | |
|
|
4401 | #include <sys/types.h> |
4081 | #include <fcntl.h> |
4402 | #include <fcntl.h> |
4082 | int main (void) |
4403 | int main (void) |
4083 | { |
4404 | { |
4084 | int fd = 0; |
4405 | int fd = 0; |
4085 | off64_t offset = 1; |
4406 | off64_t offset = 1; |
… | |
… | |
4089 | res = sync_file_range (fd, offset, nbytes, flags); |
4410 | res = sync_file_range (fd, offset, nbytes, flags); |
4090 | return 0; |
4411 | return 0; |
4091 | } |
4412 | } |
4092 | |
4413 | |
4093 | _ACEOF |
4414 | _ACEOF |
4094 | if ac_fn_c_try_link "$LINENO"; then : |
4415 | if ac_fn_c_try_link "$LINENO" |
|
|
4416 | then : |
4095 | ac_cv_sync_file_range=yes |
4417 | ac_cv_sync_file_range=yes |
4096 | else |
4418 | else $as_nop |
4097 | ac_cv_sync_file_range=no |
4419 | ac_cv_sync_file_range=no |
4098 | fi |
4420 | fi |
4099 | rm -f core conftest.err conftest.$ac_objext \ |
4421 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4100 | conftest$ac_exeext conftest.$ac_ext |
4422 | conftest$ac_exeext conftest.$ac_ext |
4101 | fi |
4423 | fi |
4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
4424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
4103 | $as_echo "$ac_cv_sync_file_range" >&6; } |
4425 | printf "%s\n" "$ac_cv_sync_file_range" >&6; } |
4104 | test $ac_cv_sync_file_range = yes && |
4426 | test $ac_cv_sync_file_range = yes && |
4105 | $as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4427 | printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4106 | |
4428 | |
4107 | |
4429 | |
4108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4430 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4109 | $as_echo_n "checking for fallocate... " >&6; } |
4431 | printf %s "checking for fallocate... " >&6; } |
4110 | if ${ac_cv_linux_fallocate+:} false; then : |
4432 | if test ${ac_cv_linux_fallocate+y} |
4111 | $as_echo_n "(cached) " >&6 |
4433 | then : |
4112 | else |
4434 | printf %s "(cached) " >&6 |
|
|
4435 | else $as_nop |
4113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4114 | /* end confdefs.h. */ |
4437 | /* end confdefs.h. */ |
4115 | |
4438 | |
4116 | #include <fcntl.h> |
4439 | #include <fcntl.h> |
4117 | int main (void) |
4440 | int main (void) |
… | |
… | |
4124 | res = fallocate (fd, mode, offset, len); |
4447 | res = fallocate (fd, mode, offset, len); |
4125 | return 0; |
4448 | return 0; |
4126 | } |
4449 | } |
4127 | |
4450 | |
4128 | _ACEOF |
4451 | _ACEOF |
4129 | if ac_fn_c_try_link "$LINENO"; then : |
4452 | if ac_fn_c_try_link "$LINENO" |
|
|
4453 | then : |
4130 | ac_cv_linux_fallocate=yes |
4454 | ac_cv_linux_fallocate=yes |
4131 | else |
4455 | else $as_nop |
4132 | ac_cv_linux_fallocate=no |
4456 | ac_cv_linux_fallocate=no |
4133 | fi |
4457 | fi |
4134 | rm -f core conftest.err conftest.$ac_objext \ |
4458 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4135 | conftest$ac_exeext conftest.$ac_ext |
4459 | conftest$ac_exeext conftest.$ac_ext |
4136 | fi |
4460 | fi |
4137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
4461 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
4138 | $as_echo "$ac_cv_linux_fallocate" >&6; } |
4462 | printf "%s\n" "$ac_cv_linux_fallocate" >&6; } |
4139 | test $ac_cv_linux_fallocate = yes && |
4463 | test $ac_cv_linux_fallocate = yes && |
4140 | $as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
4464 | printf "%s\n" "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
4141 | |
4465 | |
4142 | |
4466 | |
4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
4467 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
4144 | $as_echo_n "checking for sys_syncfs... " >&6; } |
4468 | printf %s "checking for sys_syncfs... " >&6; } |
4145 | if ${ac_cv_sys_syncfs+:} false; then : |
4469 | if test ${ac_cv_sys_syncfs+y} |
4146 | $as_echo_n "(cached) " >&6 |
4470 | then : |
4147 | else |
4471 | printf %s "(cached) " >&6 |
|
|
4472 | else $as_nop |
4148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4149 | /* end confdefs.h. */ |
4474 | /* end confdefs.h. */ |
4150 | |
4475 | |
4151 | #include <unistd.h> |
4476 | #include <unistd.h> |
4152 | #include <sys/syscall.h> |
4477 | #include <sys/syscall.h> |
… | |
… | |
4154 | { |
4479 | { |
4155 | int res = syscall (__NR_syncfs, (int)0); |
4480 | int res = syscall (__NR_syncfs, (int)0); |
4156 | } |
4481 | } |
4157 | |
4482 | |
4158 | _ACEOF |
4483 | _ACEOF |
4159 | if ac_fn_c_try_link "$LINENO"; then : |
4484 | if ac_fn_c_try_link "$LINENO" |
|
|
4485 | then : |
4160 | ac_cv_sys_syncfs=yes |
4486 | ac_cv_sys_syncfs=yes |
4161 | else |
4487 | else $as_nop |
4162 | ac_cv_sys_syncfs=no |
4488 | ac_cv_sys_syncfs=no |
4163 | fi |
4489 | fi |
4164 | rm -f core conftest.err conftest.$ac_objext \ |
4490 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4165 | conftest$ac_exeext conftest.$ac_ext |
4491 | conftest$ac_exeext conftest.$ac_ext |
4166 | fi |
4492 | fi |
4167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
4493 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
4168 | $as_echo "$ac_cv_sys_syncfs" >&6; } |
4494 | printf "%s\n" "$ac_cv_sys_syncfs" >&6; } |
4169 | test $ac_cv_sys_syncfs = yes && |
4495 | test $ac_cv_sys_syncfs = yes && |
4170 | $as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
4496 | printf "%s\n" "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
4171 | |
4497 | |
4172 | |
4498 | |
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
4499 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
4174 | $as_echo_n "checking for prctl_set_name... " >&6; } |
4500 | printf %s "checking for prctl_set_name... " >&6; } |
4175 | if ${ac_cv_prctl_set_name+:} false; then : |
4501 | if test ${ac_cv_prctl_set_name+y} |
4176 | $as_echo_n "(cached) " >&6 |
4502 | then : |
4177 | else |
4503 | printf %s "(cached) " >&6 |
|
|
4504 | else $as_nop |
4178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4505 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4179 | /* end confdefs.h. */ |
4506 | /* end confdefs.h. */ |
4180 | |
4507 | |
4181 | #include <sys/prctl.h> |
4508 | #include <sys/prctl.h> |
4182 | int main (void) |
4509 | int main (void) |
… | |
… | |
4184 | char *name = "test123"; |
4511 | char *name = "test123"; |
4185 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4512 | int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4186 | } |
4513 | } |
4187 | |
4514 | |
4188 | _ACEOF |
4515 | _ACEOF |
4189 | if ac_fn_c_try_link "$LINENO"; then : |
4516 | if ac_fn_c_try_link "$LINENO" |
|
|
4517 | then : |
4190 | ac_cv_prctl_set_name=yes |
4518 | ac_cv_prctl_set_name=yes |
4191 | else |
4519 | else $as_nop |
4192 | ac_cv_prctl_set_name=no |
4520 | ac_cv_prctl_set_name=no |
4193 | fi |
4521 | fi |
4194 | rm -f core conftest.err conftest.$ac_objext \ |
4522 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4195 | conftest$ac_exeext conftest.$ac_ext |
4523 | conftest$ac_exeext conftest.$ac_ext |
4196 | fi |
4524 | fi |
4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4198 | $as_echo "$ac_cv_prctl_set_name" >&6; } |
4526 | printf "%s\n" "$ac_cv_prctl_set_name" >&6; } |
4199 | test $ac_cv_prctl_set_name = yes && |
4527 | test $ac_cv_prctl_set_name = yes && |
4200 | $as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4528 | printf "%s\n" "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4201 | |
4529 | |
4202 | |
4530 | |
|
|
4531 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
|
|
4532 | printf %s "checking for posix_close... " >&6; } |
|
|
4533 | if test ${ac_cv_posix_close+y} |
|
|
4534 | then : |
|
|
4535 | printf %s "(cached) " >&6 |
|
|
4536 | else $as_nop |
|
|
4537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4538 | /* end confdefs.h. */ |
4203 | |
4539 | |
|
|
4540 | #include <unistd.h> |
|
|
4541 | int res; |
|
|
4542 | int main (void) |
|
|
4543 | { |
|
|
4544 | res = posix_close (0, 0); /* we do not need any flags */ |
|
|
4545 | return 0; |
|
|
4546 | } |
|
|
4547 | |
|
|
4548 | _ACEOF |
|
|
4549 | if ac_fn_c_try_link "$LINENO" |
|
|
4550 | then : |
|
|
4551 | ac_cv_posix_close=yes |
|
|
4552 | else $as_nop |
|
|
4553 | ac_cv_posix_close=no |
|
|
4554 | fi |
|
|
4555 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4556 | conftest$ac_exeext conftest.$ac_ext |
|
|
4557 | fi |
|
|
4558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
|
|
4559 | printf "%s\n" "$ac_cv_posix_close" >&6; } |
|
|
4560 | test $ac_cv_posix_close = yes && |
|
|
4561 | printf "%s\n" "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
|
|
4562 | |
|
|
4563 | |
|
|
4564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
|
|
4565 | printf %s "checking for renameat2... " >&6; } |
|
|
4566 | if test ${ac_cv_renameat2+y} |
|
|
4567 | then : |
|
|
4568 | printf %s "(cached) " >&6 |
|
|
4569 | else $as_nop |
|
|
4570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4571 | /* end confdefs.h. */ |
|
|
4572 | |
|
|
4573 | #include <unistd.h> |
|
|
4574 | #include <sys/syscall.h> |
|
|
4575 | #include <linux/fs.h> |
|
|
4576 | int res; |
|
|
4577 | int main (void) |
|
|
4578 | { |
|
|
4579 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
|
|
4580 | return 0; |
|
|
4581 | } |
|
|
4582 | |
|
|
4583 | _ACEOF |
|
|
4584 | if ac_fn_c_try_link "$LINENO" |
|
|
4585 | then : |
|
|
4586 | ac_cv_renameat2=yes |
|
|
4587 | else $as_nop |
|
|
4588 | ac_cv_renameat2=no |
|
|
4589 | fi |
|
|
4590 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4591 | conftest$ac_exeext conftest.$ac_ext |
|
|
4592 | fi |
|
|
4593 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
|
|
4594 | printf "%s\n" "$ac_cv_renameat2" >&6; } |
|
|
4595 | test $ac_cv_renameat2 = yes && |
|
|
4596 | printf "%s\n" "#define HAVE_RENAMEAT2 1" >>confdefs.h |
|
|
4597 | |
|
|
4598 | |
|
|
4599 | |
|
|
4600 | |
|
|
4601 | # for these to work, you need to run autoheader in IO::AIO, not libeio :( |
|
|
4602 | |
|
|
4603 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
|
|
4604 | printf %s "checking for set/getrlimit... " >&6; } |
|
|
4605 | if test ${ac_cv_rlimits+y} |
|
|
4606 | then : |
|
|
4607 | printf %s "(cached) " >&6 |
|
|
4608 | else $as_nop |
|
|
4609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4610 | /* end confdefs.h. */ |
|
|
4611 | |
|
|
4612 | #include <sys/time.h> |
|
|
4613 | #include <sys/resource.h> |
|
|
4614 | int main (void) |
|
|
4615 | { |
|
|
4616 | struct rlimit srl; |
|
|
4617 | int res; |
|
|
4618 | srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
|
|
4619 | res = getrlimit (RLIMIT_NOFILE, &srl); |
|
|
4620 | res = setrlimit (RLIMIT_NOFILE, &srl); |
|
|
4621 | return 0; |
|
|
4622 | } |
|
|
4623 | |
|
|
4624 | _ACEOF |
|
|
4625 | if ac_fn_c_try_link "$LINENO" |
|
|
4626 | then : |
|
|
4627 | ac_cv_rlimits=yes |
|
|
4628 | else $as_nop |
|
|
4629 | ac_cv_rlimits=no |
|
|
4630 | fi |
|
|
4631 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4632 | conftest$ac_exeext conftest.$ac_ext |
|
|
4633 | fi |
|
|
4634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
|
|
4635 | printf "%s\n" "$ac_cv_rlimits" >&6; } |
|
|
4636 | test $ac_cv_rlimits = yes && |
|
|
4637 | printf "%s\n" "#define HAVE_RLIMITS 1" >>confdefs.h |
|
|
4638 | |
|
|
4639 | |
4204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4640 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4205 | $as_echo_n "checking for posix_madvise... " >&6; } |
4641 | printf %s "checking for posix_madvise... " >&6; } |
4206 | if ${ac_cv_posix_madvise+:} false; then : |
4642 | if test ${ac_cv_posix_madvise+y} |
4207 | $as_echo_n "(cached) " >&6 |
4643 | then : |
4208 | else |
4644 | printf %s "(cached) " >&6 |
|
|
4645 | else $as_nop |
4209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4210 | /* end confdefs.h. */ |
4647 | /* end confdefs.h. */ |
4211 | |
4648 | |
4212 | #include <sys/mman.h> |
4649 | #include <sys/mman.h> |
4213 | int main (void) |
4650 | int main (void) |
… | |
… | |
4219 | int d = POSIX_MADV_DONTNEED; |
4656 | int d = POSIX_MADV_DONTNEED; |
4220 | return 0; |
4657 | return 0; |
4221 | } |
4658 | } |
4222 | |
4659 | |
4223 | _ACEOF |
4660 | _ACEOF |
4224 | if ac_fn_c_try_link "$LINENO"; then : |
4661 | if ac_fn_c_try_link "$LINENO" |
|
|
4662 | then : |
4225 | ac_cv_posix_madvise=yes |
4663 | ac_cv_posix_madvise=yes |
4226 | else |
4664 | else $as_nop |
4227 | ac_cv_posix_madvise=no |
4665 | ac_cv_posix_madvise=no |
4228 | fi |
4666 | fi |
4229 | rm -f core conftest.err conftest.$ac_objext \ |
4667 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4230 | conftest$ac_exeext conftest.$ac_ext |
4668 | conftest$ac_exeext conftest.$ac_ext |
4231 | fi |
4669 | fi |
4232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
4670 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
4233 | $as_echo "$ac_cv_posix_madvise" >&6; } |
4671 | printf "%s\n" "$ac_cv_posix_madvise" >&6; } |
4234 | test $ac_cv_posix_madvise = yes && |
4672 | test $ac_cv_posix_madvise = yes && |
4235 | $as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
4673 | printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
4236 | |
4674 | |
4237 | |
4675 | |
4238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
4676 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
4239 | $as_echo_n "checking for posix_fadvise... " >&6; } |
4677 | printf %s "checking for posix_fadvise... " >&6; } |
4240 | if ${ac_cv_posix_fadvise+:} false; then : |
4678 | if test ${ac_cv_posix_fadvise+y} |
4241 | $as_echo_n "(cached) " >&6 |
4679 | then : |
4242 | else |
4680 | printf %s "(cached) " >&6 |
|
|
4681 | else $as_nop |
4243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4244 | /* end confdefs.h. */ |
4683 | /* end confdefs.h. */ |
4245 | |
4684 | |
4246 | #define _XOPEN_SOURCE 600 |
4685 | #define _XOPEN_SOURCE 600 |
4247 | #include <fcntl.h> |
4686 | #include <fcntl.h> |
… | |
… | |
4255 | int e = POSIX_FADV_DONTNEED; |
4694 | int e = POSIX_FADV_DONTNEED; |
4256 | return 0; |
4695 | return 0; |
4257 | } |
4696 | } |
4258 | |
4697 | |
4259 | _ACEOF |
4698 | _ACEOF |
4260 | if ac_fn_c_try_link "$LINENO"; then : |
4699 | if ac_fn_c_try_link "$LINENO" |
|
|
4700 | then : |
4261 | ac_cv_posix_fadvise=yes |
4701 | ac_cv_posix_fadvise=yes |
4262 | else |
4702 | else $as_nop |
4263 | ac_cv_posix_fadvise=no |
4703 | ac_cv_posix_fadvise=no |
4264 | fi |
4704 | fi |
4265 | rm -f core conftest.err conftest.$ac_objext \ |
4705 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4266 | conftest$ac_exeext conftest.$ac_ext |
4706 | conftest$ac_exeext conftest.$ac_ext |
4267 | fi |
4707 | fi |
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
4708 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
4269 | $as_echo "$ac_cv_posix_fadvise" >&6; } |
4709 | printf "%s\n" "$ac_cv_posix_fadvise" >&6; } |
4270 | test $ac_cv_posix_fadvise = yes && |
4710 | test $ac_cv_posix_fadvise = yes && |
4271 | $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
4711 | printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
4272 | |
4712 | |
4273 | |
4713 | |
4274 | for ac_header in linux/fs.h linux/fiemap.h |
4714 | ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" |
4275 | do : |
4715 | if test "x$ac_cv_header_linux_fs_h" = xyes |
4276 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4716 | then : |
|
|
4717 | printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h |
|
|
4718 | |
|
|
4719 | fi |
|
|
4720 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" |
|
|
4721 | if test "x$ac_cv_header_linux_fiemap_h" = xyes |
|
|
4722 | then : |
|
|
4723 | printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h |
|
|
4724 | |
|
|
4725 | fi |
|
|
4726 | |
|
|
4727 | |
|
|
4728 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
|
|
4729 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
|
|
4730 | then : |
|
|
4731 | printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
|
|
4732 | |
|
|
4733 | fi |
|
|
4734 | |
|
|
4735 | |
|
|
4736 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
|
|
4737 | if test "x$ac_cv_header_sys_mkdev_h" = xyes |
|
|
4738 | then : |
|
|
4739 | printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
|
|
4740 | |
|
|
4741 | fi |
|
|
4742 | |
|
|
4743 | |
4277 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
4744 | ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
4278 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4745 | if test "x$ac_cv_header_sys_uio_h" = xyes |
4279 | cat >>confdefs.h <<_ACEOF |
4746 | then : |
4280 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4747 | printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
4281 | _ACEOF |
|
|
4282 | |
4748 | |
4283 | fi |
4749 | fi |
4284 | |
4750 | |
4285 | done |
|
|
4286 | |
4751 | |
4287 | |
4752 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fexecve" >&5 |
4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4753 | printf %s "checking for fexecve... " >&6; } |
4289 | $as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4754 | if test ${ac_cv_fexecve+y} |
4290 | if ${ac_cv_linux_splice+:} false; then : |
4755 | then : |
4291 | $as_echo_n "(cached) " >&6 |
4756 | printf %s "(cached) " >&6 |
4292 | else |
4757 | else $as_nop |
4293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4294 | /* end confdefs.h. */ |
4759 | /* end confdefs.h. */ |
4295 | |
4760 | |
4296 | #include <fcntl.h> |
4761 | #include <fcntl.h> |
|
|
4762 | #include <unistd.h> |
|
|
4763 | int main (void) |
|
|
4764 | { |
|
|
4765 | int res = fexecve (-1, "argv", 0); |
|
|
4766 | return 0; |
|
|
4767 | } |
|
|
4768 | |
|
|
4769 | _ACEOF |
|
|
4770 | if ac_fn_c_try_link "$LINENO" |
|
|
4771 | then : |
|
|
4772 | ac_cv_fexecve=yes |
|
|
4773 | else $as_nop |
|
|
4774 | ac_cv_fexecve=no |
|
|
4775 | fi |
|
|
4776 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4777 | conftest$ac_exeext conftest.$ac_ext |
|
|
4778 | fi |
|
|
4779 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fexecve" >&5 |
|
|
4780 | printf "%s\n" "$ac_cv_fexecve" >&6; } |
|
|
4781 | test $ac_cv_fexecve = yes && |
|
|
4782 | printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h |
|
|
4783 | |
|
|
4784 | |
|
|
4785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for siginfo_t" >&5 |
|
|
4786 | printf %s "checking for siginfo_t... " >&6; } |
|
|
4787 | if test ${ac_cv_siginfo_t+y} |
|
|
4788 | then : |
|
|
4789 | printf %s "(cached) " >&6 |
|
|
4790 | else $as_nop |
|
|
4791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4792 | /* end confdefs.h. */ |
|
|
4793 | |
|
|
4794 | #include <signal.h> |
|
|
4795 | int main (void) |
|
|
4796 | { |
|
|
4797 | siginfo_t si; |
|
|
4798 | si.si_code; |
|
|
4799 | si.si_pid; |
|
|
4800 | si.si_uid; |
|
|
4801 | si.si_value.sival_int; |
|
|
4802 | si.si_value.sival_ptr; |
|
|
4803 | return 0; |
|
|
4804 | } |
|
|
4805 | |
|
|
4806 | _ACEOF |
|
|
4807 | if ac_fn_c_try_link "$LINENO" |
|
|
4808 | then : |
|
|
4809 | ac_cv_siginfo_t=yes |
|
|
4810 | else $as_nop |
|
|
4811 | ac_cv_siginfo_t=no |
|
|
4812 | fi |
|
|
4813 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4814 | conftest$ac_exeext conftest.$ac_ext |
|
|
4815 | fi |
|
|
4816 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_siginfo_t" >&5 |
|
|
4817 | printf "%s\n" "$ac_cv_siginfo_t" >&6; } |
|
|
4818 | test $ac_cv_siginfo_t = yes && |
|
|
4819 | printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h |
|
|
4820 | |
|
|
4821 | |
|
|
4822 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unix-style syscall interface" >&5 |
|
|
4823 | printf %s "checking for unix-style syscall interface... " >&6; } |
|
|
4824 | if test ${ac_cv_syscall+y} |
|
|
4825 | then : |
|
|
4826 | printf %s "(cached) " >&6 |
|
|
4827 | else $as_nop |
|
|
4828 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4829 | /* end confdefs.h. */ |
|
|
4830 | |
|
|
4831 | #include <unistd.h> |
|
|
4832 | #include <sys/syscall.h> |
|
|
4833 | int main (void) |
|
|
4834 | { |
|
|
4835 | long res = syscall (SYS_exit, 0); |
|
|
4836 | return 0; |
|
|
4837 | } |
|
|
4838 | |
|
|
4839 | _ACEOF |
|
|
4840 | if ac_fn_c_try_link "$LINENO" |
|
|
4841 | then : |
|
|
4842 | ac_cv_syscall=yes |
|
|
4843 | else $as_nop |
|
|
4844 | ac_cv_syscall=no |
|
|
4845 | fi |
|
|
4846 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4847 | conftest$ac_exeext conftest.$ac_ext |
|
|
4848 | fi |
|
|
4849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_syscall" >&5 |
|
|
4850 | printf "%s\n" "$ac_cv_syscall" >&6; } |
|
|
4851 | test $ac_cv_syscall = yes && |
|
|
4852 | printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h |
|
|
4853 | |
|
|
4854 | |
|
|
4855 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
|
|
4856 | printf %s "checking for splice, vmsplice and tee... " >&6; } |
|
|
4857 | if test ${ac_cv_linux_splice+y} |
|
|
4858 | then : |
|
|
4859 | printf %s "(cached) " >&6 |
|
|
4860 | else $as_nop |
|
|
4861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4862 | /* end confdefs.h. */ |
|
|
4863 | |
|
|
4864 | #include <sys/types.h> |
|
|
4865 | #include <fcntl.h> |
|
|
4866 | #include <sys/uio.h> |
4297 | int main (void) |
4867 | int main (void) |
4298 | { |
4868 | { |
4299 | ssize_t res; |
4869 | ssize_t res; |
4300 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4870 | res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4301 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
4871 | res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
4302 | res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT); |
4872 | res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT); |
4303 | return 0; |
4873 | return 0; |
4304 | } |
4874 | } |
4305 | |
4875 | |
4306 | _ACEOF |
4876 | _ACEOF |
4307 | if ac_fn_c_try_link "$LINENO"; then : |
4877 | if ac_fn_c_try_link "$LINENO" |
|
|
4878 | then : |
4308 | ac_cv_linux_splice=yes |
4879 | ac_cv_linux_splice=yes |
4309 | else |
4880 | else $as_nop |
4310 | ac_cv_linux_splice=no |
4881 | ac_cv_linux_splice=no |
4311 | fi |
4882 | fi |
4312 | rm -f core conftest.err conftest.$ac_objext \ |
4883 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4313 | conftest$ac_exeext conftest.$ac_ext |
4884 | conftest$ac_exeext conftest.$ac_ext |
4314 | fi |
4885 | fi |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5 |
4886 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5 |
4316 | $as_echo "$ac_cv_linux_splice" >&6; } |
4887 | printf "%s\n" "$ac_cv_linux_splice" >&6; } |
4317 | test $ac_cv_linux_splice = yes && |
4888 | test $ac_cv_linux_splice = yes && |
4318 | $as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
4889 | printf "%s\n" "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
4319 | |
4890 | |
4320 | |
4891 | |
4321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
4892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
4322 | $as_echo_n "checking for pipe2... " >&6; } |
4893 | printf %s "checking for pipe2... " >&6; } |
4323 | if ${ac_cv_pipe2+:} false; then : |
4894 | if test ${ac_cv_pipe2+y} |
4324 | $as_echo_n "(cached) " >&6 |
4895 | then : |
4325 | else |
4896 | printf %s "(cached) " >&6 |
|
|
4897 | else $as_nop |
4326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4327 | /* end confdefs.h. */ |
4899 | /* end confdefs.h. */ |
4328 | |
4900 | |
4329 | #include <fcntl.h> |
4901 | #include <fcntl.h> |
4330 | #include <unistd.h> |
4902 | #include <unistd.h> |
4331 | int res; |
|
|
4332 | int main (void) |
4903 | int main (void) |
4333 | { |
4904 | { |
|
|
4905 | int res; |
4334 | res = pipe2 (0, 0); |
4906 | res = pipe2 (0, 0); |
4335 | return 0; |
4907 | return 0; |
4336 | } |
4908 | } |
4337 | |
4909 | |
4338 | _ACEOF |
4910 | _ACEOF |
4339 | if ac_fn_c_try_link "$LINENO"; then : |
4911 | if ac_fn_c_try_link "$LINENO" |
|
|
4912 | then : |
4340 | ac_cv_pipe2=yes |
4913 | ac_cv_pipe2=yes |
4341 | else |
4914 | else $as_nop |
4342 | ac_cv_pipe2=no |
4915 | ac_cv_pipe2=no |
4343 | fi |
4916 | fi |
4344 | rm -f core conftest.err conftest.$ac_objext \ |
4917 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4345 | conftest$ac_exeext conftest.$ac_ext |
4918 | conftest$ac_exeext conftest.$ac_ext |
4346 | fi |
4919 | fi |
4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
4920 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
4348 | $as_echo "$ac_cv_pipe2" >&6; } |
4921 | printf "%s\n" "$ac_cv_pipe2" >&6; } |
4349 | test $ac_cv_pipe2 = yes && |
4922 | test $ac_cv_pipe2 = yes && |
4350 | $as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4923 | printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
4351 | |
4924 | |
4352 | |
4925 | |
4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4926 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4354 | $as_echo_n "checking for renameat2... " >&6; } |
4927 | printf %s "checking for eventfd... " >&6; } |
4355 | if ${ac_cv_renameat2+:} false; then : |
4928 | if test ${ac_cv_eventfd+y} |
4356 | $as_echo_n "(cached) " >&6 |
4929 | then : |
4357 | else |
4930 | printf %s "(cached) " >&6 |
|
|
4931 | else $as_nop |
4358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4359 | /* end confdefs.h. */ |
4933 | /* end confdefs.h. */ |
4360 | |
4934 | |
|
|
4935 | #include <sys/eventfd.h> |
|
|
4936 | int main (void) |
|
|
4937 | { |
|
|
4938 | int res; |
|
|
4939 | res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
|
|
4940 | return 0; |
|
|
4941 | } |
|
|
4942 | |
|
|
4943 | _ACEOF |
|
|
4944 | if ac_fn_c_try_link "$LINENO" |
|
|
4945 | then : |
|
|
4946 | ac_cv_eventfd=yes |
|
|
4947 | else $as_nop |
|
|
4948 | ac_cv_eventfd=no |
|
|
4949 | fi |
|
|
4950 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4951 | conftest$ac_exeext conftest.$ac_ext |
|
|
4952 | fi |
|
|
4953 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
|
|
4954 | printf "%s\n" "$ac_cv_eventfd" >&6; } |
|
|
4955 | test $ac_cv_eventfd = yes && |
|
|
4956 | printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
|
|
4957 | |
|
|
4958 | |
|
|
4959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_*" >&5 |
|
|
4960 | printf %s "checking for timerfd_*... " >&6; } |
|
|
4961 | if test ${ac_cv_timerfd+y} |
|
|
4962 | then : |
|
|
4963 | printf %s "(cached) " >&6 |
|
|
4964 | else $as_nop |
|
|
4965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
4966 | /* end confdefs.h. */ |
|
|
4967 | |
|
|
4968 | #include <sys/timerfd.h> |
|
|
4969 | int main (void) |
|
|
4970 | { |
|
|
4971 | struct itimerspec its; |
|
|
4972 | int res; |
|
|
4973 | res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
|
|
4974 | res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
|
|
4975 | res = timerfd_gettime (res, &its); |
|
|
4976 | return 0; |
|
|
4977 | } |
|
|
4978 | |
|
|
4979 | _ACEOF |
|
|
4980 | if ac_fn_c_try_link "$LINENO" |
|
|
4981 | then : |
|
|
4982 | ac_cv_timerfd=yes |
|
|
4983 | else $as_nop |
|
|
4984 | ac_cv_timerfd=no |
|
|
4985 | fi |
|
|
4986 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
4987 | conftest$ac_exeext conftest.$ac_ext |
|
|
4988 | fi |
|
|
4989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
|
|
4990 | printf "%s\n" "$ac_cv_timerfd" >&6; } |
|
|
4991 | test $ac_cv_timerfd = yes && |
|
|
4992 | printf "%s\n" "#define HAVE_TIMERFD 1" >>confdefs.h |
|
|
4993 | |
|
|
4994 | |
|
|
4995 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 |
|
|
4996 | printf %s "checking for memfd_create... " >&6; } |
|
|
4997 | if test ${ac_cv_memfd_create+y} |
|
|
4998 | then : |
|
|
4999 | printf %s "(cached) " >&6 |
|
|
5000 | else $as_nop |
|
|
5001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5002 | /* end confdefs.h. */ |
|
|
5003 | |
|
|
5004 | #include <sys/mman.h> |
|
|
5005 | int main (void) |
|
|
5006 | { |
|
|
5007 | int res = memfd_create ("name", MFD_CLOEXEC | MFD_ALLOW_SEALING); |
|
|
5008 | return 0; |
|
|
5009 | } |
|
|
5010 | |
|
|
5011 | _ACEOF |
|
|
5012 | if ac_fn_c_try_link "$LINENO" |
|
|
5013 | then : |
|
|
5014 | ac_cv_memfd_create=yes |
|
|
5015 | else $as_nop |
|
|
5016 | ac_cv_memfd_create=no |
|
|
5017 | fi |
|
|
5018 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5019 | conftest$ac_exeext conftest.$ac_ext |
|
|
5020 | fi |
|
|
5021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_memfd_create" >&5 |
|
|
5022 | printf "%s\n" "$ac_cv_memfd_create" >&6; } |
|
|
5023 | test $ac_cv_memfd_create = yes && |
|
|
5024 | printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h |
|
|
5025 | |
|
|
5026 | |
|
|
5027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
|
|
5028 | printf %s "checking for copy_file_range... " >&6; } |
|
|
5029 | if test ${ac_cv_copy_file_range+y} |
|
|
5030 | then : |
|
|
5031 | printf %s "(cached) " >&6 |
|
|
5032 | else $as_nop |
|
|
5033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5034 | /* end confdefs.h. */ |
|
|
5035 | |
4361 | #include <unistd.h> |
5036 | #include <unistd.h> |
4362 | #include <sys/syscall.h> |
5037 | #include <sys/syscall.h> |
4363 | #include <linux/fs.h> |
5038 | /*#include <linux/copy.h>*/ |
|
|
5039 | int main (void) |
|
|
5040 | { |
|
|
5041 | int res; |
|
|
5042 | /*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
|
|
5043 | res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
|
|
5044 | return 0; |
|
|
5045 | } |
|
|
5046 | |
|
|
5047 | _ACEOF |
|
|
5048 | if ac_fn_c_try_link "$LINENO" |
|
|
5049 | then : |
|
|
5050 | ac_cv_copy_file_range=yes |
|
|
5051 | else $as_nop |
|
|
5052 | ac_cv_copy_file_range=no |
|
|
5053 | fi |
|
|
5054 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5055 | conftest$ac_exeext conftest.$ac_ext |
|
|
5056 | fi |
|
|
5057 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
|
|
5058 | printf "%s\n" "$ac_cv_copy_file_range" >&6; } |
|
|
5059 | test $ac_cv_copy_file_range = yes && |
|
|
5060 | printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
|
|
5061 | |
|
|
5062 | |
|
|
5063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
|
|
5064 | printf %s "checking for st_xtimensec... " >&6; } |
|
|
5065 | if test ${ac_cv_xtimensec+y} |
|
|
5066 | then : |
|
|
5067 | printf %s "(cached) " >&6 |
|
|
5068 | else $as_nop |
|
|
5069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5070 | /* end confdefs.h. */ |
|
|
5071 | |
|
|
5072 | #include "EXTERN.h" |
|
|
5073 | #include "perl.h" |
|
|
5074 | #include "XSUB.h" |
|
|
5075 | |
|
|
5076 | int main (void) |
|
|
5077 | { |
|
|
5078 | return PL_statcache.st_atimensec |
|
|
5079 | + PL_statcache.st_mtimensec |
|
|
5080 | + PL_statcache.st_ctimensec; |
|
|
5081 | } |
|
|
5082 | |
|
|
5083 | _ACEOF |
|
|
5084 | if ac_fn_c_try_compile "$LINENO" |
|
|
5085 | then : |
|
|
5086 | ac_cv_xtimensec=yes |
|
|
5087 | else $as_nop |
|
|
5088 | ac_cv_xtimensec=no |
|
|
5089 | fi |
|
|
5090 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5091 | fi |
|
|
5092 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
|
|
5093 | printf "%s\n" "$ac_cv_xtimensec" >&6; } |
|
|
5094 | test $ac_cv_xtimensec = yes && |
|
|
5095 | printf "%s\n" "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
|
|
5096 | |
|
|
5097 | |
|
|
5098 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
|
|
5099 | printf %s "checking for st_xtimespec... " >&6; } |
|
|
5100 | if test ${ac_cv_xtimespec+y} |
|
|
5101 | then : |
|
|
5102 | printf %s "(cached) " >&6 |
|
|
5103 | else $as_nop |
|
|
5104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5105 | /* end confdefs.h. */ |
|
|
5106 | |
|
|
5107 | #include "EXTERN.h" |
|
|
5108 | #include "perl.h" |
|
|
5109 | #include "XSUB.h" |
|
|
5110 | |
|
|
5111 | int main (void) |
|
|
5112 | { |
|
|
5113 | return PL_statcache.st_atim.tv_nsec |
|
|
5114 | + PL_statcache.st_mtim.tv_nsec |
|
|
5115 | + PL_statcache.st_ctim.tv_nsec; |
|
|
5116 | } |
|
|
5117 | |
|
|
5118 | _ACEOF |
|
|
5119 | if ac_fn_c_try_compile "$LINENO" |
|
|
5120 | then : |
|
|
5121 | ac_cv_xtimespec=yes |
|
|
5122 | else $as_nop |
|
|
5123 | ac_cv_xtimespec=no |
|
|
5124 | fi |
|
|
5125 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5126 | fi |
|
|
5127 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
|
|
5128 | printf "%s\n" "$ac_cv_xtimespec" >&6; } |
|
|
5129 | test $ac_cv_xtimespec = yes && |
|
|
5130 | printf "%s\n" "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
|
|
5131 | |
|
|
5132 | |
|
|
5133 | # apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
|
|
5134 | |
|
|
5135 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
|
|
5136 | printf %s "checking for st_birthtimensec... " >&6; } |
|
|
5137 | if test ${ac_cv_birthtimensec+y} |
|
|
5138 | then : |
|
|
5139 | printf %s "(cached) " >&6 |
|
|
5140 | else $as_nop |
|
|
5141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5142 | /* end confdefs.h. */ |
|
|
5143 | |
|
|
5144 | #include "EXTERN.h" |
|
|
5145 | #include "perl.h" |
|
|
5146 | #include "XSUB.h" |
|
|
5147 | |
|
|
5148 | int main (void) |
|
|
5149 | { |
|
|
5150 | return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
|
|
5151 | } |
|
|
5152 | |
|
|
5153 | _ACEOF |
|
|
5154 | if ac_fn_c_try_compile "$LINENO" |
|
|
5155 | then : |
|
|
5156 | ac_cv_birthtimensec=yes |
|
|
5157 | else $as_nop |
|
|
5158 | ac_cv_birthtimensec=no |
|
|
5159 | fi |
|
|
5160 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5161 | fi |
|
|
5162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
|
|
5163 | printf "%s\n" "$ac_cv_birthtimensec" >&6; } |
|
|
5164 | test $ac_cv_birthtimensec = yes && |
|
|
5165 | printf "%s\n" "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
|
|
5166 | |
|
|
5167 | |
|
|
5168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
|
|
5169 | printf %s "checking for st_birthtimespec... " >&6; } |
|
|
5170 | if test ${ac_cv_birthtimespec+y} |
|
|
5171 | then : |
|
|
5172 | printf %s "(cached) " >&6 |
|
|
5173 | else $as_nop |
|
|
5174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5175 | /* end confdefs.h. */ |
|
|
5176 | |
|
|
5177 | #include "EXTERN.h" |
|
|
5178 | #include "perl.h" |
|
|
5179 | #include "XSUB.h" |
|
|
5180 | |
|
|
5181 | int main (void) |
|
|
5182 | { |
|
|
5183 | return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
|
|
5184 | } |
|
|
5185 | |
|
|
5186 | _ACEOF |
|
|
5187 | if ac_fn_c_try_compile "$LINENO" |
|
|
5188 | then : |
|
|
5189 | ac_cv_birthtimespec=yes |
|
|
5190 | else $as_nop |
|
|
5191 | ac_cv_birthtimespec=no |
|
|
5192 | fi |
|
|
5193 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5194 | fi |
|
|
5195 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
|
|
5196 | printf "%s\n" "$ac_cv_birthtimespec" >&6; } |
|
|
5197 | test $ac_cv_birthtimespec = yes && |
|
|
5198 | printf "%s\n" "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
|
|
5199 | |
|
|
5200 | |
|
|
5201 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
|
|
5202 | printf %s "checking for st_gen... " >&6; } |
|
|
5203 | if test ${ac_cv_st_gen+y} |
|
|
5204 | then : |
|
|
5205 | printf %s "(cached) " >&6 |
|
|
5206 | else $as_nop |
|
|
5207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5208 | /* end confdefs.h. */ |
|
|
5209 | |
|
|
5210 | #include "EXTERN.h" |
|
|
5211 | #include "perl.h" |
|
|
5212 | #include "XSUB.h" |
|
|
5213 | |
|
|
5214 | int main (void) |
|
|
5215 | { |
|
|
5216 | return PL_statcache.st_gen; |
|
|
5217 | } |
|
|
5218 | |
|
|
5219 | _ACEOF |
|
|
5220 | if ac_fn_c_try_compile "$LINENO" |
|
|
5221 | then : |
|
|
5222 | ac_cv_st_gen=yes |
|
|
5223 | else $as_nop |
|
|
5224 | ac_cv_st_gen=no |
|
|
5225 | fi |
|
|
5226 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
|
|
5227 | fi |
|
|
5228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
|
|
5229 | printf "%s\n" "$ac_cv_st_gen" >&6; } |
|
|
5230 | test $ac_cv_st_gen = yes && |
|
|
5231 | printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h |
|
|
5232 | |
|
|
5233 | |
|
|
5234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statx" >&5 |
|
|
5235 | printf %s "checking for statx... " >&6; } |
|
|
5236 | if test ${ac_cv_statx+y} |
|
|
5237 | then : |
|
|
5238 | printf %s "(cached) " >&6 |
|
|
5239 | else $as_nop |
|
|
5240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5241 | /* end confdefs.h. */ |
|
|
5242 | |
|
|
5243 | #include <sys/types.h> |
|
|
5244 | #include <sys/stat.h> |
|
|
5245 | #include <unistd.h> |
|
|
5246 | #include <fcntl.h> |
4364 | int res; |
5247 | int res; |
4365 | int main (void) |
5248 | int main (void) |
4366 | { |
5249 | { |
4367 | res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
5250 | struct statx sx; |
|
|
5251 | int res; |
|
|
5252 | res = statx (AT_FDCWD, ".", |
|
|
5253 | AT_EMPTY_PATH | AT_NO_AUTOMOUNT | AT_SYMLINK_NOFOLLOW | AT_STATX_SYNC_AS_STAT | AT_STATX_FORCE_SYNC | AT_STATX_DONT_SYNC, |
|
|
5254 | STATX_ALL, &sx); |
|
|
5255 | STATX_TYPE; STATX_MODE; STATX_NLINK; STATX_UID; STATX_GID; STATX_ATIME; STATX_MTIME; STATX_CTIME; |
|
|
5256 | STATX_INO; STATX_SIZE; STATX_BLOCKS; STATX_BASIC_STATS; STATX_BTIME; STATX_ALL; |
|
|
5257 | STATX_ATTR_COMPRESSED; STATX_ATTR_IMMUTABLE; STATX_ATTR_APPEND; STATX_ATTR_NODUMP; STATX_ATTR_ENCRYPTED; |
4368 | return 0; |
5258 | return 0; |
4369 | } |
5259 | } |
4370 | |
5260 | |
4371 | _ACEOF |
5261 | _ACEOF |
4372 | if ac_fn_c_try_link "$LINENO"; then : |
5262 | if ac_fn_c_try_link "$LINENO" |
4373 | ac_cv_renameat2=yes |
5263 | then : |
4374 | else |
5264 | ac_cv_statx=yes |
4375 | ac_cv_renameat2=no |
5265 | else $as_nop |
|
|
5266 | ac_cv_statx=no |
4376 | fi |
5267 | fi |
4377 | rm -f core conftest.err conftest.$ac_objext \ |
5268 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
4378 | conftest$ac_exeext conftest.$ac_ext |
5269 | conftest$ac_exeext conftest.$ac_ext |
4379 | fi |
5270 | fi |
|
|
5271 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_statx" >&5 |
|
|
5272 | printf "%s\n" "$ac_cv_statx" >&6; } |
|
|
5273 | test $ac_cv_statx = yes && |
|
|
5274 | printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h |
|
|
5275 | |
|
|
5276 | |
|
|
5277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept4" >&5 |
|
|
5278 | printf %s "checking for accept4... " >&6; } |
|
|
5279 | if test ${ac_cv_accept4+y} |
|
|
5280 | then : |
|
|
5281 | printf %s "(cached) " >&6 |
|
|
5282 | else $as_nop |
|
|
5283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5284 | /* end confdefs.h. */ |
|
|
5285 | |
|
|
5286 | #include <sys/types.h> |
|
|
5287 | #include <sys/socket.h> |
|
|
5288 | int main (void) |
|
|
5289 | { |
|
|
5290 | int res = accept4 (1, (struct sockaddr *)0, (socklen_t)0, SOCK_NONBLOCK | SOCK_CLOEXEC); |
|
|
5291 | return 0; |
|
|
5292 | } |
|
|
5293 | |
|
|
5294 | _ACEOF |
|
|
5295 | if ac_fn_c_try_link "$LINENO" |
|
|
5296 | then : |
|
|
5297 | ac_cv_accept4=yes |
|
|
5298 | else $as_nop |
|
|
5299 | ac_cv_accept4=no |
|
|
5300 | fi |
|
|
5301 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5302 | conftest$ac_exeext conftest.$ac_ext |
|
|
5303 | fi |
|
|
5304 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_accept4" >&5 |
|
|
5305 | printf "%s\n" "$ac_cv_accept4" >&6; } |
|
|
5306 | test $ac_cv_accept4 = yes && |
|
|
5307 | printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
|
|
5308 | |
|
|
5309 | |
|
|
5310 | ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" |
|
|
5311 | if test "x$ac_cv_header_sys_mount_h" = xyes |
|
|
5312 | then : |
|
|
5313 | printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h |
|
|
5314 | |
|
|
5315 | fi |
|
|
5316 | |
|
|
5317 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mount" >&5 |
|
|
5318 | printf %s "checking for mount... " >&6; } |
|
|
5319 | if test ${ac_cv_mount+y} |
|
|
5320 | then : |
|
|
5321 | printf %s "(cached) " >&6 |
|
|
5322 | else $as_nop |
|
|
5323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5324 | /* end confdefs.h. */ |
|
|
5325 | |
|
|
5326 | #include <sys/mount.h> |
|
|
5327 | int main (void) |
|
|
5328 | { |
|
|
5329 | int res = mount ("path", "path", "fstype", MS_RDONLY, 0); |
|
|
5330 | return 0; |
|
|
5331 | } |
|
|
5332 | |
|
|
5333 | _ACEOF |
|
|
5334 | if ac_fn_c_try_link "$LINENO" |
|
|
5335 | then : |
|
|
5336 | ac_cv_mount=yes |
|
|
5337 | else $as_nop |
|
|
5338 | ac_cv_mount=no |
|
|
5339 | fi |
|
|
5340 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5341 | conftest$ac_exeext conftest.$ac_ext |
|
|
5342 | fi |
|
|
5343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mount" >&5 |
|
|
5344 | printf "%s\n" "$ac_cv_mount" >&6; } |
|
|
5345 | test $ac_cv_mount = yes && |
|
|
5346 | printf "%s\n" "#define HAVE_MOUNT 1" >>confdefs.h |
|
|
5347 | |
|
|
5348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount" >&5 |
|
|
5349 | printf %s "checking for umount... " >&6; } |
|
|
5350 | if test ${ac_cv_umount+y} |
|
|
5351 | then : |
|
|
5352 | printf %s "(cached) " >&6 |
|
|
5353 | else $as_nop |
|
|
5354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5355 | /* end confdefs.h. */ |
|
|
5356 | |
|
|
5357 | #include <sys/mount.h> |
|
|
5358 | int main (void) |
|
|
5359 | { |
|
|
5360 | int res = umount ("path"); |
|
|
5361 | return 0; |
|
|
5362 | } |
|
|
5363 | |
|
|
5364 | _ACEOF |
|
|
5365 | if ac_fn_c_try_link "$LINENO" |
|
|
5366 | then : |
|
|
5367 | ac_cv_umount=yes |
|
|
5368 | else $as_nop |
|
|
5369 | ac_cv_umount=no |
|
|
5370 | fi |
|
|
5371 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5372 | conftest$ac_exeext conftest.$ac_ext |
|
|
5373 | fi |
|
|
5374 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount" >&5 |
|
|
5375 | printf "%s\n" "$ac_cv_umount" >&6; } |
|
|
5376 | test $ac_cv_umount = yes && |
|
|
5377 | printf "%s\n" "#define HAVE_UMOUNT 1" >>confdefs.h |
|
|
5378 | |
|
|
5379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for umount2" >&5 |
|
|
5380 | printf %s "checking for umount2... " >&6; } |
|
|
5381 | if test ${ac_cv_umount2+y} |
|
|
5382 | then : |
|
|
5383 | printf %s "(cached) " >&6 |
|
|
5384 | else $as_nop |
|
|
5385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
|
|
5386 | /* end confdefs.h. */ |
|
|
5387 | |
|
|
5388 | #include <sys/mount.h> |
|
|
5389 | int main (void) |
|
|
5390 | { |
|
|
5391 | int res = umount2 ("path", MNT_FORCE|MNT_DETACH); |
|
|
5392 | return 0; |
|
|
5393 | } |
|
|
5394 | |
|
|
5395 | _ACEOF |
|
|
5396 | if ac_fn_c_try_link "$LINENO" |
|
|
5397 | then : |
|
|
5398 | ac_cv_umount2=yes |
|
|
5399 | else $as_nop |
|
|
5400 | ac_cv_umount2=no |
|
|
5401 | fi |
|
|
5402 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
|
|
5403 | conftest$ac_exeext conftest.$ac_ext |
|
|
5404 | fi |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
5405 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_umount2" >&5 |
4381 | $as_echo "$ac_cv_renameat2" >&6; } |
5406 | printf "%s\n" "$ac_cv_umount2" >&6; } |
4382 | test $ac_cv_renameat2 = yes && |
5407 | test $ac_cv_umount2 = yes && |
4383 | $as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
5408 | printf "%s\n" "#define HAVE_UMOUNT2 1" >>confdefs.h |
4384 | |
|
|
4385 | |
|
|
4386 | |
5409 | |
4387 | |
5410 | |
4388 | cat >confcache <<\_ACEOF |
5411 | cat >confcache <<\_ACEOF |
4389 | # This file is a shell script that caches the results of configure |
5412 | # This file is a shell script that caches the results of configure |
4390 | # tests run on this system so they can be shared between configure |
5413 | # tests run on this system so they can be shared between configure |
… | |
… | |
4410 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
5433 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
4411 | eval ac_val=\$$ac_var |
5434 | eval ac_val=\$$ac_var |
4412 | case $ac_val in #( |
5435 | case $ac_val in #( |
4413 | *${as_nl}*) |
5436 | *${as_nl}*) |
4414 | case $ac_var in #( |
5437 | case $ac_var in #( |
4415 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
5438 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
4416 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
5439 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
4417 | esac |
5440 | esac |
4418 | case $ac_var in #( |
5441 | case $ac_var in #( |
4419 | _ | IFS | as_nl) ;; #( |
5442 | _ | IFS | as_nl) ;; #( |
4420 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
5443 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
4421 | *) { eval $ac_var=; unset $ac_var;} ;; |
5444 | *) { eval $ac_var=; unset $ac_var;} ;; |
… | |
… | |
4441 | ) | |
5464 | ) | |
4442 | sed ' |
5465 | sed ' |
4443 | /^ac_cv_env_/b end |
5466 | /^ac_cv_env_/b end |
4444 | t clear |
5467 | t clear |
4445 | :clear |
5468 | :clear |
4446 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
5469 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
4447 | t end |
5470 | t end |
4448 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
5471 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4449 | :end' >>confcache |
5472 | :end' >>confcache |
4450 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
5473 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
4451 | if test -w "$cache_file"; then |
5474 | if test -w "$cache_file"; then |
4452 | if test "x$cache_file" != "x/dev/null"; then |
5475 | if test "x$cache_file" != "x/dev/null"; then |
4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
5476 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4454 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
5477 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
4455 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
5478 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
4456 | cat confcache >"$cache_file" |
5479 | cat confcache >"$cache_file" |
4457 | else |
5480 | else |
4458 | case $cache_file in #( |
5481 | case $cache_file in #( |
4459 | */* | ?:*) |
5482 | */* | ?:*) |
… | |
… | |
4463 | mv -f confcache "$cache_file" ;; |
5486 | mv -f confcache "$cache_file" ;; |
4464 | esac |
5487 | esac |
4465 | fi |
5488 | fi |
4466 | fi |
5489 | fi |
4467 | else |
5490 | else |
4468 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
5491 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4469 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
5492 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
4470 | fi |
5493 | fi |
4471 | fi |
5494 | fi |
4472 | rm -f confcache |
5495 | rm -f confcache |
4473 | |
5496 | |
4474 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
5497 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
… | |
… | |
4481 | ac_ltlibobjs= |
5504 | ac_ltlibobjs= |
4482 | U= |
5505 | U= |
4483 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
5506 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4484 | # 1. Remove the extension, and $U if already installed. |
5507 | # 1. Remove the extension, and $U if already installed. |
4485 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
5508 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4486 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
5509 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
4487 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
5510 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
4488 | # will be set to the directory where LIBOBJS objects are built. |
5511 | # will be set to the directory where LIBOBJS objects are built. |
4489 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
5512 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
4490 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
5513 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
4491 | done |
5514 | done |
… | |
… | |
4497 | |
5520 | |
4498 | : "${CONFIG_STATUS=./config.status}" |
5521 | : "${CONFIG_STATUS=./config.status}" |
4499 | ac_write_fail=0 |
5522 | ac_write_fail=0 |
4500 | ac_clean_files_save=$ac_clean_files |
5523 | ac_clean_files_save=$ac_clean_files |
4501 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
5524 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
4502 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
5525 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4503 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
5526 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
4504 | as_write_fail=0 |
5527 | as_write_fail=0 |
4505 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
5528 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
4506 | #! $SHELL |
5529 | #! $SHELL |
4507 | # Generated by $as_me. |
5530 | # Generated by $as_me. |
4508 | # Run this file to recreate the current configuration. |
5531 | # Run this file to recreate the current configuration. |
… | |
… | |
4521 | ## M4sh Initialization. ## |
5544 | ## M4sh Initialization. ## |
4522 | ## -------------------- ## |
5545 | ## -------------------- ## |
4523 | |
5546 | |
4524 | # Be more Bourne compatible |
5547 | # Be more Bourne compatible |
4525 | DUALCASE=1; export DUALCASE # for MKS sh |
5548 | DUALCASE=1; export DUALCASE # for MKS sh |
|
|
5549 | as_nop=: |
4526 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
5550 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
|
|
5551 | then : |
4527 | emulate sh |
5552 | emulate sh |
4528 | NULLCMD=: |
5553 | NULLCMD=: |
4529 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5554 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4530 | # is contrary to our usage. Disable this feature. |
5555 | # is contrary to our usage. Disable this feature. |
4531 | alias -g '${1+"$@"}'='"$@"' |
5556 | alias -g '${1+"$@"}'='"$@"' |
4532 | setopt NO_GLOB_SUBST |
5557 | setopt NO_GLOB_SUBST |
4533 | else |
5558 | else $as_nop |
4534 | case `(set -o) 2>/dev/null` in #( |
5559 | case `(set -o) 2>/dev/null` in #( |
4535 | *posix*) : |
5560 | *posix*) : |
4536 | set -o posix ;; #( |
5561 | set -o posix ;; #( |
4537 | *) : |
5562 | *) : |
4538 | ;; |
5563 | ;; |
4539 | esac |
5564 | esac |
4540 | fi |
5565 | fi |
4541 | |
5566 | |
4542 | |
5567 | |
|
|
5568 | |
|
|
5569 | # Reset variables that may have inherited troublesome values from |
|
|
5570 | # the environment. |
|
|
5571 | |
|
|
5572 | # IFS needs to be set, to space, tab, and newline, in precisely that order. |
|
|
5573 | # (If _AS_PATH_WALK were called with IFS unset, it would have the |
|
|
5574 | # side effect of setting IFS to empty, thus disabling word splitting.) |
|
|
5575 | # Quoting is to prevent editors from complaining about space-tab. |
4543 | as_nl=' |
5576 | as_nl=' |
4544 | ' |
5577 | ' |
4545 | export as_nl |
5578 | export as_nl |
4546 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
5579 | IFS=" "" $as_nl" |
4547 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
5580 | |
4548 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
5581 | PS1='$ ' |
4549 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
5582 | PS2='> ' |
4550 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
5583 | PS4='+ ' |
4551 | # but without wasting forks for bash or zsh. |
5584 | |
4552 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
5585 | # Ensure predictable behavior from utilities with locale-dependent output. |
4553 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
5586 | LC_ALL=C |
4554 | as_echo='print -r --' |
5587 | export LC_ALL |
4555 | as_echo_n='print -rn --' |
5588 | LANGUAGE=C |
4556 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
5589 | export LANGUAGE |
4557 | as_echo='printf %s\n' |
5590 | |
4558 | as_echo_n='printf %s' |
5591 | # We cannot yet rely on "unset" to work, but we need these variables |
4559 | else |
5592 | # to be unset--not just set to an empty or harmless value--now, to |
4560 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
5593 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
4561 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
5594 | # also avoids known problems related to "unset" and subshell syntax |
4562 | as_echo_n='/usr/ucb/echo -n' |
5595 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
4563 | else |
5596 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
4564 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
5597 | do eval test \${$as_var+y} \ |
4565 | as_echo_n_body='eval |
5598 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
4566 | arg=$1; |
5599 | done |
4567 | case $arg in #( |
5600 | |
4568 | *"$as_nl"*) |
5601 | # Ensure that fds 0, 1, and 2 are open. |
4569 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
5602 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
4570 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
5603 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
4571 | esac; |
5604 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
4572 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
|
|
4573 | ' |
|
|
4574 | export as_echo_n_body |
|
|
4575 | as_echo_n='sh -c $as_echo_n_body as_echo' |
|
|
4576 | fi |
|
|
4577 | export as_echo_body |
|
|
4578 | as_echo='sh -c $as_echo_body as_echo' |
|
|
4579 | fi |
|
|
4580 | |
5605 | |
4581 | # The user is always right. |
5606 | # The user is always right. |
4582 | if test "${PATH_SEPARATOR+set}" != set; then |
5607 | if ${PATH_SEPARATOR+false} :; then |
4583 | PATH_SEPARATOR=: |
5608 | PATH_SEPARATOR=: |
4584 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
5609 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
4585 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
5610 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
4586 | PATH_SEPARATOR=';' |
5611 | PATH_SEPARATOR=';' |
4587 | } |
5612 | } |
4588 | fi |
5613 | fi |
4589 | |
5614 | |
4590 | |
|
|
4591 | # IFS |
|
|
4592 | # We need space, tab and new line, in precisely that order. Quoting is |
|
|
4593 | # there to prevent editors from complaining about space-tab. |
|
|
4594 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
|
|
4595 | # splitting by setting IFS to empty value.) |
|
|
4596 | IFS=" "" $as_nl" |
|
|
4597 | |
5615 | |
4598 | # Find who we are. Look in the path if we contain no directory separator. |
5616 | # Find who we are. Look in the path if we contain no directory separator. |
4599 | as_myself= |
5617 | as_myself= |
4600 | case $0 in #(( |
5618 | case $0 in #(( |
4601 | *[\\/]* ) as_myself=$0 ;; |
5619 | *[\\/]* ) as_myself=$0 ;; |
4602 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5620 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4603 | for as_dir in $PATH |
5621 | for as_dir in $PATH |
4604 | do |
5622 | do |
4605 | IFS=$as_save_IFS |
5623 | IFS=$as_save_IFS |
4606 | test -z "$as_dir" && as_dir=. |
5624 | case $as_dir in #((( |
|
|
5625 | '') as_dir=./ ;; |
|
|
5626 | */) ;; |
|
|
5627 | *) as_dir=$as_dir/ ;; |
|
|
5628 | esac |
4607 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
5629 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
4608 | done |
5630 | done |
4609 | IFS=$as_save_IFS |
5631 | IFS=$as_save_IFS |
4610 | |
5632 | |
4611 | ;; |
5633 | ;; |
4612 | esac |
5634 | esac |
… | |
… | |
4614 | # in which case we are not to be found in the path. |
5636 | # in which case we are not to be found in the path. |
4615 | if test "x$as_myself" = x; then |
5637 | if test "x$as_myself" = x; then |
4616 | as_myself=$0 |
5638 | as_myself=$0 |
4617 | fi |
5639 | fi |
4618 | if test ! -f "$as_myself"; then |
5640 | if test ! -f "$as_myself"; then |
4619 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
5641 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
4620 | exit 1 |
5642 | exit 1 |
4621 | fi |
5643 | fi |
4622 | |
5644 | |
4623 | # Unset variables that we do not need and which cause bugs (e.g. in |
|
|
4624 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
|
|
4625 | # suppresses any "Segmentation fault" message there. '((' could |
|
|
4626 | # trigger a bug in pdksh 5.2.14. |
|
|
4627 | for as_var in BASH_ENV ENV MAIL MAILPATH |
|
|
4628 | do eval test x\${$as_var+set} = xset \ |
|
|
4629 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
|
|
4630 | done |
|
|
4631 | PS1='$ ' |
|
|
4632 | PS2='> ' |
|
|
4633 | PS4='+ ' |
|
|
4634 | |
|
|
4635 | # NLS nuisances. |
|
|
4636 | LC_ALL=C |
|
|
4637 | export LC_ALL |
|
|
4638 | LANGUAGE=C |
|
|
4639 | export LANGUAGE |
|
|
4640 | |
|
|
4641 | # CDPATH. |
|
|
4642 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
4643 | |
5645 | |
4644 | |
5646 | |
4645 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
5647 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
4646 | # ---------------------------------------- |
5648 | # ---------------------------------------- |
4647 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
5649 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
… | |
… | |
4650 | as_fn_error () |
5652 | as_fn_error () |
4651 | { |
5653 | { |
4652 | as_status=$1; test $as_status -eq 0 && as_status=1 |
5654 | as_status=$1; test $as_status -eq 0 && as_status=1 |
4653 | if test "$4"; then |
5655 | if test "$4"; then |
4654 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
5656 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
4655 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
5657 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
4656 | fi |
5658 | fi |
4657 | $as_echo "$as_me: error: $2" >&2 |
5659 | printf "%s\n" "$as_me: error: $2" >&2 |
4658 | as_fn_exit $as_status |
5660 | as_fn_exit $as_status |
4659 | } # as_fn_error |
5661 | } # as_fn_error |
|
|
5662 | |
4660 | |
5663 | |
4661 | |
5664 | |
4662 | # as_fn_set_status STATUS |
5665 | # as_fn_set_status STATUS |
4663 | # ----------------------- |
5666 | # ----------------------- |
4664 | # Set $? to STATUS, without forking. |
5667 | # Set $? to STATUS, without forking. |
… | |
… | |
4683 | as_fn_unset () |
5686 | as_fn_unset () |
4684 | { |
5687 | { |
4685 | { eval $1=; unset $1;} |
5688 | { eval $1=; unset $1;} |
4686 | } |
5689 | } |
4687 | as_unset=as_fn_unset |
5690 | as_unset=as_fn_unset |
|
|
5691 | |
4688 | # as_fn_append VAR VALUE |
5692 | # as_fn_append VAR VALUE |
4689 | # ---------------------- |
5693 | # ---------------------- |
4690 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
5694 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
4691 | # advantage of any shell optimizations that allow amortized linear growth over |
5695 | # advantage of any shell optimizations that allow amortized linear growth over |
4692 | # repeated appends, instead of the typical quadratic growth present in naive |
5696 | # repeated appends, instead of the typical quadratic growth present in naive |
4693 | # implementations. |
5697 | # implementations. |
4694 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
5698 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
|
|
5699 | then : |
4695 | eval 'as_fn_append () |
5700 | eval 'as_fn_append () |
4696 | { |
5701 | { |
4697 | eval $1+=\$2 |
5702 | eval $1+=\$2 |
4698 | }' |
5703 | }' |
4699 | else |
5704 | else $as_nop |
4700 | as_fn_append () |
5705 | as_fn_append () |
4701 | { |
5706 | { |
4702 | eval $1=\$$1\$2 |
5707 | eval $1=\$$1\$2 |
4703 | } |
5708 | } |
4704 | fi # as_fn_append |
5709 | fi # as_fn_append |
… | |
… | |
4706 | # as_fn_arith ARG... |
5711 | # as_fn_arith ARG... |
4707 | # ------------------ |
5712 | # ------------------ |
4708 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
5713 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
4709 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
5714 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
4710 | # must be portable across $(()) and expr. |
5715 | # must be portable across $(()) and expr. |
4711 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
5716 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
|
|
5717 | then : |
4712 | eval 'as_fn_arith () |
5718 | eval 'as_fn_arith () |
4713 | { |
5719 | { |
4714 | as_val=$(( $* )) |
5720 | as_val=$(( $* )) |
4715 | }' |
5721 | }' |
4716 | else |
5722 | else $as_nop |
4717 | as_fn_arith () |
5723 | as_fn_arith () |
4718 | { |
5724 | { |
4719 | as_val=`expr "$@" || test $? -eq 1` |
5725 | as_val=`expr "$@" || test $? -eq 1` |
4720 | } |
5726 | } |
4721 | fi # as_fn_arith |
5727 | fi # as_fn_arith |
… | |
… | |
4742 | |
5748 | |
4743 | as_me=`$as_basename -- "$0" || |
5749 | as_me=`$as_basename -- "$0" || |
4744 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5750 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
4745 | X"$0" : 'X\(//\)$' \| \ |
5751 | X"$0" : 'X\(//\)$' \| \ |
4746 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5752 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
4747 | $as_echo X/"$0" | |
5753 | printf "%s\n" X/"$0" | |
4748 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
5754 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
4749 | s//\1/ |
5755 | s//\1/ |
4750 | q |
5756 | q |
4751 | } |
5757 | } |
4752 | /^X\/\(\/\/\)$/{ |
5758 | /^X\/\(\/\/\)$/{ |
… | |
… | |
4764 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
5770 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
4765 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
5771 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
4766 | as_cr_digits='0123456789' |
5772 | as_cr_digits='0123456789' |
4767 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
5773 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
4768 | |
5774 | |
|
|
5775 | |
|
|
5776 | # Determine whether it's possible to make 'echo' print without a newline. |
|
|
5777 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
|
|
5778 | # for compatibility with existing Makefiles. |
4769 | ECHO_C= ECHO_N= ECHO_T= |
5779 | ECHO_C= ECHO_N= ECHO_T= |
4770 | case `echo -n x` in #((((( |
5780 | case `echo -n x` in #((((( |
4771 | -n*) |
5781 | -n*) |
4772 | case `echo 'xy\c'` in |
5782 | case `echo 'xy\c'` in |
4773 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
5783 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
… | |
… | |
4776 | ECHO_T=' ';; |
5786 | ECHO_T=' ';; |
4777 | esac;; |
5787 | esac;; |
4778 | *) |
5788 | *) |
4779 | ECHO_N='-n';; |
5789 | ECHO_N='-n';; |
4780 | esac |
5790 | esac |
|
|
5791 | |
|
|
5792 | # For backward compatibility with old third-party macros, we provide |
|
|
5793 | # the shell variables $as_echo and $as_echo_n. New code should use |
|
|
5794 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
|
|
5795 | as_echo='printf %s\n' |
|
|
5796 | as_echo_n='printf %s' |
4781 | |
5797 | |
4782 | rm -f conf$$ conf$$.exe conf$$.file |
5798 | rm -f conf$$ conf$$.exe conf$$.file |
4783 | if test -d conf$$.dir; then |
5799 | if test -d conf$$.dir; then |
4784 | rm -f conf$$.dir/conf$$.file |
5800 | rm -f conf$$.dir/conf$$.file |
4785 | else |
5801 | else |
… | |
… | |
4818 | esac |
5834 | esac |
4819 | test -d "$as_dir" || eval $as_mkdir_p || { |
5835 | test -d "$as_dir" || eval $as_mkdir_p || { |
4820 | as_dirs= |
5836 | as_dirs= |
4821 | while :; do |
5837 | while :; do |
4822 | case $as_dir in #( |
5838 | case $as_dir in #( |
4823 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5839 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
4824 | *) as_qdir=$as_dir;; |
5840 | *) as_qdir=$as_dir;; |
4825 | esac |
5841 | esac |
4826 | as_dirs="'$as_qdir' $as_dirs" |
5842 | as_dirs="'$as_qdir' $as_dirs" |
4827 | as_dir=`$as_dirname -- "$as_dir" || |
5843 | as_dir=`$as_dirname -- "$as_dir" || |
4828 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5844 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
4829 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
5845 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
4830 | X"$as_dir" : 'X\(//\)$' \| \ |
5846 | X"$as_dir" : 'X\(//\)$' \| \ |
4831 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5847 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
4832 | $as_echo X"$as_dir" | |
5848 | printf "%s\n" X"$as_dir" | |
4833 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5849 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
4834 | s//\1/ |
5850 | s//\1/ |
4835 | q |
5851 | q |
4836 | } |
5852 | } |
4837 | /^X\(\/\/\)[^/].*/{ |
5853 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
4890 | # Save the log message, to keep $0 and so on meaningful, and to |
5906 | # Save the log message, to keep $0 and so on meaningful, and to |
4891 | # report actual input values of CONFIG_FILES etc. instead of their |
5907 | # report actual input values of CONFIG_FILES etc. instead of their |
4892 | # values after options handling. |
5908 | # values after options handling. |
4893 | ac_log=" |
5909 | ac_log=" |
4894 | This file was extended by $as_me, which was |
5910 | This file was extended by $as_me, which was |
4895 | generated by GNU Autoconf 2.69. Invocation command line was |
5911 | generated by GNU Autoconf 2.71. Invocation command line was |
4896 | |
5912 | |
4897 | CONFIG_FILES = $CONFIG_FILES |
5913 | CONFIG_FILES = $CONFIG_FILES |
4898 | CONFIG_HEADERS = $CONFIG_HEADERS |
5914 | CONFIG_HEADERS = $CONFIG_HEADERS |
4899 | CONFIG_LINKS = $CONFIG_LINKS |
5915 | CONFIG_LINKS = $CONFIG_LINKS |
4900 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
5916 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
… | |
… | |
4939 | $config_headers |
5955 | $config_headers |
4940 | |
5956 | |
4941 | Report bugs to the package provider." |
5957 | Report bugs to the package provider." |
4942 | |
5958 | |
4943 | _ACEOF |
5959 | _ACEOF |
|
|
5960 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
|
|
5961 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
4944 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5962 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
4945 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5963 | ac_cs_config='$ac_cs_config_escaped' |
4946 | ac_cs_version="\\ |
5964 | ac_cs_version="\\ |
4947 | config.status |
5965 | config.status |
4948 | configured by $0, generated by GNU Autoconf 2.69, |
5966 | configured by $0, generated by GNU Autoconf 2.71, |
4949 | with options \\"\$ac_cs_config\\" |
5967 | with options \\"\$ac_cs_config\\" |
4950 | |
5968 | |
4951 | Copyright (C) 2012 Free Software Foundation, Inc. |
5969 | Copyright (C) 2021 Free Software Foundation, Inc. |
4952 | This config.status script is free software; the Free Software Foundation |
5970 | This config.status script is free software; the Free Software Foundation |
4953 | gives unlimited permission to copy, distribute and modify it." |
5971 | gives unlimited permission to copy, distribute and modify it." |
4954 | |
5972 | |
4955 | ac_pwd='$ac_pwd' |
5973 | ac_pwd='$ac_pwd' |
4956 | srcdir='$srcdir' |
5974 | srcdir='$srcdir' |
… | |
… | |
4983 | case $ac_option in |
6001 | case $ac_option in |
4984 | # Handling of the options. |
6002 | # Handling of the options. |
4985 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6003 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
4986 | ac_cs_recheck=: ;; |
6004 | ac_cs_recheck=: ;; |
4987 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
6005 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
4988 | $as_echo "$ac_cs_version"; exit ;; |
6006 | printf "%s\n" "$ac_cs_version"; exit ;; |
4989 | --config | --confi | --conf | --con | --co | --c ) |
6007 | --config | --confi | --conf | --con | --co | --c ) |
4990 | $as_echo "$ac_cs_config"; exit ;; |
6008 | printf "%s\n" "$ac_cs_config"; exit ;; |
4991 | --debug | --debu | --deb | --de | --d | -d ) |
6009 | --debug | --debu | --deb | --de | --d | -d ) |
4992 | debug=: ;; |
6010 | debug=: ;; |
4993 | --header | --heade | --head | --hea ) |
6011 | --header | --heade | --head | --hea ) |
4994 | $ac_shift |
6012 | $ac_shift |
4995 | case $ac_optarg in |
6013 | case $ac_optarg in |
4996 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
6014 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
4997 | esac |
6015 | esac |
4998 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
6016 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
4999 | ac_need_defaults=false;; |
6017 | ac_need_defaults=false;; |
5000 | --he | --h) |
6018 | --he | --h) |
5001 | # Conflict between --help and --header |
6019 | # Conflict between --help and --header |
5002 | as_fn_error $? "ambiguous option: \`$1' |
6020 | as_fn_error $? "ambiguous option: \`$1' |
5003 | Try \`$0 --help' for more information.";; |
6021 | Try \`$0 --help' for more information.";; |
5004 | --help | --hel | -h ) |
6022 | --help | --hel | -h ) |
5005 | $as_echo "$ac_cs_usage"; exit ;; |
6023 | printf "%s\n" "$ac_cs_usage"; exit ;; |
5006 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6024 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5007 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
6025 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
5008 | ac_cs_silent=: ;; |
6026 | ac_cs_silent=: ;; |
5009 | |
6027 | |
5010 | # This is an error. |
6028 | # This is an error. |
… | |
… | |
5028 | _ACEOF |
6046 | _ACEOF |
5029 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6047 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5030 | if \$ac_cs_recheck; then |
6048 | if \$ac_cs_recheck; then |
5031 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6049 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5032 | shift |
6050 | shift |
5033 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
6051 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
5034 | CONFIG_SHELL='$SHELL' |
6052 | CONFIG_SHELL='$SHELL' |
5035 | export CONFIG_SHELL |
6053 | export CONFIG_SHELL |
5036 | exec "\$@" |
6054 | exec "\$@" |
5037 | fi |
6055 | fi |
5038 | |
6056 | |
… | |
… | |
5042 | { |
6060 | { |
5043 | echo |
6061 | echo |
5044 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
6062 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
5045 | ## Running $as_me. ## |
6063 | ## Running $as_me. ## |
5046 | _ASBOX |
6064 | _ASBOX |
5047 | $as_echo "$ac_log" |
6065 | printf "%s\n" "$ac_log" |
5048 | } >&5 |
6066 | } >&5 |
5049 | |
6067 | |
5050 | _ACEOF |
6068 | _ACEOF |
5051 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
6069 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5052 | _ACEOF |
6070 | _ACEOF |
… | |
… | |
5055 | |
6073 | |
5056 | # Handling of arguments. |
6074 | # Handling of arguments. |
5057 | for ac_config_target in $ac_config_targets |
6075 | for ac_config_target in $ac_config_targets |
5058 | do |
6076 | do |
5059 | case $ac_config_target in |
6077 | case $ac_config_target in |
5060 | "libeio/config.h") CONFIG_HEADERS="$CONFIG_HEADERS libeio/config.h" ;; |
6078 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5061 | |
6079 | |
5062 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
6080 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5063 | esac |
6081 | esac |
5064 | done |
6082 | done |
5065 | |
6083 | |
… | |
… | |
5067 | # If the user did not use the arguments to specify the items to instantiate, |
6085 | # If the user did not use the arguments to specify the items to instantiate, |
5068 | # then the envvar interface is used. Set only those that are not. |
6086 | # then the envvar interface is used. Set only those that are not. |
5069 | # We use the long form for the default assignment because of an extremely |
6087 | # We use the long form for the default assignment because of an extremely |
5070 | # bizarre bug on SunOS 4.1.3. |
6088 | # bizarre bug on SunOS 4.1.3. |
5071 | if $ac_need_defaults; then |
6089 | if $ac_need_defaults; then |
5072 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6090 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
5073 | fi |
6091 | fi |
5074 | |
6092 | |
5075 | # Have a temporary directory for convenience. Make it in the build tree |
6093 | # Have a temporary directory for convenience. Make it in the build tree |
5076 | # simply because there is no reason against having it here, and in addition, |
6094 | # simply because there is no reason against having it here, and in addition, |
5077 | # creating and moving files from /tmp can sometimes cause problems. |
6095 | # creating and moving files from /tmp can sometimes cause problems. |
… | |
… | |
5245 | [\\/$]*) false;; |
6263 | [\\/$]*) false;; |
5246 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
6264 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
5247 | esac || |
6265 | esac || |
5248 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
6266 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5249 | esac |
6267 | esac |
5250 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
6268 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
5251 | as_fn_append ac_file_inputs " '$ac_f'" |
6269 | as_fn_append ac_file_inputs " '$ac_f'" |
5252 | done |
6270 | done |
5253 | |
6271 | |
5254 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
6272 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
5255 | # use $as_me), people would be surprised to read: |
6273 | # use $as_me), people would be surprised to read: |
5256 | # /* config.h. Generated by config.status. */ |
6274 | # /* config.h. Generated by config.status. */ |
5257 | configure_input='Generated from '` |
6275 | configure_input='Generated from '` |
5258 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
6276 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
5259 | `' by configure.' |
6277 | `' by configure.' |
5260 | if test x"$ac_file" != x-; then |
6278 | if test x"$ac_file" != x-; then |
5261 | configure_input="$ac_file. $configure_input" |
6279 | configure_input="$ac_file. $configure_input" |
5262 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
6280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
5263 | $as_echo "$as_me: creating $ac_file" >&6;} |
6281 | printf "%s\n" "$as_me: creating $ac_file" >&6;} |
5264 | fi |
6282 | fi |
5265 | # Neutralize special characters interpreted by sed in replacement strings. |
6283 | # Neutralize special characters interpreted by sed in replacement strings. |
5266 | case $configure_input in #( |
6284 | case $configure_input in #( |
5267 | *\&* | *\|* | *\\* ) |
6285 | *\&* | *\|* | *\\* ) |
5268 | ac_sed_conf_input=`$as_echo "$configure_input" | |
6286 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
5269 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
6287 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
5270 | *) ac_sed_conf_input=$configure_input;; |
6288 | *) ac_sed_conf_input=$configure_input;; |
5271 | esac |
6289 | esac |
5272 | |
6290 | |
5273 | case $ac_tag in |
6291 | case $ac_tag in |
… | |
… | |
5280 | ac_dir=`$as_dirname -- "$ac_file" || |
6298 | ac_dir=`$as_dirname -- "$ac_file" || |
5281 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6299 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5282 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
6300 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
5283 | X"$ac_file" : 'X\(//\)$' \| \ |
6301 | X"$ac_file" : 'X\(//\)$' \| \ |
5284 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
6302 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5285 | $as_echo X"$ac_file" | |
6303 | printf "%s\n" X"$ac_file" | |
5286 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
6304 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5287 | s//\1/ |
6305 | s//\1/ |
5288 | q |
6306 | q |
5289 | } |
6307 | } |
5290 | /^X\(\/\/\)[^/].*/{ |
6308 | /^X\(\/\/\)[^/].*/{ |
… | |
… | |
5304 | ac_builddir=. |
6322 | ac_builddir=. |
5305 | |
6323 | |
5306 | case "$ac_dir" in |
6324 | case "$ac_dir" in |
5307 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6325 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
5308 | *) |
6326 | *) |
5309 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
6327 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
5310 | # A ".." for each directory in $ac_dir_suffix. |
6328 | # A ".." for each directory in $ac_dir_suffix. |
5311 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
6329 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
5312 | case $ac_top_builddir_sub in |
6330 | case $ac_top_builddir_sub in |
5313 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
6331 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
5314 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
6332 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
5315 | esac ;; |
6333 | esac ;; |
5316 | esac |
6334 | esac |
… | |
… | |
5342 | # |
6360 | # |
5343 | # CONFIG_HEADER |
6361 | # CONFIG_HEADER |
5344 | # |
6362 | # |
5345 | if test x"$ac_file" != x-; then |
6363 | if test x"$ac_file" != x-; then |
5346 | { |
6364 | { |
5347 | $as_echo "/* $configure_input */" \ |
6365 | printf "%s\n" "/* $configure_input */" >&1 \ |
5348 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
6366 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
5349 | } >"$ac_tmp/config.h" \ |
6367 | } >"$ac_tmp/config.h" \ |
5350 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6368 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5351 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
6369 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
5352 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
6370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
5353 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
6371 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
5354 | else |
6372 | else |
5355 | rm -f "$ac_file" |
6373 | rm -f "$ac_file" |
5356 | mv "$ac_tmp/config.h" "$ac_file" \ |
6374 | mv "$ac_tmp/config.h" "$ac_file" \ |
5357 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
6375 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5358 | fi |
6376 | fi |
5359 | else |
6377 | else |
5360 | $as_echo "/* $configure_input */" \ |
6378 | printf "%s\n" "/* $configure_input */" >&1 \ |
5361 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
6379 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5362 | || as_fn_error $? "could not create -" "$LINENO" 5 |
6380 | || as_fn_error $? "could not create -" "$LINENO" 5 |
5363 | fi |
6381 | fi |
5364 | ;; |
6382 | ;; |
5365 | |
6383 | |
… | |
… | |
5396 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
6414 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
5397 | # would make configure fail if this is the last instruction. |
6415 | # would make configure fail if this is the last instruction. |
5398 | $ac_cs_success || as_fn_exit 1 |
6416 | $ac_cs_success || as_fn_exit 1 |
5399 | fi |
6417 | fi |
5400 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
6418 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5401 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
6419 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5402 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
6420 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5403 | fi |
6421 | fi |
5404 | |
6422 | |
|
|
6423 | |
|
|
6424 | |