1 |
#! /bin/sh |
2 |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated by GNU Autoconf 2.69. |
4 |
# |
5 |
# |
6 |
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
7 |
# |
8 |
# |
9 |
# This configure script is free software; the Free Software Foundation |
10 |
# gives unlimited permission to copy, distribute and modify it. |
11 |
## -------------------- ## |
12 |
## M4sh Initialization. ## |
13 |
## -------------------- ## |
14 |
|
15 |
# Be more Bourne compatible |
16 |
DUALCASE=1; export DUALCASE # for MKS sh |
17 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
18 |
emulate sh |
19 |
NULLCMD=: |
20 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
21 |
# is contrary to our usage. Disable this feature. |
22 |
alias -g '${1+"$@"}'='"$@"' |
23 |
setopt NO_GLOB_SUBST |
24 |
else |
25 |
case `(set -o) 2>/dev/null` in #( |
26 |
*posix*) : |
27 |
set -o posix ;; #( |
28 |
*) : |
29 |
;; |
30 |
esac |
31 |
fi |
32 |
|
33 |
|
34 |
as_nl=' |
35 |
' |
36 |
export as_nl |
37 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
38 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
39 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
40 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
41 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
42 |
# but without wasting forks for bash or zsh. |
43 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
44 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
45 |
as_echo='print -r --' |
46 |
as_echo_n='print -rn --' |
47 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
48 |
as_echo='printf %s\n' |
49 |
as_echo_n='printf %s' |
50 |
else |
51 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
52 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
53 |
as_echo_n='/usr/ucb/echo -n' |
54 |
else |
55 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
56 |
as_echo_n_body='eval |
57 |
arg=$1; |
58 |
case $arg in #( |
59 |
*"$as_nl"*) |
60 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
61 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
62 |
esac; |
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 |
|
72 |
# The user is always right. |
73 |
if test "${PATH_SEPARATOR+set}" != set; then |
74 |
PATH_SEPARATOR=: |
75 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
76 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
77 |
PATH_SEPARATOR=';' |
78 |
} |
79 |
fi |
80 |
|
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 |
|
89 |
# Find who we are. Look in the path if we contain no directory separator. |
90 |
as_myself= |
91 |
case $0 in #(( |
92 |
*[\\/]* ) as_myself=$0 ;; |
93 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
94 |
for as_dir in $PATH |
95 |
do |
96 |
IFS=$as_save_IFS |
97 |
test -z "$as_dir" && as_dir=. |
98 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
99 |
done |
100 |
IFS=$as_save_IFS |
101 |
|
102 |
;; |
103 |
esac |
104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
105 |
# in which case we are not to be found in the path. |
106 |
if test "x$as_myself" = x; then |
107 |
as_myself=$0 |
108 |
fi |
109 |
if test ! -f "$as_myself"; then |
110 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
111 |
exit 1 |
112 |
fi |
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 |
|
135 |
# Use a proper internal environment variable to ensure we don't fall |
136 |
# into an infinite loop, continuously re-executing ourselves. |
137 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
138 |
_as_can_reexec=no; export _as_can_reexec; |
139 |
# We cannot yet assume a decent shell, so we have to provide a |
140 |
# neutralization value for shells without unset; and this also |
141 |
# works around shells that cannot unset nonexistent variables. |
142 |
# Preserve -v and -x to the replacement shell. |
143 |
BASH_ENV=/dev/null |
144 |
ENV=/dev/null |
145 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
146 |
case $- in # (((( |
147 |
*v*x* | *x*v* ) as_opts=-vx ;; |
148 |
*v* ) as_opts=-v ;; |
149 |
*x* ) as_opts=-x ;; |
150 |
* ) as_opts= ;; |
151 |
esac |
152 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
153 |
# Admittedly, this is quite paranoid, since all the known shells bail |
154 |
# out after a failed `exec'. |
155 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
156 |
as_fn_exit 255 |
157 |
fi |
158 |
# We don't want this to propagate to other subprocesses. |
159 |
{ _as_can_reexec=; unset _as_can_reexec;} |
160 |
if test "x$CONFIG_SHELL" = x; then |
161 |
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
162 |
emulate sh |
163 |
NULLCMD=: |
164 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
165 |
# is contrary to our usage. Disable this feature. |
166 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
167 |
setopt NO_GLOB_SUBST |
168 |
else |
169 |
case \`(set -o) 2>/dev/null\` in #( |
170 |
*posix*) : |
171 |
set -o posix ;; #( |
172 |
*) : |
173 |
;; |
174 |
esac |
175 |
fi |
176 |
" |
177 |
as_required="as_fn_return () { (exit \$1); } |
178 |
as_fn_success () { as_fn_return 0; } |
179 |
as_fn_failure () { as_fn_return 1; } |
180 |
as_fn_ret_success () { return 0; } |
181 |
as_fn_ret_failure () { return 1; } |
182 |
|
183 |
exitcode=0 |
184 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
185 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
186 |
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.; } |
188 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
189 |
|
190 |
else |
191 |
exitcode=1; echo positional parameters were not saved. |
192 |
fi |
193 |
test x\$exitcode = x0 || exit 1 |
194 |
test -x / || exit 1" |
195 |
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 |
197 |
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 |
199 |
test \$(( 1 + 1 )) = 2 || exit 1" |
200 |
if (eval "$as_required") 2>/dev/null; then : |
201 |
as_have_required=yes |
202 |
else |
203 |
as_have_required=no |
204 |
fi |
205 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
206 |
|
207 |
else |
208 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
209 |
as_found=false |
210 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
211 |
do |
212 |
IFS=$as_save_IFS |
213 |
test -z "$as_dir" && as_dir=. |
214 |
as_found=: |
215 |
case $as_dir in #( |
216 |
/*) |
217 |
for as_base in sh bash ksh sh5; do |
218 |
# Try only shells that exist, to save several forks. |
219 |
as_shell=$as_dir/$as_base |
220 |
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 : |
222 |
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 : |
224 |
break 2 |
225 |
fi |
226 |
fi |
227 |
done;; |
228 |
esac |
229 |
as_found=false |
230 |
done |
231 |
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
232 |
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
233 |
CONFIG_SHELL=$SHELL as_have_required=yes |
234 |
fi; } |
235 |
IFS=$as_save_IFS |
236 |
|
237 |
|
238 |
if test "x$CONFIG_SHELL" != x; then : |
239 |
export CONFIG_SHELL |
240 |
# We cannot yet assume a decent shell, so we have to provide a |
241 |
# neutralization value for shells without unset; and this also |
242 |
# works around shells that cannot unset nonexistent variables. |
243 |
# Preserve -v and -x to the replacement shell. |
244 |
BASH_ENV=/dev/null |
245 |
ENV=/dev/null |
246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
247 |
case $- in # (((( |
248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
249 |
*v* ) as_opts=-v ;; |
250 |
*x* ) as_opts=-x ;; |
251 |
* ) as_opts= ;; |
252 |
esac |
253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
254 |
# Admittedly, this is quite paranoid, since all the known shells bail |
255 |
# out after a failed `exec'. |
256 |
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
257 |
exit 255 |
258 |
fi |
259 |
|
260 |
if test x$as_have_required = xno; then : |
261 |
$as_echo "$0: This script requires a shell more modern than all" |
262 |
$as_echo "$0: the shells that I found on your system." |
263 |
if test x${ZSH_VERSION+set} = xset ; then |
264 |
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
265 |
$as_echo "$0: be upgraded to zsh 4.3.4 or later." |
266 |
else |
267 |
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
268 |
$0: including any error possibly output before this |
269 |
$0: message. Then install a modern shell, or manually run |
270 |
$0: the script under such a shell if you do have one." |
271 |
fi |
272 |
exit 1 |
273 |
fi |
274 |
fi |
275 |
fi |
276 |
SHELL=${CONFIG_SHELL-/bin/sh} |
277 |
export SHELL |
278 |
# Unset more variables known to interfere with behavior of common tools. |
279 |
CLICOLOR_FORCE= GREP_OPTIONS= |
280 |
unset CLICOLOR_FORCE GREP_OPTIONS |
281 |
|
282 |
## --------------------- ## |
283 |
## M4sh Shell Functions. ## |
284 |
## --------------------- ## |
285 |
# as_fn_unset VAR |
286 |
# --------------- |
287 |
# Portably unset VAR. |
288 |
as_fn_unset () |
289 |
{ |
290 |
{ eval $1=; unset $1;} |
291 |
} |
292 |
as_unset=as_fn_unset |
293 |
|
294 |
# as_fn_set_status STATUS |
295 |
# ----------------------- |
296 |
# Set $? to STATUS, without forking. |
297 |
as_fn_set_status () |
298 |
{ |
299 |
return $1 |
300 |
} # as_fn_set_status |
301 |
|
302 |
# as_fn_exit STATUS |
303 |
# ----------------- |
304 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
305 |
as_fn_exit () |
306 |
{ |
307 |
set +e |
308 |
as_fn_set_status $1 |
309 |
exit $1 |
310 |
} # as_fn_exit |
311 |
|
312 |
# as_fn_mkdir_p |
313 |
# ------------- |
314 |
# Create "$as_dir" as a directory, including parents if necessary. |
315 |
as_fn_mkdir_p () |
316 |
{ |
317 |
|
318 |
case $as_dir in #( |
319 |
-*) as_dir=./$as_dir;; |
320 |
esac |
321 |
test -d "$as_dir" || eval $as_mkdir_p || { |
322 |
as_dirs= |
323 |
while :; do |
324 |
case $as_dir in #( |
325 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
326 |
*) as_qdir=$as_dir;; |
327 |
esac |
328 |
as_dirs="'$as_qdir' $as_dirs" |
329 |
as_dir=`$as_dirname -- "$as_dir" || |
330 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
331 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
332 |
X"$as_dir" : 'X\(//\)$' \| \ |
333 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
334 |
$as_echo X"$as_dir" | |
335 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
336 |
s//\1/ |
337 |
q |
338 |
} |
339 |
/^X\(\/\/\)[^/].*/{ |
340 |
s//\1/ |
341 |
q |
342 |
} |
343 |
/^X\(\/\/\)$/{ |
344 |
s//\1/ |
345 |
q |
346 |
} |
347 |
/^X\(\/\).*/{ |
348 |
s//\1/ |
349 |
q |
350 |
} |
351 |
s/.*/./; q'` |
352 |
test -d "$as_dir" && break |
353 |
done |
354 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
355 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
356 |
|
357 |
|
358 |
} # as_fn_mkdir_p |
359 |
|
360 |
# as_fn_executable_p FILE |
361 |
# ----------------------- |
362 |
# Test if FILE is an executable regular file. |
363 |
as_fn_executable_p () |
364 |
{ |
365 |
test -f "$1" && test -x "$1" |
366 |
} # as_fn_executable_p |
367 |
# as_fn_append VAR VALUE |
368 |
# ---------------------- |
369 |
# 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 |
371 |
# repeated appends, instead of the typical quadratic growth present in naive |
372 |
# implementations. |
373 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
374 |
eval 'as_fn_append () |
375 |
{ |
376 |
eval $1+=\$2 |
377 |
}' |
378 |
else |
379 |
as_fn_append () |
380 |
{ |
381 |
eval $1=\$$1\$2 |
382 |
} |
383 |
fi # as_fn_append |
384 |
|
385 |
# as_fn_arith ARG... |
386 |
# ------------------ |
387 |
# 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 |
389 |
# must be portable across $(()) and expr. |
390 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
391 |
eval 'as_fn_arith () |
392 |
{ |
393 |
as_val=$(( $* )) |
394 |
}' |
395 |
else |
396 |
as_fn_arith () |
397 |
{ |
398 |
as_val=`expr "$@" || test $? -eq 1` |
399 |
} |
400 |
fi # as_fn_arith |
401 |
|
402 |
|
403 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
404 |
# ---------------------------------------- |
405 |
# 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 |
407 |
# script with STATUS, using 1 if that was 0. |
408 |
as_fn_error () |
409 |
{ |
410 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
411 |
if test "$4"; then |
412 |
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 |
414 |
fi |
415 |
$as_echo "$as_me: error: $2" >&2 |
416 |
as_fn_exit $as_status |
417 |
} # as_fn_error |
418 |
|
419 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
420 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
421 |
as_expr=expr |
422 |
else |
423 |
as_expr=false |
424 |
fi |
425 |
|
426 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
427 |
as_basename=basename |
428 |
else |
429 |
as_basename=false |
430 |
fi |
431 |
|
432 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
433 |
as_dirname=dirname |
434 |
else |
435 |
as_dirname=false |
436 |
fi |
437 |
|
438 |
as_me=`$as_basename -- "$0" || |
439 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
440 |
X"$0" : 'X\(//\)$' \| \ |
441 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
442 |
$as_echo X/"$0" | |
443 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
444 |
s//\1/ |
445 |
q |
446 |
} |
447 |
/^X\/\(\/\/\)$/{ |
448 |
s//\1/ |
449 |
q |
450 |
} |
451 |
/^X\/\(\/\).*/{ |
452 |
s//\1/ |
453 |
q |
454 |
} |
455 |
s/.*/./; q'` |
456 |
|
457 |
# Avoid depending upon Character Ranges. |
458 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
459 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
460 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
461 |
as_cr_digits='0123456789' |
462 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
463 |
|
464 |
|
465 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
466 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
467 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
468 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
469 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
470 |
sed -n ' |
471 |
p |
472 |
/[$]LINENO/= |
473 |
' <$as_myself | |
474 |
sed ' |
475 |
s/[$]LINENO.*/&-/ |
476 |
t lineno |
477 |
b |
478 |
:lineno |
479 |
N |
480 |
:loop |
481 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
482 |
t loop |
483 |
s/-\n.*// |
484 |
' >$as_me.lineno && |
485 |
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; } |
487 |
|
488 |
# 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 |
490 |
# in an infinite loop. This has already happened in practice. |
491 |
_as_can_reexec=no; export _as_can_reexec |
492 |
# Don't try to exec as it changes $[0], causing all sort of problems |
493 |
# (the dirname of $[0] is not the place where we might find the |
494 |
# original and so on. Autoconf is especially sensitive to this). |
495 |
. "./$as_me.lineno" |
496 |
# Exit status is that of the last command. |
497 |
exit |
498 |
} |
499 |
|
500 |
ECHO_C= ECHO_N= ECHO_T= |
501 |
case `echo -n x` in #((((( |
502 |
-n*) |
503 |
case `echo 'xy\c'` in |
504 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
505 |
xy) ECHO_C='\c';; |
506 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
507 |
ECHO_T=' ';; |
508 |
esac;; |
509 |
*) |
510 |
ECHO_N='-n';; |
511 |
esac |
512 |
|
513 |
rm -f conf$$ conf$$.exe conf$$.file |
514 |
if test -d conf$$.dir; then |
515 |
rm -f conf$$.dir/conf$$.file |
516 |
else |
517 |
rm -f conf$$.dir |
518 |
mkdir conf$$.dir 2>/dev/null |
519 |
fi |
520 |
if (echo >conf$$.file) 2>/dev/null; then |
521 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
522 |
as_ln_s='ln -s' |
523 |
# ... but there are two gotchas: |
524 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
525 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
526 |
# In both cases, we have to default to `cp -pR'. |
527 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
528 |
as_ln_s='cp -pR' |
529 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
530 |
as_ln_s=ln |
531 |
else |
532 |
as_ln_s='cp -pR' |
533 |
fi |
534 |
else |
535 |
as_ln_s='cp -pR' |
536 |
fi |
537 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
538 |
rmdir conf$$.dir 2>/dev/null |
539 |
|
540 |
if mkdir -p . 2>/dev/null; then |
541 |
as_mkdir_p='mkdir -p "$as_dir"' |
542 |
else |
543 |
test -d ./-p && rmdir ./-p |
544 |
as_mkdir_p=false |
545 |
fi |
546 |
|
547 |
as_test_x='test -x' |
548 |
as_executable_p=as_fn_executable_p |
549 |
|
550 |
# Sed expression to map a string onto a valid CPP name. |
551 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
552 |
|
553 |
# Sed expression to map a string onto a valid variable name. |
554 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
555 |
|
556 |
|
557 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
558 |
exec 6>&1 |
559 |
|
560 |
# Name of the host. |
561 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
562 |
# so uname gets run too. |
563 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
564 |
|
565 |
# |
566 |
# Initializations. |
567 |
# |
568 |
ac_default_prefix=/usr/local |
569 |
ac_clean_files= |
570 |
ac_config_libobj_dir=. |
571 |
LIBOBJS= |
572 |
cross_compiling=no |
573 |
subdirs= |
574 |
MFLAGS= |
575 |
MAKEFLAGS= |
576 |
|
577 |
# Identity of this package. |
578 |
PACKAGE_NAME= |
579 |
PACKAGE_TARNAME= |
580 |
PACKAGE_VERSION= |
581 |
PACKAGE_STRING= |
582 |
PACKAGE_BUGREPORT= |
583 |
PACKAGE_URL= |
584 |
|
585 |
ac_unique_file="libeio/eio.h" |
586 |
# Factoring default headers for most tests. |
587 |
ac_includes_default="\ |
588 |
#include <stdio.h> |
589 |
#ifdef HAVE_SYS_TYPES_H |
590 |
# include <sys/types.h> |
591 |
#endif |
592 |
#ifdef HAVE_SYS_STAT_H |
593 |
# include <sys/stat.h> |
594 |
#endif |
595 |
#ifdef STDC_HEADERS |
596 |
# include <stdlib.h> |
597 |
# include <stddef.h> |
598 |
#else |
599 |
# ifdef HAVE_STDLIB_H |
600 |
# include <stdlib.h> |
601 |
# endif |
602 |
#endif |
603 |
#ifdef HAVE_STRING_H |
604 |
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
605 |
# include <memory.h> |
606 |
# endif |
607 |
# include <string.h> |
608 |
#endif |
609 |
#ifdef HAVE_STRINGS_H |
610 |
# include <strings.h> |
611 |
#endif |
612 |
#ifdef HAVE_INTTYPES_H |
613 |
# include <inttypes.h> |
614 |
#endif |
615 |
#ifdef HAVE_STDINT_H |
616 |
# include <stdint.h> |
617 |
#endif |
618 |
#ifdef HAVE_UNISTD_H |
619 |
# include <unistd.h> |
620 |
#endif" |
621 |
|
622 |
ac_subst_vars='LTLIBOBJS |
623 |
LIBOBJS |
624 |
EGREP |
625 |
GREP |
626 |
CPP |
627 |
OBJEXT |
628 |
EXEEXT |
629 |
ac_ct_CC |
630 |
CPPFLAGS |
631 |
LDFLAGS |
632 |
CFLAGS |
633 |
CC |
634 |
target_alias |
635 |
host_alias |
636 |
build_alias |
637 |
LIBS |
638 |
ECHO_T |
639 |
ECHO_N |
640 |
ECHO_C |
641 |
DEFS |
642 |
mandir |
643 |
localedir |
644 |
libdir |
645 |
psdir |
646 |
pdfdir |
647 |
dvidir |
648 |
htmldir |
649 |
infodir |
650 |
docdir |
651 |
oldincludedir |
652 |
includedir |
653 |
runstatedir |
654 |
localstatedir |
655 |
sharedstatedir |
656 |
sysconfdir |
657 |
datadir |
658 |
datarootdir |
659 |
libexecdir |
660 |
sbindir |
661 |
bindir |
662 |
program_transform_name |
663 |
prefix |
664 |
exec_prefix |
665 |
PACKAGE_URL |
666 |
PACKAGE_BUGREPORT |
667 |
PACKAGE_STRING |
668 |
PACKAGE_VERSION |
669 |
PACKAGE_TARNAME |
670 |
PACKAGE_NAME |
671 |
PATH_SEPARATOR |
672 |
SHELL' |
673 |
ac_subst_files='' |
674 |
ac_user_opts=' |
675 |
enable_option_checking |
676 |
' |
677 |
ac_precious_vars='build_alias |
678 |
host_alias |
679 |
target_alias |
680 |
CC |
681 |
CFLAGS |
682 |
LDFLAGS |
683 |
LIBS |
684 |
CPPFLAGS |
685 |
CPP' |
686 |
|
687 |
|
688 |
# Initialize some variables set by options. |
689 |
ac_init_help= |
690 |
ac_init_version=false |
691 |
ac_unrecognized_opts= |
692 |
ac_unrecognized_sep= |
693 |
# The variables have the same names as the options, with |
694 |
# dashes changed to underlines. |
695 |
cache_file=/dev/null |
696 |
exec_prefix=NONE |
697 |
no_create= |
698 |
no_recursion= |
699 |
prefix=NONE |
700 |
program_prefix=NONE |
701 |
program_suffix=NONE |
702 |
program_transform_name=s,x,x, |
703 |
silent= |
704 |
site= |
705 |
srcdir= |
706 |
verbose= |
707 |
x_includes=NONE |
708 |
x_libraries=NONE |
709 |
|
710 |
# Installation directory options. |
711 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
712 |
# and all the variables that are supposed to be based on exec_prefix |
713 |
# by default will actually change. |
714 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
715 |
# (The list follows the same order as the GNU Coding Standards.) |
716 |
bindir='${exec_prefix}/bin' |
717 |
sbindir='${exec_prefix}/sbin' |
718 |
libexecdir='${exec_prefix}/libexec' |
719 |
datarootdir='${prefix}/share' |
720 |
datadir='${datarootdir}' |
721 |
sysconfdir='${prefix}/etc' |
722 |
sharedstatedir='${prefix}/com' |
723 |
localstatedir='${prefix}/var' |
724 |
runstatedir='${localstatedir}/run' |
725 |
includedir='${prefix}/include' |
726 |
oldincludedir='/usr/include' |
727 |
docdir='${datarootdir}/doc/${PACKAGE}' |
728 |
infodir='${datarootdir}/info' |
729 |
htmldir='${docdir}' |
730 |
dvidir='${docdir}' |
731 |
pdfdir='${docdir}' |
732 |
psdir='${docdir}' |
733 |
libdir='${exec_prefix}/lib' |
734 |
localedir='${datarootdir}/locale' |
735 |
mandir='${datarootdir}/man' |
736 |
|
737 |
ac_prev= |
738 |
ac_dashdash= |
739 |
for ac_option |
740 |
do |
741 |
# If the previous option needs an argument, assign it. |
742 |
if test -n "$ac_prev"; then |
743 |
eval $ac_prev=\$ac_option |
744 |
ac_prev= |
745 |
continue |
746 |
fi |
747 |
|
748 |
case $ac_option in |
749 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
750 |
*=) ac_optarg= ;; |
751 |
*) ac_optarg=yes ;; |
752 |
esac |
753 |
|
754 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
755 |
|
756 |
case $ac_dashdash$ac_option in |
757 |
--) |
758 |
ac_dashdash=yes ;; |
759 |
|
760 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
761 |
ac_prev=bindir ;; |
762 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
763 |
bindir=$ac_optarg ;; |
764 |
|
765 |
-build | --build | --buil | --bui | --bu) |
766 |
ac_prev=build_alias ;; |
767 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
768 |
build_alias=$ac_optarg ;; |
769 |
|
770 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
771 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
772 |
ac_prev=cache_file ;; |
773 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
774 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
775 |
cache_file=$ac_optarg ;; |
776 |
|
777 |
--config-cache | -C) |
778 |
cache_file=config.cache ;; |
779 |
|
780 |
-datadir | --datadir | --datadi | --datad) |
781 |
ac_prev=datadir ;; |
782 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
783 |
datadir=$ac_optarg ;; |
784 |
|
785 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
786 |
| --dataroo | --dataro | --datar) |
787 |
ac_prev=datarootdir ;; |
788 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
789 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
790 |
datarootdir=$ac_optarg ;; |
791 |
|
792 |
-disable-* | --disable-*) |
793 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
794 |
# Reject names that are not valid shell variable names. |
795 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
796 |
as_fn_error $? "invalid feature name: $ac_useropt" |
797 |
ac_useropt_orig=$ac_useropt |
798 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
799 |
case $ac_user_opts in |
800 |
*" |
801 |
"enable_$ac_useropt" |
802 |
"*) ;; |
803 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
804 |
ac_unrecognized_sep=', ';; |
805 |
esac |
806 |
eval enable_$ac_useropt=no ;; |
807 |
|
808 |
-docdir | --docdir | --docdi | --doc | --do) |
809 |
ac_prev=docdir ;; |
810 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
811 |
docdir=$ac_optarg ;; |
812 |
|
813 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
814 |
ac_prev=dvidir ;; |
815 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
816 |
dvidir=$ac_optarg ;; |
817 |
|
818 |
-enable-* | --enable-*) |
819 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
820 |
# Reject names that are not valid shell variable names. |
821 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
822 |
as_fn_error $? "invalid feature name: $ac_useropt" |
823 |
ac_useropt_orig=$ac_useropt |
824 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
825 |
case $ac_user_opts in |
826 |
*" |
827 |
"enable_$ac_useropt" |
828 |
"*) ;; |
829 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
830 |
ac_unrecognized_sep=', ';; |
831 |
esac |
832 |
eval enable_$ac_useropt=\$ac_optarg ;; |
833 |
|
834 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
835 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
836 |
| --exec | --exe | --ex) |
837 |
ac_prev=exec_prefix ;; |
838 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
839 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
840 |
| --exec=* | --exe=* | --ex=*) |
841 |
exec_prefix=$ac_optarg ;; |
842 |
|
843 |
-gas | --gas | --ga | --g) |
844 |
# Obsolete; use --with-gas. |
845 |
with_gas=yes ;; |
846 |
|
847 |
-help | --help | --hel | --he | -h) |
848 |
ac_init_help=long ;; |
849 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
850 |
ac_init_help=recursive ;; |
851 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
852 |
ac_init_help=short ;; |
853 |
|
854 |
-host | --host | --hos | --ho) |
855 |
ac_prev=host_alias ;; |
856 |
-host=* | --host=* | --hos=* | --ho=*) |
857 |
host_alias=$ac_optarg ;; |
858 |
|
859 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
860 |
ac_prev=htmldir ;; |
861 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
862 |
| --ht=*) |
863 |
htmldir=$ac_optarg ;; |
864 |
|
865 |
-includedir | --includedir | --includedi | --included | --include \ |
866 |
| --includ | --inclu | --incl | --inc) |
867 |
ac_prev=includedir ;; |
868 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
869 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
870 |
includedir=$ac_optarg ;; |
871 |
|
872 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
873 |
ac_prev=infodir ;; |
874 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
875 |
infodir=$ac_optarg ;; |
876 |
|
877 |
-libdir | --libdir | --libdi | --libd) |
878 |
ac_prev=libdir ;; |
879 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
880 |
libdir=$ac_optarg ;; |
881 |
|
882 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
883 |
| --libexe | --libex | --libe) |
884 |
ac_prev=libexecdir ;; |
885 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
886 |
| --libexe=* | --libex=* | --libe=*) |
887 |
libexecdir=$ac_optarg ;; |
888 |
|
889 |
-localedir | --localedir | --localedi | --localed | --locale) |
890 |
ac_prev=localedir ;; |
891 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
892 |
localedir=$ac_optarg ;; |
893 |
|
894 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
895 |
| --localstate | --localstat | --localsta | --localst | --locals) |
896 |
ac_prev=localstatedir ;; |
897 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
898 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
899 |
localstatedir=$ac_optarg ;; |
900 |
|
901 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
902 |
ac_prev=mandir ;; |
903 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
904 |
mandir=$ac_optarg ;; |
905 |
|
906 |
-nfp | --nfp | --nf) |
907 |
# Obsolete; use --without-fp. |
908 |
with_fp=no ;; |
909 |
|
910 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
911 |
| --no-cr | --no-c | -n) |
912 |
no_create=yes ;; |
913 |
|
914 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
915 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
916 |
no_recursion=yes ;; |
917 |
|
918 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
919 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
920 |
| --oldin | --oldi | --old | --ol | --o) |
921 |
ac_prev=oldincludedir ;; |
922 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
923 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
924 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
925 |
oldincludedir=$ac_optarg ;; |
926 |
|
927 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
928 |
ac_prev=prefix ;; |
929 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
930 |
prefix=$ac_optarg ;; |
931 |
|
932 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
933 |
| --program-pre | --program-pr | --program-p) |
934 |
ac_prev=program_prefix ;; |
935 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
936 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
937 |
program_prefix=$ac_optarg ;; |
938 |
|
939 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
940 |
| --program-suf | --program-su | --program-s) |
941 |
ac_prev=program_suffix ;; |
942 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
943 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
944 |
program_suffix=$ac_optarg ;; |
945 |
|
946 |
-program-transform-name | --program-transform-name \ |
947 |
| --program-transform-nam | --program-transform-na \ |
948 |
| --program-transform-n | --program-transform- \ |
949 |
| --program-transform | --program-transfor \ |
950 |
| --program-transfo | --program-transf \ |
951 |
| --program-trans | --program-tran \ |
952 |
| --progr-tra | --program-tr | --program-t) |
953 |
ac_prev=program_transform_name ;; |
954 |
-program-transform-name=* | --program-transform-name=* \ |
955 |
| --program-transform-nam=* | --program-transform-na=* \ |
956 |
| --program-transform-n=* | --program-transform-=* \ |
957 |
| --program-transform=* | --program-transfor=* \ |
958 |
| --program-transfo=* | --program-transf=* \ |
959 |
| --program-trans=* | --program-tran=* \ |
960 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
961 |
program_transform_name=$ac_optarg ;; |
962 |
|
963 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
964 |
ac_prev=pdfdir ;; |
965 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
966 |
pdfdir=$ac_optarg ;; |
967 |
|
968 |
-psdir | --psdir | --psdi | --psd | --ps) |
969 |
ac_prev=psdir ;; |
970 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
971 |
psdir=$ac_optarg ;; |
972 |
|
973 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
974 |
| -silent | --silent | --silen | --sile | --sil) |
975 |
silent=yes ;; |
976 |
|
977 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
978 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
979 |
| --run | --ru | --r) |
980 |
ac_prev=runstatedir ;; |
981 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
982 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
983 |
| --run=* | --ru=* | --r=*) |
984 |
runstatedir=$ac_optarg ;; |
985 |
|
986 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
987 |
ac_prev=sbindir ;; |
988 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
989 |
| --sbi=* | --sb=*) |
990 |
sbindir=$ac_optarg ;; |
991 |
|
992 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
993 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
994 |
| --sharedst | --shareds | --shared | --share | --shar \ |
995 |
| --sha | --sh) |
996 |
ac_prev=sharedstatedir ;; |
997 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
998 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
999 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1000 |
| --sha=* | --sh=*) |
1001 |
sharedstatedir=$ac_optarg ;; |
1002 |
|
1003 |
-site | --site | --sit) |
1004 |
ac_prev=site ;; |
1005 |
-site=* | --site=* | --sit=*) |
1006 |
site=$ac_optarg ;; |
1007 |
|
1008 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1009 |
ac_prev=srcdir ;; |
1010 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1011 |
srcdir=$ac_optarg ;; |
1012 |
|
1013 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1014 |
| --syscon | --sysco | --sysc | --sys | --sy) |
1015 |
ac_prev=sysconfdir ;; |
1016 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1017 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1018 |
sysconfdir=$ac_optarg ;; |
1019 |
|
1020 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
1021 |
ac_prev=target_alias ;; |
1022 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1023 |
target_alias=$ac_optarg ;; |
1024 |
|
1025 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
1026 |
verbose=yes ;; |
1027 |
|
1028 |
-version | --version | --versio | --versi | --vers | -V) |
1029 |
ac_init_version=: ;; |
1030 |
|
1031 |
-with-* | --with-*) |
1032 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1033 |
# Reject names that are not valid shell variable names. |
1034 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1035 |
as_fn_error $? "invalid package name: $ac_useropt" |
1036 |
ac_useropt_orig=$ac_useropt |
1037 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1038 |
case $ac_user_opts in |
1039 |
*" |
1040 |
"with_$ac_useropt" |
1041 |
"*) ;; |
1042 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
1043 |
ac_unrecognized_sep=', ';; |
1044 |
esac |
1045 |
eval with_$ac_useropt=\$ac_optarg ;; |
1046 |
|
1047 |
-without-* | --without-*) |
1048 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1049 |
# Reject names that are not valid shell variable names. |
1050 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1051 |
as_fn_error $? "invalid package name: $ac_useropt" |
1052 |
ac_useropt_orig=$ac_useropt |
1053 |
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1054 |
case $ac_user_opts in |
1055 |
*" |
1056 |
"with_$ac_useropt" |
1057 |
"*) ;; |
1058 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
1059 |
ac_unrecognized_sep=', ';; |
1060 |
esac |
1061 |
eval with_$ac_useropt=no ;; |
1062 |
|
1063 |
--x) |
1064 |
# Obsolete; use --with-x. |
1065 |
with_x=yes ;; |
1066 |
|
1067 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1068 |
| --x-incl | --x-inc | --x-in | --x-i) |
1069 |
ac_prev=x_includes ;; |
1070 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1071 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1072 |
x_includes=$ac_optarg ;; |
1073 |
|
1074 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1075 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1076 |
ac_prev=x_libraries ;; |
1077 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1078 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1079 |
x_libraries=$ac_optarg ;; |
1080 |
|
1081 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
1082 |
Try \`$0 --help' for more information" |
1083 |
;; |
1084 |
|
1085 |
*=*) |
1086 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1087 |
# Reject names that are not valid shell variable names. |
1088 |
case $ac_envvar in #( |
1089 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
1090 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
1091 |
esac |
1092 |
eval $ac_envvar=\$ac_optarg |
1093 |
export $ac_envvar ;; |
1094 |
|
1095 |
*) |
1096 |
# FIXME: should be removed in autoconf 3.0. |
1097 |
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1098 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1099 |
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1100 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1101 |
;; |
1102 |
|
1103 |
esac |
1104 |
done |
1105 |
|
1106 |
if test -n "$ac_prev"; then |
1107 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1108 |
as_fn_error $? "missing argument to $ac_option" |
1109 |
fi |
1110 |
|
1111 |
if test -n "$ac_unrecognized_opts"; then |
1112 |
case $enable_option_checking in |
1113 |
no) ;; |
1114 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1115 |
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1116 |
esac |
1117 |
fi |
1118 |
|
1119 |
# Check all directory arguments for consistency. |
1120 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1121 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
1122 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1123 |
libdir localedir mandir runstatedir |
1124 |
do |
1125 |
eval ac_val=\$$ac_var |
1126 |
# Remove trailing slashes. |
1127 |
case $ac_val in |
1128 |
*/ ) |
1129 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
1130 |
eval $ac_var=\$ac_val;; |
1131 |
esac |
1132 |
# Be sure to have absolute directory names. |
1133 |
case $ac_val in |
1134 |
[\\/$]* | ?:[\\/]* ) continue;; |
1135 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1136 |
esac |
1137 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
1138 |
done |
1139 |
|
1140 |
# There might be people who depend on the old broken behavior: `$host' |
1141 |
# used to hold the argument of --host etc. |
1142 |
# FIXME: To remove some day. |
1143 |
build=$build_alias |
1144 |
host=$host_alias |
1145 |
target=$target_alias |
1146 |
|
1147 |
# FIXME: To remove some day. |
1148 |
if test "x$host_alias" != x; then |
1149 |
if test "x$build_alias" = x; then |
1150 |
cross_compiling=maybe |
1151 |
elif test "x$build_alias" != "x$host_alias"; then |
1152 |
cross_compiling=yes |
1153 |
fi |
1154 |
fi |
1155 |
|
1156 |
ac_tool_prefix= |
1157 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1158 |
|
1159 |
test "$silent" = yes && exec 6>/dev/null |
1160 |
|
1161 |
|
1162 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
1163 |
ac_ls_di=`ls -di .` && |
1164 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1165 |
as_fn_error $? "working directory cannot be determined" |
1166 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1167 |
as_fn_error $? "pwd does not report name of working directory" |
1168 |
|
1169 |
|
1170 |
# Find the source files, if location was not specified. |
1171 |
if test -z "$srcdir"; then |
1172 |
ac_srcdir_defaulted=yes |
1173 |
# Try the directory containing this script, then the parent directory. |
1174 |
ac_confdir=`$as_dirname -- "$as_myself" || |
1175 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1176 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
1177 |
X"$as_myself" : 'X\(//\)$' \| \ |
1178 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1179 |
$as_echo X"$as_myself" | |
1180 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1181 |
s//\1/ |
1182 |
q |
1183 |
} |
1184 |
/^X\(\/\/\)[^/].*/{ |
1185 |
s//\1/ |
1186 |
q |
1187 |
} |
1188 |
/^X\(\/\/\)$/{ |
1189 |
s//\1/ |
1190 |
q |
1191 |
} |
1192 |
/^X\(\/\).*/{ |
1193 |
s//\1/ |
1194 |
q |
1195 |
} |
1196 |
s/.*/./; q'` |
1197 |
srcdir=$ac_confdir |
1198 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1199 |
srcdir=.. |
1200 |
fi |
1201 |
else |
1202 |
ac_srcdir_defaulted=no |
1203 |
fi |
1204 |
if test ! -r "$srcdir/$ac_unique_file"; then |
1205 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1206 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
1207 |
fi |
1208 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1209 |
ac_abs_confdir=`( |
1210 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
1211 |
pwd)` |
1212 |
# When building in place, set srcdir=. |
1213 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
1214 |
srcdir=. |
1215 |
fi |
1216 |
# Remove unnecessary trailing slashes from srcdir. |
1217 |
# Double slashes in file names in object file debugging info |
1218 |
# mess up M-x gdb in Emacs. |
1219 |
case $srcdir in |
1220 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1221 |
esac |
1222 |
for ac_var in $ac_precious_vars; do |
1223 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1224 |
eval ac_env_${ac_var}_value=\$${ac_var} |
1225 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1226 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1227 |
done |
1228 |
|
1229 |
# |
1230 |
# Report the --help message. |
1231 |
# |
1232 |
if test "$ac_init_help" = "long"; then |
1233 |
# Omit some internal or obsolete options to make the list less imposing. |
1234 |
# This message is too long to be a string in the A/UX 3.1 sh. |
1235 |
cat <<_ACEOF |
1236 |
\`configure' configures this package to adapt to many kinds of systems. |
1237 |
|
1238 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
1239 |
|
1240 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1241 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
1242 |
|
1243 |
Defaults for the options are specified in brackets. |
1244 |
|
1245 |
Configuration: |
1246 |
-h, --help display this help and exit |
1247 |
--help=short display options specific to this package |
1248 |
--help=recursive display the short help of all the included packages |
1249 |
-V, --version display version information and exit |
1250 |
-q, --quiet, --silent do not print \`checking ...' messages |
1251 |
--cache-file=FILE cache test results in FILE [disabled] |
1252 |
-C, --config-cache alias for \`--cache-file=config.cache' |
1253 |
-n, --no-create do not create output files |
1254 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1255 |
|
1256 |
Installation directories: |
1257 |
--prefix=PREFIX install architecture-independent files in PREFIX |
1258 |
[$ac_default_prefix] |
1259 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1260 |
[PREFIX] |
1261 |
|
1262 |
By default, \`make install' will install all the files in |
1263 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1264 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1265 |
for instance \`--prefix=\$HOME'. |
1266 |
|
1267 |
For better control, use the options below. |
1268 |
|
1269 |
Fine tuning of the installation directories: |
1270 |
--bindir=DIR user executables [EPREFIX/bin] |
1271 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
1272 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
1273 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1274 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1275 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1276 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1277 |
--libdir=DIR object code libraries [EPREFIX/lib] |
1278 |
--includedir=DIR C header files [PREFIX/include] |
1279 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
1280 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1281 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1282 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
1283 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1284 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
1285 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
1286 |
--htmldir=DIR html documentation [DOCDIR] |
1287 |
--dvidir=DIR dvi documentation [DOCDIR] |
1288 |
--pdfdir=DIR pdf documentation [DOCDIR] |
1289 |
--psdir=DIR ps documentation [DOCDIR] |
1290 |
_ACEOF |
1291 |
|
1292 |
cat <<\_ACEOF |
1293 |
_ACEOF |
1294 |
fi |
1295 |
|
1296 |
if test -n "$ac_init_help"; then |
1297 |
|
1298 |
cat <<\_ACEOF |
1299 |
|
1300 |
Some influential environment variables: |
1301 |
CC C compiler command |
1302 |
CFLAGS C compiler flags |
1303 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1304 |
nonstandard directory <lib dir> |
1305 |
LIBS libraries to pass to the linker, e.g. -l<library> |
1306 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
1307 |
you have headers in a nonstandard directory <include dir> |
1308 |
CPP C preprocessor |
1309 |
|
1310 |
Use these variables to override the choices made by `configure' or to help |
1311 |
it to find libraries and programs with nonstandard names/locations. |
1312 |
|
1313 |
Report bugs to the package provider. |
1314 |
_ACEOF |
1315 |
ac_status=$? |
1316 |
fi |
1317 |
|
1318 |
if test "$ac_init_help" = "recursive"; then |
1319 |
# If there are subdirs, report their specific --help. |
1320 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1321 |
test -d "$ac_dir" || |
1322 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
1323 |
continue |
1324 |
ac_builddir=. |
1325 |
|
1326 |
case "$ac_dir" in |
1327 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1328 |
*) |
1329 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1330 |
# A ".." for each directory in $ac_dir_suffix. |
1331 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1332 |
case $ac_top_builddir_sub in |
1333 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1334 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1335 |
esac ;; |
1336 |
esac |
1337 |
ac_abs_top_builddir=$ac_pwd |
1338 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1339 |
# for backward compatibility: |
1340 |
ac_top_builddir=$ac_top_build_prefix |
1341 |
|
1342 |
case $srcdir in |
1343 |
.) # We are building in place. |
1344 |
ac_srcdir=. |
1345 |
ac_top_srcdir=$ac_top_builddir_sub |
1346 |
ac_abs_top_srcdir=$ac_pwd ;; |
1347 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
1348 |
ac_srcdir=$srcdir$ac_dir_suffix; |
1349 |
ac_top_srcdir=$srcdir |
1350 |
ac_abs_top_srcdir=$srcdir ;; |
1351 |
*) # Relative name. |
1352 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1353 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
1354 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1355 |
esac |
1356 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1357 |
|
1358 |
cd "$ac_dir" || { ac_status=$?; continue; } |
1359 |
# Check for guested configure. |
1360 |
if test -f "$ac_srcdir/configure.gnu"; then |
1361 |
echo && |
1362 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1363 |
elif test -f "$ac_srcdir/configure"; then |
1364 |
echo && |
1365 |
$SHELL "$ac_srcdir/configure" --help=recursive |
1366 |
else |
1367 |
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1368 |
fi || ac_status=$? |
1369 |
cd "$ac_pwd" || { ac_status=$?; break; } |
1370 |
done |
1371 |
fi |
1372 |
|
1373 |
test -n "$ac_init_help" && exit $ac_status |
1374 |
if $ac_init_version; then |
1375 |
cat <<\_ACEOF |
1376 |
configure |
1377 |
generated by GNU Autoconf 2.69 |
1378 |
|
1379 |
Copyright (C) 2012 Free Software Foundation, Inc. |
1380 |
This configure script is free software; the Free Software Foundation |
1381 |
gives unlimited permission to copy, distribute and modify it. |
1382 |
_ACEOF |
1383 |
exit |
1384 |
fi |
1385 |
|
1386 |
## ------------------------ ## |
1387 |
## Autoconf initialization. ## |
1388 |
## ------------------------ ## |
1389 |
|
1390 |
# ac_fn_c_try_compile LINENO |
1391 |
# -------------------------- |
1392 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
1393 |
ac_fn_c_try_compile () |
1394 |
{ |
1395 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1396 |
rm -f conftest.$ac_objext |
1397 |
if { { ac_try="$ac_compile" |
1398 |
case "(($ac_try" in |
1399 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1400 |
*) ac_try_echo=$ac_try;; |
1401 |
esac |
1402 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1403 |
$as_echo "$ac_try_echo"; } >&5 |
1404 |
(eval "$ac_compile") 2>conftest.err |
1405 |
ac_status=$? |
1406 |
if test -s conftest.err; then |
1407 |
grep -v '^ *+' conftest.err >conftest.er1 |
1408 |
cat conftest.er1 >&5 |
1409 |
mv -f conftest.er1 conftest.err |
1410 |
fi |
1411 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1412 |
test $ac_status = 0; } && { |
1413 |
test -z "$ac_c_werror_flag" || |
1414 |
test ! -s conftest.err |
1415 |
} && test -s conftest.$ac_objext; then : |
1416 |
ac_retval=0 |
1417 |
else |
1418 |
$as_echo "$as_me: failed program was:" >&5 |
1419 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1420 |
|
1421 |
ac_retval=1 |
1422 |
fi |
1423 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1424 |
as_fn_set_status $ac_retval |
1425 |
|
1426 |
} # ac_fn_c_try_compile |
1427 |
|
1428 |
# ac_fn_c_try_cpp LINENO |
1429 |
# ---------------------- |
1430 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1431 |
ac_fn_c_try_cpp () |
1432 |
{ |
1433 |
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 |
1475 |
$as_echo_n "checking for $2... " >&6; } |
1476 |
if eval \${$3+:} false; then : |
1477 |
$as_echo_n "(cached) " >&6 |
1478 |
fi |
1479 |
eval ac_res=\$$3 |
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 |
1487 |
/* end confdefs.h. */ |
1488 |
$4 |
1489 |
#include <$2> |
1490 |
_ACEOF |
1491 |
if ac_fn_c_try_compile "$LINENO"; then : |
1492 |
ac_header_compiler=yes |
1493 |
else |
1494 |
ac_header_compiler=no |
1495 |
fi |
1496 |
rm -f core conftest.err conftest.$ac_objext 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 |
1544 |
eval ac_res=\$$3 |
1545 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1546 |
$as_echo "$ac_res" >&6; } |
1547 |
fi |
1548 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1549 |
|
1550 |
} # ac_fn_c_check_header_mongrel |
1551 |
|
1552 |
# ac_fn_c_try_run LINENO |
1553 |
# ---------------------- |
1554 |
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1555 |
# that executables *can* be run. |
1556 |
ac_fn_c_try_run () |
1557 |
{ |
1558 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1559 |
if { { ac_try="$ac_link" |
1560 |
case "(($ac_try" in |
1561 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1562 |
*) ac_try_echo=$ac_try;; |
1563 |
esac |
1564 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1565 |
$as_echo "$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 |
1640 |
ac_status=$? |
1641 |
if test -s conftest.err; then |
1642 |
grep -v '^ *+' conftest.err >conftest.er1 |
1643 |
cat conftest.er1 >&5 |
1644 |
mv -f conftest.er1 conftest.err |
1645 |
fi |
1646 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1647 |
test $ac_status = 0; } && { |
1648 |
test -z "$ac_c_werror_flag" || |
1649 |
test ! -s conftest.err |
1650 |
} && test -s conftest$ac_exeext && { |
1651 |
test "$cross_compiling" = yes || |
1652 |
test -x conftest$ac_exeext |
1653 |
}; then : |
1654 |
ac_retval=0 |
1655 |
else |
1656 |
$as_echo "$as_me: failed program was:" >&5 |
1657 |
sed 's/^/| /' conftest.$ac_ext >&5 |
1658 |
|
1659 |
ac_retval=1 |
1660 |
fi |
1661 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
1662 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
1663 |
# interfere with the next link command; also delete a directory that is |
1664 |
# left behind by Apple's compiler. We do this before executing the actions. |
1665 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1666 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1667 |
as_fn_set_status $ac_retval |
1668 |
|
1669 |
} # ac_fn_c_try_link |
1670 |
cat >config.log <<_ACEOF |
1671 |
This file contains any messages produced by compilers while |
1672 |
running configure, to aid debugging if configure makes a mistake. |
1673 |
|
1674 |
It was created by $as_me, which was |
1675 |
generated by GNU Autoconf 2.69. Invocation command line was |
1676 |
|
1677 |
$ $0 $@ |
1678 |
|
1679 |
_ACEOF |
1680 |
exec 5>>config.log |
1681 |
{ |
1682 |
cat <<_ASUNAME |
1683 |
## --------- ## |
1684 |
## Platform. ## |
1685 |
## --------- ## |
1686 |
|
1687 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1688 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1689 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1690 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1691 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1692 |
|
1693 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1694 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1695 |
|
1696 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1697 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1698 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1699 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1700 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1701 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1702 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1703 |
|
1704 |
_ASUNAME |
1705 |
|
1706 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1707 |
for as_dir in $PATH |
1708 |
do |
1709 |
IFS=$as_save_IFS |
1710 |
test -z "$as_dir" && as_dir=. |
1711 |
$as_echo "PATH: $as_dir" |
1712 |
done |
1713 |
IFS=$as_save_IFS |
1714 |
|
1715 |
} >&5 |
1716 |
|
1717 |
cat >&5 <<_ACEOF |
1718 |
|
1719 |
|
1720 |
## ----------- ## |
1721 |
## Core tests. ## |
1722 |
## ----------- ## |
1723 |
|
1724 |
_ACEOF |
1725 |
|
1726 |
|
1727 |
# Keep a trace of the command line. |
1728 |
# Strip out --no-create and --no-recursion so they do not pile up. |
1729 |
# Strip out --silent because we don't want to record it for future runs. |
1730 |
# Also quote any args containing shell meta-characters. |
1731 |
# Make two passes to allow for proper duplicate-argument suppression. |
1732 |
ac_configure_args= |
1733 |
ac_configure_args0= |
1734 |
ac_configure_args1= |
1735 |
ac_must_keep_next=false |
1736 |
for ac_pass in 1 2 |
1737 |
do |
1738 |
for ac_arg |
1739 |
do |
1740 |
case $ac_arg in |
1741 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1742 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1743 |
| -silent | --silent | --silen | --sile | --sil) |
1744 |
continue ;; |
1745 |
*\'*) |
1746 |
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1747 |
esac |
1748 |
case $ac_pass in |
1749 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1750 |
2) |
1751 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
1752 |
if test $ac_must_keep_next = true; then |
1753 |
ac_must_keep_next=false # Got value, back to normal. |
1754 |
else |
1755 |
case $ac_arg in |
1756 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1757 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1758 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1759 |
| -with-* | --with-* | -without-* | --without-* | --x) |
1760 |
case "$ac_configure_args0 " in |
1761 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1762 |
esac |
1763 |
;; |
1764 |
-* ) ac_must_keep_next=true ;; |
1765 |
esac |
1766 |
fi |
1767 |
as_fn_append ac_configure_args " '$ac_arg'" |
1768 |
;; |
1769 |
esac |
1770 |
done |
1771 |
done |
1772 |
{ ac_configure_args0=; unset ac_configure_args0;} |
1773 |
{ ac_configure_args1=; unset ac_configure_args1;} |
1774 |
|
1775 |
# When interrupted or exit'd, cleanup temporary files, and complete |
1776 |
# config.log. We remove comments because anyway the quotes in there |
1777 |
# would cause problems or look ugly. |
1778 |
# 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. |
1780 |
trap 'exit_status=$? |
1781 |
# Save into config.log some information that might help in debugging. |
1782 |
{ |
1783 |
echo |
1784 |
|
1785 |
$as_echo "## ---------------- ## |
1786 |
## Cache variables. ## |
1787 |
## ---------------- ##" |
1788 |
echo |
1789 |
# The following way of writing the cache mishandles newlines in values, |
1790 |
( |
1791 |
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 |
1793 |
case $ac_val in #( |
1794 |
*${as_nl}*) |
1795 |
case $ac_var in #( |
1796 |
*_cv_*) { $as_echo "$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;} ;; |
1798 |
esac |
1799 |
case $ac_var in #( |
1800 |
_ | IFS | as_nl) ;; #( |
1801 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
1802 |
*) { eval $ac_var=; unset $ac_var;} ;; |
1803 |
esac ;; |
1804 |
esac |
1805 |
done |
1806 |
(set) 2>&1 | |
1807 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1808 |
*${as_nl}ac_space=\ *) |
1809 |
sed -n \ |
1810 |
"s/'\''/'\''\\\\'\'''\''/g; |
1811 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1812 |
;; #( |
1813 |
*) |
1814 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1815 |
;; |
1816 |
esac | |
1817 |
sort |
1818 |
) |
1819 |
echo |
1820 |
|
1821 |
$as_echo "## ----------------- ## |
1822 |
## Output variables. ## |
1823 |
## ----------------- ##" |
1824 |
echo |
1825 |
for ac_var in $ac_subst_vars |
1826 |
do |
1827 |
eval ac_val=\$$ac_var |
1828 |
case $ac_val in |
1829 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1830 |
esac |
1831 |
$as_echo "$ac_var='\''$ac_val'\''" |
1832 |
done | sort |
1833 |
echo |
1834 |
|
1835 |
if test -n "$ac_subst_files"; then |
1836 |
$as_echo "## ------------------- ## |
1837 |
## File substitutions. ## |
1838 |
## ------------------- ##" |
1839 |
echo |
1840 |
for ac_var in $ac_subst_files |
1841 |
do |
1842 |
eval ac_val=\$$ac_var |
1843 |
case $ac_val in |
1844 |
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1845 |
esac |
1846 |
$as_echo "$ac_var='\''$ac_val'\''" |
1847 |
done | sort |
1848 |
echo |
1849 |
fi |
1850 |
|
1851 |
if test -s confdefs.h; then |
1852 |
$as_echo "## ----------- ## |
1853 |
## confdefs.h. ## |
1854 |
## ----------- ##" |
1855 |
echo |
1856 |
cat confdefs.h |
1857 |
echo |
1858 |
fi |
1859 |
test "$ac_signal" != 0 && |
1860 |
$as_echo "$as_me: caught signal $ac_signal" |
1861 |
$as_echo "$as_me: exit $exit_status" |
1862 |
} >&5 |
1863 |
rm -f core *.core core.conftest.* && |
1864 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1865 |
exit $exit_status |
1866 |
' 0 |
1867 |
for ac_signal in 1 2 13 15; do |
1868 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
1869 |
done |
1870 |
ac_signal=0 |
1871 |
|
1872 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1873 |
rm -f -r conftest* confdefs.h |
1874 |
|
1875 |
$as_echo "/* confdefs.h */" > confdefs.h |
1876 |
|
1877 |
# Predefined preprocessor variables. |
1878 |
|
1879 |
cat >>confdefs.h <<_ACEOF |
1880 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
1881 |
_ACEOF |
1882 |
|
1883 |
cat >>confdefs.h <<_ACEOF |
1884 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1885 |
_ACEOF |
1886 |
|
1887 |
cat >>confdefs.h <<_ACEOF |
1888 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1889 |
_ACEOF |
1890 |
|
1891 |
cat >>confdefs.h <<_ACEOF |
1892 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
1893 |
_ACEOF |
1894 |
|
1895 |
cat >>confdefs.h <<_ACEOF |
1896 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1897 |
_ACEOF |
1898 |
|
1899 |
cat >>confdefs.h <<_ACEOF |
1900 |
#define PACKAGE_URL "$PACKAGE_URL" |
1901 |
_ACEOF |
1902 |
|
1903 |
|
1904 |
# Let the site file select an alternate cache file if it wants to. |
1905 |
# 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 |
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;; |
1913 |
*) ac_site_file1=./$CONFIG_SITE;; |
1914 |
esac |
1915 |
elif test "x$prefix" != xNONE; then |
1916 |
ac_site_file1=$prefix/share/config.site |
1917 |
ac_site_file2=$prefix/etc/config.site |
1918 |
else |
1919 |
ac_site_file1=$ac_default_prefix/share/config.site |
1920 |
ac_site_file2=$ac_default_prefix/etc/config.site |
1921 |
fi |
1922 |
for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
1923 |
do |
1924 |
test "x$ac_site_file" = xNONE && continue |
1925 |
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
1926 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
1927 |
$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
1928 |
sed 's/^/| /' "$ac_site_file" >&5 |
1929 |
. "$ac_site_file" \ |
1930 |
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
1931 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
1932 |
as_fn_error $? "failed to load site script $ac_site_file |
1933 |
See \`config.log' for more details" "$LINENO" 5; } |
1934 |
fi |
1935 |
done |
1936 |
|
1937 |
if test -r "$cache_file"; then |
1938 |
# 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. |
1940 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
1941 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
1942 |
$as_echo "$as_me: loading cache $cache_file" >&6;} |
1943 |
case $cache_file in |
1944 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
1945 |
*) . "./$cache_file";; |
1946 |
esac |
1947 |
fi |
1948 |
else |
1949 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
1950 |
$as_echo "$as_me: creating cache $cache_file" >&6;} |
1951 |
>$cache_file |
1952 |
fi |
1953 |
|
1954 |
# Check that the precious variables saved in the cache have kept the same |
1955 |
# value. |
1956 |
ac_cache_corrupted=false |
1957 |
for ac_var in $ac_precious_vars; do |
1958 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1959 |
eval ac_new_set=\$ac_env_${ac_var}_set |
1960 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1961 |
eval ac_new_val=\$ac_env_${ac_var}_value |
1962 |
case $ac_old_set,$ac_new_set in |
1963 |
set,) |
1964 |
{ $as_echo "$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;} |
1966 |
ac_cache_corrupted=: ;; |
1967 |
,set) |
1968 |
{ $as_echo "$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;} |
1970 |
ac_cache_corrupted=: ;; |
1971 |
,);; |
1972 |
*) |
1973 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
1974 |
# differences in whitespace do not lead to failure. |
1975 |
ac_old_val_w=`echo x $ac_old_val` |
1976 |
ac_new_val_w=`echo x $ac_new_val` |
1977 |
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 |
1979 |
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1980 |
ac_cache_corrupted=: |
1981 |
else |
1982 |
{ $as_echo "$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;} |
1984 |
eval $ac_var=\$ac_old_val |
1985 |
fi |
1986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
1987 |
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
1988 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
1989 |
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
1990 |
fi;; |
1991 |
esac |
1992 |
# Pass precious variables to config.status. |
1993 |
if test "$ac_new_set" = set; then |
1994 |
case $ac_new_val in |
1995 |
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1996 |
*) ac_arg=$ac_var=$ac_new_val ;; |
1997 |
esac |
1998 |
case " $ac_configure_args " in |
1999 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2000 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2001 |
esac |
2002 |
fi |
2003 |
done |
2004 |
if $ac_cache_corrupted; then |
2005 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2006 |
$as_echo "$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 |
2008 |
$as_echo "$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 |
2010 |
fi |
2011 |
## -------------------- ## |
2012 |
## Main body of script. ## |
2013 |
## -------------------- ## |
2014 |
|
2015 |
ac_ext=c |
2016 |
ac_cpp='$CPP $CPPFLAGS' |
2017 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2018 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2019 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2020 |
|
2021 |
|
2022 |
|
2023 |
ac_config_headers="$ac_config_headers config.h" |
2024 |
|
2025 |
|
2026 |
|
2027 |
ac_ext=c |
2028 |
ac_cpp='$CPP $CPPFLAGS' |
2029 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2030 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2031 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2032 |
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. |
2034 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2035 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2036 |
$as_echo_n "checking for $ac_word... " >&6; } |
2037 |
if ${ac_cv_prog_CC+:} false; then : |
2038 |
$as_echo_n "(cached) " >&6 |
2039 |
else |
2040 |
if test -n "$CC"; then |
2041 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2042 |
else |
2043 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2044 |
for as_dir in $PATH |
2045 |
do |
2046 |
IFS=$as_save_IFS |
2047 |
test -z "$as_dir" && as_dir=. |
2048 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2049 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2050 |
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 |
2052 |
break 2 |
2053 |
fi |
2054 |
done |
2055 |
done |
2056 |
IFS=$as_save_IFS |
2057 |
|
2058 |
fi |
2059 |
fi |
2060 |
CC=$ac_cv_prog_CC |
2061 |
if test -n "$CC"; then |
2062 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2063 |
$as_echo "$CC" >&6; } |
2064 |
else |
2065 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2066 |
$as_echo "no" >&6; } |
2067 |
fi |
2068 |
|
2069 |
|
2070 |
fi |
2071 |
if test -z "$ac_cv_prog_CC"; then |
2072 |
ac_ct_CC=$CC |
2073 |
# Extract the first word of "gcc", so it can be a program name with args. |
2074 |
set dummy gcc; ac_word=$2 |
2075 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2076 |
$as_echo_n "checking for $ac_word... " >&6; } |
2077 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2078 |
$as_echo_n "(cached) " >&6 |
2079 |
else |
2080 |
if test -n "$ac_ct_CC"; then |
2081 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2082 |
else |
2083 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2084 |
for as_dir in $PATH |
2085 |
do |
2086 |
IFS=$as_save_IFS |
2087 |
test -z "$as_dir" && as_dir=. |
2088 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2089 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2090 |
ac_cv_prog_ac_ct_CC="gcc" |
2091 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2092 |
break 2 |
2093 |
fi |
2094 |
done |
2095 |
done |
2096 |
IFS=$as_save_IFS |
2097 |
|
2098 |
fi |
2099 |
fi |
2100 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2101 |
if test -n "$ac_ct_CC"; then |
2102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2103 |
$as_echo "$ac_ct_CC" >&6; } |
2104 |
else |
2105 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2106 |
$as_echo "no" >&6; } |
2107 |
fi |
2108 |
|
2109 |
if test "x$ac_ct_CC" = x; then |
2110 |
CC="" |
2111 |
else |
2112 |
case $cross_compiling:$ac_tool_warned in |
2113 |
yes:) |
2114 |
{ $as_echo "$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;} |
2116 |
ac_tool_warned=yes ;; |
2117 |
esac |
2118 |
CC=$ac_ct_CC |
2119 |
fi |
2120 |
else |
2121 |
CC="$ac_cv_prog_CC" |
2122 |
fi |
2123 |
|
2124 |
if test -z "$CC"; then |
2125 |
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. |
2127 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2128 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2129 |
$as_echo_n "checking for $ac_word... " >&6; } |
2130 |
if ${ac_cv_prog_CC+:} false; then : |
2131 |
$as_echo_n "(cached) " >&6 |
2132 |
else |
2133 |
if test -n "$CC"; then |
2134 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2135 |
else |
2136 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2137 |
for as_dir in $PATH |
2138 |
do |
2139 |
IFS=$as_save_IFS |
2140 |
test -z "$as_dir" && as_dir=. |
2141 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2142 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2143 |
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 |
2145 |
break 2 |
2146 |
fi |
2147 |
done |
2148 |
done |
2149 |
IFS=$as_save_IFS |
2150 |
|
2151 |
fi |
2152 |
fi |
2153 |
CC=$ac_cv_prog_CC |
2154 |
if test -n "$CC"; then |
2155 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2156 |
$as_echo "$CC" >&6; } |
2157 |
else |
2158 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2159 |
$as_echo "no" >&6; } |
2160 |
fi |
2161 |
|
2162 |
|
2163 |
fi |
2164 |
fi |
2165 |
if test -z "$CC"; then |
2166 |
# Extract the first word of "cc", so it can be a program name with args. |
2167 |
set dummy cc; ac_word=$2 |
2168 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2169 |
$as_echo_n "checking for $ac_word... " >&6; } |
2170 |
if ${ac_cv_prog_CC+:} false; then : |
2171 |
$as_echo_n "(cached) " >&6 |
2172 |
else |
2173 |
if test -n "$CC"; then |
2174 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2175 |
else |
2176 |
ac_prog_rejected=no |
2177 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2178 |
for as_dir in $PATH |
2179 |
do |
2180 |
IFS=$as_save_IFS |
2181 |
test -z "$as_dir" && as_dir=. |
2182 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2183 |
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 |
2185 |
ac_prog_rejected=yes |
2186 |
continue |
2187 |
fi |
2188 |
ac_cv_prog_CC="cc" |
2189 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2190 |
break 2 |
2191 |
fi |
2192 |
done |
2193 |
done |
2194 |
IFS=$as_save_IFS |
2195 |
|
2196 |
if test $ac_prog_rejected = yes; then |
2197 |
# We found a bogon in the path, so make sure we never use it. |
2198 |
set dummy $ac_cv_prog_CC |
2199 |
shift |
2200 |
if test $# != 0; then |
2201 |
# We chose a different compiler from the bogus one. |
2202 |
# 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. |
2204 |
shift |
2205 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2206 |
fi |
2207 |
fi |
2208 |
fi |
2209 |
fi |
2210 |
CC=$ac_cv_prog_CC |
2211 |
if test -n "$CC"; then |
2212 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2213 |
$as_echo "$CC" >&6; } |
2214 |
else |
2215 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2216 |
$as_echo "no" >&6; } |
2217 |
fi |
2218 |
|
2219 |
|
2220 |
fi |
2221 |
if test -z "$CC"; then |
2222 |
if test -n "$ac_tool_prefix"; then |
2223 |
for ac_prog in cl.exe |
2224 |
do |
2225 |
# 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 |
2227 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2228 |
$as_echo_n "checking for $ac_word... " >&6; } |
2229 |
if ${ac_cv_prog_CC+:} false; then : |
2230 |
$as_echo_n "(cached) " >&6 |
2231 |
else |
2232 |
if test -n "$CC"; then |
2233 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
2234 |
else |
2235 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2236 |
for as_dir in $PATH |
2237 |
do |
2238 |
IFS=$as_save_IFS |
2239 |
test -z "$as_dir" && as_dir=. |
2240 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2241 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2242 |
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 |
2244 |
break 2 |
2245 |
fi |
2246 |
done |
2247 |
done |
2248 |
IFS=$as_save_IFS |
2249 |
|
2250 |
fi |
2251 |
fi |
2252 |
CC=$ac_cv_prog_CC |
2253 |
if test -n "$CC"; then |
2254 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
2255 |
$as_echo "$CC" >&6; } |
2256 |
else |
2257 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2258 |
$as_echo "no" >&6; } |
2259 |
fi |
2260 |
|
2261 |
|
2262 |
test -n "$CC" && break |
2263 |
done |
2264 |
fi |
2265 |
if test -z "$CC"; then |
2266 |
ac_ct_CC=$CC |
2267 |
for ac_prog in cl.exe |
2268 |
do |
2269 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
2270 |
set dummy $ac_prog; ac_word=$2 |
2271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2272 |
$as_echo_n "checking for $ac_word... " >&6; } |
2273 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
2274 |
$as_echo_n "(cached) " >&6 |
2275 |
else |
2276 |
if test -n "$ac_ct_CC"; then |
2277 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2278 |
else |
2279 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2280 |
for as_dir in $PATH |
2281 |
do |
2282 |
IFS=$as_save_IFS |
2283 |
test -z "$as_dir" && as_dir=. |
2284 |
for ac_exec_ext in '' $ac_executable_extensions; do |
2285 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2286 |
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 |
2288 |
break 2 |
2289 |
fi |
2290 |
done |
2291 |
done |
2292 |
IFS=$as_save_IFS |
2293 |
|
2294 |
fi |
2295 |
fi |
2296 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2297 |
if test -n "$ac_ct_CC"; then |
2298 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
2299 |
$as_echo "$ac_ct_CC" >&6; } |
2300 |
else |
2301 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2302 |
$as_echo "no" >&6; } |
2303 |
fi |
2304 |
|
2305 |
|
2306 |
test -n "$ac_ct_CC" && break |
2307 |
done |
2308 |
|
2309 |
if test "x$ac_ct_CC" = x; then |
2310 |
CC="" |
2311 |
else |
2312 |
case $cross_compiling:$ac_tool_warned in |
2313 |
yes:) |
2314 |
{ $as_echo "$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;} |
2316 |
ac_tool_warned=yes ;; |
2317 |
esac |
2318 |
CC=$ac_ct_CC |
2319 |
fi |
2320 |
fi |
2321 |
|
2322 |
fi |
2323 |
|
2324 |
|
2325 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2326 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2327 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
2328 |
See \`config.log' for more details" "$LINENO" 5; } |
2329 |
|
2330 |
# Provide some information about the compiler. |
2331 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
2332 |
set X $ac_compile |
2333 |
ac_compiler=$2 |
2334 |
for ac_option in --version -v -V -qversion; do |
2335 |
{ { ac_try="$ac_compiler $ac_option >&5" |
2336 |
case "(($ac_try" in |
2337 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2338 |
*) ac_try_echo=$ac_try;; |
2339 |
esac |
2340 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2341 |
$as_echo "$ac_try_echo"; } >&5 |
2342 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
2343 |
ac_status=$? |
2344 |
if test -s conftest.err; then |
2345 |
sed '10a\ |
2346 |
... rest of stderr output deleted ... |
2347 |
10q' conftest.err >conftest.er1 |
2348 |
cat conftest.er1 >&5 |
2349 |
fi |
2350 |
rm -f conftest.er1 conftest.err |
2351 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2352 |
test $ac_status = 0; } |
2353 |
done |
2354 |
|
2355 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2356 |
/* end confdefs.h. */ |
2357 |
|
2358 |
int |
2359 |
main () |
2360 |
{ |
2361 |
|
2362 |
; |
2363 |
return 0; |
2364 |
} |
2365 |
_ACEOF |
2366 |
ac_clean_files_save=$ac_clean_files |
2367 |
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. |
2369 |
# It will help us diagnose broken compilers, and finding out an intuition |
2370 |
# of exeext. |
2371 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
2372 |
$as_echo_n "checking whether the C compiler works... " >&6; } |
2373 |
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2374 |
|
2375 |
# The possible output files: |
2376 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
2377 |
|
2378 |
ac_rmfiles= |
2379 |
for ac_file in $ac_files |
2380 |
do |
2381 |
case $ac_file in |
2382 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2383 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2384 |
esac |
2385 |
done |
2386 |
rm -f $ac_rmfiles |
2387 |
|
2388 |
if { { ac_try="$ac_link_default" |
2389 |
case "(($ac_try" in |
2390 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2391 |
*) ac_try_echo=$ac_try;; |
2392 |
esac |
2393 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2394 |
$as_echo "$ac_try_echo"; } >&5 |
2395 |
(eval "$ac_link_default") 2>&5 |
2396 |
ac_status=$? |
2397 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2398 |
test $ac_status = 0; }; then : |
2399 |
# 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' |
2401 |
# 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 |
2403 |
# Autoconf. |
2404 |
for ac_file in $ac_files '' |
2405 |
do |
2406 |
test -f "$ac_file" || continue |
2407 |
case $ac_file in |
2408 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
2409 |
;; |
2410 |
[ab].out ) |
2411 |
# We found the default executable, but exeext='' is most |
2412 |
# certainly right. |
2413 |
break;; |
2414 |
*.* ) |
2415 |
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2416 |
then :; else |
2417 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2418 |
fi |
2419 |
# 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' |
2421 |
# argument, so we may need to know it at that point already. |
2422 |
# Even if this section looks crufty: it has the advantage of |
2423 |
# actually working. |
2424 |
break;; |
2425 |
* ) |
2426 |
break;; |
2427 |
esac |
2428 |
done |
2429 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
2430 |
|
2431 |
else |
2432 |
ac_file='' |
2433 |
fi |
2434 |
if test -z "$ac_file"; then : |
2435 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
2436 |
$as_echo "no" >&6; } |
2437 |
$as_echo "$as_me: failed program was:" >&5 |
2438 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2439 |
|
2440 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2441 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2442 |
as_fn_error 77 "C compiler cannot create executables |
2443 |
See \`config.log' for more details" "$LINENO" 5; } |
2444 |
else |
2445 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2446 |
$as_echo "yes" >&6; } |
2447 |
fi |
2448 |
{ $as_echo "$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; } |
2450 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2451 |
$as_echo "$ac_file" >&6; } |
2452 |
ac_exeext=$ac_cv_exeext |
2453 |
|
2454 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
2455 |
ac_clean_files=$ac_clean_files_save |
2456 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2457 |
$as_echo_n "checking for suffix of executables... " >&6; } |
2458 |
if { { ac_try="$ac_link" |
2459 |
case "(($ac_try" in |
2460 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2461 |
*) ac_try_echo=$ac_try;; |
2462 |
esac |
2463 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2464 |
$as_echo "$ac_try_echo"; } >&5 |
2465 |
(eval "$ac_link") 2>&5 |
2466 |
ac_status=$? |
2467 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2468 |
test $ac_status = 0; }; then : |
2469 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2470 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2471 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2472 |
# `rm'. |
2473 |
for ac_file in conftest.exe conftest conftest.*; do |
2474 |
test -f "$ac_file" || continue |
2475 |
case $ac_file in |
2476 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
2477 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2478 |
break;; |
2479 |
* ) break;; |
2480 |
esac |
2481 |
done |
2482 |
else |
2483 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2484 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2485 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
2486 |
See \`config.log' for more details" "$LINENO" 5; } |
2487 |
fi |
2488 |
rm -f conftest conftest$ac_cv_exeext |
2489 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
2490 |
$as_echo "$ac_cv_exeext" >&6; } |
2491 |
|
2492 |
rm -f conftest.$ac_ext |
2493 |
EXEEXT=$ac_cv_exeext |
2494 |
ac_exeext=$EXEEXT |
2495 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2496 |
/* end confdefs.h. */ |
2497 |
#include <stdio.h> |
2498 |
int |
2499 |
main () |
2500 |
{ |
2501 |
FILE *f = fopen ("conftest.out", "w"); |
2502 |
return ferror (f) || fclose (f) != 0; |
2503 |
|
2504 |
; |
2505 |
return 0; |
2506 |
} |
2507 |
_ACEOF |
2508 |
ac_clean_files="$ac_clean_files conftest.out" |
2509 |
# Check that the compiler produces executables we can run. If not, either |
2510 |
# the compiler is broken, or we cross compile. |
2511 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
2512 |
$as_echo_n "checking whether we are cross compiling... " >&6; } |
2513 |
if test "$cross_compiling" != yes; then |
2514 |
{ { ac_try="$ac_link" |
2515 |
case "(($ac_try" in |
2516 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2517 |
*) ac_try_echo=$ac_try;; |
2518 |
esac |
2519 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2520 |
$as_echo "$ac_try_echo"; } >&5 |
2521 |
(eval "$ac_link") 2>&5 |
2522 |
ac_status=$? |
2523 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2524 |
test $ac_status = 0; } |
2525 |
if { ac_try='./conftest$ac_cv_exeext' |
2526 |
{ { case "(($ac_try" in |
2527 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2528 |
*) ac_try_echo=$ac_try;; |
2529 |
esac |
2530 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2531 |
$as_echo "$ac_try_echo"; } >&5 |
2532 |
(eval "$ac_try") 2>&5 |
2533 |
ac_status=$? |
2534 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2535 |
test $ac_status = 0; }; }; then |
2536 |
cross_compiling=no |
2537 |
else |
2538 |
if test "$cross_compiling" = maybe; then |
2539 |
cross_compiling=yes |
2540 |
else |
2541 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2542 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2543 |
as_fn_error $? "cannot run C compiled programs. |
2544 |
If you meant to cross compile, use \`--host'. |
2545 |
See \`config.log' for more details" "$LINENO" 5; } |
2546 |
fi |
2547 |
fi |
2548 |
fi |
2549 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
2550 |
$as_echo "$cross_compiling" >&6; } |
2551 |
|
2552 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
2553 |
ac_clean_files=$ac_clean_files_save |
2554 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
2555 |
$as_echo_n "checking for suffix of object files... " >&6; } |
2556 |
if ${ac_cv_objext+:} false; then : |
2557 |
$as_echo_n "(cached) " >&6 |
2558 |
else |
2559 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2560 |
/* end confdefs.h. */ |
2561 |
|
2562 |
int |
2563 |
main () |
2564 |
{ |
2565 |
|
2566 |
; |
2567 |
return 0; |
2568 |
} |
2569 |
_ACEOF |
2570 |
rm -f conftest.o conftest.obj |
2571 |
if { { ac_try="$ac_compile" |
2572 |
case "(($ac_try" in |
2573 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2574 |
*) ac_try_echo=$ac_try;; |
2575 |
esac |
2576 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2577 |
$as_echo "$ac_try_echo"; } >&5 |
2578 |
(eval "$ac_compile") 2>&5 |
2579 |
ac_status=$? |
2580 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
2581 |
test $ac_status = 0; }; then : |
2582 |
for ac_file in conftest.o conftest.obj conftest.*; do |
2583 |
test -f "$ac_file" || continue; |
2584 |
case $ac_file in |
2585 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
2586 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2587 |
break;; |
2588 |
esac |
2589 |
done |
2590 |
else |
2591 |
$as_echo "$as_me: failed program was:" >&5 |
2592 |
sed 's/^/| /' conftest.$ac_ext >&5 |
2593 |
|
2594 |
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2595 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2596 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
2597 |
See \`config.log' for more details" "$LINENO" 5; } |
2598 |
fi |
2599 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2600 |
fi |
2601 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
2602 |
$as_echo "$ac_cv_objext" >&6; } |
2603 |
OBJEXT=$ac_cv_objext |
2604 |
ac_objext=$OBJEXT |
2605 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
2606 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
2607 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
2608 |
$as_echo_n "(cached) " >&6 |
2609 |
else |
2610 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2611 |
/* end confdefs.h. */ |
2612 |
|
2613 |
int |
2614 |
main () |
2615 |
{ |
2616 |
#ifndef __GNUC__ |
2617 |
choke me |
2618 |
#endif |
2619 |
|
2620 |
; |
2621 |
return 0; |
2622 |
} |
2623 |
_ACEOF |
2624 |
if ac_fn_c_try_compile "$LINENO"; then : |
2625 |
ac_compiler_gnu=yes |
2626 |
else |
2627 |
ac_compiler_gnu=no |
2628 |
fi |
2629 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2630 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2631 |
|
2632 |
fi |
2633 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2634 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
2635 |
if test $ac_compiler_gnu = yes; then |
2636 |
GCC=yes |
2637 |
else |
2638 |
GCC= |
2639 |
fi |
2640 |
ac_test_CFLAGS=${CFLAGS+set} |
2641 |
ac_save_CFLAGS=$CFLAGS |
2642 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
2643 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
2644 |
if ${ac_cv_prog_cc_g+:} false; then : |
2645 |
$as_echo_n "(cached) " >&6 |
2646 |
else |
2647 |
ac_save_c_werror_flag=$ac_c_werror_flag |
2648 |
ac_c_werror_flag=yes |
2649 |
ac_cv_prog_cc_g=no |
2650 |
CFLAGS="-g" |
2651 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2652 |
/* end confdefs.h. */ |
2653 |
|
2654 |
int |
2655 |
main () |
2656 |
{ |
2657 |
|
2658 |
; |
2659 |
return 0; |
2660 |
} |
2661 |
_ACEOF |
2662 |
if ac_fn_c_try_compile "$LINENO"; then : |
2663 |
ac_cv_prog_cc_g=yes |
2664 |
else |
2665 |
CFLAGS="" |
2666 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2667 |
/* end confdefs.h. */ |
2668 |
|
2669 |
int |
2670 |
main () |
2671 |
{ |
2672 |
|
2673 |
; |
2674 |
return 0; |
2675 |
} |
2676 |
_ACEOF |
2677 |
if ac_fn_c_try_compile "$LINENO"; then : |
2678 |
|
2679 |
else |
2680 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2681 |
CFLAGS="-g" |
2682 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2683 |
/* end confdefs.h. */ |
2684 |
|
2685 |
int |
2686 |
main () |
2687 |
{ |
2688 |
|
2689 |
; |
2690 |
return 0; |
2691 |
} |
2692 |
_ACEOF |
2693 |
if ac_fn_c_try_compile "$LINENO"; then : |
2694 |
ac_cv_prog_cc_g=yes |
2695 |
fi |
2696 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2697 |
fi |
2698 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2699 |
fi |
2700 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2701 |
ac_c_werror_flag=$ac_save_c_werror_flag |
2702 |
fi |
2703 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
2704 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
2705 |
if test "$ac_test_CFLAGS" = set; then |
2706 |
CFLAGS=$ac_save_CFLAGS |
2707 |
elif test $ac_cv_prog_cc_g = yes; then |
2708 |
if test "$GCC" = yes; then |
2709 |
CFLAGS="-g -O2" |
2710 |
else |
2711 |
CFLAGS="-g" |
2712 |
fi |
2713 |
else |
2714 |
if test "$GCC" = yes; then |
2715 |
CFLAGS="-O2" |
2716 |
else |
2717 |
CFLAGS= |
2718 |
fi |
2719 |
fi |
2720 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
2721 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
2722 |
if ${ac_cv_prog_cc_c89+:} false; then : |
2723 |
$as_echo_n "(cached) " >&6 |
2724 |
else |
2725 |
ac_cv_prog_cc_c89=no |
2726 |
ac_save_CC=$CC |
2727 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2728 |
/* end confdefs.h. */ |
2729 |
#include <stdarg.h> |
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 |
2779 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2780 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2781 |
do |
2782 |
CC="$ac_save_CC $ac_arg" |
2783 |
if ac_fn_c_try_compile "$LINENO"; then : |
2784 |
ac_cv_prog_cc_c89=$ac_arg |
2785 |
fi |
2786 |
rm -f core conftest.err conftest.$ac_objext |
2787 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
2788 |
done |
2789 |
rm -f conftest.$ac_ext |
2790 |
CC=$ac_save_CC |
2791 |
|
2792 |
fi |
2793 |
# AC_CACHE_VAL |
2794 |
case "x$ac_cv_prog_cc_c89" in |
2795 |
x) |
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 |
2800 |
$as_echo "unsupported" >&6; } ;; |
2801 |
*) |
2802 |
CC="$CC $ac_cv_prog_cc_c89" |
2803 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
2804 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
2805 |
esac |
2806 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
2807 |
|
2808 |
fi |
2809 |
|
2810 |
ac_ext=c |
2811 |
ac_cpp='$CPP $CPPFLAGS' |
2812 |
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' |
2814 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2815 |
|
2816 |
|
2817 |
ac_ext=c |
2818 |
ac_cpp='$CPP $CPPFLAGS' |
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 |
2838 |
# Use a header file that comes with gcc, so configuring glibc |
2839 |
# with a fresh cross-compiler works. |
2840 |
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2841 |
# <limits.h> exists even on freestanding compilers. |
2842 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
2843 |
# not just through cpp. "Syntax error" is here to catch this case. |
2844 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2845 |
/* 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 |
|
2855 |
else |
2856 |
# Broken: fails on valid input. |
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 |
3098 |
main () |
3099 |
{ |
3100 |
|
3101 |
; |
3102 |
return 0; |
3103 |
} |
3104 |
_ACEOF |
3105 |
if ac_fn_c_try_compile "$LINENO"; then : |
3106 |
ac_cv_header_stdc=yes |
3107 |
else |
3108 |
ac_cv_header_stdc=no |
3109 |
fi |
3110 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3111 |
|
3112 |
if test $ac_cv_header_stdc = yes; then |
3113 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3114 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3115 |
/* end confdefs.h. */ |
3116 |
#include <string.h> |
3117 |
|
3118 |
_ACEOF |
3119 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
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 |
3168 |
main () |
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 |
{ |
3249 |
|
3250 |
; |
3251 |
return 0; |
3252 |
} |
3253 |
_ACEOF |
3254 |
if ac_fn_c_try_compile "$LINENO"; then : |
3255 |
ac_cv_safe_to_define___extensions__=yes |
3256 |
else |
3257 |
ac_cv_safe_to_define___extensions__=no |
3258 |
fi |
3259 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3260 |
fi |
3261 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
3262 |
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
3263 |
test $ac_cv_safe_to_define___extensions__ = yes && |
3264 |
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
3265 |
|
3266 |
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
3267 |
|
3268 |
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
3269 |
|
3270 |
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
3271 |
|
3272 |
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
3273 |
|
3274 |
|
3275 |
|
3276 |
ac_ext=c |
3277 |
ac_cpp='$CPP $CPPFLAGS' |
3278 |
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' |
3280 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3281 |
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. |
3283 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3284 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3285 |
$as_echo_n "checking for $ac_word... " >&6; } |
3286 |
if ${ac_cv_prog_CC+:} false; then : |
3287 |
$as_echo_n "(cached) " >&6 |
3288 |
else |
3289 |
if test -n "$CC"; then |
3290 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3291 |
else |
3292 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3293 |
for as_dir in $PATH |
3294 |
do |
3295 |
IFS=$as_save_IFS |
3296 |
test -z "$as_dir" && as_dir=. |
3297 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3298 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3299 |
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 |
3301 |
break 2 |
3302 |
fi |
3303 |
done |
3304 |
done |
3305 |
IFS=$as_save_IFS |
3306 |
|
3307 |
fi |
3308 |
fi |
3309 |
CC=$ac_cv_prog_CC |
3310 |
if test -n "$CC"; then |
3311 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3312 |
$as_echo "$CC" >&6; } |
3313 |
else |
3314 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3315 |
$as_echo "no" >&6; } |
3316 |
fi |
3317 |
|
3318 |
|
3319 |
fi |
3320 |
if test -z "$ac_cv_prog_CC"; then |
3321 |
ac_ct_CC=$CC |
3322 |
# Extract the first word of "gcc", so it can be a program name with args. |
3323 |
set dummy gcc; ac_word=$2 |
3324 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3325 |
$as_echo_n "checking for $ac_word... " >&6; } |
3326 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3327 |
$as_echo_n "(cached) " >&6 |
3328 |
else |
3329 |
if test -n "$ac_ct_CC"; then |
3330 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3331 |
else |
3332 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3333 |
for as_dir in $PATH |
3334 |
do |
3335 |
IFS=$as_save_IFS |
3336 |
test -z "$as_dir" && as_dir=. |
3337 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3338 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3339 |
ac_cv_prog_ac_ct_CC="gcc" |
3340 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3341 |
break 2 |
3342 |
fi |
3343 |
done |
3344 |
done |
3345 |
IFS=$as_save_IFS |
3346 |
|
3347 |
fi |
3348 |
fi |
3349 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3350 |
if test -n "$ac_ct_CC"; then |
3351 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3352 |
$as_echo "$ac_ct_CC" >&6; } |
3353 |
else |
3354 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3355 |
$as_echo "no" >&6; } |
3356 |
fi |
3357 |
|
3358 |
if test "x$ac_ct_CC" = x; then |
3359 |
CC="" |
3360 |
else |
3361 |
case $cross_compiling:$ac_tool_warned in |
3362 |
yes:) |
3363 |
{ $as_echo "$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;} |
3365 |
ac_tool_warned=yes ;; |
3366 |
esac |
3367 |
CC=$ac_ct_CC |
3368 |
fi |
3369 |
else |
3370 |
CC="$ac_cv_prog_CC" |
3371 |
fi |
3372 |
|
3373 |
if test -z "$CC"; then |
3374 |
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. |
3376 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3377 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3378 |
$as_echo_n "checking for $ac_word... " >&6; } |
3379 |
if ${ac_cv_prog_CC+:} false; then : |
3380 |
$as_echo_n "(cached) " >&6 |
3381 |
else |
3382 |
if test -n "$CC"; then |
3383 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3384 |
else |
3385 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3386 |
for as_dir in $PATH |
3387 |
do |
3388 |
IFS=$as_save_IFS |
3389 |
test -z "$as_dir" && as_dir=. |
3390 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3391 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3392 |
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 |
3394 |
break 2 |
3395 |
fi |
3396 |
done |
3397 |
done |
3398 |
IFS=$as_save_IFS |
3399 |
|
3400 |
fi |
3401 |
fi |
3402 |
CC=$ac_cv_prog_CC |
3403 |
if test -n "$CC"; then |
3404 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3405 |
$as_echo "$CC" >&6; } |
3406 |
else |
3407 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3408 |
$as_echo "no" >&6; } |
3409 |
fi |
3410 |
|
3411 |
|
3412 |
fi |
3413 |
fi |
3414 |
if test -z "$CC"; then |
3415 |
# Extract the first word of "cc", so it can be a program name with args. |
3416 |
set dummy cc; ac_word=$2 |
3417 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3418 |
$as_echo_n "checking for $ac_word... " >&6; } |
3419 |
if ${ac_cv_prog_CC+:} false; then : |
3420 |
$as_echo_n "(cached) " >&6 |
3421 |
else |
3422 |
if test -n "$CC"; then |
3423 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3424 |
else |
3425 |
ac_prog_rejected=no |
3426 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3427 |
for as_dir in $PATH |
3428 |
do |
3429 |
IFS=$as_save_IFS |
3430 |
test -z "$as_dir" && as_dir=. |
3431 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3432 |
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 |
3434 |
ac_prog_rejected=yes |
3435 |
continue |
3436 |
fi |
3437 |
ac_cv_prog_CC="cc" |
3438 |
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3439 |
break 2 |
3440 |
fi |
3441 |
done |
3442 |
done |
3443 |
IFS=$as_save_IFS |
3444 |
|
3445 |
if test $ac_prog_rejected = yes; then |
3446 |
# We found a bogon in the path, so make sure we never use it. |
3447 |
set dummy $ac_cv_prog_CC |
3448 |
shift |
3449 |
if test $# != 0; then |
3450 |
# We chose a different compiler from the bogus one. |
3451 |
# 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. |
3453 |
shift |
3454 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3455 |
fi |
3456 |
fi |
3457 |
fi |
3458 |
fi |
3459 |
CC=$ac_cv_prog_CC |
3460 |
if test -n "$CC"; then |
3461 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3462 |
$as_echo "$CC" >&6; } |
3463 |
else |
3464 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3465 |
$as_echo "no" >&6; } |
3466 |
fi |
3467 |
|
3468 |
|
3469 |
fi |
3470 |
if test -z "$CC"; then |
3471 |
if test -n "$ac_tool_prefix"; then |
3472 |
for ac_prog in cl.exe |
3473 |
do |
3474 |
# 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 |
3476 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3477 |
$as_echo_n "checking for $ac_word... " >&6; } |
3478 |
if ${ac_cv_prog_CC+:} false; then : |
3479 |
$as_echo_n "(cached) " >&6 |
3480 |
else |
3481 |
if test -n "$CC"; then |
3482 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
3483 |
else |
3484 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3485 |
for as_dir in $PATH |
3486 |
do |
3487 |
IFS=$as_save_IFS |
3488 |
test -z "$as_dir" && as_dir=. |
3489 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3490 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3491 |
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 |
3493 |
break 2 |
3494 |
fi |
3495 |
done |
3496 |
done |
3497 |
IFS=$as_save_IFS |
3498 |
|
3499 |
fi |
3500 |
fi |
3501 |
CC=$ac_cv_prog_CC |
3502 |
if test -n "$CC"; then |
3503 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3504 |
$as_echo "$CC" >&6; } |
3505 |
else |
3506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3507 |
$as_echo "no" >&6; } |
3508 |
fi |
3509 |
|
3510 |
|
3511 |
test -n "$CC" && break |
3512 |
done |
3513 |
fi |
3514 |
if test -z "$CC"; then |
3515 |
ac_ct_CC=$CC |
3516 |
for ac_prog in cl.exe |
3517 |
do |
3518 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
3519 |
set dummy $ac_prog; ac_word=$2 |
3520 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3521 |
$as_echo_n "checking for $ac_word... " >&6; } |
3522 |
if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3523 |
$as_echo_n "(cached) " >&6 |
3524 |
else |
3525 |
if test -n "$ac_ct_CC"; then |
3526 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3527 |
else |
3528 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3529 |
for as_dir in $PATH |
3530 |
do |
3531 |
IFS=$as_save_IFS |
3532 |
test -z "$as_dir" && as_dir=. |
3533 |
for ac_exec_ext in '' $ac_executable_extensions; do |
3534 |
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3535 |
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 |
3537 |
break 2 |
3538 |
fi |
3539 |
done |
3540 |
done |
3541 |
IFS=$as_save_IFS |
3542 |
|
3543 |
fi |
3544 |
fi |
3545 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3546 |
if test -n "$ac_ct_CC"; then |
3547 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3548 |
$as_echo "$ac_ct_CC" >&6; } |
3549 |
else |
3550 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3551 |
$as_echo "no" >&6; } |
3552 |
fi |
3553 |
|
3554 |
|
3555 |
test -n "$ac_ct_CC" && break |
3556 |
done |
3557 |
|
3558 |
if test "x$ac_ct_CC" = x; then |
3559 |
CC="" |
3560 |
else |
3561 |
case $cross_compiling:$ac_tool_warned in |
3562 |
yes:) |
3563 |
{ $as_echo "$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;} |
3565 |
ac_tool_warned=yes ;; |
3566 |
esac |
3567 |
CC=$ac_ct_CC |
3568 |
fi |
3569 |
fi |
3570 |
|
3571 |
fi |
3572 |
|
3573 |
|
3574 |
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
3575 |
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
3576 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
3577 |
See \`config.log' for more details" "$LINENO" 5; } |
3578 |
|
3579 |
# Provide some information about the compiler. |
3580 |
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
3581 |
set X $ac_compile |
3582 |
ac_compiler=$2 |
3583 |
for ac_option in --version -v -V -qversion; do |
3584 |
{ { ac_try="$ac_compiler $ac_option >&5" |
3585 |
case "(($ac_try" in |
3586 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3587 |
*) ac_try_echo=$ac_try;; |
3588 |
esac |
3589 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
3590 |
$as_echo "$ac_try_echo"; } >&5 |
3591 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
3592 |
ac_status=$? |
3593 |
if test -s conftest.err; then |
3594 |
sed '10a\ |
3595 |
... rest of stderr output deleted ... |
3596 |
10q' conftest.err >conftest.er1 |
3597 |
cat conftest.er1 >&5 |
3598 |
fi |
3599 |
rm -f conftest.er1 conftest.err |
3600 |
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
3601 |
test $ac_status = 0; } |
3602 |
done |
3603 |
|
3604 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3605 |
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3606 |
if ${ac_cv_c_compiler_gnu+:} false; then : |
3607 |
$as_echo_n "(cached) " >&6 |
3608 |
else |
3609 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3610 |
/* end confdefs.h. */ |
3611 |
|
3612 |
int |
3613 |
main () |
3614 |
{ |
3615 |
#ifndef __GNUC__ |
3616 |
choke me |
3617 |
#endif |
3618 |
|
3619 |
; |
3620 |
return 0; |
3621 |
} |
3622 |
_ACEOF |
3623 |
if ac_fn_c_try_compile "$LINENO"; then : |
3624 |
ac_compiler_gnu=yes |
3625 |
else |
3626 |
ac_compiler_gnu=no |
3627 |
fi |
3628 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3629 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3630 |
|
3631 |
fi |
3632 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
3633 |
$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
3634 |
if test $ac_compiler_gnu = yes; then |
3635 |
GCC=yes |
3636 |
else |
3637 |
GCC= |
3638 |
fi |
3639 |
ac_test_CFLAGS=${CFLAGS+set} |
3640 |
ac_save_CFLAGS=$CFLAGS |
3641 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3642 |
$as_echo_n "checking whether $CC accepts -g... " >&6; } |
3643 |
if ${ac_cv_prog_cc_g+:} false; then : |
3644 |
$as_echo_n "(cached) " >&6 |
3645 |
else |
3646 |
ac_save_c_werror_flag=$ac_c_werror_flag |
3647 |
ac_c_werror_flag=yes |
3648 |
ac_cv_prog_cc_g=no |
3649 |
CFLAGS="-g" |
3650 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3651 |
/* end confdefs.h. */ |
3652 |
|
3653 |
int |
3654 |
main () |
3655 |
{ |
3656 |
|
3657 |
; |
3658 |
return 0; |
3659 |
} |
3660 |
_ACEOF |
3661 |
if ac_fn_c_try_compile "$LINENO"; then : |
3662 |
ac_cv_prog_cc_g=yes |
3663 |
else |
3664 |
CFLAGS="" |
3665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3666 |
/* end confdefs.h. */ |
3667 |
|
3668 |
int |
3669 |
main () |
3670 |
{ |
3671 |
|
3672 |
; |
3673 |
return 0; |
3674 |
} |
3675 |
_ACEOF |
3676 |
if ac_fn_c_try_compile "$LINENO"; then : |
3677 |
|
3678 |
else |
3679 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3680 |
CFLAGS="-g" |
3681 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3682 |
/* end confdefs.h. */ |
3683 |
|
3684 |
int |
3685 |
main () |
3686 |
{ |
3687 |
|
3688 |
; |
3689 |
return 0; |
3690 |
} |
3691 |
_ACEOF |
3692 |
if ac_fn_c_try_compile "$LINENO"; then : |
3693 |
ac_cv_prog_cc_g=yes |
3694 |
fi |
3695 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3696 |
fi |
3697 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3698 |
fi |
3699 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3700 |
ac_c_werror_flag=$ac_save_c_werror_flag |
3701 |
fi |
3702 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3703 |
$as_echo "$ac_cv_prog_cc_g" >&6; } |
3704 |
if test "$ac_test_CFLAGS" = set; then |
3705 |
CFLAGS=$ac_save_CFLAGS |
3706 |
elif test $ac_cv_prog_cc_g = yes; then |
3707 |
if test "$GCC" = yes; then |
3708 |
CFLAGS="-g -O2" |
3709 |
else |
3710 |
CFLAGS="-g" |
3711 |
fi |
3712 |
else |
3713 |
if test "$GCC" = yes; then |
3714 |
CFLAGS="-O2" |
3715 |
else |
3716 |
CFLAGS= |
3717 |
fi |
3718 |
fi |
3719 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3720 |
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3721 |
if ${ac_cv_prog_cc_c89+:} false; then : |
3722 |
$as_echo_n "(cached) " >&6 |
3723 |
else |
3724 |
ac_cv_prog_cc_c89=no |
3725 |
ac_save_CC=$CC |
3726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3727 |
/* end confdefs.h. */ |
3728 |
#include <stdarg.h> |
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 |
3778 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3779 |
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3780 |
do |
3781 |
CC="$ac_save_CC $ac_arg" |
3782 |
if ac_fn_c_try_compile "$LINENO"; then : |
3783 |
ac_cv_prog_cc_c89=$ac_arg |
3784 |
fi |
3785 |
rm -f core conftest.err conftest.$ac_objext |
3786 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
3787 |
done |
3788 |
rm -f conftest.$ac_ext |
3789 |
CC=$ac_save_CC |
3790 |
|
3791 |
fi |
3792 |
# AC_CACHE_VAL |
3793 |
case "x$ac_cv_prog_cc_c89" in |
3794 |
x) |
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 |
3799 |
$as_echo "unsupported" >&6; } ;; |
3800 |
*) |
3801 |
CC="$CC $ac_cv_prog_cc_c89" |
3802 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
3803 |
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
3804 |
esac |
3805 |
if test "x$ac_cv_prog_cc_c89" != xno; then : |
3806 |
|
3807 |
fi |
3808 |
|
3809 |
ac_ext=c |
3810 |
ac_cpp='$CPP $CPPFLAGS' |
3811 |
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' |
3813 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3814 |
|
3815 |
|
3816 |
for ac_header in stdint.h sys/syscall.h sys/prctl.h |
3817 |
do : |
3818 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3819 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
3820 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
3821 |
cat >>confdefs.h <<_ACEOF |
3822 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3823 |
_ACEOF |
3824 |
|
3825 |
fi |
3826 |
|
3827 |
done |
3828 |
|
3829 |
|
3830 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5 |
3831 |
$as_echo_n "checking for library containing pthread_create... " >&6; } |
3832 |
if ${ac_cv_search_pthread_create+:} false; then : |
3833 |
$as_echo_n "(cached) " >&6 |
3834 |
else |
3835 |
ac_func_search_save_LIBS=$LIBS |
3836 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3837 |
/* end confdefs.h. */ |
3838 |
|
3839 |
/* Override any GCC internal prototype to avoid an error. |
3840 |
Use char because int might match the return type of a GCC |
3841 |
builtin and then its argument prototype would still apply. */ |
3842 |
#ifdef __cplusplus |
3843 |
extern "C" |
3844 |
#endif |
3845 |
char pthread_create (); |
3846 |
int |
3847 |
main () |
3848 |
{ |
3849 |
return pthread_create (); |
3850 |
; |
3851 |
return 0; |
3852 |
} |
3853 |
_ACEOF |
3854 |
for ac_lib in '' pthread pthreads pthreadVC2; do |
3855 |
if test -z "$ac_lib"; then |
3856 |
ac_res="none required" |
3857 |
else |
3858 |
ac_res=-l$ac_lib |
3859 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
3860 |
fi |
3861 |
if ac_fn_c_try_link "$LINENO"; then : |
3862 |
ac_cv_search_pthread_create=$ac_res |
3863 |
fi |
3864 |
rm -f core conftest.err conftest.$ac_objext \ |
3865 |
conftest$ac_exeext |
3866 |
if ${ac_cv_search_pthread_create+:} false; then : |
3867 |
break |
3868 |
fi |
3869 |
done |
3870 |
if ${ac_cv_search_pthread_create+:} false; then : |
3871 |
|
3872 |
else |
3873 |
ac_cv_search_pthread_create=no |
3874 |
fi |
3875 |
rm conftest.$ac_ext |
3876 |
LIBS=$ac_func_search_save_LIBS |
3877 |
fi |
3878 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5 |
3879 |
$as_echo "$ac_cv_search_pthread_create" >&6; } |
3880 |
ac_res=$ac_cv_search_pthread_create |
3881 |
if test "$ac_res" != no; then : |
3882 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
3883 |
|
3884 |
else |
3885 |
as_fn_error $? "pthread functions not found" "$LINENO" 5 |
3886 |
|
3887 |
fi |
3888 |
|
3889 |
|
3890 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for utimes" >&5 |
3891 |
$as_echo_n "checking for utimes... " >&6; } |
3892 |
if ${ac_cv_utimes+:} false; then : |
3893 |
$as_echo_n "(cached) " >&6 |
3894 |
else |
3895 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3896 |
/* end confdefs.h. */ |
3897 |
|
3898 |
#include <sys/types.h> |
3899 |
#include <sys/time.h> |
3900 |
#include <utime.h> |
3901 |
struct timeval tv[2]; |
3902 |
int res; |
3903 |
int main (void) |
3904 |
{ |
3905 |
res = utimes ("/", tv); |
3906 |
return 0; |
3907 |
} |
3908 |
|
3909 |
_ACEOF |
3910 |
if ac_fn_c_try_link "$LINENO"; then : |
3911 |
ac_cv_utimes=yes |
3912 |
else |
3913 |
ac_cv_utimes=no |
3914 |
fi |
3915 |
rm -f core conftest.err conftest.$ac_objext \ |
3916 |
conftest$ac_exeext conftest.$ac_ext |
3917 |
fi |
3918 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_utimes" >&5 |
3919 |
$as_echo "$ac_cv_utimes" >&6; } |
3920 |
test $ac_cv_utimes = yes && |
3921 |
$as_echo "#define HAVE_UTIMES 1" >>confdefs.h |
3922 |
|
3923 |
|
3924 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for futimes" >&5 |
3925 |
$as_echo_n "checking for futimes... " >&6; } |
3926 |
if ${ac_cv_futimes+:} false; then : |
3927 |
$as_echo_n "(cached) " >&6 |
3928 |
else |
3929 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3930 |
/* end confdefs.h. */ |
3931 |
|
3932 |
#include <sys/types.h> |
3933 |
#include <sys/time.h> |
3934 |
#include <utime.h> |
3935 |
struct timeval tv[2]; |
3936 |
int res; |
3937 |
int fd; |
3938 |
int main (void) |
3939 |
{ |
3940 |
res = futimes (fd, tv); |
3941 |
return 0; |
3942 |
} |
3943 |
|
3944 |
_ACEOF |
3945 |
if ac_fn_c_try_link "$LINENO"; then : |
3946 |
ac_cv_futimes=yes |
3947 |
else |
3948 |
ac_cv_futimes=no |
3949 |
fi |
3950 |
rm -f core conftest.err conftest.$ac_objext \ |
3951 |
conftest$ac_exeext conftest.$ac_ext |
3952 |
fi |
3953 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_futimes" >&5 |
3954 |
$as_echo "$ac_cv_futimes" >&6; } |
3955 |
test $ac_cv_futimes = yes && |
3956 |
$as_echo "#define HAVE_FUTIMES 1" >>confdefs.h |
3957 |
|
3958 |
|
3959 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readahead" >&5 |
3960 |
$as_echo_n "checking for readahead... " >&6; } |
3961 |
if ${ac_cv_readahead+:} false; then : |
3962 |
$as_echo_n "(cached) " >&6 |
3963 |
else |
3964 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3965 |
/* end confdefs.h. */ |
3966 |
|
3967 |
#include <fcntl.h> |
3968 |
int main (void) |
3969 |
{ |
3970 |
int fd = 0; |
3971 |
size_t count = 2; |
3972 |
ssize_t res; |
3973 |
res = readahead (fd, 0, count); |
3974 |
return 0; |
3975 |
} |
3976 |
|
3977 |
_ACEOF |
3978 |
if ac_fn_c_try_link "$LINENO"; then : |
3979 |
ac_cv_readahead=yes |
3980 |
else |
3981 |
ac_cv_readahead=no |
3982 |
fi |
3983 |
rm -f core conftest.err conftest.$ac_objext \ |
3984 |
conftest$ac_exeext conftest.$ac_ext |
3985 |
fi |
3986 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readahead" >&5 |
3987 |
$as_echo "$ac_cv_readahead" >&6; } |
3988 |
test $ac_cv_readahead = yes && |
3989 |
$as_echo "#define HAVE_READAHEAD 1" >>confdefs.h |
3990 |
|
3991 |
|
3992 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 |
3993 |
$as_echo_n "checking for fdatasync... " >&6; } |
3994 |
if ${ac_cv_fdatasync+:} false; then : |
3995 |
$as_echo_n "(cached) " >&6 |
3996 |
else |
3997 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3998 |
/* end confdefs.h. */ |
3999 |
|
4000 |
#include <unistd.h> |
4001 |
int main (void) |
4002 |
{ |
4003 |
int fd = 0; |
4004 |
fdatasync (fd); |
4005 |
return 0; |
4006 |
} |
4007 |
|
4008 |
_ACEOF |
4009 |
if ac_fn_c_try_link "$LINENO"; then : |
4010 |
ac_cv_fdatasync=yes |
4011 |
else |
4012 |
ac_cv_fdatasync=no |
4013 |
fi |
4014 |
rm -f core conftest.err conftest.$ac_objext \ |
4015 |
conftest$ac_exeext conftest.$ac_ext |
4016 |
fi |
4017 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fdatasync" >&5 |
4018 |
$as_echo "$ac_cv_fdatasync" >&6; } |
4019 |
test $ac_cv_fdatasync = yes && |
4020 |
$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h |
4021 |
|
4022 |
|
4023 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile" >&5 |
4024 |
$as_echo_n "checking for sendfile... " >&6; } |
4025 |
if ${ac_cv_sendfile+:} false; then : |
4026 |
$as_echo_n "(cached) " >&6 |
4027 |
else |
4028 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4029 |
/* end confdefs.h. */ |
4030 |
|
4031 |
# include <sys/types.h> |
4032 |
#if __linux |
4033 |
# include <sys/sendfile.h> |
4034 |
#elif __FreeBSD__ || defined __APPLE__ |
4035 |
# include <sys/socket.h> |
4036 |
# include <sys/uio.h> |
4037 |
#elif __hpux |
4038 |
# include <sys/socket.h> |
4039 |
#else |
4040 |
# error unsupported architecture |
4041 |
#endif |
4042 |
int main (void) |
4043 |
{ |
4044 |
int fd = 0; |
4045 |
off_t offset = 1; |
4046 |
size_t count = 2; |
4047 |
ssize_t res; |
4048 |
#if __linux |
4049 |
res = sendfile (fd, fd, &offset, count); |
4050 |
#elif __FreeBSD__ |
4051 |
res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
4052 |
#elif __hpux |
4053 |
res = sendfile (fd, fd, offset, count, 0, 0); |
4054 |
#endif |
4055 |
return 0; |
4056 |
} |
4057 |
|
4058 |
_ACEOF |
4059 |
if ac_fn_c_try_link "$LINENO"; then : |
4060 |
ac_cv_sendfile=yes |
4061 |
else |
4062 |
ac_cv_sendfile=no |
4063 |
fi |
4064 |
rm -f core conftest.err conftest.$ac_objext \ |
4065 |
conftest$ac_exeext conftest.$ac_ext |
4066 |
fi |
4067 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sendfile" >&5 |
4068 |
$as_echo "$ac_cv_sendfile" >&6; } |
4069 |
test $ac_cv_sendfile = yes && |
4070 |
$as_echo "#define HAVE_SENDFILE 1" >>confdefs.h |
4071 |
|
4072 |
|
4073 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sync_file_range" >&5 |
4074 |
$as_echo_n "checking for sync_file_range... " >&6; } |
4075 |
if ${ac_cv_sync_file_range+:} false; then : |
4076 |
$as_echo_n "(cached) " >&6 |
4077 |
else |
4078 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4079 |
/* end confdefs.h. */ |
4080 |
|
4081 |
#include <fcntl.h> |
4082 |
int main (void) |
4083 |
{ |
4084 |
int fd = 0; |
4085 |
off64_t offset = 1; |
4086 |
off64_t nbytes = 1; |
4087 |
unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER; |
4088 |
ssize_t res; |
4089 |
res = sync_file_range (fd, offset, nbytes, flags); |
4090 |
return 0; |
4091 |
} |
4092 |
|
4093 |
_ACEOF |
4094 |
if ac_fn_c_try_link "$LINENO"; then : |
4095 |
ac_cv_sync_file_range=yes |
4096 |
else |
4097 |
ac_cv_sync_file_range=no |
4098 |
fi |
4099 |
rm -f core conftest.err conftest.$ac_objext \ |
4100 |
conftest$ac_exeext conftest.$ac_ext |
4101 |
fi |
4102 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sync_file_range" >&5 |
4103 |
$as_echo "$ac_cv_sync_file_range" >&6; } |
4104 |
test $ac_cv_sync_file_range = yes && |
4105 |
$as_echo "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h |
4106 |
|
4107 |
|
4108 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fallocate" >&5 |
4109 |
$as_echo_n "checking for fallocate... " >&6; } |
4110 |
if ${ac_cv_linux_fallocate+:} false; then : |
4111 |
$as_echo_n "(cached) " >&6 |
4112 |
else |
4113 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4114 |
/* end confdefs.h. */ |
4115 |
|
4116 |
#include <fcntl.h> |
4117 |
int main (void) |
4118 |
{ |
4119 |
int fd = 0; |
4120 |
int mode = 0; |
4121 |
off_t offset = 1; |
4122 |
off_t len = 1; |
4123 |
int res; |
4124 |
res = fallocate (fd, mode, offset, len); |
4125 |
return 0; |
4126 |
} |
4127 |
|
4128 |
_ACEOF |
4129 |
if ac_fn_c_try_link "$LINENO"; then : |
4130 |
ac_cv_linux_fallocate=yes |
4131 |
else |
4132 |
ac_cv_linux_fallocate=no |
4133 |
fi |
4134 |
rm -f core conftest.err conftest.$ac_objext \ |
4135 |
conftest$ac_exeext conftest.$ac_ext |
4136 |
fi |
4137 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_fallocate" >&5 |
4138 |
$as_echo "$ac_cv_linux_fallocate" >&6; } |
4139 |
test $ac_cv_linux_fallocate = yes && |
4140 |
$as_echo "#define HAVE_LINUX_FALLOCATE 1" >>confdefs.h |
4141 |
|
4142 |
|
4143 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys_syncfs" >&5 |
4144 |
$as_echo_n "checking for sys_syncfs... " >&6; } |
4145 |
if ${ac_cv_sys_syncfs+:} false; then : |
4146 |
$as_echo_n "(cached) " >&6 |
4147 |
else |
4148 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4149 |
/* end confdefs.h. */ |
4150 |
|
4151 |
#include <unistd.h> |
4152 |
#include <sys/syscall.h> |
4153 |
int main (void) |
4154 |
{ |
4155 |
int res = syscall (__NR_syncfs, (int)0); |
4156 |
} |
4157 |
|
4158 |
_ACEOF |
4159 |
if ac_fn_c_try_link "$LINENO"; then : |
4160 |
ac_cv_sys_syncfs=yes |
4161 |
else |
4162 |
ac_cv_sys_syncfs=no |
4163 |
fi |
4164 |
rm -f core conftest.err conftest.$ac_objext \ |
4165 |
conftest$ac_exeext conftest.$ac_ext |
4166 |
fi |
4167 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_syncfs" >&5 |
4168 |
$as_echo "$ac_cv_sys_syncfs" >&6; } |
4169 |
test $ac_cv_sys_syncfs = yes && |
4170 |
$as_echo "#define HAVE_SYS_SYNCFS 1" >>confdefs.h |
4171 |
|
4172 |
|
4173 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prctl_set_name" >&5 |
4174 |
$as_echo_n "checking for prctl_set_name... " >&6; } |
4175 |
if ${ac_cv_prctl_set_name+:} false; then : |
4176 |
$as_echo_n "(cached) " >&6 |
4177 |
else |
4178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4179 |
/* end confdefs.h. */ |
4180 |
|
4181 |
#include <sys/prctl.h> |
4182 |
int main (void) |
4183 |
{ |
4184 |
char *name = "test123"; |
4185 |
int res = prctl (PR_SET_NAME, (unsigned long)name, 0, 0, 0); |
4186 |
} |
4187 |
|
4188 |
_ACEOF |
4189 |
if ac_fn_c_try_link "$LINENO"; then : |
4190 |
ac_cv_prctl_set_name=yes |
4191 |
else |
4192 |
ac_cv_prctl_set_name=no |
4193 |
fi |
4194 |
rm -f core conftest.err conftest.$ac_objext \ |
4195 |
conftest$ac_exeext conftest.$ac_ext |
4196 |
fi |
4197 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prctl_set_name" >&5 |
4198 |
$as_echo "$ac_cv_prctl_set_name" >&6; } |
4199 |
test $ac_cv_prctl_set_name = yes && |
4200 |
$as_echo "#define HAVE_PRCTL_SET_NAME 1" >>confdefs.h |
4201 |
|
4202 |
|
4203 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_close" >&5 |
4204 |
$as_echo_n "checking for posix_close... " >&6; } |
4205 |
if ${ac_cv_posix_close+:} false; then : |
4206 |
$as_echo_n "(cached) " >&6 |
4207 |
else |
4208 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4209 |
/* end confdefs.h. */ |
4210 |
|
4211 |
#include <unistd.h> |
4212 |
int res; |
4213 |
int main (void) |
4214 |
{ |
4215 |
res = posix_close (0, 0); /* we do not need any flags */ |
4216 |
return 0; |
4217 |
} |
4218 |
|
4219 |
_ACEOF |
4220 |
if ac_fn_c_try_link "$LINENO"; then : |
4221 |
ac_cv_posix_close=yes |
4222 |
else |
4223 |
ac_cv_posix_close=no |
4224 |
fi |
4225 |
rm -f core conftest.err conftest.$ac_objext \ |
4226 |
conftest$ac_exeext conftest.$ac_ext |
4227 |
fi |
4228 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_close" >&5 |
4229 |
$as_echo "$ac_cv_posix_close" >&6; } |
4230 |
test $ac_cv_posix_close = yes && |
4231 |
$as_echo "#define HAVE_POSIX_CLOSE 1" >>confdefs.h |
4232 |
|
4233 |
|
4234 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for renameat2" >&5 |
4235 |
$as_echo_n "checking for renameat2... " >&6; } |
4236 |
if ${ac_cv_renameat2+:} false; then : |
4237 |
$as_echo_n "(cached) " >&6 |
4238 |
else |
4239 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4240 |
/* end confdefs.h. */ |
4241 |
|
4242 |
#include <unistd.h> |
4243 |
#include <sys/syscall.h> |
4244 |
#include <linux/fs.h> |
4245 |
int res; |
4246 |
int main (void) |
4247 |
{ |
4248 |
res = syscall (SYS_renameat2, 0, 0, 0, 0, RENAME_EXCHANGE | RENAME_NOREPLACE); |
4249 |
return 0; |
4250 |
} |
4251 |
|
4252 |
_ACEOF |
4253 |
if ac_fn_c_try_link "$LINENO"; then : |
4254 |
ac_cv_renameat2=yes |
4255 |
else |
4256 |
ac_cv_renameat2=no |
4257 |
fi |
4258 |
rm -f core conftest.err conftest.$ac_objext \ |
4259 |
conftest$ac_exeext conftest.$ac_ext |
4260 |
fi |
4261 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_renameat2" >&5 |
4262 |
$as_echo "$ac_cv_renameat2" >&6; } |
4263 |
test $ac_cv_renameat2 = yes && |
4264 |
$as_echo "#define HAVE_RENAMEAT2 1" >>confdefs.h |
4265 |
|
4266 |
|
4267 |
|
4268 |
|
4269 |
# for these to work, you need to run autoheader in IO::AIO, not libeio :( |
4270 |
|
4271 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for set/getrlimit" >&5 |
4272 |
$as_echo_n "checking for set/getrlimit... " >&6; } |
4273 |
if ${ac_cv_rlimits+:} false; then : |
4274 |
$as_echo_n "(cached) " >&6 |
4275 |
else |
4276 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4277 |
/* end confdefs.h. */ |
4278 |
|
4279 |
#include <sys/time.h> |
4280 |
#include <sys/resource.h> |
4281 |
int res; |
4282 |
int main (void) |
4283 |
{ |
4284 |
struct rlimit srl; |
4285 |
srl.rlim_cur = srl.rlim_max = RLIM_INFINITY; |
4286 |
res = getrlimit (RLIMIT_NOFILE, &srl); |
4287 |
res = setrlimit (RLIMIT_NOFILE, &srl); |
4288 |
return 0; |
4289 |
} |
4290 |
|
4291 |
_ACEOF |
4292 |
if ac_fn_c_try_link "$LINENO"; then : |
4293 |
ac_cv_rlimits=yes |
4294 |
else |
4295 |
ac_cv_rlimits=no |
4296 |
fi |
4297 |
rm -f core conftest.err conftest.$ac_objext \ |
4298 |
conftest$ac_exeext conftest.$ac_ext |
4299 |
fi |
4300 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rlimits" >&5 |
4301 |
$as_echo "$ac_cv_rlimits" >&6; } |
4302 |
test $ac_cv_rlimits = yes && |
4303 |
$as_echo "#define HAVE_RLIMITS 1" >>confdefs.h |
4304 |
|
4305 |
|
4306 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_madvise" >&5 |
4307 |
$as_echo_n "checking for posix_madvise... " >&6; } |
4308 |
if ${ac_cv_posix_madvise+:} false; then : |
4309 |
$as_echo_n "(cached) " >&6 |
4310 |
else |
4311 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4312 |
/* end confdefs.h. */ |
4313 |
|
4314 |
#include <sys/mman.h> |
4315 |
int main (void) |
4316 |
{ |
4317 |
int res = posix_madvise ((void *)0, (size_t)0, POSIX_MADV_NORMAL); |
4318 |
int a = POSIX_MADV_SEQUENTIAL; |
4319 |
int b = POSIX_MADV_RANDOM; |
4320 |
int c = POSIX_MADV_WILLNEED; |
4321 |
int d = POSIX_MADV_DONTNEED; |
4322 |
return 0; |
4323 |
} |
4324 |
|
4325 |
_ACEOF |
4326 |
if ac_fn_c_try_link "$LINENO"; then : |
4327 |
ac_cv_posix_madvise=yes |
4328 |
else |
4329 |
ac_cv_posix_madvise=no |
4330 |
fi |
4331 |
rm -f core conftest.err conftest.$ac_objext \ |
4332 |
conftest$ac_exeext conftest.$ac_ext |
4333 |
fi |
4334 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_madvise" >&5 |
4335 |
$as_echo "$ac_cv_posix_madvise" >&6; } |
4336 |
test $ac_cv_posix_madvise = yes && |
4337 |
$as_echo "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
4338 |
|
4339 |
|
4340 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5 |
4341 |
$as_echo_n "checking for posix_fadvise... " >&6; } |
4342 |
if ${ac_cv_posix_fadvise+:} false; then : |
4343 |
$as_echo_n "(cached) " >&6 |
4344 |
else |
4345 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4346 |
/* end confdefs.h. */ |
4347 |
|
4348 |
#define _XOPEN_SOURCE 600 |
4349 |
#include <fcntl.h> |
4350 |
int main (void) |
4351 |
{ |
4352 |
int res = posix_fadvise ((int)0, (off_t)0, (off_t)0, POSIX_FADV_NORMAL); |
4353 |
int a = POSIX_FADV_SEQUENTIAL; |
4354 |
int b = POSIX_FADV_NOREUSE; |
4355 |
int c = POSIX_FADV_RANDOM; |
4356 |
int d = POSIX_FADV_WILLNEED; |
4357 |
int e = POSIX_FADV_DONTNEED; |
4358 |
return 0; |
4359 |
} |
4360 |
|
4361 |
_ACEOF |
4362 |
if ac_fn_c_try_link "$LINENO"; then : |
4363 |
ac_cv_posix_fadvise=yes |
4364 |
else |
4365 |
ac_cv_posix_fadvise=no |
4366 |
fi |
4367 |
rm -f core conftest.err conftest.$ac_objext \ |
4368 |
conftest$ac_exeext conftest.$ac_ext |
4369 |
fi |
4370 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_fadvise" >&5 |
4371 |
$as_echo "$ac_cv_posix_fadvise" >&6; } |
4372 |
test $ac_cv_posix_fadvise = yes && |
4373 |
$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
4374 |
|
4375 |
|
4376 |
for ac_header in linux/fs.h linux/fiemap.h |
4377 |
do : |
4378 |
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4379 |
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
4380 |
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
4381 |
cat >>confdefs.h <<_ACEOF |
4382 |
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4383 |
_ACEOF |
4384 |
|
4385 |
fi |
4386 |
|
4387 |
done |
4388 |
|
4389 |
|
4390 |
for ac_header in sys/sysmacros.h |
4391 |
do : |
4392 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
4393 |
if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : |
4394 |
cat >>confdefs.h <<_ACEOF |
4395 |
#define HAVE_SYS_SYSMACROS_H 1 |
4396 |
_ACEOF |
4397 |
|
4398 |
fi |
4399 |
|
4400 |
done |
4401 |
|
4402 |
|
4403 |
for ac_header in sys/mkdev.h |
4404 |
do : |
4405 |
ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
4406 |
if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : |
4407 |
cat >>confdefs.h <<_ACEOF |
4408 |
#define HAVE_SYS_MKDEV_H 1 |
4409 |
_ACEOF |
4410 |
|
4411 |
fi |
4412 |
|
4413 |
done |
4414 |
|
4415 |
|
4416 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for splice, vmsplice and tee" >&5 |
4417 |
$as_echo_n "checking for splice, vmsplice and tee... " >&6; } |
4418 |
if ${ac_cv_linux_splice+:} false; then : |
4419 |
$as_echo_n "(cached) " >&6 |
4420 |
else |
4421 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4422 |
/* end confdefs.h. */ |
4423 |
|
4424 |
#include <fcntl.h> |
4425 |
int main (void) |
4426 |
{ |
4427 |
ssize_t res; |
4428 |
res = splice ((int)0, (loff_t)0, (int)0, (loff_t *)0, (size_t)0, SPLICE_F_MOVE | SPLICE_F_NONBLOCK | SPLICE_F_MORE); |
4429 |
res = tee ((int)0, (int)0, (size_t)0, SPLICE_F_NONBLOCK); |
4430 |
res = vmsplice ((int)0, (struct iovec *)0, 0, SPLICE_F_NONBLOCK | SPLICE_F_GIFT); |
4431 |
return 0; |
4432 |
} |
4433 |
|
4434 |
_ACEOF |
4435 |
if ac_fn_c_try_link "$LINENO"; then : |
4436 |
ac_cv_linux_splice=yes |
4437 |
else |
4438 |
ac_cv_linux_splice=no |
4439 |
fi |
4440 |
rm -f core conftest.err conftest.$ac_objext \ |
4441 |
conftest$ac_exeext conftest.$ac_ext |
4442 |
fi |
4443 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_linux_splice" >&5 |
4444 |
$as_echo "$ac_cv_linux_splice" >&6; } |
4445 |
test $ac_cv_linux_splice = yes && |
4446 |
$as_echo "#define HAVE_LINUX_SPLICE 1" >>confdefs.h |
4447 |
|
4448 |
|
4449 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe2" >&5 |
4450 |
$as_echo_n "checking for pipe2... " >&6; } |
4451 |
if ${ac_cv_pipe2+:} false; then : |
4452 |
$as_echo_n "(cached) " >&6 |
4453 |
else |
4454 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4455 |
/* end confdefs.h. */ |
4456 |
|
4457 |
#include <fcntl.h> |
4458 |
#include <unistd.h> |
4459 |
int res; |
4460 |
int main (void) |
4461 |
{ |
4462 |
res = pipe2 (0, 0); |
4463 |
return 0; |
4464 |
} |
4465 |
|
4466 |
_ACEOF |
4467 |
if ac_fn_c_try_link "$LINENO"; then : |
4468 |
ac_cv_pipe2=yes |
4469 |
else |
4470 |
ac_cv_pipe2=no |
4471 |
fi |
4472 |
rm -f core conftest.err conftest.$ac_objext \ |
4473 |
conftest$ac_exeext conftest.$ac_ext |
4474 |
fi |
4475 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pipe2" >&5 |
4476 |
$as_echo "$ac_cv_pipe2" >&6; } |
4477 |
test $ac_cv_pipe2 = yes && |
4478 |
$as_echo "#define HAVE_PIPE2 1" >>confdefs.h |
4479 |
|
4480 |
|
4481 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 |
4482 |
$as_echo_n "checking for eventfd... " >&6; } |
4483 |
if ${ac_cv_eventfd+:} false; then : |
4484 |
$as_echo_n "(cached) " >&6 |
4485 |
else |
4486 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4487 |
/* end confdefs.h. */ |
4488 |
|
4489 |
#include <sys/eventfd.h> |
4490 |
int res; |
4491 |
int main (void) |
4492 |
{ |
4493 |
res = eventfd (1, EFD_CLOEXEC | EFD_NONBLOCK); |
4494 |
return 0; |
4495 |
} |
4496 |
|
4497 |
_ACEOF |
4498 |
if ac_fn_c_try_link "$LINENO"; then : |
4499 |
ac_cv_eventfd=yes |
4500 |
else |
4501 |
ac_cv_eventfd=no |
4502 |
fi |
4503 |
rm -f core conftest.err conftest.$ac_objext \ |
4504 |
conftest$ac_exeext conftest.$ac_ext |
4505 |
fi |
4506 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_eventfd" >&5 |
4507 |
$as_echo "$ac_cv_eventfd" >&6; } |
4508 |
test $ac_cv_eventfd = yes && |
4509 |
$as_echo "#define HAVE_EVENTFD 1" >>confdefs.h |
4510 |
|
4511 |
|
4512 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerfd" >&5 |
4513 |
$as_echo_n "checking for timerfd... " >&6; } |
4514 |
if ${ac_cv_timerfd+:} false; then : |
4515 |
$as_echo_n "(cached) " >&6 |
4516 |
else |
4517 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4518 |
/* end confdefs.h. */ |
4519 |
|
4520 |
#include <sys/timerfd.h> |
4521 |
int res; |
4522 |
int main (void) |
4523 |
{ |
4524 |
struct itimerspec its; |
4525 |
res = timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC | TFD_NONBLOCK); |
4526 |
res = timerfd_settime (res, TFD_TIMER_ABSTIME /*| TFD_TIMER_CANCEL_ON_SET*/, &its, 0); |
4527 |
res = timerfd_gettime (res, &its); |
4528 |
return 0; |
4529 |
} |
4530 |
|
4531 |
_ACEOF |
4532 |
if ac_fn_c_try_link "$LINENO"; then : |
4533 |
ac_cv_timerfd=yes |
4534 |
else |
4535 |
ac_cv_timerfd=no |
4536 |
fi |
4537 |
rm -f core conftest.err conftest.$ac_objext \ |
4538 |
conftest$ac_exeext conftest.$ac_ext |
4539 |
fi |
4540 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_timerfd" >&5 |
4541 |
$as_echo "$ac_cv_timerfd" >&6; } |
4542 |
test $ac_cv_timerfd = yes && |
4543 |
$as_echo "#define HAVE_TIMERFD 1" >>confdefs.h |
4544 |
|
4545 |
|
4546 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
4547 |
$as_echo_n "checking for copy_file_range... " >&6; } |
4548 |
if ${ac_cv_copy_file_range+:} false; then : |
4549 |
$as_echo_n "(cached) " >&6 |
4550 |
else |
4551 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4552 |
/* end confdefs.h. */ |
4553 |
|
4554 |
#include <unistd.h> |
4555 |
#include <sys/syscall.h> |
4556 |
/*#include <linux/copy.h>*/ |
4557 |
int res; |
4558 |
int main (void) |
4559 |
{ |
4560 |
/*res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, COPY_FR_REFLINK | COPY_FR_DEDUP | COPY_FR_COPY);*/ |
4561 |
res = syscall (SYS_copy_file_range, 0, 0, 0, 0, 0, 0); |
4562 |
return 0; |
4563 |
} |
4564 |
|
4565 |
_ACEOF |
4566 |
if ac_fn_c_try_link "$LINENO"; then : |
4567 |
ac_cv_copy_file_range=yes |
4568 |
else |
4569 |
ac_cv_copy_file_range=no |
4570 |
fi |
4571 |
rm -f core conftest.err conftest.$ac_objext \ |
4572 |
conftest$ac_exeext conftest.$ac_ext |
4573 |
fi |
4574 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_copy_file_range" >&5 |
4575 |
$as_echo "$ac_cv_copy_file_range" >&6; } |
4576 |
test $ac_cv_copy_file_range = yes && |
4577 |
$as_echo "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
4578 |
|
4579 |
|
4580 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimensec" >&5 |
4581 |
$as_echo_n "checking for st_xtimensec... " >&6; } |
4582 |
if ${ac_cv_xtimensec+:} false; then : |
4583 |
$as_echo_n "(cached) " >&6 |
4584 |
else |
4585 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4586 |
/* end confdefs.h. */ |
4587 |
|
4588 |
#include "EXTERN.h" |
4589 |
#include "perl.h" |
4590 |
#include "XSUB.h" |
4591 |
|
4592 |
int main (void) |
4593 |
{ |
4594 |
return PL_statcache.st_atimensec |
4595 |
+ PL_statcache.st_mtimensec |
4596 |
+ PL_statcache.st_ctimensec; |
4597 |
} |
4598 |
|
4599 |
_ACEOF |
4600 |
if ac_fn_c_try_compile "$LINENO"; then : |
4601 |
ac_cv_xtimensec=yes |
4602 |
else |
4603 |
ac_cv_xtimensec=no |
4604 |
fi |
4605 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4606 |
fi |
4607 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimensec" >&5 |
4608 |
$as_echo "$ac_cv_xtimensec" >&6; } |
4609 |
test $ac_cv_xtimensec = yes && |
4610 |
$as_echo "#define HAVE_ST_XTIMENSEC 1" >>confdefs.h |
4611 |
|
4612 |
|
4613 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_xtimespec" >&5 |
4614 |
$as_echo_n "checking for st_xtimespec... " >&6; } |
4615 |
if ${ac_cv_xtimespec+:} false; then : |
4616 |
$as_echo_n "(cached) " >&6 |
4617 |
else |
4618 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4619 |
/* end confdefs.h. */ |
4620 |
|
4621 |
#include "EXTERN.h" |
4622 |
#include "perl.h" |
4623 |
#include "XSUB.h" |
4624 |
|
4625 |
int main (void) |
4626 |
{ |
4627 |
return PL_statcache.st_atim.tv_nsec |
4628 |
+ PL_statcache.st_mtim.tv_nsec |
4629 |
+ PL_statcache.st_ctim.tv_nsec; |
4630 |
} |
4631 |
|
4632 |
_ACEOF |
4633 |
if ac_fn_c_try_compile "$LINENO"; then : |
4634 |
ac_cv_xtimespec=yes |
4635 |
else |
4636 |
ac_cv_xtimespec=no |
4637 |
fi |
4638 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4639 |
fi |
4640 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_xtimespec" >&5 |
4641 |
$as_echo "$ac_cv_xtimespec" >&6; } |
4642 |
test $ac_cv_xtimespec = yes && |
4643 |
$as_echo "#define HAVE_ST_XTIMESPEC 1" >>confdefs.h |
4644 |
|
4645 |
|
4646 |
# apparently, True64 uses st_u[amc]time, aix uses at_[amc]time_n and apple uses st_[amc,birth]timespec? |
4647 |
|
4648 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimensec" >&5 |
4649 |
$as_echo_n "checking for st_birthtimensec... " >&6; } |
4650 |
if ${ac_cv_birthtimensec+:} false; then : |
4651 |
$as_echo_n "(cached) " >&6 |
4652 |
else |
4653 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4654 |
/* end confdefs.h. */ |
4655 |
|
4656 |
#include "EXTERN.h" |
4657 |
#include "perl.h" |
4658 |
#include "XSUB.h" |
4659 |
|
4660 |
int main (void) |
4661 |
{ |
4662 |
return PL_statcache.st_birthtime + PL_statcache.st_birthtimensec; |
4663 |
} |
4664 |
|
4665 |
_ACEOF |
4666 |
if ac_fn_c_try_compile "$LINENO"; then : |
4667 |
ac_cv_birthtimensec=yes |
4668 |
else |
4669 |
ac_cv_birthtimensec=no |
4670 |
fi |
4671 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4672 |
fi |
4673 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimensec" >&5 |
4674 |
$as_echo "$ac_cv_birthtimensec" >&6; } |
4675 |
test $ac_cv_birthtimensec = yes && |
4676 |
$as_echo "#define HAVE_ST_BIRTHTIMENSEC 1" >>confdefs.h |
4677 |
|
4678 |
|
4679 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_birthtimespec" >&5 |
4680 |
$as_echo_n "checking for st_birthtimespec... " >&6; } |
4681 |
if ${ac_cv_birthtimespec+:} false; then : |
4682 |
$as_echo_n "(cached) " >&6 |
4683 |
else |
4684 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4685 |
/* end confdefs.h. */ |
4686 |
|
4687 |
#include "EXTERN.h" |
4688 |
#include "perl.h" |
4689 |
#include "XSUB.h" |
4690 |
|
4691 |
int main (void) |
4692 |
{ |
4693 |
return PL_statcache.st_birthtim.tv_sec + PL_statcache.st_birthtim.tv_nsec; |
4694 |
} |
4695 |
|
4696 |
_ACEOF |
4697 |
if ac_fn_c_try_compile "$LINENO"; then : |
4698 |
ac_cv_birthtimespec=yes |
4699 |
else |
4700 |
ac_cv_birthtimespec=no |
4701 |
fi |
4702 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4703 |
fi |
4704 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_birthtimespec" >&5 |
4705 |
$as_echo "$ac_cv_birthtimespec" >&6; } |
4706 |
test $ac_cv_birthtimespec = yes && |
4707 |
$as_echo "#define HAVE_ST_BIRTHTIMESPEC 1" >>confdefs.h |
4708 |
|
4709 |
|
4710 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen" >&5 |
4711 |
$as_echo_n "checking for st_gen... " >&6; } |
4712 |
if ${ac_cv_st_gen+:} false; then : |
4713 |
$as_echo_n "(cached) " >&6 |
4714 |
else |
4715 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4716 |
/* end confdefs.h. */ |
4717 |
|
4718 |
#include "EXTERN.h" |
4719 |
#include "perl.h" |
4720 |
#include "XSUB.h" |
4721 |
|
4722 |
int main (void) |
4723 |
{ |
4724 |
return PL_statcache.st_gen; |
4725 |
} |
4726 |
|
4727 |
_ACEOF |
4728 |
if ac_fn_c_try_compile "$LINENO"; then : |
4729 |
ac_cv_st_gen=yes |
4730 |
else |
4731 |
ac_cv_st_gen=no |
4732 |
fi |
4733 |
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4734 |
fi |
4735 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_st_gen" >&5 |
4736 |
$as_echo "$ac_cv_st_gen" >&6; } |
4737 |
test $ac_cv_st_gen = yes && |
4738 |
$as_echo "#define HAVE_ST_GEN 1" >>confdefs.h |
4739 |
|
4740 |
|
4741 |
cat >confcache <<\_ACEOF |
4742 |
# This file is a shell script that caches the results of configure |
4743 |
# tests run on this system so they can be shared between configure |
4744 |
# scripts and configure runs, see configure's option --config-cache. |
4745 |
# It is not useful on other systems. If it contains results you don't |
4746 |
# want to keep, you may remove or edit it. |
4747 |
# |
4748 |
# config.status only pays attention to the cache file if you give it |
4749 |
# the --recheck option to rerun configure. |
4750 |
# |
4751 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
4752 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
4753 |
# following values. |
4754 |
|
4755 |
_ACEOF |
4756 |
|
4757 |
# The following way of writing the cache mishandles newlines in values, |
4758 |
# but we know of no workaround that is simple, portable, and efficient. |
4759 |
# So, we kill variables containing newlines. |
4760 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
4761 |
# and sets the high bit in the cache file unless we assign to the vars. |
4762 |
( |
4763 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
4764 |
eval ac_val=\$$ac_var |
4765 |
case $ac_val in #( |
4766 |
*${as_nl}*) |
4767 |
case $ac_var in #( |
4768 |
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
4769 |
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
4770 |
esac |
4771 |
case $ac_var in #( |
4772 |
_ | IFS | as_nl) ;; #( |
4773 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
4774 |
*) { eval $ac_var=; unset $ac_var;} ;; |
4775 |
esac ;; |
4776 |
esac |
4777 |
done |
4778 |
|
4779 |
(set) 2>&1 | |
4780 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
4781 |
*${as_nl}ac_space=\ *) |
4782 |
# `set' does not quote correctly, so add quotes: double-quote |
4783 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
4784 |
sed -n \ |
4785 |
"s/'/'\\\\''/g; |
4786 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
4787 |
;; #( |
4788 |
*) |
4789 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
4790 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
4791 |
;; |
4792 |
esac | |
4793 |
sort |
4794 |
) | |
4795 |
sed ' |
4796 |
/^ac_cv_env_/b end |
4797 |
t clear |
4798 |
:clear |
4799 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
4800 |
t end |
4801 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
4802 |
:end' >>confcache |
4803 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
4804 |
if test -w "$cache_file"; then |
4805 |
if test "x$cache_file" != "x/dev/null"; then |
4806 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
4807 |
$as_echo "$as_me: updating cache $cache_file" >&6;} |
4808 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
4809 |
cat confcache >"$cache_file" |
4810 |
else |
4811 |
case $cache_file in #( |
4812 |
*/* | ?:*) |
4813 |
mv -f confcache "$cache_file"$$ && |
4814 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
4815 |
*) |
4816 |
mv -f confcache "$cache_file" ;; |
4817 |
esac |
4818 |
fi |
4819 |
fi |
4820 |
else |
4821 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
4822 |
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
4823 |
fi |
4824 |
fi |
4825 |
rm -f confcache |
4826 |
|
4827 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
4828 |
# Let make expand exec_prefix. |
4829 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
4830 |
|
4831 |
DEFS=-DHAVE_CONFIG_H |
4832 |
|
4833 |
ac_libobjs= |
4834 |
ac_ltlibobjs= |
4835 |
U= |
4836 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
4837 |
# 1. Remove the extension, and $U if already installed. |
4838 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
4839 |
ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
4840 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
4841 |
# will be set to the directory where LIBOBJS objects are built. |
4842 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
4843 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
4844 |
done |
4845 |
LIBOBJS=$ac_libobjs |
4846 |
|
4847 |
LTLIBOBJS=$ac_ltlibobjs |
4848 |
|
4849 |
|
4850 |
|
4851 |
: "${CONFIG_STATUS=./config.status}" |
4852 |
ac_write_fail=0 |
4853 |
ac_clean_files_save=$ac_clean_files |
4854 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
4855 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
4856 |
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
4857 |
as_write_fail=0 |
4858 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
4859 |
#! $SHELL |
4860 |
# Generated by $as_me. |
4861 |
# Run this file to recreate the current configuration. |
4862 |
# Compiler output produced by configure, useful for debugging |
4863 |
# configure, is in config.log if it exists. |
4864 |
|
4865 |
debug=false |
4866 |
ac_cs_recheck=false |
4867 |
ac_cs_silent=false |
4868 |
|
4869 |
SHELL=\${CONFIG_SHELL-$SHELL} |
4870 |
export SHELL |
4871 |
_ASEOF |
4872 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
4873 |
## -------------------- ## |
4874 |
## M4sh Initialization. ## |
4875 |
## -------------------- ## |
4876 |
|
4877 |
# Be more Bourne compatible |
4878 |
DUALCASE=1; export DUALCASE # for MKS sh |
4879 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
4880 |
emulate sh |
4881 |
NULLCMD=: |
4882 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
4883 |
# is contrary to our usage. Disable this feature. |
4884 |
alias -g '${1+"$@"}'='"$@"' |
4885 |
setopt NO_GLOB_SUBST |
4886 |
else |
4887 |
case `(set -o) 2>/dev/null` in #( |
4888 |
*posix*) : |
4889 |
set -o posix ;; #( |
4890 |
*) : |
4891 |
;; |
4892 |
esac |
4893 |
fi |
4894 |
|
4895 |
|
4896 |
as_nl=' |
4897 |
' |
4898 |
export as_nl |
4899 |
# Printing a long string crashes Solaris 7 /usr/bin/printf. |
4900 |
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
4901 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
4902 |
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
4903 |
# Prefer a ksh shell builtin over an external printf program on Solaris, |
4904 |
# but without wasting forks for bash or zsh. |
4905 |
if test -z "$BASH_VERSION$ZSH_VERSION" \ |
4906 |
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
4907 |
as_echo='print -r --' |
4908 |
as_echo_n='print -rn --' |
4909 |
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
4910 |
as_echo='printf %s\n' |
4911 |
as_echo_n='printf %s' |
4912 |
else |
4913 |
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
4914 |
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
4915 |
as_echo_n='/usr/ucb/echo -n' |
4916 |
else |
4917 |
as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
4918 |
as_echo_n_body='eval |
4919 |
arg=$1; |
4920 |
case $arg in #( |
4921 |
*"$as_nl"*) |
4922 |
expr "X$arg" : "X\\(.*\\)$as_nl"; |
4923 |
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
4924 |
esac; |
4925 |
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
4926 |
' |
4927 |
export as_echo_n_body |
4928 |
as_echo_n='sh -c $as_echo_n_body as_echo' |
4929 |
fi |
4930 |
export as_echo_body |
4931 |
as_echo='sh -c $as_echo_body as_echo' |
4932 |
fi |
4933 |
|
4934 |
# The user is always right. |
4935 |
if test "${PATH_SEPARATOR+set}" != set; then |
4936 |
PATH_SEPARATOR=: |
4937 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
4938 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
4939 |
PATH_SEPARATOR=';' |
4940 |
} |
4941 |
fi |
4942 |
|
4943 |
|
4944 |
# IFS |
4945 |
# We need space, tab and new line, in precisely that order. Quoting is |
4946 |
# there to prevent editors from complaining about space-tab. |
4947 |
# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
4948 |
# splitting by setting IFS to empty value.) |
4949 |
IFS=" "" $as_nl" |
4950 |
|
4951 |
# Find who we are. Look in the path if we contain no directory separator. |
4952 |
as_myself= |
4953 |
case $0 in #(( |
4954 |
*[\\/]* ) as_myself=$0 ;; |
4955 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4956 |
for as_dir in $PATH |
4957 |
do |
4958 |
IFS=$as_save_IFS |
4959 |
test -z "$as_dir" && as_dir=. |
4960 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
4961 |
done |
4962 |
IFS=$as_save_IFS |
4963 |
|
4964 |
;; |
4965 |
esac |
4966 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
4967 |
# in which case we are not to be found in the path. |
4968 |
if test "x$as_myself" = x; then |
4969 |
as_myself=$0 |
4970 |
fi |
4971 |
if test ! -f "$as_myself"; then |
4972 |
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
4973 |
exit 1 |
4974 |
fi |
4975 |
|
4976 |
# Unset variables that we do not need and which cause bugs (e.g. in |
4977 |
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
4978 |
# suppresses any "Segmentation fault" message there. '((' could |
4979 |
# trigger a bug in pdksh 5.2.14. |
4980 |
for as_var in BASH_ENV ENV MAIL MAILPATH |
4981 |
do eval test x\${$as_var+set} = xset \ |
4982 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
4983 |
done |
4984 |
PS1='$ ' |
4985 |
PS2='> ' |
4986 |
PS4='+ ' |
4987 |
|
4988 |
# NLS nuisances. |
4989 |
LC_ALL=C |
4990 |
export LC_ALL |
4991 |
LANGUAGE=C |
4992 |
export LANGUAGE |
4993 |
|
4994 |
# CDPATH. |
4995 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
4996 |
|
4997 |
|
4998 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
4999 |
# ---------------------------------------- |
5000 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
5001 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
5002 |
# script with STATUS, using 1 if that was 0. |
5003 |
as_fn_error () |
5004 |
{ |
5005 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
5006 |
if test "$4"; then |
5007 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
5008 |
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
5009 |
fi |
5010 |
$as_echo "$as_me: error: $2" >&2 |
5011 |
as_fn_exit $as_status |
5012 |
} # as_fn_error |
5013 |
|
5014 |
|
5015 |
# as_fn_set_status STATUS |
5016 |
# ----------------------- |
5017 |
# Set $? to STATUS, without forking. |
5018 |
as_fn_set_status () |
5019 |
{ |
5020 |
return $1 |
5021 |
} # as_fn_set_status |
5022 |
|
5023 |
# as_fn_exit STATUS |
5024 |
# ----------------- |
5025 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
5026 |
as_fn_exit () |
5027 |
{ |
5028 |
set +e |
5029 |
as_fn_set_status $1 |
5030 |
exit $1 |
5031 |
} # as_fn_exit |
5032 |
|
5033 |
# as_fn_unset VAR |
5034 |
# --------------- |
5035 |
# Portably unset VAR. |
5036 |
as_fn_unset () |
5037 |
{ |
5038 |
{ eval $1=; unset $1;} |
5039 |
} |
5040 |
as_unset=as_fn_unset |
5041 |
# as_fn_append VAR VALUE |
5042 |
# ---------------------- |
5043 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
5044 |
# advantage of any shell optimizations that allow amortized linear growth over |
5045 |
# repeated appends, instead of the typical quadratic growth present in naive |
5046 |
# implementations. |
5047 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
5048 |
eval 'as_fn_append () |
5049 |
{ |
5050 |
eval $1+=\$2 |
5051 |
}' |
5052 |
else |
5053 |
as_fn_append () |
5054 |
{ |
5055 |
eval $1=\$$1\$2 |
5056 |
} |
5057 |
fi # as_fn_append |
5058 |
|
5059 |
# as_fn_arith ARG... |
5060 |
# ------------------ |
5061 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
5062 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
5063 |
# must be portable across $(()) and expr. |
5064 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
5065 |
eval 'as_fn_arith () |
5066 |
{ |
5067 |
as_val=$(( $* )) |
5068 |
}' |
5069 |
else |
5070 |
as_fn_arith () |
5071 |
{ |
5072 |
as_val=`expr "$@" || test $? -eq 1` |
5073 |
} |
5074 |
fi # as_fn_arith |
5075 |
|
5076 |
|
5077 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
5078 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
5079 |
as_expr=expr |
5080 |
else |
5081 |
as_expr=false |
5082 |
fi |
5083 |
|
5084 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
5085 |
as_basename=basename |
5086 |
else |
5087 |
as_basename=false |
5088 |
fi |
5089 |
|
5090 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
5091 |
as_dirname=dirname |
5092 |
else |
5093 |
as_dirname=false |
5094 |
fi |
5095 |
|
5096 |
as_me=`$as_basename -- "$0" || |
5097 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
5098 |
X"$0" : 'X\(//\)$' \| \ |
5099 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
5100 |
$as_echo X/"$0" | |
5101 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
5102 |
s//\1/ |
5103 |
q |
5104 |
} |
5105 |
/^X\/\(\/\/\)$/{ |
5106 |
s//\1/ |
5107 |
q |
5108 |
} |
5109 |
/^X\/\(\/\).*/{ |
5110 |
s//\1/ |
5111 |
q |
5112 |
} |
5113 |
s/.*/./; q'` |
5114 |
|
5115 |
# Avoid depending upon Character Ranges. |
5116 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
5117 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
5118 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
5119 |
as_cr_digits='0123456789' |
5120 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
5121 |
|
5122 |
ECHO_C= ECHO_N= ECHO_T= |
5123 |
case `echo -n x` in #((((( |
5124 |
-n*) |
5125 |
case `echo 'xy\c'` in |
5126 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
5127 |
xy) ECHO_C='\c';; |
5128 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
5129 |
ECHO_T=' ';; |
5130 |
esac;; |
5131 |
*) |
5132 |
ECHO_N='-n';; |
5133 |
esac |
5134 |
|
5135 |
rm -f conf$$ conf$$.exe conf$$.file |
5136 |
if test -d conf$$.dir; then |
5137 |
rm -f conf$$.dir/conf$$.file |
5138 |
else |
5139 |
rm -f conf$$.dir |
5140 |
mkdir conf$$.dir 2>/dev/null |
5141 |
fi |
5142 |
if (echo >conf$$.file) 2>/dev/null; then |
5143 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
5144 |
as_ln_s='ln -s' |
5145 |
# ... but there are two gotchas: |
5146 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
5147 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
5148 |
# In both cases, we have to default to `cp -pR'. |
5149 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
5150 |
as_ln_s='cp -pR' |
5151 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
5152 |
as_ln_s=ln |
5153 |
else |
5154 |
as_ln_s='cp -pR' |
5155 |
fi |
5156 |
else |
5157 |
as_ln_s='cp -pR' |
5158 |
fi |
5159 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
5160 |
rmdir conf$$.dir 2>/dev/null |
5161 |
|
5162 |
|
5163 |
# as_fn_mkdir_p |
5164 |
# ------------- |
5165 |
# Create "$as_dir" as a directory, including parents if necessary. |
5166 |
as_fn_mkdir_p () |
5167 |
{ |
5168 |
|
5169 |
case $as_dir in #( |
5170 |
-*) as_dir=./$as_dir;; |
5171 |
esac |
5172 |
test -d "$as_dir" || eval $as_mkdir_p || { |
5173 |
as_dirs= |
5174 |
while :; do |
5175 |
case $as_dir in #( |
5176 |
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
5177 |
*) as_qdir=$as_dir;; |
5178 |
esac |
5179 |
as_dirs="'$as_qdir' $as_dirs" |
5180 |
as_dir=`$as_dirname -- "$as_dir" || |
5181 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5182 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
5183 |
X"$as_dir" : 'X\(//\)$' \| \ |
5184 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
5185 |
$as_echo X"$as_dir" | |
5186 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5187 |
s//\1/ |
5188 |
q |
5189 |
} |
5190 |
/^X\(\/\/\)[^/].*/{ |
5191 |
s//\1/ |
5192 |
q |
5193 |
} |
5194 |
/^X\(\/\/\)$/{ |
5195 |
s//\1/ |
5196 |
q |
5197 |
} |
5198 |
/^X\(\/\).*/{ |
5199 |
s//\1/ |
5200 |
q |
5201 |
} |
5202 |
s/.*/./; q'` |
5203 |
test -d "$as_dir" && break |
5204 |
done |
5205 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
5206 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
5207 |
|
5208 |
|
5209 |
} # as_fn_mkdir_p |
5210 |
if mkdir -p . 2>/dev/null; then |
5211 |
as_mkdir_p='mkdir -p "$as_dir"' |
5212 |
else |
5213 |
test -d ./-p && rmdir ./-p |
5214 |
as_mkdir_p=false |
5215 |
fi |
5216 |
|
5217 |
|
5218 |
# as_fn_executable_p FILE |
5219 |
# ----------------------- |
5220 |
# Test if FILE is an executable regular file. |
5221 |
as_fn_executable_p () |
5222 |
{ |
5223 |
test -f "$1" && test -x "$1" |
5224 |
} # as_fn_executable_p |
5225 |
as_test_x='test -x' |
5226 |
as_executable_p=as_fn_executable_p |
5227 |
|
5228 |
# Sed expression to map a string onto a valid CPP name. |
5229 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
5230 |
|
5231 |
# Sed expression to map a string onto a valid variable name. |
5232 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
5233 |
|
5234 |
|
5235 |
exec 6>&1 |
5236 |
## ----------------------------------- ## |
5237 |
## Main body of $CONFIG_STATUS script. ## |
5238 |
## ----------------------------------- ## |
5239 |
_ASEOF |
5240 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
5241 |
|
5242 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5243 |
# Save the log message, to keep $0 and so on meaningful, and to |
5244 |
# report actual input values of CONFIG_FILES etc. instead of their |
5245 |
# values after options handling. |
5246 |
ac_log=" |
5247 |
This file was extended by $as_me, which was |
5248 |
generated by GNU Autoconf 2.69. Invocation command line was |
5249 |
|
5250 |
CONFIG_FILES = $CONFIG_FILES |
5251 |
CONFIG_HEADERS = $CONFIG_HEADERS |
5252 |
CONFIG_LINKS = $CONFIG_LINKS |
5253 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
5254 |
$ $0 $@ |
5255 |
|
5256 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
5257 |
" |
5258 |
|
5259 |
_ACEOF |
5260 |
|
5261 |
|
5262 |
case $ac_config_headers in *" |
5263 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
5264 |
esac |
5265 |
|
5266 |
|
5267 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5268 |
# Files that config.status was made for. |
5269 |
config_headers="$ac_config_headers" |
5270 |
|
5271 |
_ACEOF |
5272 |
|
5273 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5274 |
ac_cs_usage="\ |
5275 |
\`$as_me' instantiates files and other configuration actions |
5276 |
from templates according to the current configuration. Unless the files |
5277 |
and actions are specified as TAGs, all are instantiated by default. |
5278 |
|
5279 |
Usage: $0 [OPTION]... [TAG]... |
5280 |
|
5281 |
-h, --help print this help, then exit |
5282 |
-V, --version print version number and configuration settings, then exit |
5283 |
--config print configuration, then exit |
5284 |
-q, --quiet, --silent |
5285 |
do not print progress messages |
5286 |
-d, --debug don't remove temporary files |
5287 |
--recheck update $as_me by reconfiguring in the same conditions |
5288 |
--header=FILE[:TEMPLATE] |
5289 |
instantiate the configuration header FILE |
5290 |
|
5291 |
Configuration headers: |
5292 |
$config_headers |
5293 |
|
5294 |
Report bugs to the package provider." |
5295 |
|
5296 |
_ACEOF |
5297 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5298 |
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5299 |
ac_cs_version="\\ |
5300 |
config.status |
5301 |
configured by $0, generated by GNU Autoconf 2.69, |
5302 |
with options \\"\$ac_cs_config\\" |
5303 |
|
5304 |
Copyright (C) 2012 Free Software Foundation, Inc. |
5305 |
This config.status script is free software; the Free Software Foundation |
5306 |
gives unlimited permission to copy, distribute and modify it." |
5307 |
|
5308 |
ac_pwd='$ac_pwd' |
5309 |
srcdir='$srcdir' |
5310 |
test -n "\$AWK" || AWK=awk |
5311 |
_ACEOF |
5312 |
|
5313 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5314 |
# The default lists apply if the user does not specify any file. |
5315 |
ac_need_defaults=: |
5316 |
while test $# != 0 |
5317 |
do |
5318 |
case $1 in |
5319 |
--*=?*) |
5320 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
5321 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
5322 |
ac_shift=: |
5323 |
;; |
5324 |
--*=) |
5325 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
5326 |
ac_optarg= |
5327 |
ac_shift=: |
5328 |
;; |
5329 |
*) |
5330 |
ac_option=$1 |
5331 |
ac_optarg=$2 |
5332 |
ac_shift=shift |
5333 |
;; |
5334 |
esac |
5335 |
|
5336 |
case $ac_option in |
5337 |
# Handling of the options. |
5338 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
5339 |
ac_cs_recheck=: ;; |
5340 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
5341 |
$as_echo "$ac_cs_version"; exit ;; |
5342 |
--config | --confi | --conf | --con | --co | --c ) |
5343 |
$as_echo "$ac_cs_config"; exit ;; |
5344 |
--debug | --debu | --deb | --de | --d | -d ) |
5345 |
debug=: ;; |
5346 |
--header | --heade | --head | --hea ) |
5347 |
$ac_shift |
5348 |
case $ac_optarg in |
5349 |
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
5350 |
esac |
5351 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
5352 |
ac_need_defaults=false;; |
5353 |
--he | --h) |
5354 |
# Conflict between --help and --header |
5355 |
as_fn_error $? "ambiguous option: \`$1' |
5356 |
Try \`$0 --help' for more information.";; |
5357 |
--help | --hel | -h ) |
5358 |
$as_echo "$ac_cs_usage"; exit ;; |
5359 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
5360 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
5361 |
ac_cs_silent=: ;; |
5362 |
|
5363 |
# This is an error. |
5364 |
-*) as_fn_error $? "unrecognized option: \`$1' |
5365 |
Try \`$0 --help' for more information." ;; |
5366 |
|
5367 |
*) as_fn_append ac_config_targets " $1" |
5368 |
ac_need_defaults=false ;; |
5369 |
|
5370 |
esac |
5371 |
shift |
5372 |
done |
5373 |
|
5374 |
ac_configure_extra_args= |
5375 |
|
5376 |
if $ac_cs_silent; then |
5377 |
exec 6>/dev/null |
5378 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
5379 |
fi |
5380 |
|
5381 |
_ACEOF |
5382 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5383 |
if \$ac_cs_recheck; then |
5384 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
5385 |
shift |
5386 |
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
5387 |
CONFIG_SHELL='$SHELL' |
5388 |
export CONFIG_SHELL |
5389 |
exec "\$@" |
5390 |
fi |
5391 |
|
5392 |
_ACEOF |
5393 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5394 |
exec 5>>config.log |
5395 |
{ |
5396 |
echo |
5397 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
5398 |
## Running $as_me. ## |
5399 |
_ASBOX |
5400 |
$as_echo "$ac_log" |
5401 |
} >&5 |
5402 |
|
5403 |
_ACEOF |
5404 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5405 |
_ACEOF |
5406 |
|
5407 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5408 |
|
5409 |
# Handling of arguments. |
5410 |
for ac_config_target in $ac_config_targets |
5411 |
do |
5412 |
case $ac_config_target in |
5413 |
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
5414 |
|
5415 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
5416 |
esac |
5417 |
done |
5418 |
|
5419 |
|
5420 |
# If the user did not use the arguments to specify the items to instantiate, |
5421 |
# then the envvar interface is used. Set only those that are not. |
5422 |
# We use the long form for the default assignment because of an extremely |
5423 |
# bizarre bug on SunOS 4.1.3. |
5424 |
if $ac_need_defaults; then |
5425 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
5426 |
fi |
5427 |
|
5428 |
# Have a temporary directory for convenience. Make it in the build tree |
5429 |
# simply because there is no reason against having it here, and in addition, |
5430 |
# creating and moving files from /tmp can sometimes cause problems. |
5431 |
# Hook for its removal unless debugging. |
5432 |
# Note that there is a small window in which the directory will not be cleaned: |
5433 |
# after its creation but before its name has been assigned to `$tmp'. |
5434 |
$debug || |
5435 |
{ |
5436 |
tmp= ac_tmp= |
5437 |
trap 'exit_status=$? |
5438 |
: "${ac_tmp:=$tmp}" |
5439 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
5440 |
' 0 |
5441 |
trap 'as_fn_exit 1' 1 2 13 15 |
5442 |
} |
5443 |
# Create a (secure) tmp directory for tmp files. |
5444 |
|
5445 |
{ |
5446 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
5447 |
test -d "$tmp" |
5448 |
} || |
5449 |
{ |
5450 |
tmp=./conf$$-$RANDOM |
5451 |
(umask 077 && mkdir "$tmp") |
5452 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
5453 |
ac_tmp=$tmp |
5454 |
|
5455 |
# Set up the scripts for CONFIG_HEADERS section. |
5456 |
# No need to generate them if there are no CONFIG_HEADERS. |
5457 |
# This happens for instance with `./config.status Makefile'. |
5458 |
if test -n "$CONFIG_HEADERS"; then |
5459 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
5460 |
BEGIN { |
5461 |
_ACEOF |
5462 |
|
5463 |
# Transform confdefs.h into an awk script `defines.awk', embedded as |
5464 |
# here-document in config.status, that substitutes the proper values into |
5465 |
# config.h.in to produce config.h. |
5466 |
|
5467 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
5468 |
# handling of long lines. |
5469 |
ac_delim='%!_!# ' |
5470 |
for ac_last_try in false false :; do |
5471 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
5472 |
if test -z "$ac_tt"; then |
5473 |
break |
5474 |
elif $ac_last_try; then |
5475 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
5476 |
else |
5477 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
5478 |
fi |
5479 |
done |
5480 |
|
5481 |
# For the awk script, D is an array of macro values keyed by name, |
5482 |
# likewise P contains macro parameters if any. Preserve backslash |
5483 |
# newline sequences. |
5484 |
|
5485 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
5486 |
sed -n ' |
5487 |
s/.\{148\}/&'"$ac_delim"'/g |
5488 |
t rset |
5489 |
:rset |
5490 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
5491 |
t def |
5492 |
d |
5493 |
:def |
5494 |
s/\\$// |
5495 |
t bsnl |
5496 |
s/["\\]/\\&/g |
5497 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
5498 |
D["\1"]=" \3"/p |
5499 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
5500 |
d |
5501 |
:bsnl |
5502 |
s/["\\]/\\&/g |
5503 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
5504 |
D["\1"]=" \3\\\\\\n"\\/p |
5505 |
t cont |
5506 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
5507 |
t cont |
5508 |
d |
5509 |
:cont |
5510 |
n |
5511 |
s/.\{148\}/&'"$ac_delim"'/g |
5512 |
t clear |
5513 |
:clear |
5514 |
s/\\$// |
5515 |
t bsnlc |
5516 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
5517 |
d |
5518 |
:bsnlc |
5519 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
5520 |
b cont |
5521 |
' <confdefs.h | sed ' |
5522 |
s/'"$ac_delim"'/"\\\ |
5523 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
5524 |
|
5525 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5526 |
for (key in D) D_is_set[key] = 1 |
5527 |
FS = "" |
5528 |
} |
5529 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
5530 |
line = \$ 0 |
5531 |
split(line, arg, " ") |
5532 |
if (arg[1] == "#") { |
5533 |
defundef = arg[2] |
5534 |
mac1 = arg[3] |
5535 |
} else { |
5536 |
defundef = substr(arg[1], 2) |
5537 |
mac1 = arg[2] |
5538 |
} |
5539 |
split(mac1, mac2, "(") #) |
5540 |
macro = mac2[1] |
5541 |
prefix = substr(line, 1, index(line, defundef) - 1) |
5542 |
if (D_is_set[macro]) { |
5543 |
# Preserve the white space surrounding the "#". |
5544 |
print prefix "define", macro P[macro] D[macro] |
5545 |
next |
5546 |
} else { |
5547 |
# Replace #undef with comments. This is necessary, for example, |
5548 |
# in the case of _POSIX_SOURCE, which is predefined and required |
5549 |
# on some systems where configure will not decide to define it. |
5550 |
if (defundef == "undef") { |
5551 |
print "/*", prefix defundef, macro, "*/" |
5552 |
next |
5553 |
} |
5554 |
} |
5555 |
} |
5556 |
{ print } |
5557 |
_ACAWK |
5558 |
_ACEOF |
5559 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5560 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
5561 |
fi # test -n "$CONFIG_HEADERS" |
5562 |
|
5563 |
|
5564 |
eval set X " :H $CONFIG_HEADERS " |
5565 |
shift |
5566 |
for ac_tag |
5567 |
do |
5568 |
case $ac_tag in |
5569 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
5570 |
esac |
5571 |
case $ac_mode$ac_tag in |
5572 |
:[FHL]*:*);; |
5573 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
5574 |
:[FH]-) ac_tag=-:-;; |
5575 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
5576 |
esac |
5577 |
ac_save_IFS=$IFS |
5578 |
IFS=: |
5579 |
set x $ac_tag |
5580 |
IFS=$ac_save_IFS |
5581 |
shift |
5582 |
ac_file=$1 |
5583 |
shift |
5584 |
|
5585 |
case $ac_mode in |
5586 |
:L) ac_source=$1;; |
5587 |
:[FH]) |
5588 |
ac_file_inputs= |
5589 |
for ac_f |
5590 |
do |
5591 |
case $ac_f in |
5592 |
-) ac_f="$ac_tmp/stdin";; |
5593 |
*) # Look for the file first in the build tree, then in the source tree |
5594 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
5595 |
# because $ac_f cannot contain `:'. |
5596 |
test -f "$ac_f" || |
5597 |
case $ac_f in |
5598 |
[\\/$]*) false;; |
5599 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
5600 |
esac || |
5601 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
5602 |
esac |
5603 |
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
5604 |
as_fn_append ac_file_inputs " '$ac_f'" |
5605 |
done |
5606 |
|
5607 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
5608 |
# use $as_me), people would be surprised to read: |
5609 |
# /* config.h. Generated by config.status. */ |
5610 |
configure_input='Generated from '` |
5611 |
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
5612 |
`' by configure.' |
5613 |
if test x"$ac_file" != x-; then |
5614 |
configure_input="$ac_file. $configure_input" |
5615 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
5616 |
$as_echo "$as_me: creating $ac_file" >&6;} |
5617 |
fi |
5618 |
# Neutralize special characters interpreted by sed in replacement strings. |
5619 |
case $configure_input in #( |
5620 |
*\&* | *\|* | *\\* ) |
5621 |
ac_sed_conf_input=`$as_echo "$configure_input" | |
5622 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
5623 |
*) ac_sed_conf_input=$configure_input;; |
5624 |
esac |
5625 |
|
5626 |
case $ac_tag in |
5627 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
5628 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
5629 |
esac |
5630 |
;; |
5631 |
esac |
5632 |
|
5633 |
ac_dir=`$as_dirname -- "$ac_file" || |
5634 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
5635 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
5636 |
X"$ac_file" : 'X\(//\)$' \| \ |
5637 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
5638 |
$as_echo X"$ac_file" | |
5639 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
5640 |
s//\1/ |
5641 |
q |
5642 |
} |
5643 |
/^X\(\/\/\)[^/].*/{ |
5644 |
s//\1/ |
5645 |
q |
5646 |
} |
5647 |
/^X\(\/\/\)$/{ |
5648 |
s//\1/ |
5649 |
q |
5650 |
} |
5651 |
/^X\(\/\).*/{ |
5652 |
s//\1/ |
5653 |
q |
5654 |
} |
5655 |
s/.*/./; q'` |
5656 |
as_dir="$ac_dir"; as_fn_mkdir_p |
5657 |
ac_builddir=. |
5658 |
|
5659 |
case "$ac_dir" in |
5660 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
5661 |
*) |
5662 |
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
5663 |
# A ".." for each directory in $ac_dir_suffix. |
5664 |
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
5665 |
case $ac_top_builddir_sub in |
5666 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
5667 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
5668 |
esac ;; |
5669 |
esac |
5670 |
ac_abs_top_builddir=$ac_pwd |
5671 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
5672 |
# for backward compatibility: |
5673 |
ac_top_builddir=$ac_top_build_prefix |
5674 |
|
5675 |
case $srcdir in |
5676 |
.) # We are building in place. |
5677 |
ac_srcdir=. |
5678 |
ac_top_srcdir=$ac_top_builddir_sub |
5679 |
ac_abs_top_srcdir=$ac_pwd ;; |
5680 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
5681 |
ac_srcdir=$srcdir$ac_dir_suffix; |
5682 |
ac_top_srcdir=$srcdir |
5683 |
ac_abs_top_srcdir=$srcdir ;; |
5684 |
*) # Relative name. |
5685 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
5686 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
5687 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
5688 |
esac |
5689 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
5690 |
|
5691 |
|
5692 |
case $ac_mode in |
5693 |
|
5694 |
:H) |
5695 |
# |
5696 |
# CONFIG_HEADER |
5697 |
# |
5698 |
if test x"$ac_file" != x-; then |
5699 |
{ |
5700 |
$as_echo "/* $configure_input */" \ |
5701 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
5702 |
} >"$ac_tmp/config.h" \ |
5703 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5704 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
5705 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
5706 |
$as_echo "$as_me: $ac_file is unchanged" >&6;} |
5707 |
else |
5708 |
rm -f "$ac_file" |
5709 |
mv "$ac_tmp/config.h" "$ac_file" \ |
5710 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
5711 |
fi |
5712 |
else |
5713 |
$as_echo "/* $configure_input */" \ |
5714 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
5715 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
5716 |
fi |
5717 |
;; |
5718 |
|
5719 |
|
5720 |
esac |
5721 |
|
5722 |
done # for ac_tag |
5723 |
|
5724 |
|
5725 |
as_fn_exit 0 |
5726 |
_ACEOF |
5727 |
ac_clean_files=$ac_clean_files_save |
5728 |
|
5729 |
test $ac_write_fail = 0 || |
5730 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
5731 |
|
5732 |
|
5733 |
# configure is writing to config.log, and then calls config.status. |
5734 |
# config.status does its own redirection, appending to config.log. |
5735 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
5736 |
# by configure, so config.status won't be able to write to it; its |
5737 |
# output is simply discarded. So we exec the FD to /dev/null, |
5738 |
# effectively closing config.log, so it can be properly (re)opened and |
5739 |
# appended to by config.status. When coming back to configure, we |
5740 |
# need to make the FD available again. |
5741 |
if test "$no_create" != yes; then |
5742 |
ac_cs_success=: |
5743 |
ac_config_status_args= |
5744 |
test "$silent" = yes && |
5745 |
ac_config_status_args="$ac_config_status_args --quiet" |
5746 |
exec 5>/dev/null |
5747 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
5748 |
exec 5>>config.log |
5749 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
5750 |
# would make configure fail if this is the last instruction. |
5751 |
$ac_cs_success || as_fn_exit 1 |
5752 |
fi |
5753 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
5754 |
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
5755 |
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
5756 |
fi |
5757 |
|
5758 |
|