1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.61 for rdesktop 1.6.0.
|
---|
4 | #
|
---|
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
7 | # This configure script is free software; the Free Software Foundation
|
---|
8 | # gives unlimited permission to copy, distribute and modify it.
|
---|
9 | ## --------------------- ##
|
---|
10 | ## M4sh Initialization. ##
|
---|
11 | ## --------------------- ##
|
---|
12 |
|
---|
13 | # Be more Bourne compatible
|
---|
14 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
16 | emulate sh
|
---|
17 | NULLCMD=:
|
---|
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
19 | # is contrary to our usage. Disable this feature.
|
---|
20 | alias -g '${1+"$@"}'='"$@"'
|
---|
21 | setopt NO_GLOB_SUBST
|
---|
22 | else
|
---|
23 | case `(set -o) 2>/dev/null` in
|
---|
24 | *posix*) set -o posix ;;
|
---|
25 | esac
|
---|
26 |
|
---|
27 | fi
|
---|
28 |
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|
32 | # PATH needs CR
|
---|
33 | # Avoid depending upon Character Ranges.
|
---|
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
37 | as_cr_digits='0123456789'
|
---|
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
39 |
|
---|
40 | # The user is always right.
|
---|
41 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
42 | echo "#! /bin/sh" >conf$$.sh
|
---|
43 | echo "exit 0" >>conf$$.sh
|
---|
44 | chmod +x conf$$.sh
|
---|
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
46 | PATH_SEPARATOR=';'
|
---|
47 | else
|
---|
48 | PATH_SEPARATOR=:
|
---|
49 | fi
|
---|
50 | rm -f conf$$.sh
|
---|
51 | fi
|
---|
52 |
|
---|
53 | # Support unset when possible.
|
---|
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
55 | as_unset=unset
|
---|
56 | else
|
---|
57 | as_unset=false
|
---|
58 | fi
|
---|
59 |
|
---|
60 |
|
---|
61 | # IFS
|
---|
62 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
63 | # there to prevent editors from complaining about space-tab.
|
---|
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
65 | # splitting by setting IFS to empty value.)
|
---|
66 | as_nl='
|
---|
67 | '
|
---|
68 | IFS=" "" $as_nl"
|
---|
69 |
|
---|
70 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
71 | case $0 in
|
---|
72 | *[\\/]* ) as_myself=$0 ;;
|
---|
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
74 | for as_dir in $PATH
|
---|
75 | do
|
---|
76 | IFS=$as_save_IFS
|
---|
77 | test -z "$as_dir" && as_dir=.
|
---|
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
79 | done
|
---|
80 | IFS=$as_save_IFS
|
---|
81 |
|
---|
82 | ;;
|
---|
83 | esac
|
---|
84 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
85 | # in which case we are not to be found in the path.
|
---|
86 | if test "x$as_myself" = x; then
|
---|
87 | as_myself=$0
|
---|
88 | fi
|
---|
89 | if test ! -f "$as_myself"; then
|
---|
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
91 | { (exit 1); exit 1; }
|
---|
92 | fi
|
---|
93 |
|
---|
94 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
95 | for as_var in ENV MAIL MAILPATH
|
---|
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
97 | done
|
---|
98 | PS1='$ '
|
---|
99 | PS2='> '
|
---|
100 | PS4='+ '
|
---|
101 |
|
---|
102 | # NLS nuisances.
|
---|
103 | for as_var in \
|
---|
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
106 | LC_TELEPHONE LC_TIME
|
---|
107 | do
|
---|
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
109 | eval $as_var=C; export $as_var
|
---|
110 | else
|
---|
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
112 | fi
|
---|
113 | done
|
---|
114 |
|
---|
115 | # Required to use basename.
|
---|
116 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
118 | as_expr=expr
|
---|
119 | else
|
---|
120 | as_expr=false
|
---|
121 | fi
|
---|
122 |
|
---|
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
124 | as_basename=basename
|
---|
125 | else
|
---|
126 | as_basename=false
|
---|
127 | fi
|
---|
128 |
|
---|
129 |
|
---|
130 | # Name of the executable.
|
---|
131 | as_me=`$as_basename -- "$0" ||
|
---|
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
133 | X"$0" : 'X\(//\)$' \| \
|
---|
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
135 | echo X/"$0" |
|
---|
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
137 | s//\1/
|
---|
138 | q
|
---|
139 | }
|
---|
140 | /^X\/\(\/\/\)$/{
|
---|
141 | s//\1/
|
---|
142 | q
|
---|
143 | }
|
---|
144 | /^X\/\(\/\).*/{
|
---|
145 | s//\1/
|
---|
146 | q
|
---|
147 | }
|
---|
148 | s/.*/./; q'`
|
---|
149 |
|
---|
150 | # CDPATH.
|
---|
151 | $as_unset CDPATH
|
---|
152 |
|
---|
153 |
|
---|
154 | if test "x$CONFIG_SHELL" = x; then
|
---|
155 | if (eval ":") 2>/dev/null; then
|
---|
156 | as_have_required=yes
|
---|
157 | else
|
---|
158 | as_have_required=no
|
---|
159 | fi
|
---|
160 |
|
---|
161 | if test $as_have_required = yes && (eval ":
|
---|
162 | (as_func_return () {
|
---|
163 | (exit \$1)
|
---|
164 | }
|
---|
165 | as_func_success () {
|
---|
166 | as_func_return 0
|
---|
167 | }
|
---|
168 | as_func_failure () {
|
---|
169 | as_func_return 1
|
---|
170 | }
|
---|
171 | as_func_ret_success () {
|
---|
172 | return 0
|
---|
173 | }
|
---|
174 | as_func_ret_failure () {
|
---|
175 | return 1
|
---|
176 | }
|
---|
177 |
|
---|
178 | exitcode=0
|
---|
179 | if as_func_success; then
|
---|
180 | :
|
---|
181 | else
|
---|
182 | exitcode=1
|
---|
183 | echo as_func_success failed.
|
---|
184 | fi
|
---|
185 |
|
---|
186 | if as_func_failure; then
|
---|
187 | exitcode=1
|
---|
188 | echo as_func_failure succeeded.
|
---|
189 | fi
|
---|
190 |
|
---|
191 | if as_func_ret_success; then
|
---|
192 | :
|
---|
193 | else
|
---|
194 | exitcode=1
|
---|
195 | echo as_func_ret_success failed.
|
---|
196 | fi
|
---|
197 |
|
---|
198 | if as_func_ret_failure; then
|
---|
199 | exitcode=1
|
---|
200 | echo as_func_ret_failure succeeded.
|
---|
201 | fi
|
---|
202 |
|
---|
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
204 | :
|
---|
205 | else
|
---|
206 | exitcode=1
|
---|
207 | echo positional parameters were not saved.
|
---|
208 | fi
|
---|
209 |
|
---|
210 | test \$exitcode = 0) || { (exit 1); exit 1; }
|
---|
211 |
|
---|
212 | (
|
---|
213 | as_lineno_1=\$LINENO
|
---|
214 | as_lineno_2=\$LINENO
|
---|
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
|
---|
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
|
---|
217 | ") 2> /dev/null; then
|
---|
218 | :
|
---|
219 | else
|
---|
220 | as_candidate_shells=
|
---|
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
223 | do
|
---|
224 | IFS=$as_save_IFS
|
---|
225 | test -z "$as_dir" && as_dir=.
|
---|
226 | case $as_dir in
|
---|
227 | /*)
|
---|
228 | for as_base in sh bash ksh sh5; do
|
---|
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
|
---|
230 | done;;
|
---|
231 | esac
|
---|
232 | done
|
---|
233 | IFS=$as_save_IFS
|
---|
234 |
|
---|
235 |
|
---|
236 | for as_shell in $as_candidate_shells $SHELL; do
|
---|
237 | # Try only shells that exist, to save several forks.
|
---|
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
|
---|
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF
|
---|
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
241 | emulate sh
|
---|
242 | NULLCMD=:
|
---|
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
244 | # is contrary to our usage. Disable this feature.
|
---|
245 | alias -g '${1+"$@"}'='"$@"'
|
---|
246 | setopt NO_GLOB_SUBST
|
---|
247 | else
|
---|
248 | case `(set -o) 2>/dev/null` in
|
---|
249 | *posix*) set -o posix ;;
|
---|
250 | esac
|
---|
251 |
|
---|
252 | fi
|
---|
253 |
|
---|
254 |
|
---|
255 | :
|
---|
256 | _ASEOF
|
---|
257 | }; then
|
---|
258 | CONFIG_SHELL=$as_shell
|
---|
259 | as_have_required=yes
|
---|
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF
|
---|
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
262 | emulate sh
|
---|
263 | NULLCMD=:
|
---|
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
265 | # is contrary to our usage. Disable this feature.
|
---|
266 | alias -g '${1+"$@"}'='"$@"'
|
---|
267 | setopt NO_GLOB_SUBST
|
---|
268 | else
|
---|
269 | case `(set -o) 2>/dev/null` in
|
---|
270 | *posix*) set -o posix ;;
|
---|
271 | esac
|
---|
272 |
|
---|
273 | fi
|
---|
274 |
|
---|
275 |
|
---|
276 | :
|
---|
277 | (as_func_return () {
|
---|
278 | (exit $1)
|
---|
279 | }
|
---|
280 | as_func_success () {
|
---|
281 | as_func_return 0
|
---|
282 | }
|
---|
283 | as_func_failure () {
|
---|
284 | as_func_return 1
|
---|
285 | }
|
---|
286 | as_func_ret_success () {
|
---|
287 | return 0
|
---|
288 | }
|
---|
289 | as_func_ret_failure () {
|
---|
290 | return 1
|
---|
291 | }
|
---|
292 |
|
---|
293 | exitcode=0
|
---|
294 | if as_func_success; then
|
---|
295 | :
|
---|
296 | else
|
---|
297 | exitcode=1
|
---|
298 | echo as_func_success failed.
|
---|
299 | fi
|
---|
300 |
|
---|
301 | if as_func_failure; then
|
---|
302 | exitcode=1
|
---|
303 | echo as_func_failure succeeded.
|
---|
304 | fi
|
---|
305 |
|
---|
306 | if as_func_ret_success; then
|
---|
307 | :
|
---|
308 | else
|
---|
309 | exitcode=1
|
---|
310 | echo as_func_ret_success failed.
|
---|
311 | fi
|
---|
312 |
|
---|
313 | if as_func_ret_failure; then
|
---|
314 | exitcode=1
|
---|
315 | echo as_func_ret_failure succeeded.
|
---|
316 | fi
|
---|
317 |
|
---|
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then
|
---|
319 | :
|
---|
320 | else
|
---|
321 | exitcode=1
|
---|
322 | echo positional parameters were not saved.
|
---|
323 | fi
|
---|
324 |
|
---|
325 | test $exitcode = 0) || { (exit 1); exit 1; }
|
---|
326 |
|
---|
327 | (
|
---|
328 | as_lineno_1=$LINENO
|
---|
329 | as_lineno_2=$LINENO
|
---|
330 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
|
---|
332 |
|
---|
333 | _ASEOF
|
---|
334 | }; then
|
---|
335 | break
|
---|
336 | fi
|
---|
337 |
|
---|
338 | fi
|
---|
339 |
|
---|
340 | done
|
---|
341 |
|
---|
342 | if test "x$CONFIG_SHELL" != x; then
|
---|
343 | for as_var in BASH_ENV ENV
|
---|
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
345 | done
|
---|
346 | export CONFIG_SHELL
|
---|
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
|
---|
348 | fi
|
---|
349 |
|
---|
350 |
|
---|
351 | if test $as_have_required = no; then
|
---|
352 | echo This script requires a shell more modern than all the
|
---|
353 | echo shells that I found on your system. Please install a
|
---|
354 | echo modern shell, or manually run the script under such a
|
---|
355 | echo shell if you do have one.
|
---|
356 | { (exit 1); exit 1; }
|
---|
357 | fi
|
---|
358 |
|
---|
359 |
|
---|
360 | fi
|
---|
361 |
|
---|
362 | fi
|
---|
363 |
|
---|
364 |
|
---|
365 |
|
---|
366 | (eval "as_func_return () {
|
---|
367 | (exit \$1)
|
---|
368 | }
|
---|
369 | as_func_success () {
|
---|
370 | as_func_return 0
|
---|
371 | }
|
---|
372 | as_func_failure () {
|
---|
373 | as_func_return 1
|
---|
374 | }
|
---|
375 | as_func_ret_success () {
|
---|
376 | return 0
|
---|
377 | }
|
---|
378 | as_func_ret_failure () {
|
---|
379 | return 1
|
---|
380 | }
|
---|
381 |
|
---|
382 | exitcode=0
|
---|
383 | if as_func_success; then
|
---|
384 | :
|
---|
385 | else
|
---|
386 | exitcode=1
|
---|
387 | echo as_func_success failed.
|
---|
388 | fi
|
---|
389 |
|
---|
390 | if as_func_failure; then
|
---|
391 | exitcode=1
|
---|
392 | echo as_func_failure succeeded.
|
---|
393 | fi
|
---|
394 |
|
---|
395 | if as_func_ret_success; then
|
---|
396 | :
|
---|
397 | else
|
---|
398 | exitcode=1
|
---|
399 | echo as_func_ret_success failed.
|
---|
400 | fi
|
---|
401 |
|
---|
402 | if as_func_ret_failure; then
|
---|
403 | exitcode=1
|
---|
404 | echo as_func_ret_failure succeeded.
|
---|
405 | fi
|
---|
406 |
|
---|
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
|
---|
408 | :
|
---|
409 | else
|
---|
410 | exitcode=1
|
---|
411 | echo positional parameters were not saved.
|
---|
412 | fi
|
---|
413 |
|
---|
414 | test \$exitcode = 0") || {
|
---|
415 | echo No shell found that supports shell functions.
|
---|
416 | echo Please tell [email protected] about your system,
|
---|
417 | echo including any error possibly output before this
|
---|
418 | echo message
|
---|
419 | }
|
---|
420 |
|
---|
421 |
|
---|
422 |
|
---|
423 | as_lineno_1=$LINENO
|
---|
424 | as_lineno_2=$LINENO
|
---|
425 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
427 |
|
---|
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
429 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
430 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
431 | # does the real work. The second script uses 'N' to pair each
|
---|
432 | # line-number line with the line containing $LINENO, and appends
|
---|
433 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
434 | # case at line end.
|
---|
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
437 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
438 | sed -n '
|
---|
439 | p
|
---|
440 | /[$]LINENO/=
|
---|
441 | ' <$as_myself |
|
---|
442 | sed '
|
---|
443 | s/[$]LINENO.*/&-/
|
---|
444 | t lineno
|
---|
445 | b
|
---|
446 | :lineno
|
---|
447 | N
|
---|
448 | :loop
|
---|
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
450 | t loop
|
---|
451 | s/-\n.*//
|
---|
452 | ' >$as_me.lineno &&
|
---|
453 | chmod +x "$as_me.lineno" ||
|
---|
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
455 | { (exit 1); exit 1; }; }
|
---|
456 |
|
---|
457 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
458 | # (the dirname of $[0] is not the place where we might find the
|
---|
459 | # original and so on. Autoconf is especially sensitive to this).
|
---|
460 | . "./$as_me.lineno"
|
---|
461 | # Exit status is that of the last command.
|
---|
462 | exit
|
---|
463 | }
|
---|
464 |
|
---|
465 |
|
---|
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
467 | as_dirname=dirname
|
---|
468 | else
|
---|
469 | as_dirname=false
|
---|
470 | fi
|
---|
471 |
|
---|
472 | ECHO_C= ECHO_N= ECHO_T=
|
---|
473 | case `echo -n x` in
|
---|
474 | -n*)
|
---|
475 | case `echo 'x\c'` in
|
---|
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
477 | *) ECHO_C='\c';;
|
---|
478 | esac;;
|
---|
479 | *)
|
---|
480 | ECHO_N='-n';;
|
---|
481 | esac
|
---|
482 |
|
---|
483 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
485 | as_expr=expr
|
---|
486 | else
|
---|
487 | as_expr=false
|
---|
488 | fi
|
---|
489 |
|
---|
490 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
491 | if test -d conf$$.dir; then
|
---|
492 | rm -f conf$$.dir/conf$$.file
|
---|
493 | else
|
---|
494 | rm -f conf$$.dir
|
---|
495 | mkdir conf$$.dir
|
---|
496 | fi
|
---|
497 | echo >conf$$.file
|
---|
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
499 | as_ln_s='ln -s'
|
---|
500 | # ... but there are two gotchas:
|
---|
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
503 | # In both cases, we have to default to `cp -p'.
|
---|
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
505 | as_ln_s='cp -p'
|
---|
506 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
507 | as_ln_s=ln
|
---|
508 | else
|
---|
509 | as_ln_s='cp -p'
|
---|
510 | fi
|
---|
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
512 | rmdir conf$$.dir 2>/dev/null
|
---|
513 |
|
---|
514 | if mkdir -p . 2>/dev/null; then
|
---|
515 | as_mkdir_p=:
|
---|
516 | else
|
---|
517 | test -d ./-p && rmdir ./-p
|
---|
518 | as_mkdir_p=false
|
---|
519 | fi
|
---|
520 |
|
---|
521 | if test -x / >/dev/null 2>&1; then
|
---|
522 | as_test_x='test -x'
|
---|
523 | else
|
---|
524 | if ls -dL / >/dev/null 2>&1; then
|
---|
525 | as_ls_L_option=L
|
---|
526 | else
|
---|
527 | as_ls_L_option=
|
---|
528 | fi
|
---|
529 | as_test_x='
|
---|
530 | eval sh -c '\''
|
---|
531 | if test -d "$1"; then
|
---|
532 | test -d "$1/.";
|
---|
533 | else
|
---|
534 | case $1 in
|
---|
535 | -*)set "./$1";;
|
---|
536 | esac;
|
---|
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
538 | ???[sx]*):;;*)false;;esac;fi
|
---|
539 | '\'' sh
|
---|
540 | '
|
---|
541 | fi
|
---|
542 | as_executable_p=$as_test_x
|
---|
543 |
|
---|
544 | # Sed expression to map a string onto a valid CPP name.
|
---|
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
546 |
|
---|
547 | # Sed expression to map a string onto a valid variable name.
|
---|
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
549 |
|
---|
550 |
|
---|
551 |
|
---|
552 | exec 7<&0 </dev/null 6>&1
|
---|
553 |
|
---|
554 | # Name of the host.
|
---|
555 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
556 | # so uname gets run too.
|
---|
557 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
558 |
|
---|
559 | #
|
---|
560 | # Initializations.
|
---|
561 | #
|
---|
562 | ac_default_prefix=/usr/local
|
---|
563 | ac_clean_files=
|
---|
564 | ac_config_libobj_dir=.
|
---|
565 | LIBOBJS=
|
---|
566 | cross_compiling=no
|
---|
567 | subdirs=
|
---|
568 | MFLAGS=
|
---|
569 | MAKEFLAGS=
|
---|
570 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
571 |
|
---|
572 | # Identity of this package.
|
---|
573 | PACKAGE_NAME='rdesktop'
|
---|
574 | PACKAGE_TARNAME='rdesktop'
|
---|
575 | PACKAGE_VERSION='1.6.0'
|
---|
576 | PACKAGE_STRING='rdesktop 1.6.0'
|
---|
577 | PACKAGE_BUGREPORT=''
|
---|
578 |
|
---|
579 | ac_unique_file="rdesktop.c"
|
---|
580 | # Factoring default headers for most tests.
|
---|
581 | ac_includes_default="\
|
---|
582 | #include <stdio.h>
|
---|
583 | #ifdef HAVE_SYS_TYPES_H
|
---|
584 | # include <sys/types.h>
|
---|
585 | #endif
|
---|
586 | #ifdef HAVE_SYS_STAT_H
|
---|
587 | # include <sys/stat.h>
|
---|
588 | #endif
|
---|
589 | #ifdef STDC_HEADERS
|
---|
590 | # include <stdlib.h>
|
---|
591 | # include <stddef.h>
|
---|
592 | #else
|
---|
593 | # ifdef HAVE_STDLIB_H
|
---|
594 | # include <stdlib.h>
|
---|
595 | # endif
|
---|
596 | #endif
|
---|
597 | #ifdef HAVE_STRING_H
|
---|
598 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
|
---|
599 | # include <memory.h>
|
---|
600 | # endif
|
---|
601 | # include <string.h>
|
---|
602 | #endif
|
---|
603 | #ifdef HAVE_STRINGS_H
|
---|
604 | # include <strings.h>
|
---|
605 | #endif
|
---|
606 | #ifdef HAVE_INTTYPES_H
|
---|
607 | # include <inttypes.h>
|
---|
608 | #endif
|
---|
609 | #ifdef HAVE_STDINT_H
|
---|
610 | # include <stdint.h>
|
---|
611 | #endif
|
---|
612 | #ifdef HAVE_UNISTD_H
|
---|
613 | # include <unistd.h>
|
---|
614 | #endif"
|
---|
615 |
|
---|
616 | ac_subst_vars='SHELL
|
---|
617 | PATH_SEPARATOR
|
---|
618 | PACKAGE_NAME
|
---|
619 | PACKAGE_TARNAME
|
---|
620 | PACKAGE_VERSION
|
---|
621 | PACKAGE_STRING
|
---|
622 | PACKAGE_BUGREPORT
|
---|
623 | exec_prefix
|
---|
624 | prefix
|
---|
625 | program_transform_name
|
---|
626 | bindir
|
---|
627 | sbindir
|
---|
628 | libexecdir
|
---|
629 | datarootdir
|
---|
630 | datadir
|
---|
631 | sysconfdir
|
---|
632 | sharedstatedir
|
---|
633 | localstatedir
|
---|
634 | includedir
|
---|
635 | oldincludedir
|
---|
636 | docdir
|
---|
637 | infodir
|
---|
638 | htmldir
|
---|
639 | dvidir
|
---|
640 | pdfdir
|
---|
641 | psdir
|
---|
642 | libdir
|
---|
643 | localedir
|
---|
644 | mandir
|
---|
645 | DEFS
|
---|
646 | ECHO_C
|
---|
647 | ECHO_N
|
---|
648 | ECHO_T
|
---|
649 | LIBS
|
---|
650 | build_alias
|
---|
651 | host_alias
|
---|
652 | target_alias
|
---|
653 | CC
|
---|
654 | CFLAGS
|
---|
655 | LDFLAGS
|
---|
656 | CPPFLAGS
|
---|
657 | ac_ct_CC
|
---|
658 | EXEEXT
|
---|
659 | OBJEXT
|
---|
660 | INSTALL_PROGRAM
|
---|
661 | INSTALL_SCRIPT
|
---|
662 | INSTALL_DATA
|
---|
663 | CPP
|
---|
664 | GREP
|
---|
665 | EGREP
|
---|
666 | XMKMF
|
---|
667 | X_CFLAGS
|
---|
668 | X_PRE_LIBS
|
---|
669 | X_LIBS
|
---|
670 | X_EXTRA_LIBS
|
---|
671 | PKG_CONFIG
|
---|
672 | STRIP
|
---|
673 | ssldir
|
---|
674 | PCSCLITE_CFLAGS
|
---|
675 | PCSCLITE_LIBS
|
---|
676 | SCARDOBJ
|
---|
677 | VNCINC
|
---|
678 | LDVNC
|
---|
679 | VNCLINK
|
---|
680 | RDP2VNCTARGET
|
---|
681 | LIBAO_CFLAGS
|
---|
682 | LIBAO_LIBS
|
---|
683 | ALSA_CFLAGS
|
---|
684 | ALSA_LIBS
|
---|
685 | LIBSAMPLERATE_CFLAGS
|
---|
686 | LIBSAMPLERATE_LIBS
|
---|
687 | SOUNDOBJ
|
---|
688 | LIBOBJS
|
---|
689 | LIBICONV
|
---|
690 | build
|
---|
691 | build_cpu
|
---|
692 | build_vendor
|
---|
693 | build_os
|
---|
694 | host
|
---|
695 | host_cpu
|
---|
696 | host_vendor
|
---|
697 | host_os
|
---|
698 | LTLIBOBJS'
|
---|
699 | ac_subst_files=''
|
---|
700 | ac_precious_vars='build_alias
|
---|
701 | host_alias
|
---|
702 | target_alias
|
---|
703 | CC
|
---|
704 | CFLAGS
|
---|
705 | LDFLAGS
|
---|
706 | LIBS
|
---|
707 | CPPFLAGS
|
---|
708 | CPP
|
---|
709 | XMKMF
|
---|
710 | PKG_CONFIG
|
---|
711 | PCSCLITE_CFLAGS
|
---|
712 | PCSCLITE_LIBS
|
---|
713 | LIBAO_CFLAGS
|
---|
714 | LIBAO_LIBS
|
---|
715 | ALSA_CFLAGS
|
---|
716 | ALSA_LIBS
|
---|
717 | LIBSAMPLERATE_CFLAGS
|
---|
718 | LIBSAMPLERATE_LIBS'
|
---|
719 |
|
---|
720 |
|
---|
721 | # Initialize some variables set by options.
|
---|
722 | ac_init_help=
|
---|
723 | ac_init_version=false
|
---|
724 | # The variables have the same names as the options, with
|
---|
725 | # dashes changed to underlines.
|
---|
726 | cache_file=/dev/null
|
---|
727 | exec_prefix=NONE
|
---|
728 | no_create=
|
---|
729 | no_recursion=
|
---|
730 | prefix=NONE
|
---|
731 | program_prefix=NONE
|
---|
732 | program_suffix=NONE
|
---|
733 | program_transform_name=s,x,x,
|
---|
734 | silent=
|
---|
735 | site=
|
---|
736 | srcdir=
|
---|
737 | verbose=
|
---|
738 | x_includes=NONE
|
---|
739 | x_libraries=NONE
|
---|
740 |
|
---|
741 | # Installation directory options.
|
---|
742 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
743 | # and all the variables that are supposed to be based on exec_prefix
|
---|
744 | # by default will actually change.
|
---|
745 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
746 | # (The list follows the same order as the GNU Coding Standards.)
|
---|
747 | bindir='${exec_prefix}/bin'
|
---|
748 | sbindir='${exec_prefix}/sbin'
|
---|
749 | libexecdir='${exec_prefix}/libexec'
|
---|
750 | datarootdir='${prefix}/share'
|
---|
751 | datadir='${datarootdir}'
|
---|
752 | sysconfdir='${prefix}/etc'
|
---|
753 | sharedstatedir='${prefix}/com'
|
---|
754 | localstatedir='${prefix}/var'
|
---|
755 | includedir='${prefix}/include'
|
---|
756 | oldincludedir='/usr/include'
|
---|
757 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
|
---|
758 | infodir='${datarootdir}/info'
|
---|
759 | htmldir='${docdir}'
|
---|
760 | dvidir='${docdir}'
|
---|
761 | pdfdir='${docdir}'
|
---|
762 | psdir='${docdir}'
|
---|
763 | libdir='${exec_prefix}/lib'
|
---|
764 | localedir='${datarootdir}/locale'
|
---|
765 | mandir='${datarootdir}/man'
|
---|
766 |
|
---|
767 | ac_prev=
|
---|
768 | ac_dashdash=
|
---|
769 | for ac_option
|
---|
770 | do
|
---|
771 | # If the previous option needs an argument, assign it.
|
---|
772 | if test -n "$ac_prev"; then
|
---|
773 | eval $ac_prev=\$ac_option
|
---|
774 | ac_prev=
|
---|
775 | continue
|
---|
776 | fi
|
---|
777 |
|
---|
778 | case $ac_option in
|
---|
779 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
|
---|
780 | *) ac_optarg=yes ;;
|
---|
781 | esac
|
---|
782 |
|
---|
783 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
784 |
|
---|
785 | case $ac_dashdash$ac_option in
|
---|
786 | --)
|
---|
787 | ac_dashdash=yes ;;
|
---|
788 |
|
---|
789 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
790 | ac_prev=bindir ;;
|
---|
791 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
792 | bindir=$ac_optarg ;;
|
---|
793 |
|
---|
794 | -build | --build | --buil | --bui | --bu)
|
---|
795 | ac_prev=build_alias ;;
|
---|
796 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
797 | build_alias=$ac_optarg ;;
|
---|
798 |
|
---|
799 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
800 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
801 | ac_prev=cache_file ;;
|
---|
802 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
803 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
804 | cache_file=$ac_optarg ;;
|
---|
805 |
|
---|
806 | --config-cache | -C)
|
---|
807 | cache_file=config.cache ;;
|
---|
808 |
|
---|
809 | -datadir | --datadir | --datadi | --datad)
|
---|
810 | ac_prev=datadir ;;
|
---|
811 | -datadir=* | --datadir=* | --datadi=* | --datad=*)
|
---|
812 | datadir=$ac_optarg ;;
|
---|
813 |
|
---|
814 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
|
---|
815 | | --dataroo | --dataro | --datar)
|
---|
816 | ac_prev=datarootdir ;;
|
---|
817 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
|
---|
818 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
|
---|
819 | datarootdir=$ac_optarg ;;
|
---|
820 |
|
---|
821 | -disable-* | --disable-*)
|
---|
822 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
823 | # Reject names that are not valid shell variable names.
|
---|
824 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
825 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
826 | { (exit 1); exit 1; }; }
|
---|
827 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
828 | eval enable_$ac_feature=no ;;
|
---|
829 |
|
---|
830 | -docdir | --docdir | --docdi | --doc | --do)
|
---|
831 | ac_prev=docdir ;;
|
---|
832 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
|
---|
833 | docdir=$ac_optarg ;;
|
---|
834 |
|
---|
835 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
|
---|
836 | ac_prev=dvidir ;;
|
---|
837 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
|
---|
838 | dvidir=$ac_optarg ;;
|
---|
839 |
|
---|
840 | -enable-* | --enable-*)
|
---|
841 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
842 | # Reject names that are not valid shell variable names.
|
---|
843 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
844 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
845 | { (exit 1); exit 1; }; }
|
---|
846 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
|
---|
847 | eval enable_$ac_feature=\$ac_optarg ;;
|
---|
848 |
|
---|
849 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
850 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
851 | | --exec | --exe | --ex)
|
---|
852 | ac_prev=exec_prefix ;;
|
---|
853 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
854 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
855 | | --exec=* | --exe=* | --ex=*)
|
---|
856 | exec_prefix=$ac_optarg ;;
|
---|
857 |
|
---|
858 | -gas | --gas | --ga | --g)
|
---|
859 | # Obsolete; use --with-gas.
|
---|
860 | with_gas=yes ;;
|
---|
861 |
|
---|
862 | -help | --help | --hel | --he | -h)
|
---|
863 | ac_init_help=long ;;
|
---|
864 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
865 | ac_init_help=recursive ;;
|
---|
866 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
867 | ac_init_help=short ;;
|
---|
868 |
|
---|
869 | -host | --host | --hos | --ho)
|
---|
870 | ac_prev=host_alias ;;
|
---|
871 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
872 | host_alias=$ac_optarg ;;
|
---|
873 |
|
---|
874 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
|
---|
875 | ac_prev=htmldir ;;
|
---|
876 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
|
---|
877 | | --ht=*)
|
---|
878 | htmldir=$ac_optarg ;;
|
---|
879 |
|
---|
880 | -includedir | --includedir | --includedi | --included | --include \
|
---|
881 | | --includ | --inclu | --incl | --inc)
|
---|
882 | ac_prev=includedir ;;
|
---|
883 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
884 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
885 | includedir=$ac_optarg ;;
|
---|
886 |
|
---|
887 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
888 | ac_prev=infodir ;;
|
---|
889 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
890 | infodir=$ac_optarg ;;
|
---|
891 |
|
---|
892 | -libdir | --libdir | --libdi | --libd)
|
---|
893 | ac_prev=libdir ;;
|
---|
894 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
895 | libdir=$ac_optarg ;;
|
---|
896 |
|
---|
897 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
898 | | --libexe | --libex | --libe)
|
---|
899 | ac_prev=libexecdir ;;
|
---|
900 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
901 | | --libexe=* | --libex=* | --libe=*)
|
---|
902 | libexecdir=$ac_optarg ;;
|
---|
903 |
|
---|
904 | -localedir | --localedir | --localedi | --localed | --locale)
|
---|
905 | ac_prev=localedir ;;
|
---|
906 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
|
---|
907 | localedir=$ac_optarg ;;
|
---|
908 |
|
---|
909 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
910 | | --localstate | --localstat | --localsta | --localst | --locals)
|
---|
911 | ac_prev=localstatedir ;;
|
---|
912 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
913 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
|
---|
914 | localstatedir=$ac_optarg ;;
|
---|
915 |
|
---|
916 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
917 | ac_prev=mandir ;;
|
---|
918 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
919 | mandir=$ac_optarg ;;
|
---|
920 |
|
---|
921 | -nfp | --nfp | --nf)
|
---|
922 | # Obsolete; use --without-fp.
|
---|
923 | with_fp=no ;;
|
---|
924 |
|
---|
925 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
926 | | --no-cr | --no-c | -n)
|
---|
927 | no_create=yes ;;
|
---|
928 |
|
---|
929 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
930 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
931 | no_recursion=yes ;;
|
---|
932 |
|
---|
933 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
934 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
935 | | --oldin | --oldi | --old | --ol | --o)
|
---|
936 | ac_prev=oldincludedir ;;
|
---|
937 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
938 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
939 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
940 | oldincludedir=$ac_optarg ;;
|
---|
941 |
|
---|
942 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
943 | ac_prev=prefix ;;
|
---|
944 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
945 | prefix=$ac_optarg ;;
|
---|
946 |
|
---|
947 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
948 | | --program-pre | --program-pr | --program-p)
|
---|
949 | ac_prev=program_prefix ;;
|
---|
950 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
951 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
952 | program_prefix=$ac_optarg ;;
|
---|
953 |
|
---|
954 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
955 | | --program-suf | --program-su | --program-s)
|
---|
956 | ac_prev=program_suffix ;;
|
---|
957 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
958 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
959 | program_suffix=$ac_optarg ;;
|
---|
960 |
|
---|
961 | -program-transform-name | --program-transform-name \
|
---|
962 | | --program-transform-nam | --program-transform-na \
|
---|
963 | | --program-transform-n | --program-transform- \
|
---|
964 | | --program-transform | --program-transfor \
|
---|
965 | | --program-transfo | --program-transf \
|
---|
966 | | --program-trans | --program-tran \
|
---|
967 | | --progr-tra | --program-tr | --program-t)
|
---|
968 | ac_prev=program_transform_name ;;
|
---|
969 | -program-transform-name=* | --program-transform-name=* \
|
---|
970 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
971 | | --program-transform-n=* | --program-transform-=* \
|
---|
972 | | --program-transform=* | --program-transfor=* \
|
---|
973 | | --program-transfo=* | --program-transf=* \
|
---|
974 | | --program-trans=* | --program-tran=* \
|
---|
975 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
976 | program_transform_name=$ac_optarg ;;
|
---|
977 |
|
---|
978 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
|
---|
979 | ac_prev=pdfdir ;;
|
---|
980 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
|
---|
981 | pdfdir=$ac_optarg ;;
|
---|
982 |
|
---|
983 | -psdir | --psdir | --psdi | --psd | --ps)
|
---|
984 | ac_prev=psdir ;;
|
---|
985 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
|
---|
986 | psdir=$ac_optarg ;;
|
---|
987 |
|
---|
988 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
989 | | -silent | --silent | --silen | --sile | --sil)
|
---|
990 | silent=yes ;;
|
---|
991 |
|
---|
992 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
993 | ac_prev=sbindir ;;
|
---|
994 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
995 | | --sbi=* | --sb=*)
|
---|
996 | sbindir=$ac_optarg ;;
|
---|
997 |
|
---|
998 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
999 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
1000 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
1001 | | --sha | --sh)
|
---|
1002 | ac_prev=sharedstatedir ;;
|
---|
1003 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
1004 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
1005 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
1006 | | --sha=* | --sh=*)
|
---|
1007 | sharedstatedir=$ac_optarg ;;
|
---|
1008 |
|
---|
1009 | -site | --site | --sit)
|
---|
1010 | ac_prev=site ;;
|
---|
1011 | -site=* | --site=* | --sit=*)
|
---|
1012 | site=$ac_optarg ;;
|
---|
1013 |
|
---|
1014 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
1015 | ac_prev=srcdir ;;
|
---|
1016 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
1017 | srcdir=$ac_optarg ;;
|
---|
1018 |
|
---|
1019 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
1020 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
1021 | ac_prev=sysconfdir ;;
|
---|
1022 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
1023 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
1024 | sysconfdir=$ac_optarg ;;
|
---|
1025 |
|
---|
1026 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
1027 | ac_prev=target_alias ;;
|
---|
1028 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
1029 | target_alias=$ac_optarg ;;
|
---|
1030 |
|
---|
1031 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
1032 | verbose=yes ;;
|
---|
1033 |
|
---|
1034 | -version | --version | --versio | --versi | --vers | -V)
|
---|
1035 | ac_init_version=: ;;
|
---|
1036 |
|
---|
1037 | -with-* | --with-*)
|
---|
1038 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
1039 | # Reject names that are not valid shell variable names.
|
---|
1040 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1041 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
1042 | { (exit 1); exit 1; }; }
|
---|
1043 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
1044 | eval with_$ac_package=\$ac_optarg ;;
|
---|
1045 |
|
---|
1046 | -without-* | --without-*)
|
---|
1047 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
1048 | # Reject names that are not valid shell variable names.
|
---|
1049 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1050 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
1051 | { (exit 1); exit 1; }; }
|
---|
1052 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
|
---|
1053 | eval with_$ac_package=no ;;
|
---|
1054 |
|
---|
1055 | --x)
|
---|
1056 | # Obsolete; use --with-x.
|
---|
1057 | with_x=yes ;;
|
---|
1058 |
|
---|
1059 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
1060 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
1061 | ac_prev=x_includes ;;
|
---|
1062 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
1063 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
1064 | x_includes=$ac_optarg ;;
|
---|
1065 |
|
---|
1066 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
1067 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
1068 | ac_prev=x_libraries ;;
|
---|
1069 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
1070 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
1071 | x_libraries=$ac_optarg ;;
|
---|
1072 |
|
---|
1073 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
1074 | Try \`$0 --help' for more information." >&2
|
---|
1075 | { (exit 1); exit 1; }; }
|
---|
1076 | ;;
|
---|
1077 |
|
---|
1078 | *=*)
|
---|
1079 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
1080 | # Reject names that are not valid shell variable names.
|
---|
1081 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
1082 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
1083 | { (exit 1); exit 1; }; }
|
---|
1084 | eval $ac_envvar=\$ac_optarg
|
---|
1085 | export $ac_envvar ;;
|
---|
1086 |
|
---|
1087 | *)
|
---|
1088 | # FIXME: should be removed in autoconf 3.0.
|
---|
1089 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
1090 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
1091 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
1092 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
1093 | ;;
|
---|
1094 |
|
---|
1095 | esac
|
---|
1096 | done
|
---|
1097 |
|
---|
1098 | if test -n "$ac_prev"; then
|
---|
1099 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
1100 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
1101 | { (exit 1); exit 1; }; }
|
---|
1102 | fi
|
---|
1103 |
|
---|
1104 | # Be sure to have absolute directory names.
|
---|
1105 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
|
---|
1106 | datadir sysconfdir sharedstatedir localstatedir includedir \
|
---|
1107 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
|
---|
1108 | libdir localedir mandir
|
---|
1109 | do
|
---|
1110 | eval ac_val=\$$ac_var
|
---|
1111 | case $ac_val in
|
---|
1112 | [\\/$]* | ?:[\\/]* ) continue;;
|
---|
1113 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
|
---|
1114 | esac
|
---|
1115 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
1116 | { (exit 1); exit 1; }; }
|
---|
1117 | done
|
---|
1118 |
|
---|
1119 | # There might be people who depend on the old broken behavior: `$host'
|
---|
1120 | # used to hold the argument of --host etc.
|
---|
1121 | # FIXME: To remove some day.
|
---|
1122 | build=$build_alias
|
---|
1123 | host=$host_alias
|
---|
1124 | target=$target_alias
|
---|
1125 |
|
---|
1126 | # FIXME: To remove some day.
|
---|
1127 | if test "x$host_alias" != x; then
|
---|
1128 | if test "x$build_alias" = x; then
|
---|
1129 | cross_compiling=maybe
|
---|
1130 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
1131 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
1132 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
1133 | cross_compiling=yes
|
---|
1134 | fi
|
---|
1135 | fi
|
---|
1136 |
|
---|
1137 | ac_tool_prefix=
|
---|
1138 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
1139 |
|
---|
1140 | test "$silent" = yes && exec 6>/dev/null
|
---|
1141 |
|
---|
1142 |
|
---|
1143 | ac_pwd=`pwd` && test -n "$ac_pwd" &&
|
---|
1144 | ac_ls_di=`ls -di .` &&
|
---|
1145 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
|
---|
1146 | { echo "$as_me: error: Working directory cannot be determined" >&2
|
---|
1147 | { (exit 1); exit 1; }; }
|
---|
1148 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
|
---|
1149 | { echo "$as_me: error: pwd does not report name of working directory" >&2
|
---|
1150 | { (exit 1); exit 1; }; }
|
---|
1151 |
|
---|
1152 |
|
---|
1153 | # Find the source files, if location was not specified.
|
---|
1154 | if test -z "$srcdir"; then
|
---|
1155 | ac_srcdir_defaulted=yes
|
---|
1156 | # Try the directory containing this script, then the parent directory.
|
---|
1157 | ac_confdir=`$as_dirname -- "$0" ||
|
---|
1158 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
1159 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
1160 | X"$0" : 'X\(//\)$' \| \
|
---|
1161 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
1162 | echo X"$0" |
|
---|
1163 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
1164 | s//\1/
|
---|
1165 | q
|
---|
1166 | }
|
---|
1167 | /^X\(\/\/\)[^/].*/{
|
---|
1168 | s//\1/
|
---|
1169 | q
|
---|
1170 | }
|
---|
1171 | /^X\(\/\/\)$/{
|
---|
1172 | s//\1/
|
---|
1173 | q
|
---|
1174 | }
|
---|
1175 | /^X\(\/\).*/{
|
---|
1176 | s//\1/
|
---|
1177 | q
|
---|
1178 | }
|
---|
1179 | s/.*/./; q'`
|
---|
1180 | srcdir=$ac_confdir
|
---|
1181 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1182 | srcdir=..
|
---|
1183 | fi
|
---|
1184 | else
|
---|
1185 | ac_srcdir_defaulted=no
|
---|
1186 | fi
|
---|
1187 | if test ! -r "$srcdir/$ac_unique_file"; then
|
---|
1188 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
|
---|
1189 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
1190 | { (exit 1); exit 1; }; }
|
---|
1191 | fi
|
---|
1192 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
|
---|
1193 | ac_abs_confdir=`(
|
---|
1194 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
|
---|
1195 | { (exit 1); exit 1; }; }
|
---|
1196 | pwd)`
|
---|
1197 | # When building in place, set srcdir=.
|
---|
1198 | if test "$ac_abs_confdir" = "$ac_pwd"; then
|
---|
1199 | srcdir=.
|
---|
1200 | fi
|
---|
1201 | # Remove unnecessary trailing slashes from srcdir.
|
---|
1202 | # Double slashes in file names in object file debugging info
|
---|
1203 | # mess up M-x gdb in Emacs.
|
---|
1204 | case $srcdir in
|
---|
1205 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
|
---|
1206 | esac
|
---|
1207 | for ac_var in $ac_precious_vars; do
|
---|
1208 | eval ac_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1209 | eval ac_env_${ac_var}_value=\$${ac_var}
|
---|
1210 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
|
---|
1211 | eval ac_cv_env_${ac_var}_value=\$${ac_var}
|
---|
1212 | done
|
---|
1213 |
|
---|
1214 | #
|
---|
1215 | # Report the --help message.
|
---|
1216 | #
|
---|
1217 | if test "$ac_init_help" = "long"; then
|
---|
1218 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
1219 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
1220 | cat <<_ACEOF
|
---|
1221 | \`configure' configures rdesktop 1.6.0 to adapt to many kinds of systems.
|
---|
1222 |
|
---|
1223 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
1224 |
|
---|
1225 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
1226 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
1227 |
|
---|
1228 | Defaults for the options are specified in brackets.
|
---|
1229 |
|
---|
1230 | Configuration:
|
---|
1231 | -h, --help display this help and exit
|
---|
1232 | --help=short display options specific to this package
|
---|
1233 | --help=recursive display the short help of all the included packages
|
---|
1234 | -V, --version display version information and exit
|
---|
1235 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
1236 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
1237 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
1238 | -n, --no-create do not create output files
|
---|
1239 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
1240 |
|
---|
1241 | Installation directories:
|
---|
1242 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
1243 | [$ac_default_prefix]
|
---|
1244 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
1245 | [PREFIX]
|
---|
1246 |
|
---|
1247 | By default, \`make install' will install all the files in
|
---|
1248 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
1249 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
1250 | for instance \`--prefix=\$HOME'.
|
---|
1251 |
|
---|
1252 | For better control, use the options below.
|
---|
1253 |
|
---|
1254 | Fine tuning of the installation directories:
|
---|
1255 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
1256 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
1257 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
1258 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
1259 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
1260 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
1261 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
1262 | --includedir=DIR C header files [PREFIX/include]
|
---|
1263 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
1264 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
|
---|
1265 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
|
---|
1266 | --infodir=DIR info documentation [DATAROOTDIR/info]
|
---|
1267 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
|
---|
1268 | --mandir=DIR man documentation [DATAROOTDIR/man]
|
---|
1269 | --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
|
---|
1270 | --htmldir=DIR html documentation [DOCDIR]
|
---|
1271 | --dvidir=DIR dvi documentation [DOCDIR]
|
---|
1272 | --pdfdir=DIR pdf documentation [DOCDIR]
|
---|
1273 | --psdir=DIR ps documentation [DOCDIR]
|
---|
1274 | _ACEOF
|
---|
1275 |
|
---|
1276 | cat <<\_ACEOF
|
---|
1277 |
|
---|
1278 | X features:
|
---|
1279 | --x-includes=DIR X include files are in DIR
|
---|
1280 | --x-libraries=DIR X library files are in DIR
|
---|
1281 |
|
---|
1282 | System types:
|
---|
1283 | --build=BUILD configure for building on BUILD [guessed]
|
---|
1284 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
1285 | _ACEOF
|
---|
1286 | fi
|
---|
1287 |
|
---|
1288 | if test -n "$ac_init_help"; then
|
---|
1289 | case $ac_init_help in
|
---|
1290 | short | recursive ) echo "Configuration of rdesktop 1.6.0:";;
|
---|
1291 | esac
|
---|
1292 | cat <<\_ACEOF
|
---|
1293 |
|
---|
1294 | Optional Features:
|
---|
1295 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
1296 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
1297 | --enable-static-openssl link OpenSSL statically
|
---|
1298 | --enable-smartcard Enables smart-card support.
|
---|
1299 |
|
---|
1300 | --enable-static-libsamplerate link libsamplerate statically
|
---|
1301 | --disable-largefile omit support for large files
|
---|
1302 |
|
---|
1303 | Optional Packages:
|
---|
1304 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
1305 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
1306 | --with-x use the X Window System
|
---|
1307 | --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
|
---|
1308 | --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
|
---|
1309 | --with-libvncserver-config=CMD use CMD as libvncserver-config
|
---|
1310 | --with-libvncserver make rdp2vnc
|
---|
1311 | --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
|
---|
1312 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
|
---|
1313 | --with-ipv6 enable IPv6-support
|
---|
1314 | --with-debug enable protocol debugging output
|
---|
1315 | --with-debug-kbd enable debugging of keyboard handling
|
---|
1316 | --with-debug-rdp5 enable debugging of RDP5 code
|
---|
1317 | --with-debug-clipboard enable debugging of clipboard code
|
---|
1318 | --with-debug-sound enable debugging of sound code
|
---|
1319 | --with-debug-channel enable debugging of virtual channel code
|
---|
1320 | --with-debug-seamless enable debugging of SeamlessRDP code
|
---|
1321 | --with-debug-smartcard enable debugging of smart-card code
|
---|
1322 |
|
---|
1323 | Some influential environment variables:
|
---|
1324 | CC C compiler command
|
---|
1325 | CFLAGS C compiler flags
|
---|
1326 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
1327 | nonstandard directory <lib dir>
|
---|
1328 | LIBS libraries to pass to the linker, e.g. -l<library>
|
---|
1329 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
|
---|
1330 | you have headers in a nonstandard directory <include dir>
|
---|
1331 | CPP C preprocessor
|
---|
1332 | XMKMF Path to xmkmf, Makefile generator for X Window System
|
---|
1333 | PKG_CONFIG path to pkg-config utility
|
---|
1334 | PCSCLITE_CFLAGS
|
---|
1335 | C compiler flags for PCSCLITE, overriding pkg-config
|
---|
1336 | PCSCLITE_LIBS
|
---|
1337 | linker flags for PCSCLITE, overriding pkg-config
|
---|
1338 | LIBAO_CFLAGS
|
---|
1339 | C compiler flags for LIBAO, overriding pkg-config
|
---|
1340 | LIBAO_LIBS linker flags for LIBAO, overriding pkg-config
|
---|
1341 | ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
|
---|
1342 | ALSA_LIBS linker flags for ALSA, overriding pkg-config
|
---|
1343 | LIBSAMPLERATE_CFLAGS
|
---|
1344 | C compiler flags for LIBSAMPLERATE, overriding pkg-config
|
---|
1345 | LIBSAMPLERATE_LIBS
|
---|
1346 | linker flags for LIBSAMPLERATE, overriding pkg-config
|
---|
1347 |
|
---|
1348 | Use these variables to override the choices made by `configure' or to help
|
---|
1349 | it to find libraries and programs with nonstandard names/locations.
|
---|
1350 |
|
---|
1351 | _ACEOF
|
---|
1352 | ac_status=$?
|
---|
1353 | fi
|
---|
1354 |
|
---|
1355 | if test "$ac_init_help" = "recursive"; then
|
---|
1356 | # If there are subdirs, report their specific --help.
|
---|
1357 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
1358 | test -d "$ac_dir" || continue
|
---|
1359 | ac_builddir=.
|
---|
1360 |
|
---|
1361 | case "$ac_dir" in
|
---|
1362 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1363 | *)
|
---|
1364 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
1365 | # A ".." for each directory in $ac_dir_suffix.
|
---|
1366 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
1367 | case $ac_top_builddir_sub in
|
---|
1368 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
1369 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
1370 | esac ;;
|
---|
1371 | esac
|
---|
1372 | ac_abs_top_builddir=$ac_pwd
|
---|
1373 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
1374 | # for backward compatibility:
|
---|
1375 | ac_top_builddir=$ac_top_build_prefix
|
---|
1376 |
|
---|
1377 | case $srcdir in
|
---|
1378 | .) # We are building in place.
|
---|
1379 | ac_srcdir=.
|
---|
1380 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
1381 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
1382 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
1383 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
1384 | ac_top_srcdir=$srcdir
|
---|
1385 | ac_abs_top_srcdir=$srcdir ;;
|
---|
1386 | *) # Relative name.
|
---|
1387 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
1388 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
1389 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
1390 | esac
|
---|
1391 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
1392 |
|
---|
1393 | cd "$ac_dir" || { ac_status=$?; continue; }
|
---|
1394 | # Check for guested configure.
|
---|
1395 | if test -f "$ac_srcdir/configure.gnu"; then
|
---|
1396 | echo &&
|
---|
1397 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive
|
---|
1398 | elif test -f "$ac_srcdir/configure"; then
|
---|
1399 | echo &&
|
---|
1400 | $SHELL "$ac_srcdir/configure" --help=recursive
|
---|
1401 | else
|
---|
1402 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
1403 | fi || ac_status=$?
|
---|
1404 | cd "$ac_pwd" || { ac_status=$?; break; }
|
---|
1405 | done
|
---|
1406 | fi
|
---|
1407 |
|
---|
1408 | test -n "$ac_init_help" && exit $ac_status
|
---|
1409 | if $ac_init_version; then
|
---|
1410 | cat <<\_ACEOF
|
---|
1411 | rdesktop configure 1.6.0
|
---|
1412 | generated by GNU Autoconf 2.61
|
---|
1413 |
|
---|
1414 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
|
---|
1415 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
---|
1416 | This configure script is free software; the Free Software Foundation
|
---|
1417 | gives unlimited permission to copy, distribute and modify it.
|
---|
1418 | _ACEOF
|
---|
1419 | exit
|
---|
1420 | fi
|
---|
1421 | cat >config.log <<_ACEOF
|
---|
1422 | This file contains any messages produced by compilers while
|
---|
1423 | running configure, to aid debugging if configure makes a mistake.
|
---|
1424 |
|
---|
1425 | It was created by rdesktop $as_me 1.6.0, which was
|
---|
1426 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
1427 |
|
---|
1428 | $ $0 $@
|
---|
1429 |
|
---|
1430 | _ACEOF
|
---|
1431 | exec 5>>config.log
|
---|
1432 | {
|
---|
1433 | cat <<_ASUNAME
|
---|
1434 | ## --------- ##
|
---|
1435 | ## Platform. ##
|
---|
1436 | ## --------- ##
|
---|
1437 |
|
---|
1438 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1439 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1440 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1441 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1442 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1443 |
|
---|
1444 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1445 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1446 |
|
---|
1447 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1448 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1449 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1450 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
|
---|
1451 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1452 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1453 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1454 |
|
---|
1455 | _ASUNAME
|
---|
1456 |
|
---|
1457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1458 | for as_dir in $PATH
|
---|
1459 | do
|
---|
1460 | IFS=$as_save_IFS
|
---|
1461 | test -z "$as_dir" && as_dir=.
|
---|
1462 | echo "PATH: $as_dir"
|
---|
1463 | done
|
---|
1464 | IFS=$as_save_IFS
|
---|
1465 |
|
---|
1466 | } >&5
|
---|
1467 |
|
---|
1468 | cat >&5 <<_ACEOF
|
---|
1469 |
|
---|
1470 |
|
---|
1471 | ## ----------- ##
|
---|
1472 | ## Core tests. ##
|
---|
1473 | ## ----------- ##
|
---|
1474 |
|
---|
1475 | _ACEOF
|
---|
1476 |
|
---|
1477 |
|
---|
1478 | # Keep a trace of the command line.
|
---|
1479 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1480 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1481 | # Also quote any args containing shell meta-characters.
|
---|
1482 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1483 | ac_configure_args=
|
---|
1484 | ac_configure_args0=
|
---|
1485 | ac_configure_args1=
|
---|
1486 | ac_must_keep_next=false
|
---|
1487 | for ac_pass in 1 2
|
---|
1488 | do
|
---|
1489 | for ac_arg
|
---|
1490 | do
|
---|
1491 | case $ac_arg in
|
---|
1492 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1493 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1494 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1495 | continue ;;
|
---|
1496 | *\'*)
|
---|
1497 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1498 | esac
|
---|
1499 | case $ac_pass in
|
---|
1500 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1501 | 2)
|
---|
1502 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1503 | if test $ac_must_keep_next = true; then
|
---|
1504 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1505 | else
|
---|
1506 | case $ac_arg in
|
---|
1507 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1508 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1509 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1510 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1511 | case "$ac_configure_args0 " in
|
---|
1512 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1513 | esac
|
---|
1514 | ;;
|
---|
1515 | -* ) ac_must_keep_next=true ;;
|
---|
1516 | esac
|
---|
1517 | fi
|
---|
1518 | ac_configure_args="$ac_configure_args '$ac_arg'"
|
---|
1519 | ;;
|
---|
1520 | esac
|
---|
1521 | done
|
---|
1522 | done
|
---|
1523 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1524 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1525 |
|
---|
1526 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1527 | # config.log. We remove comments because anyway the quotes in there
|
---|
1528 | # would cause problems or look ugly.
|
---|
1529 | # WARNING: Use '\'' to represent an apostrophe within the trap.
|
---|
1530 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
|
---|
1531 | trap 'exit_status=$?
|
---|
1532 | # Save into config.log some information that might help in debugging.
|
---|
1533 | {
|
---|
1534 | echo
|
---|
1535 |
|
---|
1536 | cat <<\_ASBOX
|
---|
1537 | ## ---------------- ##
|
---|
1538 | ## Cache variables. ##
|
---|
1539 | ## ---------------- ##
|
---|
1540 | _ASBOX
|
---|
1541 | echo
|
---|
1542 | # The following way of writing the cache mishandles newlines in values,
|
---|
1543 | (
|
---|
1544 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
|
---|
1545 | eval ac_val=\$$ac_var
|
---|
1546 | case $ac_val in #(
|
---|
1547 | *${as_nl}*)
|
---|
1548 | case $ac_var in #(
|
---|
1549 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
1550 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
1551 | esac
|
---|
1552 | case $ac_var in #(
|
---|
1553 | _ | IFS | as_nl) ;; #(
|
---|
1554 | *) $as_unset $ac_var ;;
|
---|
1555 | esac ;;
|
---|
1556 | esac
|
---|
1557 | done
|
---|
1558 | (set) 2>&1 |
|
---|
1559 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
|
---|
1560 | *${as_nl}ac_space=\ *)
|
---|
1561 | sed -n \
|
---|
1562 | "s/'\''/'\''\\\\'\'''\''/g;
|
---|
1563 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
|
---|
1564 | ;; #(
|
---|
1565 | *)
|
---|
1566 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
1567 | ;;
|
---|
1568 | esac |
|
---|
1569 | sort
|
---|
1570 | )
|
---|
1571 | echo
|
---|
1572 |
|
---|
1573 | cat <<\_ASBOX
|
---|
1574 | ## ----------------- ##
|
---|
1575 | ## Output variables. ##
|
---|
1576 | ## ----------------- ##
|
---|
1577 | _ASBOX
|
---|
1578 | echo
|
---|
1579 | for ac_var in $ac_subst_vars
|
---|
1580 | do
|
---|
1581 | eval ac_val=\$$ac_var
|
---|
1582 | case $ac_val in
|
---|
1583 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1584 | esac
|
---|
1585 | echo "$ac_var='\''$ac_val'\''"
|
---|
1586 | done | sort
|
---|
1587 | echo
|
---|
1588 |
|
---|
1589 | if test -n "$ac_subst_files"; then
|
---|
1590 | cat <<\_ASBOX
|
---|
1591 | ## ------------------- ##
|
---|
1592 | ## File substitutions. ##
|
---|
1593 | ## ------------------- ##
|
---|
1594 | _ASBOX
|
---|
1595 | echo
|
---|
1596 | for ac_var in $ac_subst_files
|
---|
1597 | do
|
---|
1598 | eval ac_val=\$$ac_var
|
---|
1599 | case $ac_val in
|
---|
1600 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
|
---|
1601 | esac
|
---|
1602 | echo "$ac_var='\''$ac_val'\''"
|
---|
1603 | done | sort
|
---|
1604 | echo
|
---|
1605 | fi
|
---|
1606 |
|
---|
1607 | if test -s confdefs.h; then
|
---|
1608 | cat <<\_ASBOX
|
---|
1609 | ## ----------- ##
|
---|
1610 | ## confdefs.h. ##
|
---|
1611 | ## ----------- ##
|
---|
1612 | _ASBOX
|
---|
1613 | echo
|
---|
1614 | cat confdefs.h
|
---|
1615 | echo
|
---|
1616 | fi
|
---|
1617 | test "$ac_signal" != 0 &&
|
---|
1618 | echo "$as_me: caught signal $ac_signal"
|
---|
1619 | echo "$as_me: exit $exit_status"
|
---|
1620 | } >&5
|
---|
1621 | rm -f core *.core core.conftest.* &&
|
---|
1622 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1623 | exit $exit_status
|
---|
1624 | ' 0
|
---|
1625 | for ac_signal in 1 2 13 15; do
|
---|
1626 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1627 | done
|
---|
1628 | ac_signal=0
|
---|
1629 |
|
---|
1630 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1631 | rm -f -r conftest* confdefs.h
|
---|
1632 |
|
---|
1633 | # Predefined preprocessor variables.
|
---|
1634 |
|
---|
1635 | cat >>confdefs.h <<_ACEOF
|
---|
1636 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1637 | _ACEOF
|
---|
1638 |
|
---|
1639 |
|
---|
1640 | cat >>confdefs.h <<_ACEOF
|
---|
1641 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1642 | _ACEOF
|
---|
1643 |
|
---|
1644 |
|
---|
1645 | cat >>confdefs.h <<_ACEOF
|
---|
1646 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1647 | _ACEOF
|
---|
1648 |
|
---|
1649 |
|
---|
1650 | cat >>confdefs.h <<_ACEOF
|
---|
1651 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1652 | _ACEOF
|
---|
1653 |
|
---|
1654 |
|
---|
1655 | cat >>confdefs.h <<_ACEOF
|
---|
1656 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1657 | _ACEOF
|
---|
1658 |
|
---|
1659 |
|
---|
1660 | # Let the site file select an alternate cache file if it wants to.
|
---|
1661 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1662 | if test -n "$CONFIG_SITE"; then
|
---|
1663 | set x "$CONFIG_SITE"
|
---|
1664 | elif test "x$prefix" != xNONE; then
|
---|
1665 | set x "$prefix/share/config.site" "$prefix/etc/config.site"
|
---|
1666 | else
|
---|
1667 | set x "$ac_default_prefix/share/config.site" \
|
---|
1668 | "$ac_default_prefix/etc/config.site"
|
---|
1669 | fi
|
---|
1670 | shift
|
---|
1671 | for ac_site_file
|
---|
1672 | do
|
---|
1673 | if test -r "$ac_site_file"; then
|
---|
1674 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1675 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1676 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1677 | . "$ac_site_file"
|
---|
1678 | fi
|
---|
1679 | done
|
---|
1680 |
|
---|
1681 | if test -r "$cache_file"; then
|
---|
1682 | # Some versions of bash will fail to source /dev/null (special
|
---|
1683 | # files actually), so we avoid doing that.
|
---|
1684 | if test -f "$cache_file"; then
|
---|
1685 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1686 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1687 | case $cache_file in
|
---|
1688 | [\\/]* | ?:[\\/]* ) . "$cache_file";;
|
---|
1689 | *) . "./$cache_file";;
|
---|
1690 | esac
|
---|
1691 | fi
|
---|
1692 | else
|
---|
1693 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1694 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1695 | >$cache_file
|
---|
1696 | fi
|
---|
1697 |
|
---|
1698 | # Check that the precious variables saved in the cache have kept the same
|
---|
1699 | # value.
|
---|
1700 | ac_cache_corrupted=false
|
---|
1701 | for ac_var in $ac_precious_vars; do
|
---|
1702 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1703 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1704 | eval ac_old_val=\$ac_cv_env_${ac_var}_value
|
---|
1705 | eval ac_new_val=\$ac_env_${ac_var}_value
|
---|
1706 | case $ac_old_set,$ac_new_set in
|
---|
1707 | set,)
|
---|
1708 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1709 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1710 | ac_cache_corrupted=: ;;
|
---|
1711 | ,set)
|
---|
1712 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1713 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1714 | ac_cache_corrupted=: ;;
|
---|
1715 | ,);;
|
---|
1716 | *)
|
---|
1717 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1718 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1719 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1720 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1721 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1722 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1723 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1724 | ac_cache_corrupted=:
|
---|
1725 | fi;;
|
---|
1726 | esac
|
---|
1727 | # Pass precious variables to config.status.
|
---|
1728 | if test "$ac_new_set" = set; then
|
---|
1729 | case $ac_new_val in
|
---|
1730 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1731 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1732 | esac
|
---|
1733 | case " $ac_configure_args " in
|
---|
1734 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1735 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1736 | esac
|
---|
1737 | fi
|
---|
1738 | done
|
---|
1739 | if $ac_cache_corrupted; then
|
---|
1740 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1741 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1742 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1743 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1744 | { (exit 1); exit 1; }; }
|
---|
1745 | fi
|
---|
1746 |
|
---|
1747 |
|
---|
1748 |
|
---|
1749 |
|
---|
1750 |
|
---|
1751 |
|
---|
1752 |
|
---|
1753 |
|
---|
1754 |
|
---|
1755 |
|
---|
1756 |
|
---|
1757 |
|
---|
1758 |
|
---|
1759 |
|
---|
1760 |
|
---|
1761 |
|
---|
1762 |
|
---|
1763 |
|
---|
1764 |
|
---|
1765 |
|
---|
1766 |
|
---|
1767 |
|
---|
1768 |
|
---|
1769 |
|
---|
1770 |
|
---|
1771 | ac_ext=c
|
---|
1772 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1776 |
|
---|
1777 |
|
---|
1778 |
|
---|
1779 |
|
---|
1780 |
|
---|
1781 | ac_ext=c
|
---|
1782 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1783 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1784 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1785 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1786 | if test -n "$ac_tool_prefix"; then
|
---|
1787 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1788 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1789 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1790 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1791 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1792 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1793 | else
|
---|
1794 | if test -n "$CC"; then
|
---|
1795 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1796 | else
|
---|
1797 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1798 | for as_dir in $PATH
|
---|
1799 | do
|
---|
1800 | IFS=$as_save_IFS
|
---|
1801 | test -z "$as_dir" && as_dir=.
|
---|
1802 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1803 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1804 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1805 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1806 | break 2
|
---|
1807 | fi
|
---|
1808 | done
|
---|
1809 | done
|
---|
1810 | IFS=$as_save_IFS
|
---|
1811 |
|
---|
1812 | fi
|
---|
1813 | fi
|
---|
1814 | CC=$ac_cv_prog_CC
|
---|
1815 | if test -n "$CC"; then
|
---|
1816 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1817 | echo "${ECHO_T}$CC" >&6; }
|
---|
1818 | else
|
---|
1819 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1820 | echo "${ECHO_T}no" >&6; }
|
---|
1821 | fi
|
---|
1822 |
|
---|
1823 |
|
---|
1824 | fi
|
---|
1825 | if test -z "$ac_cv_prog_CC"; then
|
---|
1826 | ac_ct_CC=$CC
|
---|
1827 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1828 | set dummy gcc; ac_word=$2
|
---|
1829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1831 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1832 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1833 | else
|
---|
1834 | if test -n "$ac_ct_CC"; then
|
---|
1835 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1836 | else
|
---|
1837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1838 | for as_dir in $PATH
|
---|
1839 | do
|
---|
1840 | IFS=$as_save_IFS
|
---|
1841 | test -z "$as_dir" && as_dir=.
|
---|
1842 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1844 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1846 | break 2
|
---|
1847 | fi
|
---|
1848 | done
|
---|
1849 | done
|
---|
1850 | IFS=$as_save_IFS
|
---|
1851 |
|
---|
1852 | fi
|
---|
1853 | fi
|
---|
1854 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1855 | if test -n "$ac_ct_CC"; then
|
---|
1856 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1857 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
1858 | else
|
---|
1859 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1860 | echo "${ECHO_T}no" >&6; }
|
---|
1861 | fi
|
---|
1862 |
|
---|
1863 | if test "x$ac_ct_CC" = x; then
|
---|
1864 | CC=""
|
---|
1865 | else
|
---|
1866 | case $cross_compiling:$ac_tool_warned in
|
---|
1867 | yes:)
|
---|
1868 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
1869 | whose name does not start with the host triplet. If you think this
|
---|
1870 | configuration is useful to you, please write to [email protected]." >&5
|
---|
1871 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
1872 | whose name does not start with the host triplet. If you think this
|
---|
1873 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
1874 | ac_tool_warned=yes ;;
|
---|
1875 | esac
|
---|
1876 | CC=$ac_ct_CC
|
---|
1877 | fi
|
---|
1878 | else
|
---|
1879 | CC="$ac_cv_prog_CC"
|
---|
1880 | fi
|
---|
1881 |
|
---|
1882 | if test -z "$CC"; then
|
---|
1883 | if test -n "$ac_tool_prefix"; then
|
---|
1884 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1885 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1886 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1887 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1888 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1889 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1890 | else
|
---|
1891 | if test -n "$CC"; then
|
---|
1892 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1893 | else
|
---|
1894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1895 | for as_dir in $PATH
|
---|
1896 | do
|
---|
1897 | IFS=$as_save_IFS
|
---|
1898 | test -z "$as_dir" && as_dir=.
|
---|
1899 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1901 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1903 | break 2
|
---|
1904 | fi
|
---|
1905 | done
|
---|
1906 | done
|
---|
1907 | IFS=$as_save_IFS
|
---|
1908 |
|
---|
1909 | fi
|
---|
1910 | fi
|
---|
1911 | CC=$ac_cv_prog_CC
|
---|
1912 | if test -n "$CC"; then
|
---|
1913 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1914 | echo "${ECHO_T}$CC" >&6; }
|
---|
1915 | else
|
---|
1916 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1917 | echo "${ECHO_T}no" >&6; }
|
---|
1918 | fi
|
---|
1919 |
|
---|
1920 |
|
---|
1921 | fi
|
---|
1922 | fi
|
---|
1923 | if test -z "$CC"; then
|
---|
1924 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1925 | set dummy cc; ac_word=$2
|
---|
1926 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1927 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1928 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1929 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1930 | else
|
---|
1931 | if test -n "$CC"; then
|
---|
1932 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1933 | else
|
---|
1934 | ac_prog_rejected=no
|
---|
1935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1936 | for as_dir in $PATH
|
---|
1937 | do
|
---|
1938 | IFS=$as_save_IFS
|
---|
1939 | test -z "$as_dir" && as_dir=.
|
---|
1940 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1941 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
1942 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1943 | ac_prog_rejected=yes
|
---|
1944 | continue
|
---|
1945 | fi
|
---|
1946 | ac_cv_prog_CC="cc"
|
---|
1947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1948 | break 2
|
---|
1949 | fi
|
---|
1950 | done
|
---|
1951 | done
|
---|
1952 | IFS=$as_save_IFS
|
---|
1953 |
|
---|
1954 | if test $ac_prog_rejected = yes; then
|
---|
1955 | # We found a bogon in the path, so make sure we never use it.
|
---|
1956 | set dummy $ac_cv_prog_CC
|
---|
1957 | shift
|
---|
1958 | if test $# != 0; then
|
---|
1959 | # We chose a different compiler from the bogus one.
|
---|
1960 | # However, it has the same basename, so the bogon will be chosen
|
---|
1961 | # first if we set CC to just the basename; use the full file name.
|
---|
1962 | shift
|
---|
1963 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1964 | fi
|
---|
1965 | fi
|
---|
1966 | fi
|
---|
1967 | fi
|
---|
1968 | CC=$ac_cv_prog_CC
|
---|
1969 | if test -n "$CC"; then
|
---|
1970 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1971 | echo "${ECHO_T}$CC" >&6; }
|
---|
1972 | else
|
---|
1973 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
1974 | echo "${ECHO_T}no" >&6; }
|
---|
1975 | fi
|
---|
1976 |
|
---|
1977 |
|
---|
1978 | fi
|
---|
1979 | if test -z "$CC"; then
|
---|
1980 | if test -n "$ac_tool_prefix"; then
|
---|
1981 | for ac_prog in cl.exe
|
---|
1982 | do
|
---|
1983 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1984 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1985 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1986 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
1987 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1988 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1989 | else
|
---|
1990 | if test -n "$CC"; then
|
---|
1991 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1992 | else
|
---|
1993 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1994 | for as_dir in $PATH
|
---|
1995 | do
|
---|
1996 | IFS=$as_save_IFS
|
---|
1997 | test -z "$as_dir" && as_dir=.
|
---|
1998 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1999 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2000 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
2001 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2002 | break 2
|
---|
2003 | fi
|
---|
2004 | done
|
---|
2005 | done
|
---|
2006 | IFS=$as_save_IFS
|
---|
2007 |
|
---|
2008 | fi
|
---|
2009 | fi
|
---|
2010 | CC=$ac_cv_prog_CC
|
---|
2011 | if test -n "$CC"; then
|
---|
2012 | { echo "$as_me:$LINENO: result: $CC" >&5
|
---|
2013 | echo "${ECHO_T}$CC" >&6; }
|
---|
2014 | else
|
---|
2015 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2016 | echo "${ECHO_T}no" >&6; }
|
---|
2017 | fi
|
---|
2018 |
|
---|
2019 |
|
---|
2020 | test -n "$CC" && break
|
---|
2021 | done
|
---|
2022 | fi
|
---|
2023 | if test -z "$CC"; then
|
---|
2024 | ac_ct_CC=$CC
|
---|
2025 | for ac_prog in cl.exe
|
---|
2026 | do
|
---|
2027 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2028 | set dummy $ac_prog; ac_word=$2
|
---|
2029 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2030 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
2031 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
2032 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2033 | else
|
---|
2034 | if test -n "$ac_ct_CC"; then
|
---|
2035 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
2036 | else
|
---|
2037 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2038 | for as_dir in $PATH
|
---|
2039 | do
|
---|
2040 | IFS=$as_save_IFS
|
---|
2041 | test -z "$as_dir" && as_dir=.
|
---|
2042 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2043 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
2044 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
2045 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2046 | break 2
|
---|
2047 | fi
|
---|
2048 | done
|
---|
2049 | done
|
---|
2050 | IFS=$as_save_IFS
|
---|
2051 |
|
---|
2052 | fi
|
---|
2053 | fi
|
---|
2054 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
2055 | if test -n "$ac_ct_CC"; then
|
---|
2056 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
2057 | echo "${ECHO_T}$ac_ct_CC" >&6; }
|
---|
2058 | else
|
---|
2059 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
2060 | echo "${ECHO_T}no" >&6; }
|
---|
2061 | fi
|
---|
2062 |
|
---|
2063 |
|
---|
2064 | test -n "$ac_ct_CC" && break
|
---|
2065 | done
|
---|
2066 |
|
---|
2067 | if test "x$ac_ct_CC" = x; then
|
---|
2068 | CC=""
|
---|
2069 | else
|
---|
2070 | case $cross_compiling:$ac_tool_warned in
|
---|
2071 | yes:)
|
---|
2072 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2073 | whose name does not start with the host triplet. If you think this
|
---|
2074 | configuration is useful to you, please write to [email protected]." >&5
|
---|
2075 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
2076 | whose name does not start with the host triplet. If you think this
|
---|
2077 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
2078 | ac_tool_warned=yes ;;
|
---|
2079 | esac
|
---|
2080 | CC=$ac_ct_CC
|
---|
2081 | fi
|
---|
2082 | fi
|
---|
2083 |
|
---|
2084 | fi
|
---|
2085 |
|
---|
2086 |
|
---|
2087 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2088 | See \`config.log' for more details." >&5
|
---|
2089 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2090 | See \`config.log' for more details." >&2;}
|
---|
2091 | { (exit 1); exit 1; }; }
|
---|
2092 |
|
---|
2093 | # Provide some information about the compiler.
|
---|
2094 | echo "$as_me:$LINENO: checking for C compiler version" >&5
|
---|
2095 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2096 | { (ac_try="$ac_compiler --version >&5"
|
---|
2097 | case "(($ac_try" in
|
---|
2098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2099 | *) ac_try_echo=$ac_try;;
|
---|
2100 | esac
|
---|
2101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2102 | (eval "$ac_compiler --version >&5") 2>&5
|
---|
2103 | ac_status=$?
|
---|
2104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2105 | (exit $ac_status); }
|
---|
2106 | { (ac_try="$ac_compiler -v >&5"
|
---|
2107 | case "(($ac_try" in
|
---|
2108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2109 | *) ac_try_echo=$ac_try;;
|
---|
2110 | esac
|
---|
2111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2112 | (eval "$ac_compiler -v >&5") 2>&5
|
---|
2113 | ac_status=$?
|
---|
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2115 | (exit $ac_status); }
|
---|
2116 | { (ac_try="$ac_compiler -V >&5"
|
---|
2117 | case "(($ac_try" in
|
---|
2118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2119 | *) ac_try_echo=$ac_try;;
|
---|
2120 | esac
|
---|
2121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2122 | (eval "$ac_compiler -V >&5") 2>&5
|
---|
2123 | ac_status=$?
|
---|
2124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2125 | (exit $ac_status); }
|
---|
2126 |
|
---|
2127 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2128 | /* confdefs.h. */
|
---|
2129 | _ACEOF
|
---|
2130 | cat confdefs.h >>conftest.$ac_ext
|
---|
2131 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2132 | /* end confdefs.h. */
|
---|
2133 |
|
---|
2134 | int
|
---|
2135 | main ()
|
---|
2136 | {
|
---|
2137 |
|
---|
2138 | ;
|
---|
2139 | return 0;
|
---|
2140 | }
|
---|
2141 | _ACEOF
|
---|
2142 | ac_clean_files_save=$ac_clean_files
|
---|
2143 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2144 | # Try to create an executable without -o first, disregard a.out.
|
---|
2145 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2146 | # of exeext.
|
---|
2147 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
2148 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
|
---|
2149 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2150 | #
|
---|
2151 | # List of possible output files, starting from the most likely.
|
---|
2152 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
|
---|
2153 | # only as a last resort. b.out is created by i960 compilers.
|
---|
2154 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
|
---|
2155 | #
|
---|
2156 | # The IRIX 6 linker writes into existing files which may not be
|
---|
2157 | # executable, retaining their permissions. Remove them first so a
|
---|
2158 | # subsequent execution test works.
|
---|
2159 | ac_rmfiles=
|
---|
2160 | for ac_file in $ac_files
|
---|
2161 | do
|
---|
2162 | case $ac_file in
|
---|
2163 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2164 | * ) ac_rmfiles="$ac_rmfiles $ac_file";;
|
---|
2165 | esac
|
---|
2166 | done
|
---|
2167 | rm -f $ac_rmfiles
|
---|
2168 |
|
---|
2169 | if { (ac_try="$ac_link_default"
|
---|
2170 | case "(($ac_try" in
|
---|
2171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2172 | *) ac_try_echo=$ac_try;;
|
---|
2173 | esac
|
---|
2174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2175 | (eval "$ac_link_default") 2>&5
|
---|
2176 | ac_status=$?
|
---|
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2178 | (exit $ac_status); }; then
|
---|
2179 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
|
---|
2180 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
|
---|
2181 | # in a Makefile. We should not override ac_cv_exeext if it was cached,
|
---|
2182 | # so that the user can short-circuit this test for compilers unknown to
|
---|
2183 | # Autoconf.
|
---|
2184 | for ac_file in $ac_files ''
|
---|
2185 | do
|
---|
2186 | test -f "$ac_file" || continue
|
---|
2187 | case $ac_file in
|
---|
2188 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
|
---|
2189 | ;;
|
---|
2190 | [ab].out )
|
---|
2191 | # We found the default executable, but exeext='' is most
|
---|
2192 | # certainly right.
|
---|
2193 | break;;
|
---|
2194 | *.* )
|
---|
2195 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
|
---|
2196 | then :; else
|
---|
2197 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2198 | fi
|
---|
2199 | # We set ac_cv_exeext here because the later test for it is not
|
---|
2200 | # safe: cross compilers may not add the suffix if given an `-o'
|
---|
2201 | # argument, so we may need to know it at that point already.
|
---|
2202 | # Even if this section looks crufty: it has the advantage of
|
---|
2203 | # actually working.
|
---|
2204 | break;;
|
---|
2205 | * )
|
---|
2206 | break;;
|
---|
2207 | esac
|
---|
2208 | done
|
---|
2209 | test "$ac_cv_exeext" = no && ac_cv_exeext=
|
---|
2210 |
|
---|
2211 | else
|
---|
2212 | ac_file=''
|
---|
2213 | fi
|
---|
2214 |
|
---|
2215 | { echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2216 | echo "${ECHO_T}$ac_file" >&6; }
|
---|
2217 | if test -z "$ac_file"; then
|
---|
2218 | echo "$as_me: failed program was:" >&5
|
---|
2219 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2220 |
|
---|
2221 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
2222 | See \`config.log' for more details." >&5
|
---|
2223 | echo "$as_me: error: C compiler cannot create executables
|
---|
2224 | See \`config.log' for more details." >&2;}
|
---|
2225 | { (exit 77); exit 77; }; }
|
---|
2226 | fi
|
---|
2227 |
|
---|
2228 | ac_exeext=$ac_cv_exeext
|
---|
2229 |
|
---|
2230 | # Check that the compiler produces executables we can run. If not, either
|
---|
2231 | # the compiler is broken, or we cross compile.
|
---|
2232 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
2233 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
|
---|
2234 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2235 | # If not cross compiling, check that we can run a simple program.
|
---|
2236 | if test "$cross_compiling" != yes; then
|
---|
2237 | if { ac_try='./$ac_file'
|
---|
2238 | { (case "(($ac_try" in
|
---|
2239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2240 | *) ac_try_echo=$ac_try;;
|
---|
2241 | esac
|
---|
2242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2243 | (eval "$ac_try") 2>&5
|
---|
2244 | ac_status=$?
|
---|
2245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2246 | (exit $ac_status); }; }; then
|
---|
2247 | cross_compiling=no
|
---|
2248 | else
|
---|
2249 | if test "$cross_compiling" = maybe; then
|
---|
2250 | cross_compiling=yes
|
---|
2251 | else
|
---|
2252 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
2253 | If you meant to cross compile, use \`--host'.
|
---|
2254 | See \`config.log' for more details." >&5
|
---|
2255 | echo "$as_me: error: cannot run C compiled programs.
|
---|
2256 | If you meant to cross compile, use \`--host'.
|
---|
2257 | See \`config.log' for more details." >&2;}
|
---|
2258 | { (exit 1); exit 1; }; }
|
---|
2259 | fi
|
---|
2260 | fi
|
---|
2261 | fi
|
---|
2262 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
2263 | echo "${ECHO_T}yes" >&6; }
|
---|
2264 |
|
---|
2265 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2266 | ac_clean_files=$ac_clean_files_save
|
---|
2267 | # Check that the compiler produces executables we can run. If not, either
|
---|
2268 | # the compiler is broken, or we cross compile.
|
---|
2269 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2270 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
|
---|
2271 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2272 | echo "${ECHO_T}$cross_compiling" >&6; }
|
---|
2273 |
|
---|
2274 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2275 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
|
---|
2276 | if { (ac_try="$ac_link"
|
---|
2277 | case "(($ac_try" in
|
---|
2278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2279 | *) ac_try_echo=$ac_try;;
|
---|
2280 | esac
|
---|
2281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2282 | (eval "$ac_link") 2>&5
|
---|
2283 | ac_status=$?
|
---|
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2285 | (exit $ac_status); }; then
|
---|
2286 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2287 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2288 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2289 | # `rm'.
|
---|
2290 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2291 | test -f "$ac_file" || continue
|
---|
2292 | case $ac_file in
|
---|
2293 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
|
---|
2294 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2295 | break;;
|
---|
2296 | * ) break;;
|
---|
2297 | esac
|
---|
2298 | done
|
---|
2299 | else
|
---|
2300 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2301 | See \`config.log' for more details." >&5
|
---|
2302 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2303 | See \`config.log' for more details." >&2;}
|
---|
2304 | { (exit 1); exit 1; }; }
|
---|
2305 | fi
|
---|
2306 |
|
---|
2307 | rm -f conftest$ac_cv_exeext
|
---|
2308 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2309 | echo "${ECHO_T}$ac_cv_exeext" >&6; }
|
---|
2310 |
|
---|
2311 | rm -f conftest.$ac_ext
|
---|
2312 | EXEEXT=$ac_cv_exeext
|
---|
2313 | ac_exeext=$EXEEXT
|
---|
2314 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2315 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
|
---|
2316 | if test "${ac_cv_objext+set}" = set; then
|
---|
2317 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2318 | else
|
---|
2319 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2320 | /* confdefs.h. */
|
---|
2321 | _ACEOF
|
---|
2322 | cat confdefs.h >>conftest.$ac_ext
|
---|
2323 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2324 | /* end confdefs.h. */
|
---|
2325 |
|
---|
2326 | int
|
---|
2327 | main ()
|
---|
2328 | {
|
---|
2329 |
|
---|
2330 | ;
|
---|
2331 | return 0;
|
---|
2332 | }
|
---|
2333 | _ACEOF
|
---|
2334 | rm -f conftest.o conftest.obj
|
---|
2335 | if { (ac_try="$ac_compile"
|
---|
2336 | case "(($ac_try" in
|
---|
2337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2338 | *) ac_try_echo=$ac_try;;
|
---|
2339 | esac
|
---|
2340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2341 | (eval "$ac_compile") 2>&5
|
---|
2342 | ac_status=$?
|
---|
2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2344 | (exit $ac_status); }; then
|
---|
2345 | for ac_file in conftest.o conftest.obj conftest.*; do
|
---|
2346 | test -f "$ac_file" || continue;
|
---|
2347 | case $ac_file in
|
---|
2348 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
|
---|
2349 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2350 | break;;
|
---|
2351 | esac
|
---|
2352 | done
|
---|
2353 | else
|
---|
2354 | echo "$as_me: failed program was:" >&5
|
---|
2355 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2356 |
|
---|
2357 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2358 | See \`config.log' for more details." >&5
|
---|
2359 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2360 | See \`config.log' for more details." >&2;}
|
---|
2361 | { (exit 1); exit 1; }; }
|
---|
2362 | fi
|
---|
2363 |
|
---|
2364 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2365 | fi
|
---|
2366 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2367 | echo "${ECHO_T}$ac_cv_objext" >&6; }
|
---|
2368 | OBJEXT=$ac_cv_objext
|
---|
2369 | ac_objext=$OBJEXT
|
---|
2370 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2371 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
|
---|
2372 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2373 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2374 | else
|
---|
2375 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2376 | /* confdefs.h. */
|
---|
2377 | _ACEOF
|
---|
2378 | cat confdefs.h >>conftest.$ac_ext
|
---|
2379 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2380 | /* end confdefs.h. */
|
---|
2381 |
|
---|
2382 | int
|
---|
2383 | main ()
|
---|
2384 | {
|
---|
2385 | #ifndef __GNUC__
|
---|
2386 | choke me
|
---|
2387 | #endif
|
---|
2388 |
|
---|
2389 | ;
|
---|
2390 | return 0;
|
---|
2391 | }
|
---|
2392 | _ACEOF
|
---|
2393 | rm -f conftest.$ac_objext
|
---|
2394 | if { (ac_try="$ac_compile"
|
---|
2395 | case "(($ac_try" in
|
---|
2396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2397 | *) ac_try_echo=$ac_try;;
|
---|
2398 | esac
|
---|
2399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2400 | (eval "$ac_compile") 2>conftest.er1
|
---|
2401 | ac_status=$?
|
---|
2402 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2403 | rm -f conftest.er1
|
---|
2404 | cat conftest.err >&5
|
---|
2405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2406 | (exit $ac_status); } && {
|
---|
2407 | test -z "$ac_c_werror_flag" ||
|
---|
2408 | test ! -s conftest.err
|
---|
2409 | } && test -s conftest.$ac_objext; then
|
---|
2410 | ac_compiler_gnu=yes
|
---|
2411 | else
|
---|
2412 | echo "$as_me: failed program was:" >&5
|
---|
2413 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2414 |
|
---|
2415 | ac_compiler_gnu=no
|
---|
2416 | fi
|
---|
2417 |
|
---|
2418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2419 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2420 |
|
---|
2421 | fi
|
---|
2422 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2423 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
|
---|
2424 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2425 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2426 | ac_save_CFLAGS=$CFLAGS
|
---|
2427 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2428 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
|
---|
2429 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2430 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2431 | else
|
---|
2432 | ac_save_c_werror_flag=$ac_c_werror_flag
|
---|
2433 | ac_c_werror_flag=yes
|
---|
2434 | ac_cv_prog_cc_g=no
|
---|
2435 | CFLAGS="-g"
|
---|
2436 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2437 | /* confdefs.h. */
|
---|
2438 | _ACEOF
|
---|
2439 | cat confdefs.h >>conftest.$ac_ext
|
---|
2440 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2441 | /* end confdefs.h. */
|
---|
2442 |
|
---|
2443 | int
|
---|
2444 | main ()
|
---|
2445 | {
|
---|
2446 |
|
---|
2447 | ;
|
---|
2448 | return 0;
|
---|
2449 | }
|
---|
2450 | _ACEOF
|
---|
2451 | rm -f conftest.$ac_objext
|
---|
2452 | if { (ac_try="$ac_compile"
|
---|
2453 | case "(($ac_try" in
|
---|
2454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2455 | *) ac_try_echo=$ac_try;;
|
---|
2456 | esac
|
---|
2457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2458 | (eval "$ac_compile") 2>conftest.er1
|
---|
2459 | ac_status=$?
|
---|
2460 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2461 | rm -f conftest.er1
|
---|
2462 | cat conftest.err >&5
|
---|
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2464 | (exit $ac_status); } && {
|
---|
2465 | test -z "$ac_c_werror_flag" ||
|
---|
2466 | test ! -s conftest.err
|
---|
2467 | } && test -s conftest.$ac_objext; then
|
---|
2468 | ac_cv_prog_cc_g=yes
|
---|
2469 | else
|
---|
2470 | echo "$as_me: failed program was:" >&5
|
---|
2471 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2472 |
|
---|
2473 | CFLAGS=""
|
---|
2474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2475 | /* confdefs.h. */
|
---|
2476 | _ACEOF
|
---|
2477 | cat confdefs.h >>conftest.$ac_ext
|
---|
2478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2479 | /* end confdefs.h. */
|
---|
2480 |
|
---|
2481 | int
|
---|
2482 | main ()
|
---|
2483 | {
|
---|
2484 |
|
---|
2485 | ;
|
---|
2486 | return 0;
|
---|
2487 | }
|
---|
2488 | _ACEOF
|
---|
2489 | rm -f conftest.$ac_objext
|
---|
2490 | if { (ac_try="$ac_compile"
|
---|
2491 | case "(($ac_try" in
|
---|
2492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2493 | *) ac_try_echo=$ac_try;;
|
---|
2494 | esac
|
---|
2495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2496 | (eval "$ac_compile") 2>conftest.er1
|
---|
2497 | ac_status=$?
|
---|
2498 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2499 | rm -f conftest.er1
|
---|
2500 | cat conftest.err >&5
|
---|
2501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2502 | (exit $ac_status); } && {
|
---|
2503 | test -z "$ac_c_werror_flag" ||
|
---|
2504 | test ! -s conftest.err
|
---|
2505 | } && test -s conftest.$ac_objext; then
|
---|
2506 | :
|
---|
2507 | else
|
---|
2508 | echo "$as_me: failed program was:" >&5
|
---|
2509 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2510 |
|
---|
2511 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2512 | CFLAGS="-g"
|
---|
2513 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2514 | /* confdefs.h. */
|
---|
2515 | _ACEOF
|
---|
2516 | cat confdefs.h >>conftest.$ac_ext
|
---|
2517 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2518 | /* end confdefs.h. */
|
---|
2519 |
|
---|
2520 | int
|
---|
2521 | main ()
|
---|
2522 | {
|
---|
2523 |
|
---|
2524 | ;
|
---|
2525 | return 0;
|
---|
2526 | }
|
---|
2527 | _ACEOF
|
---|
2528 | rm -f conftest.$ac_objext
|
---|
2529 | if { (ac_try="$ac_compile"
|
---|
2530 | case "(($ac_try" in
|
---|
2531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2532 | *) ac_try_echo=$ac_try;;
|
---|
2533 | esac
|
---|
2534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2535 | (eval "$ac_compile") 2>conftest.er1
|
---|
2536 | ac_status=$?
|
---|
2537 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2538 | rm -f conftest.er1
|
---|
2539 | cat conftest.err >&5
|
---|
2540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2541 | (exit $ac_status); } && {
|
---|
2542 | test -z "$ac_c_werror_flag" ||
|
---|
2543 | test ! -s conftest.err
|
---|
2544 | } && test -s conftest.$ac_objext; then
|
---|
2545 | ac_cv_prog_cc_g=yes
|
---|
2546 | else
|
---|
2547 | echo "$as_me: failed program was:" >&5
|
---|
2548 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2549 |
|
---|
2550 |
|
---|
2551 | fi
|
---|
2552 |
|
---|
2553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2554 | fi
|
---|
2555 |
|
---|
2556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2557 | fi
|
---|
2558 |
|
---|
2559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2560 | ac_c_werror_flag=$ac_save_c_werror_flag
|
---|
2561 | fi
|
---|
2562 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2563 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
|
---|
2564 | if test "$ac_test_CFLAGS" = set; then
|
---|
2565 | CFLAGS=$ac_save_CFLAGS
|
---|
2566 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2567 | if test "$GCC" = yes; then
|
---|
2568 | CFLAGS="-g -O2"
|
---|
2569 | else
|
---|
2570 | CFLAGS="-g"
|
---|
2571 | fi
|
---|
2572 | else
|
---|
2573 | if test "$GCC" = yes; then
|
---|
2574 | CFLAGS="-O2"
|
---|
2575 | else
|
---|
2576 | CFLAGS=
|
---|
2577 | fi
|
---|
2578 | fi
|
---|
2579 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
|
---|
2580 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
|
---|
2581 | if test "${ac_cv_prog_cc_c89+set}" = set; then
|
---|
2582 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2583 | else
|
---|
2584 | ac_cv_prog_cc_c89=no
|
---|
2585 | ac_save_CC=$CC
|
---|
2586 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2587 | /* confdefs.h. */
|
---|
2588 | _ACEOF
|
---|
2589 | cat confdefs.h >>conftest.$ac_ext
|
---|
2590 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2591 | /* end confdefs.h. */
|
---|
2592 | #include <stdarg.h>
|
---|
2593 | #include <stdio.h>
|
---|
2594 | #include <sys/types.h>
|
---|
2595 | #include <sys/stat.h>
|
---|
2596 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2597 | struct buf { int x; };
|
---|
2598 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2599 | static char *e (p, i)
|
---|
2600 | char **p;
|
---|
2601 | int i;
|
---|
2602 | {
|
---|
2603 | return p[i];
|
---|
2604 | }
|
---|
2605 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2606 | {
|
---|
2607 | char *s;
|
---|
2608 | va_list v;
|
---|
2609 | va_start (v,p);
|
---|
2610 | s = g (p, va_arg (v,int));
|
---|
2611 | va_end (v);
|
---|
2612 | return s;
|
---|
2613 | }
|
---|
2614 |
|
---|
2615 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2616 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2617 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2618 | as 'x'. The following induces an error, until -std is added to get
|
---|
2619 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2620 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2621 | that's true only with -std. */
|
---|
2622 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2623 |
|
---|
2624 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
|
---|
2625 | inside strings and character constants. */
|
---|
2626 | #define FOO(x) 'x'
|
---|
2627 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
|
---|
2628 |
|
---|
2629 | int test (int i, double x);
|
---|
2630 | struct s1 {int (*f) (int a);};
|
---|
2631 | struct s2 {int (*f) (double a);};
|
---|
2632 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2633 | int argc;
|
---|
2634 | char **argv;
|
---|
2635 | int
|
---|
2636 | main ()
|
---|
2637 | {
|
---|
2638 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2639 | ;
|
---|
2640 | return 0;
|
---|
2641 | }
|
---|
2642 | _ACEOF
|
---|
2643 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
|
---|
2644 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2645 | do
|
---|
2646 | CC="$ac_save_CC $ac_arg"
|
---|
2647 | rm -f conftest.$ac_objext
|
---|
2648 | if { (ac_try="$ac_compile"
|
---|
2649 | case "(($ac_try" in
|
---|
2650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2651 | *) ac_try_echo=$ac_try;;
|
---|
2652 | esac
|
---|
2653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2654 | (eval "$ac_compile") 2>conftest.er1
|
---|
2655 | ac_status=$?
|
---|
2656 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2657 | rm -f conftest.er1
|
---|
2658 | cat conftest.err >&5
|
---|
2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2660 | (exit $ac_status); } && {
|
---|
2661 | test -z "$ac_c_werror_flag" ||
|
---|
2662 | test ! -s conftest.err
|
---|
2663 | } && test -s conftest.$ac_objext; then
|
---|
2664 | ac_cv_prog_cc_c89=$ac_arg
|
---|
2665 | else
|
---|
2666 | echo "$as_me: failed program was:" >&5
|
---|
2667 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2668 |
|
---|
2669 |
|
---|
2670 | fi
|
---|
2671 |
|
---|
2672 | rm -f core conftest.err conftest.$ac_objext
|
---|
2673 | test "x$ac_cv_prog_cc_c89" != "xno" && break
|
---|
2674 | done
|
---|
2675 | rm -f conftest.$ac_ext
|
---|
2676 | CC=$ac_save_CC
|
---|
2677 |
|
---|
2678 | fi
|
---|
2679 | # AC_CACHE_VAL
|
---|
2680 | case "x$ac_cv_prog_cc_c89" in
|
---|
2681 | x)
|
---|
2682 | { echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2683 | echo "${ECHO_T}none needed" >&6; } ;;
|
---|
2684 | xno)
|
---|
2685 | { echo "$as_me:$LINENO: result: unsupported" >&5
|
---|
2686 | echo "${ECHO_T}unsupported" >&6; } ;;
|
---|
2687 | *)
|
---|
2688 | CC="$CC $ac_cv_prog_cc_c89"
|
---|
2689 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
|
---|
2690 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
|
---|
2691 | esac
|
---|
2692 |
|
---|
2693 |
|
---|
2694 | ac_ext=c
|
---|
2695 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2696 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2697 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2698 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2699 |
|
---|
2700 | if test "$GCC" = yes; then
|
---|
2701 | CFLAGS="$CFLAGS -Wall"
|
---|
2702 | fi
|
---|
2703 |
|
---|
2704 | ac_aux_dir=
|
---|
2705 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
|
---|
2706 | if test -f "$ac_dir/install-sh"; then
|
---|
2707 | ac_aux_dir=$ac_dir
|
---|
2708 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2709 | break
|
---|
2710 | elif test -f "$ac_dir/install.sh"; then
|
---|
2711 | ac_aux_dir=$ac_dir
|
---|
2712 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2713 | break
|
---|
2714 | elif test -f "$ac_dir/shtool"; then
|
---|
2715 | ac_aux_dir=$ac_dir
|
---|
2716 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2717 | break
|
---|
2718 | fi
|
---|
2719 | done
|
---|
2720 | if test -z "$ac_aux_dir"; then
|
---|
2721 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
|
---|
2722 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
|
---|
2723 | { (exit 1); exit 1; }; }
|
---|
2724 | fi
|
---|
2725 |
|
---|
2726 | # These three variables are undocumented and unsupported,
|
---|
2727 | # and are intended to be withdrawn in a future Autoconf release.
|
---|
2728 | # They can cause serious problems if a builder's source tree is in a directory
|
---|
2729 | # whose full name contains unusual characters.
|
---|
2730 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
|
---|
2731 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
|
---|
2732 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
|
---|
2733 |
|
---|
2734 |
|
---|
2735 | # Find a good install program. We prefer a C program (faster),
|
---|
2736 | # so one script is as good as another. But avoid the broken or
|
---|
2737 | # incompatible versions:
|
---|
2738 | # SysV /etc/install, /usr/sbin/install
|
---|
2739 | # SunOS /usr/etc/install
|
---|
2740 | # IRIX /sbin/install
|
---|
2741 | # AIX /bin/install
|
---|
2742 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2743 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2744 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2745 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2746 | # OS/2's system install, which has a completely different semantic
|
---|
2747 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2748 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2749 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
|
---|
2750 | if test -z "$INSTALL"; then
|
---|
2751 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2752 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2753 | else
|
---|
2754 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2755 | for as_dir in $PATH
|
---|
2756 | do
|
---|
2757 | IFS=$as_save_IFS
|
---|
2758 | test -z "$as_dir" && as_dir=.
|
---|
2759 | # Account for people who put trailing slashes in PATH elements.
|
---|
2760 | case $as_dir/ in
|
---|
2761 | ./ | .// | /cC/* | \
|
---|
2762 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2763 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2764 | /usr/ucb/* ) ;;
|
---|
2765 | *)
|
---|
2766 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2767 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2768 | # by default.
|
---|
2769 | for ac_prog in ginstall scoinst install; do
|
---|
2770 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2771 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
|
---|
2772 | if test $ac_prog = install &&
|
---|
2773 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2774 | # AIX install. It has an incompatible calling convention.
|
---|
2775 | :
|
---|
2776 | elif test $ac_prog = install &&
|
---|
2777 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2778 | # program-specific install script used by HP pwplus--don't use.
|
---|
2779 | :
|
---|
2780 | else
|
---|
2781 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2782 | break 3
|
---|
2783 | fi
|
---|
2784 | fi
|
---|
2785 | done
|
---|
2786 | done
|
---|
2787 | ;;
|
---|
2788 | esac
|
---|
2789 | done
|
---|
2790 | IFS=$as_save_IFS
|
---|
2791 |
|
---|
2792 |
|
---|
2793 | fi
|
---|
2794 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2795 | INSTALL=$ac_cv_path_install
|
---|
2796 | else
|
---|
2797 | # As a last resort, use the slow shell script. Don't cache a
|
---|
2798 | # value for INSTALL within a source directory, because that will
|
---|
2799 | # break other packages using the cache if that directory is
|
---|
2800 | # removed, or if the value is a relative name.
|
---|
2801 | INSTALL=$ac_install_sh
|
---|
2802 | fi
|
---|
2803 | fi
|
---|
2804 | { echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2805 | echo "${ECHO_T}$INSTALL" >&6; }
|
---|
2806 |
|
---|
2807 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2808 | # It thinks the first close brace ends the variable substitution.
|
---|
2809 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2810 |
|
---|
2811 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2812 |
|
---|
2813 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2814 |
|
---|
2815 | ac_ext=c
|
---|
2816 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2817 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2818 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2819 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2820 |
|
---|
2821 |
|
---|
2822 | ac_ext=c
|
---|
2823 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2824 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2825 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2826 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2827 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
2828 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
|
---|
2829 | # On Suns, sometimes $CPP names a directory.
|
---|
2830 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2831 | CPP=
|
---|
2832 | fi
|
---|
2833 | if test -z "$CPP"; then
|
---|
2834 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
2835 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2836 | else
|
---|
2837 | # Double quotes because CPP needs to be expanded
|
---|
2838 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
2839 | do
|
---|
2840 | ac_preproc_ok=false
|
---|
2841 | for ac_c_preproc_warn_flag in '' yes
|
---|
2842 | do
|
---|
2843 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2844 | # with a fresh cross-compiler works.
|
---|
2845 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2846 | # <limits.h> exists even on freestanding compilers.
|
---|
2847 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2848 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2849 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2850 | /* confdefs.h. */
|
---|
2851 | _ACEOF
|
---|
2852 | cat confdefs.h >>conftest.$ac_ext
|
---|
2853 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2854 | /* end confdefs.h. */
|
---|
2855 | #ifdef __STDC__
|
---|
2856 | # include <limits.h>
|
---|
2857 | #else
|
---|
2858 | # include <assert.h>
|
---|
2859 | #endif
|
---|
2860 | Syntax error
|
---|
2861 | _ACEOF
|
---|
2862 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
2863 | case "(($ac_try" in
|
---|
2864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2865 | *) ac_try_echo=$ac_try;;
|
---|
2866 | esac
|
---|
2867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2868 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
2869 | ac_status=$?
|
---|
2870 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2871 | rm -f conftest.er1
|
---|
2872 | cat conftest.err >&5
|
---|
2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2874 | (exit $ac_status); } >/dev/null && {
|
---|
2875 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
2876 | test ! -s conftest.err
|
---|
2877 | }; then
|
---|
2878 | :
|
---|
2879 | else
|
---|
2880 | echo "$as_me: failed program was:" >&5
|
---|
2881 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2882 |
|
---|
2883 | # Broken: fails on valid input.
|
---|
2884 | continue
|
---|
2885 | fi
|
---|
2886 |
|
---|
2887 | rm -f conftest.err conftest.$ac_ext
|
---|
2888 |
|
---|
2889 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
2890 | # can be detected and how.
|
---|
2891 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2892 | /* confdefs.h. */
|
---|
2893 | _ACEOF
|
---|
2894 | cat confdefs.h >>conftest.$ac_ext
|
---|
2895 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2896 | /* end confdefs.h. */
|
---|
2897 | #include <ac_nonexistent.h>
|
---|
2898 | _ACEOF
|
---|
2899 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
2900 | case "(($ac_try" in
|
---|
2901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2902 | *) ac_try_echo=$ac_try;;
|
---|
2903 | esac
|
---|
2904 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2905 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
2906 | ac_status=$?
|
---|
2907 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2908 | rm -f conftest.er1
|
---|
2909 | cat conftest.err >&5
|
---|
2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2911 | (exit $ac_status); } >/dev/null && {
|
---|
2912 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
2913 | test ! -s conftest.err
|
---|
2914 | }; then
|
---|
2915 | # Broken: success on invalid input.
|
---|
2916 | continue
|
---|
2917 | else
|
---|
2918 | echo "$as_me: failed program was:" >&5
|
---|
2919 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2920 |
|
---|
2921 | # Passes both tests.
|
---|
2922 | ac_preproc_ok=:
|
---|
2923 | break
|
---|
2924 | fi
|
---|
2925 |
|
---|
2926 | rm -f conftest.err conftest.$ac_ext
|
---|
2927 |
|
---|
2928 | done
|
---|
2929 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2930 | rm -f conftest.err conftest.$ac_ext
|
---|
2931 | if $ac_preproc_ok; then
|
---|
2932 | break
|
---|
2933 | fi
|
---|
2934 |
|
---|
2935 | done
|
---|
2936 | ac_cv_prog_CPP=$CPP
|
---|
2937 |
|
---|
2938 | fi
|
---|
2939 | CPP=$ac_cv_prog_CPP
|
---|
2940 | else
|
---|
2941 | ac_cv_prog_CPP=$CPP
|
---|
2942 | fi
|
---|
2943 | { echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
2944 | echo "${ECHO_T}$CPP" >&6; }
|
---|
2945 | ac_preproc_ok=false
|
---|
2946 | for ac_c_preproc_warn_flag in '' yes
|
---|
2947 | do
|
---|
2948 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2949 | # with a fresh cross-compiler works.
|
---|
2950 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2951 | # <limits.h> exists even on freestanding compilers.
|
---|
2952 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2953 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2954 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2955 | /* confdefs.h. */
|
---|
2956 | _ACEOF
|
---|
2957 | cat confdefs.h >>conftest.$ac_ext
|
---|
2958 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2959 | /* end confdefs.h. */
|
---|
2960 | #ifdef __STDC__
|
---|
2961 | # include <limits.h>
|
---|
2962 | #else
|
---|
2963 | # include <assert.h>
|
---|
2964 | #endif
|
---|
2965 | Syntax error
|
---|
2966 | _ACEOF
|
---|
2967 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
2968 | case "(($ac_try" in
|
---|
2969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
2970 | *) ac_try_echo=$ac_try;;
|
---|
2971 | esac
|
---|
2972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
2973 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
2974 | ac_status=$?
|
---|
2975 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2976 | rm -f conftest.er1
|
---|
2977 | cat conftest.err >&5
|
---|
2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2979 | (exit $ac_status); } >/dev/null && {
|
---|
2980 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
2981 | test ! -s conftest.err
|
---|
2982 | }; then
|
---|
2983 | :
|
---|
2984 | else
|
---|
2985 | echo "$as_me: failed program was:" >&5
|
---|
2986 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2987 |
|
---|
2988 | # Broken: fails on valid input.
|
---|
2989 | continue
|
---|
2990 | fi
|
---|
2991 |
|
---|
2992 | rm -f conftest.err conftest.$ac_ext
|
---|
2993 |
|
---|
2994 | # OK, works on sane cases. Now check whether nonexistent headers
|
---|
2995 | # can be detected and how.
|
---|
2996 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2997 | /* confdefs.h. */
|
---|
2998 | _ACEOF
|
---|
2999 | cat confdefs.h >>conftest.$ac_ext
|
---|
3000 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3001 | /* end confdefs.h. */
|
---|
3002 | #include <ac_nonexistent.h>
|
---|
3003 | _ACEOF
|
---|
3004 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3005 | case "(($ac_try" in
|
---|
3006 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3007 | *) ac_try_echo=$ac_try;;
|
---|
3008 | esac
|
---|
3009 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3010 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3011 | ac_status=$?
|
---|
3012 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3013 | rm -f conftest.er1
|
---|
3014 | cat conftest.err >&5
|
---|
3015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3016 | (exit $ac_status); } >/dev/null && {
|
---|
3017 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
3018 | test ! -s conftest.err
|
---|
3019 | }; then
|
---|
3020 | # Broken: success on invalid input.
|
---|
3021 | continue
|
---|
3022 | else
|
---|
3023 | echo "$as_me: failed program was:" >&5
|
---|
3024 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3025 |
|
---|
3026 | # Passes both tests.
|
---|
3027 | ac_preproc_ok=:
|
---|
3028 | break
|
---|
3029 | fi
|
---|
3030 |
|
---|
3031 | rm -f conftest.err conftest.$ac_ext
|
---|
3032 |
|
---|
3033 | done
|
---|
3034 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
3035 | rm -f conftest.err conftest.$ac_ext
|
---|
3036 | if $ac_preproc_ok; then
|
---|
3037 | :
|
---|
3038 | else
|
---|
3039 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3040 | See \`config.log' for more details." >&5
|
---|
3041 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
3042 | See \`config.log' for more details." >&2;}
|
---|
3043 | { (exit 1); exit 1; }; }
|
---|
3044 | fi
|
---|
3045 |
|
---|
3046 | ac_ext=c
|
---|
3047 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3051 |
|
---|
3052 |
|
---|
3053 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
|
---|
3054 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
|
---|
3055 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
3056 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3057 | else
|
---|
3058 | # Extract the first word of "grep ggrep" to use in msg output
|
---|
3059 | if test -z "$GREP"; then
|
---|
3060 | set dummy grep ggrep; ac_prog_name=$2
|
---|
3061 | if test "${ac_cv_path_GREP+set}" = set; then
|
---|
3062 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3063 | else
|
---|
3064 | ac_path_GREP_found=false
|
---|
3065 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3067 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3068 | do
|
---|
3069 | IFS=$as_save_IFS
|
---|
3070 | test -z "$as_dir" && as_dir=.
|
---|
3071 | for ac_prog in grep ggrep; do
|
---|
3072 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3073 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3074 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
|
---|
3075 | # Check for GNU ac_path_GREP and select it if it is found.
|
---|
3076 | # Check for GNU $ac_path_GREP
|
---|
3077 | case `"$ac_path_GREP" --version 2>&1` in
|
---|
3078 | *GNU*)
|
---|
3079 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
|
---|
3080 | *)
|
---|
3081 | ac_count=0
|
---|
3082 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
3083 | while :
|
---|
3084 | do
|
---|
3085 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3086 | mv "conftest.tmp" "conftest.in"
|
---|
3087 | cp "conftest.in" "conftest.nl"
|
---|
3088 | echo 'GREP' >> "conftest.nl"
|
---|
3089 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3090 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3091 | ac_count=`expr $ac_count + 1`
|
---|
3092 | if test $ac_count -gt ${ac_path_GREP_max-0}; then
|
---|
3093 | # Best one so far, save it but keep looking for a better one
|
---|
3094 | ac_cv_path_GREP="$ac_path_GREP"
|
---|
3095 | ac_path_GREP_max=$ac_count
|
---|
3096 | fi
|
---|
3097 | # 10*(2^10) chars as input seems more than enough
|
---|
3098 | test $ac_count -gt 10 && break
|
---|
3099 | done
|
---|
3100 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3101 | esac
|
---|
3102 |
|
---|
3103 |
|
---|
3104 | $ac_path_GREP_found && break 3
|
---|
3105 | done
|
---|
3106 | done
|
---|
3107 |
|
---|
3108 | done
|
---|
3109 | IFS=$as_save_IFS
|
---|
3110 |
|
---|
3111 |
|
---|
3112 | fi
|
---|
3113 |
|
---|
3114 | GREP="$ac_cv_path_GREP"
|
---|
3115 | if test -z "$GREP"; then
|
---|
3116 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
3117 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
3118 | { (exit 1); exit 1; }; }
|
---|
3119 | fi
|
---|
3120 |
|
---|
3121 | else
|
---|
3122 | ac_cv_path_GREP=$GREP
|
---|
3123 | fi
|
---|
3124 |
|
---|
3125 |
|
---|
3126 | fi
|
---|
3127 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
|
---|
3128 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
|
---|
3129 | GREP="$ac_cv_path_GREP"
|
---|
3130 |
|
---|
3131 |
|
---|
3132 | { echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3133 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
|
---|
3134 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
3135 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3136 | else
|
---|
3137 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
|
---|
3138 | then ac_cv_path_EGREP="$GREP -E"
|
---|
3139 | else
|
---|
3140 | # Extract the first word of "egrep" to use in msg output
|
---|
3141 | if test -z "$EGREP"; then
|
---|
3142 | set dummy egrep; ac_prog_name=$2
|
---|
3143 | if test "${ac_cv_path_EGREP+set}" = set; then
|
---|
3144 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3145 | else
|
---|
3146 | ac_path_EGREP_found=false
|
---|
3147 | # Loop through the user's path and test for each of PROGNAME-LIST
|
---|
3148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
3149 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
|
---|
3150 | do
|
---|
3151 | IFS=$as_save_IFS
|
---|
3152 | test -z "$as_dir" && as_dir=.
|
---|
3153 | for ac_prog in egrep; do
|
---|
3154 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3155 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
|
---|
3156 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
|
---|
3157 | # Check for GNU ac_path_EGREP and select it if it is found.
|
---|
3158 | # Check for GNU $ac_path_EGREP
|
---|
3159 | case `"$ac_path_EGREP" --version 2>&1` in
|
---|
3160 | *GNU*)
|
---|
3161 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
|
---|
3162 | *)
|
---|
3163 | ac_count=0
|
---|
3164 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
|
---|
3165 | while :
|
---|
3166 | do
|
---|
3167 | cat "conftest.in" "conftest.in" >"conftest.tmp"
|
---|
3168 | mv "conftest.tmp" "conftest.in"
|
---|
3169 | cp "conftest.in" "conftest.nl"
|
---|
3170 | echo 'EGREP' >> "conftest.nl"
|
---|
3171 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
|
---|
3172 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
|
---|
3173 | ac_count=`expr $ac_count + 1`
|
---|
3174 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then
|
---|
3175 | # Best one so far, save it but keep looking for a better one
|
---|
3176 | ac_cv_path_EGREP="$ac_path_EGREP"
|
---|
3177 | ac_path_EGREP_max=$ac_count
|
---|
3178 | fi
|
---|
3179 | # 10*(2^10) chars as input seems more than enough
|
---|
3180 | test $ac_count -gt 10 && break
|
---|
3181 | done
|
---|
3182 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
|
---|
3183 | esac
|
---|
3184 |
|
---|
3185 |
|
---|
3186 | $ac_path_EGREP_found && break 3
|
---|
3187 | done
|
---|
3188 | done
|
---|
3189 |
|
---|
3190 | done
|
---|
3191 | IFS=$as_save_IFS
|
---|
3192 |
|
---|
3193 |
|
---|
3194 | fi
|
---|
3195 |
|
---|
3196 | EGREP="$ac_cv_path_EGREP"
|
---|
3197 | if test -z "$EGREP"; then
|
---|
3198 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
|
---|
3199 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
|
---|
3200 | { (exit 1); exit 1; }; }
|
---|
3201 | fi
|
---|
3202 |
|
---|
3203 | else
|
---|
3204 | ac_cv_path_EGREP=$EGREP
|
---|
3205 | fi
|
---|
3206 |
|
---|
3207 |
|
---|
3208 | fi
|
---|
3209 | fi
|
---|
3210 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
|
---|
3211 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
|
---|
3212 | EGREP="$ac_cv_path_EGREP"
|
---|
3213 |
|
---|
3214 |
|
---|
3215 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3216 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
|
---|
3217 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3218 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3219 | else
|
---|
3220 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3221 | /* confdefs.h. */
|
---|
3222 | _ACEOF
|
---|
3223 | cat confdefs.h >>conftest.$ac_ext
|
---|
3224 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3225 | /* end confdefs.h. */
|
---|
3226 | #include <stdlib.h>
|
---|
3227 | #include <stdarg.h>
|
---|
3228 | #include <string.h>
|
---|
3229 | #include <float.h>
|
---|
3230 |
|
---|
3231 | int
|
---|
3232 | main ()
|
---|
3233 | {
|
---|
3234 |
|
---|
3235 | ;
|
---|
3236 | return 0;
|
---|
3237 | }
|
---|
3238 | _ACEOF
|
---|
3239 | rm -f conftest.$ac_objext
|
---|
3240 | if { (ac_try="$ac_compile"
|
---|
3241 | case "(($ac_try" in
|
---|
3242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3243 | *) ac_try_echo=$ac_try;;
|
---|
3244 | esac
|
---|
3245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3246 | (eval "$ac_compile") 2>conftest.er1
|
---|
3247 | ac_status=$?
|
---|
3248 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3249 | rm -f conftest.er1
|
---|
3250 | cat conftest.err >&5
|
---|
3251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3252 | (exit $ac_status); } && {
|
---|
3253 | test -z "$ac_c_werror_flag" ||
|
---|
3254 | test ! -s conftest.err
|
---|
3255 | } && test -s conftest.$ac_objext; then
|
---|
3256 | ac_cv_header_stdc=yes
|
---|
3257 | else
|
---|
3258 | echo "$as_me: failed program was:" >&5
|
---|
3259 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3260 |
|
---|
3261 | ac_cv_header_stdc=no
|
---|
3262 | fi
|
---|
3263 |
|
---|
3264 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3265 |
|
---|
3266 | if test $ac_cv_header_stdc = yes; then
|
---|
3267 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3268 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3269 | /* confdefs.h. */
|
---|
3270 | _ACEOF
|
---|
3271 | cat confdefs.h >>conftest.$ac_ext
|
---|
3272 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3273 | /* end confdefs.h. */
|
---|
3274 | #include <string.h>
|
---|
3275 |
|
---|
3276 | _ACEOF
|
---|
3277 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3278 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3279 | :
|
---|
3280 | else
|
---|
3281 | ac_cv_header_stdc=no
|
---|
3282 | fi
|
---|
3283 | rm -f conftest*
|
---|
3284 |
|
---|
3285 | fi
|
---|
3286 |
|
---|
3287 | if test $ac_cv_header_stdc = yes; then
|
---|
3288 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3289 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3290 | /* confdefs.h. */
|
---|
3291 | _ACEOF
|
---|
3292 | cat confdefs.h >>conftest.$ac_ext
|
---|
3293 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3294 | /* end confdefs.h. */
|
---|
3295 | #include <stdlib.h>
|
---|
3296 |
|
---|
3297 | _ACEOF
|
---|
3298 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3299 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3300 | :
|
---|
3301 | else
|
---|
3302 | ac_cv_header_stdc=no
|
---|
3303 | fi
|
---|
3304 | rm -f conftest*
|
---|
3305 |
|
---|
3306 | fi
|
---|
3307 |
|
---|
3308 | if test $ac_cv_header_stdc = yes; then
|
---|
3309 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3310 | if test "$cross_compiling" = yes; then
|
---|
3311 | :
|
---|
3312 | else
|
---|
3313 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3314 | /* confdefs.h. */
|
---|
3315 | _ACEOF
|
---|
3316 | cat confdefs.h >>conftest.$ac_ext
|
---|
3317 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3318 | /* end confdefs.h. */
|
---|
3319 | #include <ctype.h>
|
---|
3320 | #include <stdlib.h>
|
---|
3321 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3322 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3323 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3324 | #else
|
---|
3325 | # define ISLOWER(c) \
|
---|
3326 | (('a' <= (c) && (c) <= 'i') \
|
---|
3327 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3328 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3329 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3330 | #endif
|
---|
3331 |
|
---|
3332 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3333 | int
|
---|
3334 | main ()
|
---|
3335 | {
|
---|
3336 | int i;
|
---|
3337 | for (i = 0; i < 256; i++)
|
---|
3338 | if (XOR (islower (i), ISLOWER (i))
|
---|
3339 | || toupper (i) != TOUPPER (i))
|
---|
3340 | return 2;
|
---|
3341 | return 0;
|
---|
3342 | }
|
---|
3343 | _ACEOF
|
---|
3344 | rm -f conftest$ac_exeext
|
---|
3345 | if { (ac_try="$ac_link"
|
---|
3346 | case "(($ac_try" in
|
---|
3347 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3348 | *) ac_try_echo=$ac_try;;
|
---|
3349 | esac
|
---|
3350 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3351 | (eval "$ac_link") 2>&5
|
---|
3352 | ac_status=$?
|
---|
3353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3354 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3355 | { (case "(($ac_try" in
|
---|
3356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3357 | *) ac_try_echo=$ac_try;;
|
---|
3358 | esac
|
---|
3359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3360 | (eval "$ac_try") 2>&5
|
---|
3361 | ac_status=$?
|
---|
3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3363 | (exit $ac_status); }; }; then
|
---|
3364 | :
|
---|
3365 | else
|
---|
3366 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3367 | echo "$as_me: failed program was:" >&5
|
---|
3368 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3369 |
|
---|
3370 | ( exit $ac_status )
|
---|
3371 | ac_cv_header_stdc=no
|
---|
3372 | fi
|
---|
3373 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3374 | fi
|
---|
3375 |
|
---|
3376 |
|
---|
3377 | fi
|
---|
3378 | fi
|
---|
3379 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3380 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
|
---|
3381 | if test $ac_cv_header_stdc = yes; then
|
---|
3382 |
|
---|
3383 | cat >>confdefs.h <<\_ACEOF
|
---|
3384 | #define STDC_HEADERS 1
|
---|
3385 | _ACEOF
|
---|
3386 |
|
---|
3387 | fi
|
---|
3388 |
|
---|
3389 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3390 |
|
---|
3391 |
|
---|
3392 |
|
---|
3393 |
|
---|
3394 |
|
---|
3395 |
|
---|
3396 |
|
---|
3397 |
|
---|
3398 |
|
---|
3399 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3400 | inttypes.h stdint.h unistd.h
|
---|
3401 | do
|
---|
3402 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3403 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3404 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
3405 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
3406 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3407 | else
|
---|
3408 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3409 | /* confdefs.h. */
|
---|
3410 | _ACEOF
|
---|
3411 | cat confdefs.h >>conftest.$ac_ext
|
---|
3412 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3413 | /* end confdefs.h. */
|
---|
3414 | $ac_includes_default
|
---|
3415 |
|
---|
3416 | #include <$ac_header>
|
---|
3417 | _ACEOF
|
---|
3418 | rm -f conftest.$ac_objext
|
---|
3419 | if { (ac_try="$ac_compile"
|
---|
3420 | case "(($ac_try" in
|
---|
3421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3422 | *) ac_try_echo=$ac_try;;
|
---|
3423 | esac
|
---|
3424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3425 | (eval "$ac_compile") 2>conftest.er1
|
---|
3426 | ac_status=$?
|
---|
3427 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3428 | rm -f conftest.er1
|
---|
3429 | cat conftest.err >&5
|
---|
3430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3431 | (exit $ac_status); } && {
|
---|
3432 | test -z "$ac_c_werror_flag" ||
|
---|
3433 | test ! -s conftest.err
|
---|
3434 | } && test -s conftest.$ac_objext; then
|
---|
3435 | eval "$as_ac_Header=yes"
|
---|
3436 | else
|
---|
3437 | echo "$as_me: failed program was:" >&5
|
---|
3438 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3439 |
|
---|
3440 | eval "$as_ac_Header=no"
|
---|
3441 | fi
|
---|
3442 |
|
---|
3443 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3444 | fi
|
---|
3445 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
3446 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
3447 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
3448 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3449 | cat >>confdefs.h <<_ACEOF
|
---|
3450 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3451 | _ACEOF
|
---|
3452 |
|
---|
3453 | fi
|
---|
3454 |
|
---|
3455 | done
|
---|
3456 |
|
---|
3457 |
|
---|
3458 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
3459 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
|
---|
3460 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
3461 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3462 | else
|
---|
3463 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
3464 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3465 | /* confdefs.h. */
|
---|
3466 | _ACEOF
|
---|
3467 | cat confdefs.h >>conftest.$ac_ext
|
---|
3468 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3469 | /* end confdefs.h. */
|
---|
3470 | #include <sys/types.h>
|
---|
3471 | #include <sys/param.h>
|
---|
3472 |
|
---|
3473 | int
|
---|
3474 | main ()
|
---|
3475 | {
|
---|
3476 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
|
---|
3477 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
|
---|
3478 | bogus endian macros
|
---|
3479 | #endif
|
---|
3480 |
|
---|
3481 | ;
|
---|
3482 | return 0;
|
---|
3483 | }
|
---|
3484 | _ACEOF
|
---|
3485 | rm -f conftest.$ac_objext
|
---|
3486 | if { (ac_try="$ac_compile"
|
---|
3487 | case "(($ac_try" in
|
---|
3488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3489 | *) ac_try_echo=$ac_try;;
|
---|
3490 | esac
|
---|
3491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3492 | (eval "$ac_compile") 2>conftest.er1
|
---|
3493 | ac_status=$?
|
---|
3494 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3495 | rm -f conftest.er1
|
---|
3496 | cat conftest.err >&5
|
---|
3497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3498 | (exit $ac_status); } && {
|
---|
3499 | test -z "$ac_c_werror_flag" ||
|
---|
3500 | test ! -s conftest.err
|
---|
3501 | } && test -s conftest.$ac_objext; then
|
---|
3502 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
3503 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3504 | /* confdefs.h. */
|
---|
3505 | _ACEOF
|
---|
3506 | cat confdefs.h >>conftest.$ac_ext
|
---|
3507 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3508 | /* end confdefs.h. */
|
---|
3509 | #include <sys/types.h>
|
---|
3510 | #include <sys/param.h>
|
---|
3511 |
|
---|
3512 | int
|
---|
3513 | main ()
|
---|
3514 | {
|
---|
3515 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
3516 | not big endian
|
---|
3517 | #endif
|
---|
3518 |
|
---|
3519 | ;
|
---|
3520 | return 0;
|
---|
3521 | }
|
---|
3522 | _ACEOF
|
---|
3523 | rm -f conftest.$ac_objext
|
---|
3524 | if { (ac_try="$ac_compile"
|
---|
3525 | case "(($ac_try" in
|
---|
3526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3527 | *) ac_try_echo=$ac_try;;
|
---|
3528 | esac
|
---|
3529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3530 | (eval "$ac_compile") 2>conftest.er1
|
---|
3531 | ac_status=$?
|
---|
3532 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3533 | rm -f conftest.er1
|
---|
3534 | cat conftest.err >&5
|
---|
3535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3536 | (exit $ac_status); } && {
|
---|
3537 | test -z "$ac_c_werror_flag" ||
|
---|
3538 | test ! -s conftest.err
|
---|
3539 | } && test -s conftest.$ac_objext; then
|
---|
3540 | ac_cv_c_bigendian=yes
|
---|
3541 | else
|
---|
3542 | echo "$as_me: failed program was:" >&5
|
---|
3543 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3544 |
|
---|
3545 | ac_cv_c_bigendian=no
|
---|
3546 | fi
|
---|
3547 |
|
---|
3548 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3549 | else
|
---|
3550 | echo "$as_me: failed program was:" >&5
|
---|
3551 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3552 |
|
---|
3553 | # It does not; compile a test program.
|
---|
3554 | if test "$cross_compiling" = yes; then
|
---|
3555 | # try to guess the endianness by grepping values into an object file
|
---|
3556 | ac_cv_c_bigendian=unknown
|
---|
3557 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3558 | /* confdefs.h. */
|
---|
3559 | _ACEOF
|
---|
3560 | cat confdefs.h >>conftest.$ac_ext
|
---|
3561 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3562 | /* end confdefs.h. */
|
---|
3563 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
3564 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
3565 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
3566 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
3567 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
3568 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
3569 | int
|
---|
3570 | main ()
|
---|
3571 | {
|
---|
3572 | _ascii (); _ebcdic ();
|
---|
3573 | ;
|
---|
3574 | return 0;
|
---|
3575 | }
|
---|
3576 | _ACEOF
|
---|
3577 | rm -f conftest.$ac_objext
|
---|
3578 | if { (ac_try="$ac_compile"
|
---|
3579 | case "(($ac_try" in
|
---|
3580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3581 | *) ac_try_echo=$ac_try;;
|
---|
3582 | esac
|
---|
3583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3584 | (eval "$ac_compile") 2>conftest.er1
|
---|
3585 | ac_status=$?
|
---|
3586 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3587 | rm -f conftest.er1
|
---|
3588 | cat conftest.err >&5
|
---|
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3590 | (exit $ac_status); } && {
|
---|
3591 | test -z "$ac_c_werror_flag" ||
|
---|
3592 | test ! -s conftest.err
|
---|
3593 | } && test -s conftest.$ac_objext; then
|
---|
3594 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
3595 | ac_cv_c_bigendian=yes
|
---|
3596 | fi
|
---|
3597 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
3598 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
3599 | ac_cv_c_bigendian=no
|
---|
3600 | else
|
---|
3601 | # finding both strings is unlikely to happen, but who knows?
|
---|
3602 | ac_cv_c_bigendian=unknown
|
---|
3603 | fi
|
---|
3604 | fi
|
---|
3605 | else
|
---|
3606 | echo "$as_me: failed program was:" >&5
|
---|
3607 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3608 |
|
---|
3609 |
|
---|
3610 | fi
|
---|
3611 |
|
---|
3612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3613 | else
|
---|
3614 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3615 | /* confdefs.h. */
|
---|
3616 | _ACEOF
|
---|
3617 | cat confdefs.h >>conftest.$ac_ext
|
---|
3618 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3619 | /* end confdefs.h. */
|
---|
3620 | $ac_includes_default
|
---|
3621 | int
|
---|
3622 | main ()
|
---|
3623 | {
|
---|
3624 |
|
---|
3625 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
3626 | union
|
---|
3627 | {
|
---|
3628 | long int l;
|
---|
3629 | char c[sizeof (long int)];
|
---|
3630 | } u;
|
---|
3631 | u.l = 1;
|
---|
3632 | return u.c[sizeof (long int) - 1] == 1;
|
---|
3633 |
|
---|
3634 | ;
|
---|
3635 | return 0;
|
---|
3636 | }
|
---|
3637 | _ACEOF
|
---|
3638 | rm -f conftest$ac_exeext
|
---|
3639 | if { (ac_try="$ac_link"
|
---|
3640 | case "(($ac_try" in
|
---|
3641 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3642 | *) ac_try_echo=$ac_try;;
|
---|
3643 | esac
|
---|
3644 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3645 | (eval "$ac_link") 2>&5
|
---|
3646 | ac_status=$?
|
---|
3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3648 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3649 | { (case "(($ac_try" in
|
---|
3650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3651 | *) ac_try_echo=$ac_try;;
|
---|
3652 | esac
|
---|
3653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3654 | (eval "$ac_try") 2>&5
|
---|
3655 | ac_status=$?
|
---|
3656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3657 | (exit $ac_status); }; }; then
|
---|
3658 | ac_cv_c_bigendian=no
|
---|
3659 | else
|
---|
3660 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3661 | echo "$as_me: failed program was:" >&5
|
---|
3662 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3663 |
|
---|
3664 | ( exit $ac_status )
|
---|
3665 | ac_cv_c_bigendian=yes
|
---|
3666 | fi
|
---|
3667 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3668 | fi
|
---|
3669 |
|
---|
3670 |
|
---|
3671 | fi
|
---|
3672 |
|
---|
3673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3674 | fi
|
---|
3675 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
3676 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
|
---|
3677 | case $ac_cv_c_bigendian in
|
---|
3678 | yes)
|
---|
3679 | cat >>confdefs.h <<\_ACEOF
|
---|
3680 | #define B_ENDIAN 1
|
---|
3681 | _ACEOF
|
---|
3682 | ;;
|
---|
3683 | no)
|
---|
3684 | cat >>confdefs.h <<\_ACEOF
|
---|
3685 | #define L_ENDIAN 1
|
---|
3686 | _ACEOF
|
---|
3687 | ;;
|
---|
3688 | *)
|
---|
3689 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
3690 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
3691 | echo "$as_me: error: unknown endianness
|
---|
3692 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
3693 | { (exit 1); exit 1; }; } ;;
|
---|
3694 | esac
|
---|
3695 |
|
---|
3696 | { echo "$as_me:$LINENO: checking for X" >&5
|
---|
3697 | echo $ECHO_N "checking for X... $ECHO_C" >&6; }
|
---|
3698 |
|
---|
3699 |
|
---|
3700 | # Check whether --with-x was given.
|
---|
3701 | if test "${with_x+set}" = set; then
|
---|
3702 | withval=$with_x;
|
---|
3703 | fi
|
---|
3704 |
|
---|
3705 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
3706 | if test "x$with_x" = xno; then
|
---|
3707 | # The user explicitly disabled X.
|
---|
3708 | have_x=disabled
|
---|
3709 | else
|
---|
3710 | case $x_includes,$x_libraries in #(
|
---|
3711 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
|
---|
3712 | echo "$as_me: error: Cannot use X directory names containing '" >&2;}
|
---|
3713 | { (exit 1); exit 1; }; };; #(
|
---|
3714 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
|
---|
3715 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3716 | else
|
---|
3717 | # One or both of the vars are not set, and there is no cached value.
|
---|
3718 | ac_x_includes=no ac_x_libraries=no
|
---|
3719 | rm -f -r conftest.dir
|
---|
3720 | if mkdir conftest.dir; then
|
---|
3721 | cd conftest.dir
|
---|
3722 | cat >Imakefile <<'_ACEOF'
|
---|
3723 | incroot:
|
---|
3724 | @echo incroot='${INCROOT}'
|
---|
3725 | usrlibdir:
|
---|
3726 | @echo usrlibdir='${USRLIBDIR}'
|
---|
3727 | libdir:
|
---|
3728 | @echo libdir='${LIBDIR}'
|
---|
3729 | _ACEOF
|
---|
3730 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
3731 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3732 | for ac_var in incroot usrlibdir libdir; do
|
---|
3733 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
|
---|
3734 | done
|
---|
3735 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
3736 | for ac_extension in a so sl; do
|
---|
3737 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
|
---|
3738 | test -f "$ac_im_libdir/libX11.$ac_extension"; then
|
---|
3739 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
3740 | fi
|
---|
3741 | done
|
---|
3742 | # Screen out bogus values from the imake configuration. They are
|
---|
3743 | # bogus both because they are the default anyway, and because
|
---|
3744 | # using them would break gcc on systems where it needs fixed includes.
|
---|
3745 | case $ac_im_incroot in
|
---|
3746 | /usr/include) ac_x_includes= ;;
|
---|
3747 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
|
---|
3748 | esac
|
---|
3749 | case $ac_im_usrlibdir in
|
---|
3750 | /usr/lib | /lib) ;;
|
---|
3751 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
|
---|
3752 | esac
|
---|
3753 | fi
|
---|
3754 | cd ..
|
---|
3755 | rm -f -r conftest.dir
|
---|
3756 | fi
|
---|
3757 |
|
---|
3758 | # Standard set of common directories for X headers.
|
---|
3759 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
3760 | ac_x_header_dirs='
|
---|
3761 | /usr/X11/include
|
---|
3762 | /usr/X11R6/include
|
---|
3763 | /usr/X11R5/include
|
---|
3764 | /usr/X11R4/include
|
---|
3765 |
|
---|
3766 | /usr/include/X11
|
---|
3767 | /usr/include/X11R6
|
---|
3768 | /usr/include/X11R5
|
---|
3769 | /usr/include/X11R4
|
---|
3770 |
|
---|
3771 | /usr/local/X11/include
|
---|
3772 | /usr/local/X11R6/include
|
---|
3773 | /usr/local/X11R5/include
|
---|
3774 | /usr/local/X11R4/include
|
---|
3775 |
|
---|
3776 | /usr/local/include/X11
|
---|
3777 | /usr/local/include/X11R6
|
---|
3778 | /usr/local/include/X11R5
|
---|
3779 | /usr/local/include/X11R4
|
---|
3780 |
|
---|
3781 | /usr/X386/include
|
---|
3782 | /usr/x386/include
|
---|
3783 | /usr/XFree86/include/X11
|
---|
3784 |
|
---|
3785 | /usr/include
|
---|
3786 | /usr/local/include
|
---|
3787 | /usr/unsupported/include
|
---|
3788 | /usr/athena/include
|
---|
3789 | /usr/local/x11r5/include
|
---|
3790 | /usr/lpp/Xamples/include
|
---|
3791 |
|
---|
3792 | /usr/openwin/include
|
---|
3793 | /usr/openwin/share/include'
|
---|
3794 |
|
---|
3795 | if test "$ac_x_includes" = no; then
|
---|
3796 | # Guess where to find include files, by looking for Xlib.h.
|
---|
3797 | # First, try using that file with no special directory specified.
|
---|
3798 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3799 | /* confdefs.h. */
|
---|
3800 | _ACEOF
|
---|
3801 | cat confdefs.h >>conftest.$ac_ext
|
---|
3802 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3803 | /* end confdefs.h. */
|
---|
3804 | #include <X11/Xlib.h>
|
---|
3805 | _ACEOF
|
---|
3806 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
3807 | case "(($ac_try" in
|
---|
3808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3809 | *) ac_try_echo=$ac_try;;
|
---|
3810 | esac
|
---|
3811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3812 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
3813 | ac_status=$?
|
---|
3814 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3815 | rm -f conftest.er1
|
---|
3816 | cat conftest.err >&5
|
---|
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3818 | (exit $ac_status); } >/dev/null && {
|
---|
3819 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
3820 | test ! -s conftest.err
|
---|
3821 | }; then
|
---|
3822 | # We can compile using X headers with no special include directory.
|
---|
3823 | ac_x_includes=
|
---|
3824 | else
|
---|
3825 | echo "$as_me: failed program was:" >&5
|
---|
3826 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3827 |
|
---|
3828 | for ac_dir in $ac_x_header_dirs; do
|
---|
3829 | if test -r "$ac_dir/X11/Xlib.h"; then
|
---|
3830 | ac_x_includes=$ac_dir
|
---|
3831 | break
|
---|
3832 | fi
|
---|
3833 | done
|
---|
3834 | fi
|
---|
3835 |
|
---|
3836 | rm -f conftest.err conftest.$ac_ext
|
---|
3837 | fi # $ac_x_includes = no
|
---|
3838 |
|
---|
3839 | if test "$ac_x_libraries" = no; then
|
---|
3840 | # Check for the libraries.
|
---|
3841 | # See if we find them without any special options.
|
---|
3842 | # Don't add to $LIBS permanently.
|
---|
3843 | ac_save_LIBS=$LIBS
|
---|
3844 | LIBS="-lX11 $LIBS"
|
---|
3845 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3846 | /* confdefs.h. */
|
---|
3847 | _ACEOF
|
---|
3848 | cat confdefs.h >>conftest.$ac_ext
|
---|
3849 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3850 | /* end confdefs.h. */
|
---|
3851 | #include <X11/Xlib.h>
|
---|
3852 | int
|
---|
3853 | main ()
|
---|
3854 | {
|
---|
3855 | XrmInitialize ()
|
---|
3856 | ;
|
---|
3857 | return 0;
|
---|
3858 | }
|
---|
3859 | _ACEOF
|
---|
3860 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3861 | if { (ac_try="$ac_link"
|
---|
3862 | case "(($ac_try" in
|
---|
3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3864 | *) ac_try_echo=$ac_try;;
|
---|
3865 | esac
|
---|
3866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3867 | (eval "$ac_link") 2>conftest.er1
|
---|
3868 | ac_status=$?
|
---|
3869 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3870 | rm -f conftest.er1
|
---|
3871 | cat conftest.err >&5
|
---|
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3873 | (exit $ac_status); } && {
|
---|
3874 | test -z "$ac_c_werror_flag" ||
|
---|
3875 | test ! -s conftest.err
|
---|
3876 | } && test -s conftest$ac_exeext &&
|
---|
3877 | $as_test_x conftest$ac_exeext; then
|
---|
3878 | LIBS=$ac_save_LIBS
|
---|
3879 | # We can link X programs with no special library path.
|
---|
3880 | ac_x_libraries=
|
---|
3881 | else
|
---|
3882 | echo "$as_me: failed program was:" >&5
|
---|
3883 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3884 |
|
---|
3885 | LIBS=$ac_save_LIBS
|
---|
3886 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
|
---|
3887 | do
|
---|
3888 | # Don't even attempt the hair of trying to link an X program!
|
---|
3889 | for ac_extension in a so sl; do
|
---|
3890 | if test -r "$ac_dir/libX11.$ac_extension"; then
|
---|
3891 | ac_x_libraries=$ac_dir
|
---|
3892 | break 2
|
---|
3893 | fi
|
---|
3894 | done
|
---|
3895 | done
|
---|
3896 | fi
|
---|
3897 |
|
---|
3898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
3899 | conftest$ac_exeext conftest.$ac_ext
|
---|
3900 | fi # $ac_x_libraries = no
|
---|
3901 |
|
---|
3902 | case $ac_x_includes,$ac_x_libraries in #(
|
---|
3903 | no,* | *,no | *\'*)
|
---|
3904 | # Didn't find X, or a directory has "'" in its name.
|
---|
3905 | ac_cv_have_x="have_x=no";; #(
|
---|
3906 | *)
|
---|
3907 | # Record where we found X for the cache.
|
---|
3908 | ac_cv_have_x="have_x=yes\
|
---|
3909 | ac_x_includes='$ac_x_includes'\
|
---|
3910 | ac_x_libraries='$ac_x_libraries'"
|
---|
3911 | esac
|
---|
3912 | fi
|
---|
3913 | ;; #(
|
---|
3914 | *) have_x=yes;;
|
---|
3915 | esac
|
---|
3916 | eval "$ac_cv_have_x"
|
---|
3917 | fi # $with_x != no
|
---|
3918 |
|
---|
3919 | if test "$have_x" != yes; then
|
---|
3920 | { echo "$as_me:$LINENO: result: $have_x" >&5
|
---|
3921 | echo "${ECHO_T}$have_x" >&6; }
|
---|
3922 | no_x=yes
|
---|
3923 | else
|
---|
3924 | # If each of the values was on the command line, it overrides each guess.
|
---|
3925 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
3926 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
3927 | # Update the cache value to reflect the command line values.
|
---|
3928 | ac_cv_have_x="have_x=yes\
|
---|
3929 | ac_x_includes='$x_includes'\
|
---|
3930 | ac_x_libraries='$x_libraries'"
|
---|
3931 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
|
---|
3932 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
|
---|
3933 | fi
|
---|
3934 |
|
---|
3935 | if test "$no_x" = yes; then
|
---|
3936 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
3937 |
|
---|
3938 | cat >>confdefs.h <<\_ACEOF
|
---|
3939 | #define X_DISPLAY_MISSING 1
|
---|
3940 | _ACEOF
|
---|
3941 |
|
---|
3942 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
3943 | else
|
---|
3944 | if test -n "$x_includes"; then
|
---|
3945 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
3946 | fi
|
---|
3947 |
|
---|
3948 | # It would also be nice to do this for all -L options, not just this one.
|
---|
3949 | if test -n "$x_libraries"; then
|
---|
3950 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
3951 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
3952 | # others require no space. Words are not sufficient . . . .
|
---|
3953 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
|
---|
3954 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
|
---|
3955 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
|
---|
3956 | ac_xsave_c_werror_flag=$ac_c_werror_flag
|
---|
3957 | ac_c_werror_flag=yes
|
---|
3958 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3959 | /* confdefs.h. */
|
---|
3960 | _ACEOF
|
---|
3961 | cat confdefs.h >>conftest.$ac_ext
|
---|
3962 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3963 | /* end confdefs.h. */
|
---|
3964 |
|
---|
3965 | int
|
---|
3966 | main ()
|
---|
3967 | {
|
---|
3968 |
|
---|
3969 | ;
|
---|
3970 | return 0;
|
---|
3971 | }
|
---|
3972 | _ACEOF
|
---|
3973 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3974 | if { (ac_try="$ac_link"
|
---|
3975 | case "(($ac_try" in
|
---|
3976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
3977 | *) ac_try_echo=$ac_try;;
|
---|
3978 | esac
|
---|
3979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
3980 | (eval "$ac_link") 2>conftest.er1
|
---|
3981 | ac_status=$?
|
---|
3982 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3983 | rm -f conftest.er1
|
---|
3984 | cat conftest.err >&5
|
---|
3985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3986 | (exit $ac_status); } && {
|
---|
3987 | test -z "$ac_c_werror_flag" ||
|
---|
3988 | test ! -s conftest.err
|
---|
3989 | } && test -s conftest$ac_exeext &&
|
---|
3990 | $as_test_x conftest$ac_exeext; then
|
---|
3991 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
3992 | echo "${ECHO_T}no" >&6; }
|
---|
3993 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
3994 | else
|
---|
3995 | echo "$as_me: failed program was:" >&5
|
---|
3996 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3997 |
|
---|
3998 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
3999 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4000 | /* confdefs.h. */
|
---|
4001 | _ACEOF
|
---|
4002 | cat confdefs.h >>conftest.$ac_ext
|
---|
4003 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4004 | /* end confdefs.h. */
|
---|
4005 |
|
---|
4006 | int
|
---|
4007 | main ()
|
---|
4008 | {
|
---|
4009 |
|
---|
4010 | ;
|
---|
4011 | return 0;
|
---|
4012 | }
|
---|
4013 | _ACEOF
|
---|
4014 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4015 | if { (ac_try="$ac_link"
|
---|
4016 | case "(($ac_try" in
|
---|
4017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4018 | *) ac_try_echo=$ac_try;;
|
---|
4019 | esac
|
---|
4020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4021 | (eval "$ac_link") 2>conftest.er1
|
---|
4022 | ac_status=$?
|
---|
4023 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4024 | rm -f conftest.er1
|
---|
4025 | cat conftest.err >&5
|
---|
4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4027 | (exit $ac_status); } && {
|
---|
4028 | test -z "$ac_c_werror_flag" ||
|
---|
4029 | test ! -s conftest.err
|
---|
4030 | } && test -s conftest$ac_exeext &&
|
---|
4031 | $as_test_x conftest$ac_exeext; then
|
---|
4032 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
4033 | echo "${ECHO_T}yes" >&6; }
|
---|
4034 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
4035 | else
|
---|
4036 | echo "$as_me: failed program was:" >&5
|
---|
4037 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4038 |
|
---|
4039 | { echo "$as_me:$LINENO: result: neither works" >&5
|
---|
4040 | echo "${ECHO_T}neither works" >&6; }
|
---|
4041 | fi
|
---|
4042 |
|
---|
4043 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4044 | conftest$ac_exeext conftest.$ac_ext
|
---|
4045 | fi
|
---|
4046 |
|
---|
4047 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4048 | conftest$ac_exeext conftest.$ac_ext
|
---|
4049 | ac_c_werror_flag=$ac_xsave_c_werror_flag
|
---|
4050 | LIBS=$ac_xsave_LIBS
|
---|
4051 | fi
|
---|
4052 |
|
---|
4053 | # Check for system-dependent libraries X programs must link with.
|
---|
4054 | # Do this before checking for the system-independent R6 libraries
|
---|
4055 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
4056 |
|
---|
4057 | if test "$ISC" = yes; then
|
---|
4058 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
4059 | else
|
---|
4060 | # Martyn Johnson says this is needed for Ultrix, if the X
|
---|
4061 | # libraries were built with DECnet support. And Karl Berry says
|
---|
4062 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
4063 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
|
---|
4064 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4065 | /* confdefs.h. */
|
---|
4066 | _ACEOF
|
---|
4067 | cat confdefs.h >>conftest.$ac_ext
|
---|
4068 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4069 | /* end confdefs.h. */
|
---|
4070 |
|
---|
4071 | /* Override any GCC internal prototype to avoid an error.
|
---|
4072 | Use char because int might match the return type of a GCC
|
---|
4073 | builtin and then its argument prototype would still apply. */
|
---|
4074 | #ifdef __cplusplus
|
---|
4075 | extern "C"
|
---|
4076 | #endif
|
---|
4077 | char XOpenDisplay ();
|
---|
4078 | int
|
---|
4079 | main ()
|
---|
4080 | {
|
---|
4081 | return XOpenDisplay ();
|
---|
4082 | ;
|
---|
4083 | return 0;
|
---|
4084 | }
|
---|
4085 | _ACEOF
|
---|
4086 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4087 | if { (ac_try="$ac_link"
|
---|
4088 | case "(($ac_try" in
|
---|
4089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4090 | *) ac_try_echo=$ac_try;;
|
---|
4091 | esac
|
---|
4092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4093 | (eval "$ac_link") 2>conftest.er1
|
---|
4094 | ac_status=$?
|
---|
4095 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4096 | rm -f conftest.er1
|
---|
4097 | cat conftest.err >&5
|
---|
4098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4099 | (exit $ac_status); } && {
|
---|
4100 | test -z "$ac_c_werror_flag" ||
|
---|
4101 | test ! -s conftest.err
|
---|
4102 | } && test -s conftest$ac_exeext &&
|
---|
4103 | $as_test_x conftest$ac_exeext; then
|
---|
4104 | :
|
---|
4105 | else
|
---|
4106 | echo "$as_me: failed program was:" >&5
|
---|
4107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4108 |
|
---|
4109 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
|
---|
4110 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
|
---|
4111 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
|
---|
4112 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4113 | else
|
---|
4114 | ac_check_lib_save_LIBS=$LIBS
|
---|
4115 | LIBS="-ldnet $LIBS"
|
---|
4116 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4117 | /* confdefs.h. */
|
---|
4118 | _ACEOF
|
---|
4119 | cat confdefs.h >>conftest.$ac_ext
|
---|
4120 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4121 | /* end confdefs.h. */
|
---|
4122 |
|
---|
4123 | /* Override any GCC internal prototype to avoid an error.
|
---|
4124 | Use char because int might match the return type of a GCC
|
---|
4125 | builtin and then its argument prototype would still apply. */
|
---|
4126 | #ifdef __cplusplus
|
---|
4127 | extern "C"
|
---|
4128 | #endif
|
---|
4129 | char dnet_ntoa ();
|
---|
4130 | int
|
---|
4131 | main ()
|
---|
4132 | {
|
---|
4133 | return dnet_ntoa ();
|
---|
4134 | ;
|
---|
4135 | return 0;
|
---|
4136 | }
|
---|
4137 | _ACEOF
|
---|
4138 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4139 | if { (ac_try="$ac_link"
|
---|
4140 | case "(($ac_try" in
|
---|
4141 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4142 | *) ac_try_echo=$ac_try;;
|
---|
4143 | esac
|
---|
4144 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4145 | (eval "$ac_link") 2>conftest.er1
|
---|
4146 | ac_status=$?
|
---|
4147 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4148 | rm -f conftest.er1
|
---|
4149 | cat conftest.err >&5
|
---|
4150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4151 | (exit $ac_status); } && {
|
---|
4152 | test -z "$ac_c_werror_flag" ||
|
---|
4153 | test ! -s conftest.err
|
---|
4154 | } && test -s conftest$ac_exeext &&
|
---|
4155 | $as_test_x conftest$ac_exeext; then
|
---|
4156 | ac_cv_lib_dnet_dnet_ntoa=yes
|
---|
4157 | else
|
---|
4158 | echo "$as_me: failed program was:" >&5
|
---|
4159 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4160 |
|
---|
4161 | ac_cv_lib_dnet_dnet_ntoa=no
|
---|
4162 | fi
|
---|
4163 |
|
---|
4164 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4165 | conftest$ac_exeext conftest.$ac_ext
|
---|
4166 | LIBS=$ac_check_lib_save_LIBS
|
---|
4167 | fi
|
---|
4168 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
|
---|
4169 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
|
---|
4170 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
|
---|
4171 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
4172 | fi
|
---|
4173 |
|
---|
4174 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
4175 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
4176 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
|
---|
4177 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
|
---|
4178 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4179 | else
|
---|
4180 | ac_check_lib_save_LIBS=$LIBS
|
---|
4181 | LIBS="-ldnet_stub $LIBS"
|
---|
4182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4183 | /* confdefs.h. */
|
---|
4184 | _ACEOF
|
---|
4185 | cat confdefs.h >>conftest.$ac_ext
|
---|
4186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4187 | /* end confdefs.h. */
|
---|
4188 |
|
---|
4189 | /* Override any GCC internal prototype to avoid an error.
|
---|
4190 | Use char because int might match the return type of a GCC
|
---|
4191 | builtin and then its argument prototype would still apply. */
|
---|
4192 | #ifdef __cplusplus
|
---|
4193 | extern "C"
|
---|
4194 | #endif
|
---|
4195 | char dnet_ntoa ();
|
---|
4196 | int
|
---|
4197 | main ()
|
---|
4198 | {
|
---|
4199 | return dnet_ntoa ();
|
---|
4200 | ;
|
---|
4201 | return 0;
|
---|
4202 | }
|
---|
4203 | _ACEOF
|
---|
4204 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4205 | if { (ac_try="$ac_link"
|
---|
4206 | case "(($ac_try" in
|
---|
4207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4208 | *) ac_try_echo=$ac_try;;
|
---|
4209 | esac
|
---|
4210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4211 | (eval "$ac_link") 2>conftest.er1
|
---|
4212 | ac_status=$?
|
---|
4213 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4214 | rm -f conftest.er1
|
---|
4215 | cat conftest.err >&5
|
---|
4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4217 | (exit $ac_status); } && {
|
---|
4218 | test -z "$ac_c_werror_flag" ||
|
---|
4219 | test ! -s conftest.err
|
---|
4220 | } && test -s conftest$ac_exeext &&
|
---|
4221 | $as_test_x conftest$ac_exeext; then
|
---|
4222 | ac_cv_lib_dnet_stub_dnet_ntoa=yes
|
---|
4223 | else
|
---|
4224 | echo "$as_me: failed program was:" >&5
|
---|
4225 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4226 |
|
---|
4227 | ac_cv_lib_dnet_stub_dnet_ntoa=no
|
---|
4228 | fi
|
---|
4229 |
|
---|
4230 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4231 | conftest$ac_exeext conftest.$ac_ext
|
---|
4232 | LIBS=$ac_check_lib_save_LIBS
|
---|
4233 | fi
|
---|
4234 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
|
---|
4235 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
|
---|
4236 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
|
---|
4237 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
4238 | fi
|
---|
4239 |
|
---|
4240 | fi
|
---|
4241 | fi
|
---|
4242 |
|
---|
4243 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4244 | conftest$ac_exeext conftest.$ac_ext
|
---|
4245 | LIBS="$ac_xsave_LIBS"
|
---|
4246 |
|
---|
4247 | # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
4248 | # to get the SysV transport functions.
|
---|
4249 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
4250 | # needs -lnsl.
|
---|
4251 | # The nsl library prevents programs from opening the X display
|
---|
4252 | # on Irix 5.2, according to T.E. Dickey.
|
---|
4253 | # The functions gethostbyname, getservbyname, and inet_addr are
|
---|
4254 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
---|
4255 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5
|
---|
4256 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
|
---|
4257 | if test "${ac_cv_func_gethostbyname+set}" = set; then
|
---|
4258 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4259 | else
|
---|
4260 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4261 | /* confdefs.h. */
|
---|
4262 | _ACEOF
|
---|
4263 | cat confdefs.h >>conftest.$ac_ext
|
---|
4264 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4265 | /* end confdefs.h. */
|
---|
4266 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
|
---|
4267 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
4268 | #define gethostbyname innocuous_gethostbyname
|
---|
4269 |
|
---|
4270 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4271 | which can conflict with char gethostbyname (); below.
|
---|
4272 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4273 | <limits.h> exists even on freestanding compilers. */
|
---|
4274 |
|
---|
4275 | #ifdef __STDC__
|
---|
4276 | # include <limits.h>
|
---|
4277 | #else
|
---|
4278 | # include <assert.h>
|
---|
4279 | #endif
|
---|
4280 |
|
---|
4281 | #undef gethostbyname
|
---|
4282 |
|
---|
4283 | /* Override any GCC internal prototype to avoid an error.
|
---|
4284 | Use char because int might match the return type of a GCC
|
---|
4285 | builtin and then its argument prototype would still apply. */
|
---|
4286 | #ifdef __cplusplus
|
---|
4287 | extern "C"
|
---|
4288 | #endif
|
---|
4289 | char gethostbyname ();
|
---|
4290 | /* The GNU C library defines this for functions which it implements
|
---|
4291 | to always fail with ENOSYS. Some functions are actually named
|
---|
4292 | something starting with __ and the normal name is an alias. */
|
---|
4293 | #if defined __stub_gethostbyname || defined __stub___gethostbyname
|
---|
4294 | choke me
|
---|
4295 | #endif
|
---|
4296 |
|
---|
4297 | int
|
---|
4298 | main ()
|
---|
4299 | {
|
---|
4300 | return gethostbyname ();
|
---|
4301 | ;
|
---|
4302 | return 0;
|
---|
4303 | }
|
---|
4304 | _ACEOF
|
---|
4305 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4306 | if { (ac_try="$ac_link"
|
---|
4307 | case "(($ac_try" in
|
---|
4308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4309 | *) ac_try_echo=$ac_try;;
|
---|
4310 | esac
|
---|
4311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4312 | (eval "$ac_link") 2>conftest.er1
|
---|
4313 | ac_status=$?
|
---|
4314 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4315 | rm -f conftest.er1
|
---|
4316 | cat conftest.err >&5
|
---|
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4318 | (exit $ac_status); } && {
|
---|
4319 | test -z "$ac_c_werror_flag" ||
|
---|
4320 | test ! -s conftest.err
|
---|
4321 | } && test -s conftest$ac_exeext &&
|
---|
4322 | $as_test_x conftest$ac_exeext; then
|
---|
4323 | ac_cv_func_gethostbyname=yes
|
---|
4324 | else
|
---|
4325 | echo "$as_me: failed program was:" >&5
|
---|
4326 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4327 |
|
---|
4328 | ac_cv_func_gethostbyname=no
|
---|
4329 | fi
|
---|
4330 |
|
---|
4331 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4332 | conftest$ac_exeext conftest.$ac_ext
|
---|
4333 | fi
|
---|
4334 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
|
---|
4335 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
|
---|
4336 |
|
---|
4337 | if test $ac_cv_func_gethostbyname = no; then
|
---|
4338 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
|
---|
4339 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
|
---|
4340 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
|
---|
4341 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4342 | else
|
---|
4343 | ac_check_lib_save_LIBS=$LIBS
|
---|
4344 | LIBS="-lnsl $LIBS"
|
---|
4345 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4346 | /* confdefs.h. */
|
---|
4347 | _ACEOF
|
---|
4348 | cat confdefs.h >>conftest.$ac_ext
|
---|
4349 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4350 | /* end confdefs.h. */
|
---|
4351 |
|
---|
4352 | /* Override any GCC internal prototype to avoid an error.
|
---|
4353 | Use char because int might match the return type of a GCC
|
---|
4354 | builtin and then its argument prototype would still apply. */
|
---|
4355 | #ifdef __cplusplus
|
---|
4356 | extern "C"
|
---|
4357 | #endif
|
---|
4358 | char gethostbyname ();
|
---|
4359 | int
|
---|
4360 | main ()
|
---|
4361 | {
|
---|
4362 | return gethostbyname ();
|
---|
4363 | ;
|
---|
4364 | return 0;
|
---|
4365 | }
|
---|
4366 | _ACEOF
|
---|
4367 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4368 | if { (ac_try="$ac_link"
|
---|
4369 | case "(($ac_try" in
|
---|
4370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4371 | *) ac_try_echo=$ac_try;;
|
---|
4372 | esac
|
---|
4373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4374 | (eval "$ac_link") 2>conftest.er1
|
---|
4375 | ac_status=$?
|
---|
4376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4377 | rm -f conftest.er1
|
---|
4378 | cat conftest.err >&5
|
---|
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4380 | (exit $ac_status); } && {
|
---|
4381 | test -z "$ac_c_werror_flag" ||
|
---|
4382 | test ! -s conftest.err
|
---|
4383 | } && test -s conftest$ac_exeext &&
|
---|
4384 | $as_test_x conftest$ac_exeext; then
|
---|
4385 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
4386 | else
|
---|
4387 | echo "$as_me: failed program was:" >&5
|
---|
4388 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4389 |
|
---|
4390 | ac_cv_lib_nsl_gethostbyname=no
|
---|
4391 | fi
|
---|
4392 |
|
---|
4393 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4394 | conftest$ac_exeext conftest.$ac_ext
|
---|
4395 | LIBS=$ac_check_lib_save_LIBS
|
---|
4396 | fi
|
---|
4397 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
4398 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
|
---|
4399 | if test $ac_cv_lib_nsl_gethostbyname = yes; then
|
---|
4400 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
4401 | fi
|
---|
4402 |
|
---|
4403 | if test $ac_cv_lib_nsl_gethostbyname = no; then
|
---|
4404 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
|
---|
4405 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
|
---|
4406 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
|
---|
4407 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4408 | else
|
---|
4409 | ac_check_lib_save_LIBS=$LIBS
|
---|
4410 | LIBS="-lbsd $LIBS"
|
---|
4411 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4412 | /* confdefs.h. */
|
---|
4413 | _ACEOF
|
---|
4414 | cat confdefs.h >>conftest.$ac_ext
|
---|
4415 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4416 | /* end confdefs.h. */
|
---|
4417 |
|
---|
4418 | /* Override any GCC internal prototype to avoid an error.
|
---|
4419 | Use char because int might match the return type of a GCC
|
---|
4420 | builtin and then its argument prototype would still apply. */
|
---|
4421 | #ifdef __cplusplus
|
---|
4422 | extern "C"
|
---|
4423 | #endif
|
---|
4424 | char gethostbyname ();
|
---|
4425 | int
|
---|
4426 | main ()
|
---|
4427 | {
|
---|
4428 | return gethostbyname ();
|
---|
4429 | ;
|
---|
4430 | return 0;
|
---|
4431 | }
|
---|
4432 | _ACEOF
|
---|
4433 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4434 | if { (ac_try="$ac_link"
|
---|
4435 | case "(($ac_try" in
|
---|
4436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4437 | *) ac_try_echo=$ac_try;;
|
---|
4438 | esac
|
---|
4439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4440 | (eval "$ac_link") 2>conftest.er1
|
---|
4441 | ac_status=$?
|
---|
4442 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4443 | rm -f conftest.er1
|
---|
4444 | cat conftest.err >&5
|
---|
4445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4446 | (exit $ac_status); } && {
|
---|
4447 | test -z "$ac_c_werror_flag" ||
|
---|
4448 | test ! -s conftest.err
|
---|
4449 | } && test -s conftest$ac_exeext &&
|
---|
4450 | $as_test_x conftest$ac_exeext; then
|
---|
4451 | ac_cv_lib_bsd_gethostbyname=yes
|
---|
4452 | else
|
---|
4453 | echo "$as_me: failed program was:" >&5
|
---|
4454 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4455 |
|
---|
4456 | ac_cv_lib_bsd_gethostbyname=no
|
---|
4457 | fi
|
---|
4458 |
|
---|
4459 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4460 | conftest$ac_exeext conftest.$ac_ext
|
---|
4461 | LIBS=$ac_check_lib_save_LIBS
|
---|
4462 | fi
|
---|
4463 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
|
---|
4464 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
|
---|
4465 | if test $ac_cv_lib_bsd_gethostbyname = yes; then
|
---|
4466 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
|
---|
4467 | fi
|
---|
4468 |
|
---|
4469 | fi
|
---|
4470 | fi
|
---|
4471 |
|
---|
4472 | # [email protected] says without -lsocket,
|
---|
4473 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
4474 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
4475 | # on later versions), says Simon Leinen: it contains gethostby*
|
---|
4476 | # variants that don't use the name server (or something). -lsocket
|
---|
4477 | # must be given before -lnsl if both are needed. We assume that
|
---|
4478 | # if connect needs -lnsl, so does gethostbyname.
|
---|
4479 | { echo "$as_me:$LINENO: checking for connect" >&5
|
---|
4480 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
|
---|
4481 | if test "${ac_cv_func_connect+set}" = set; then
|
---|
4482 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4483 | else
|
---|
4484 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4485 | /* confdefs.h. */
|
---|
4486 | _ACEOF
|
---|
4487 | cat confdefs.h >>conftest.$ac_ext
|
---|
4488 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4489 | /* end confdefs.h. */
|
---|
4490 | /* Define connect to an innocuous variant, in case <limits.h> declares connect.
|
---|
4491 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
4492 | #define connect innocuous_connect
|
---|
4493 |
|
---|
4494 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4495 | which can conflict with char connect (); below.
|
---|
4496 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4497 | <limits.h> exists even on freestanding compilers. */
|
---|
4498 |
|
---|
4499 | #ifdef __STDC__
|
---|
4500 | # include <limits.h>
|
---|
4501 | #else
|
---|
4502 | # include <assert.h>
|
---|
4503 | #endif
|
---|
4504 |
|
---|
4505 | #undef connect
|
---|
4506 |
|
---|
4507 | /* Override any GCC internal prototype to avoid an error.
|
---|
4508 | Use char because int might match the return type of a GCC
|
---|
4509 | builtin and then its argument prototype would still apply. */
|
---|
4510 | #ifdef __cplusplus
|
---|
4511 | extern "C"
|
---|
4512 | #endif
|
---|
4513 | char connect ();
|
---|
4514 | /* The GNU C library defines this for functions which it implements
|
---|
4515 | to always fail with ENOSYS. Some functions are actually named
|
---|
4516 | something starting with __ and the normal name is an alias. */
|
---|
4517 | #if defined __stub_connect || defined __stub___connect
|
---|
4518 | choke me
|
---|
4519 | #endif
|
---|
4520 |
|
---|
4521 | int
|
---|
4522 | main ()
|
---|
4523 | {
|
---|
4524 | return connect ();
|
---|
4525 | ;
|
---|
4526 | return 0;
|
---|
4527 | }
|
---|
4528 | _ACEOF
|
---|
4529 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4530 | if { (ac_try="$ac_link"
|
---|
4531 | case "(($ac_try" in
|
---|
4532 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4533 | *) ac_try_echo=$ac_try;;
|
---|
4534 | esac
|
---|
4535 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4536 | (eval "$ac_link") 2>conftest.er1
|
---|
4537 | ac_status=$?
|
---|
4538 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4539 | rm -f conftest.er1
|
---|
4540 | cat conftest.err >&5
|
---|
4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4542 | (exit $ac_status); } && {
|
---|
4543 | test -z "$ac_c_werror_flag" ||
|
---|
4544 | test ! -s conftest.err
|
---|
4545 | } && test -s conftest$ac_exeext &&
|
---|
4546 | $as_test_x conftest$ac_exeext; then
|
---|
4547 | ac_cv_func_connect=yes
|
---|
4548 | else
|
---|
4549 | echo "$as_me: failed program was:" >&5
|
---|
4550 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4551 |
|
---|
4552 | ac_cv_func_connect=no
|
---|
4553 | fi
|
---|
4554 |
|
---|
4555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4556 | conftest$ac_exeext conftest.$ac_ext
|
---|
4557 | fi
|
---|
4558 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
|
---|
4559 | echo "${ECHO_T}$ac_cv_func_connect" >&6; }
|
---|
4560 |
|
---|
4561 | if test $ac_cv_func_connect = no; then
|
---|
4562 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
|
---|
4563 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
|
---|
4564 | if test "${ac_cv_lib_socket_connect+set}" = set; then
|
---|
4565 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4566 | else
|
---|
4567 | ac_check_lib_save_LIBS=$LIBS
|
---|
4568 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
4569 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4570 | /* confdefs.h. */
|
---|
4571 | _ACEOF
|
---|
4572 | cat confdefs.h >>conftest.$ac_ext
|
---|
4573 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4574 | /* end confdefs.h. */
|
---|
4575 |
|
---|
4576 | /* Override any GCC internal prototype to avoid an error.
|
---|
4577 | Use char because int might match the return type of a GCC
|
---|
4578 | builtin and then its argument prototype would still apply. */
|
---|
4579 | #ifdef __cplusplus
|
---|
4580 | extern "C"
|
---|
4581 | #endif
|
---|
4582 | char connect ();
|
---|
4583 | int
|
---|
4584 | main ()
|
---|
4585 | {
|
---|
4586 | return connect ();
|
---|
4587 | ;
|
---|
4588 | return 0;
|
---|
4589 | }
|
---|
4590 | _ACEOF
|
---|
4591 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4592 | if { (ac_try="$ac_link"
|
---|
4593 | case "(($ac_try" in
|
---|
4594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4595 | *) ac_try_echo=$ac_try;;
|
---|
4596 | esac
|
---|
4597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4598 | (eval "$ac_link") 2>conftest.er1
|
---|
4599 | ac_status=$?
|
---|
4600 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4601 | rm -f conftest.er1
|
---|
4602 | cat conftest.err >&5
|
---|
4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4604 | (exit $ac_status); } && {
|
---|
4605 | test -z "$ac_c_werror_flag" ||
|
---|
4606 | test ! -s conftest.err
|
---|
4607 | } && test -s conftest$ac_exeext &&
|
---|
4608 | $as_test_x conftest$ac_exeext; then
|
---|
4609 | ac_cv_lib_socket_connect=yes
|
---|
4610 | else
|
---|
4611 | echo "$as_me: failed program was:" >&5
|
---|
4612 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4613 |
|
---|
4614 | ac_cv_lib_socket_connect=no
|
---|
4615 | fi
|
---|
4616 |
|
---|
4617 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4618 | conftest$ac_exeext conftest.$ac_ext
|
---|
4619 | LIBS=$ac_check_lib_save_LIBS
|
---|
4620 | fi
|
---|
4621 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
|
---|
4622 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
|
---|
4623 | if test $ac_cv_lib_socket_connect = yes; then
|
---|
4624 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
4625 | fi
|
---|
4626 |
|
---|
4627 | fi
|
---|
4628 |
|
---|
4629 | # Guillermo Gomez says -lposix is necessary on A/UX.
|
---|
4630 | { echo "$as_me:$LINENO: checking for remove" >&5
|
---|
4631 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
|
---|
4632 | if test "${ac_cv_func_remove+set}" = set; then
|
---|
4633 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4634 | else
|
---|
4635 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4636 | /* confdefs.h. */
|
---|
4637 | _ACEOF
|
---|
4638 | cat confdefs.h >>conftest.$ac_ext
|
---|
4639 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4640 | /* end confdefs.h. */
|
---|
4641 | /* Define remove to an innocuous variant, in case <limits.h> declares remove.
|
---|
4642 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
4643 | #define remove innocuous_remove
|
---|
4644 |
|
---|
4645 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4646 | which can conflict with char remove (); below.
|
---|
4647 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4648 | <limits.h> exists even on freestanding compilers. */
|
---|
4649 |
|
---|
4650 | #ifdef __STDC__
|
---|
4651 | # include <limits.h>
|
---|
4652 | #else
|
---|
4653 | # include <assert.h>
|
---|
4654 | #endif
|
---|
4655 |
|
---|
4656 | #undef remove
|
---|
4657 |
|
---|
4658 | /* Override any GCC internal prototype to avoid an error.
|
---|
4659 | Use char because int might match the return type of a GCC
|
---|
4660 | builtin and then its argument prototype would still apply. */
|
---|
4661 | #ifdef __cplusplus
|
---|
4662 | extern "C"
|
---|
4663 | #endif
|
---|
4664 | char remove ();
|
---|
4665 | /* The GNU C library defines this for functions which it implements
|
---|
4666 | to always fail with ENOSYS. Some functions are actually named
|
---|
4667 | something starting with __ and the normal name is an alias. */
|
---|
4668 | #if defined __stub_remove || defined __stub___remove
|
---|
4669 | choke me
|
---|
4670 | #endif
|
---|
4671 |
|
---|
4672 | int
|
---|
4673 | main ()
|
---|
4674 | {
|
---|
4675 | return remove ();
|
---|
4676 | ;
|
---|
4677 | return 0;
|
---|
4678 | }
|
---|
4679 | _ACEOF
|
---|
4680 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4681 | if { (ac_try="$ac_link"
|
---|
4682 | case "(($ac_try" in
|
---|
4683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4684 | *) ac_try_echo=$ac_try;;
|
---|
4685 | esac
|
---|
4686 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4687 | (eval "$ac_link") 2>conftest.er1
|
---|
4688 | ac_status=$?
|
---|
4689 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4690 | rm -f conftest.er1
|
---|
4691 | cat conftest.err >&5
|
---|
4692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4693 | (exit $ac_status); } && {
|
---|
4694 | test -z "$ac_c_werror_flag" ||
|
---|
4695 | test ! -s conftest.err
|
---|
4696 | } && test -s conftest$ac_exeext &&
|
---|
4697 | $as_test_x conftest$ac_exeext; then
|
---|
4698 | ac_cv_func_remove=yes
|
---|
4699 | else
|
---|
4700 | echo "$as_me: failed program was:" >&5
|
---|
4701 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4702 |
|
---|
4703 | ac_cv_func_remove=no
|
---|
4704 | fi
|
---|
4705 |
|
---|
4706 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4707 | conftest$ac_exeext conftest.$ac_ext
|
---|
4708 | fi
|
---|
4709 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
|
---|
4710 | echo "${ECHO_T}$ac_cv_func_remove" >&6; }
|
---|
4711 |
|
---|
4712 | if test $ac_cv_func_remove = no; then
|
---|
4713 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
|
---|
4714 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
|
---|
4715 | if test "${ac_cv_lib_posix_remove+set}" = set; then
|
---|
4716 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4717 | else
|
---|
4718 | ac_check_lib_save_LIBS=$LIBS
|
---|
4719 | LIBS="-lposix $LIBS"
|
---|
4720 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4721 | /* confdefs.h. */
|
---|
4722 | _ACEOF
|
---|
4723 | cat confdefs.h >>conftest.$ac_ext
|
---|
4724 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4725 | /* end confdefs.h. */
|
---|
4726 |
|
---|
4727 | /* Override any GCC internal prototype to avoid an error.
|
---|
4728 | Use char because int might match the return type of a GCC
|
---|
4729 | builtin and then its argument prototype would still apply. */
|
---|
4730 | #ifdef __cplusplus
|
---|
4731 | extern "C"
|
---|
4732 | #endif
|
---|
4733 | char remove ();
|
---|
4734 | int
|
---|
4735 | main ()
|
---|
4736 | {
|
---|
4737 | return remove ();
|
---|
4738 | ;
|
---|
4739 | return 0;
|
---|
4740 | }
|
---|
4741 | _ACEOF
|
---|
4742 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4743 | if { (ac_try="$ac_link"
|
---|
4744 | case "(($ac_try" in
|
---|
4745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4746 | *) ac_try_echo=$ac_try;;
|
---|
4747 | esac
|
---|
4748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4749 | (eval "$ac_link") 2>conftest.er1
|
---|
4750 | ac_status=$?
|
---|
4751 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4752 | rm -f conftest.er1
|
---|
4753 | cat conftest.err >&5
|
---|
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4755 | (exit $ac_status); } && {
|
---|
4756 | test -z "$ac_c_werror_flag" ||
|
---|
4757 | test ! -s conftest.err
|
---|
4758 | } && test -s conftest$ac_exeext &&
|
---|
4759 | $as_test_x conftest$ac_exeext; then
|
---|
4760 | ac_cv_lib_posix_remove=yes
|
---|
4761 | else
|
---|
4762 | echo "$as_me: failed program was:" >&5
|
---|
4763 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4764 |
|
---|
4765 | ac_cv_lib_posix_remove=no
|
---|
4766 | fi
|
---|
4767 |
|
---|
4768 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4769 | conftest$ac_exeext conftest.$ac_ext
|
---|
4770 | LIBS=$ac_check_lib_save_LIBS
|
---|
4771 | fi
|
---|
4772 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
|
---|
4773 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
|
---|
4774 | if test $ac_cv_lib_posix_remove = yes; then
|
---|
4775 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
4776 | fi
|
---|
4777 |
|
---|
4778 | fi
|
---|
4779 |
|
---|
4780 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
4781 | { echo "$as_me:$LINENO: checking for shmat" >&5
|
---|
4782 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
|
---|
4783 | if test "${ac_cv_func_shmat+set}" = set; then
|
---|
4784 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4785 | else
|
---|
4786 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4787 | /* confdefs.h. */
|
---|
4788 | _ACEOF
|
---|
4789 | cat confdefs.h >>conftest.$ac_ext
|
---|
4790 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4791 | /* end confdefs.h. */
|
---|
4792 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
|
---|
4793 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
4794 | #define shmat innocuous_shmat
|
---|
4795 |
|
---|
4796 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4797 | which can conflict with char shmat (); below.
|
---|
4798 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4799 | <limits.h> exists even on freestanding compilers. */
|
---|
4800 |
|
---|
4801 | #ifdef __STDC__
|
---|
4802 | # include <limits.h>
|
---|
4803 | #else
|
---|
4804 | # include <assert.h>
|
---|
4805 | #endif
|
---|
4806 |
|
---|
4807 | #undef shmat
|
---|
4808 |
|
---|
4809 | /* Override any GCC internal prototype to avoid an error.
|
---|
4810 | Use char because int might match the return type of a GCC
|
---|
4811 | builtin and then its argument prototype would still apply. */
|
---|
4812 | #ifdef __cplusplus
|
---|
4813 | extern "C"
|
---|
4814 | #endif
|
---|
4815 | char shmat ();
|
---|
4816 | /* The GNU C library defines this for functions which it implements
|
---|
4817 | to always fail with ENOSYS. Some functions are actually named
|
---|
4818 | something starting with __ and the normal name is an alias. */
|
---|
4819 | #if defined __stub_shmat || defined __stub___shmat
|
---|
4820 | choke me
|
---|
4821 | #endif
|
---|
4822 |
|
---|
4823 | int
|
---|
4824 | main ()
|
---|
4825 | {
|
---|
4826 | return shmat ();
|
---|
4827 | ;
|
---|
4828 | return 0;
|
---|
4829 | }
|
---|
4830 | _ACEOF
|
---|
4831 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4832 | if { (ac_try="$ac_link"
|
---|
4833 | case "(($ac_try" in
|
---|
4834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4835 | *) ac_try_echo=$ac_try;;
|
---|
4836 | esac
|
---|
4837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4838 | (eval "$ac_link") 2>conftest.er1
|
---|
4839 | ac_status=$?
|
---|
4840 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4841 | rm -f conftest.er1
|
---|
4842 | cat conftest.err >&5
|
---|
4843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4844 | (exit $ac_status); } && {
|
---|
4845 | test -z "$ac_c_werror_flag" ||
|
---|
4846 | test ! -s conftest.err
|
---|
4847 | } && test -s conftest$ac_exeext &&
|
---|
4848 | $as_test_x conftest$ac_exeext; then
|
---|
4849 | ac_cv_func_shmat=yes
|
---|
4850 | else
|
---|
4851 | echo "$as_me: failed program was:" >&5
|
---|
4852 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4853 |
|
---|
4854 | ac_cv_func_shmat=no
|
---|
4855 | fi
|
---|
4856 |
|
---|
4857 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4858 | conftest$ac_exeext conftest.$ac_ext
|
---|
4859 | fi
|
---|
4860 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
|
---|
4861 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
|
---|
4862 |
|
---|
4863 | if test $ac_cv_func_shmat = no; then
|
---|
4864 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
|
---|
4865 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
|
---|
4866 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then
|
---|
4867 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4868 | else
|
---|
4869 | ac_check_lib_save_LIBS=$LIBS
|
---|
4870 | LIBS="-lipc $LIBS"
|
---|
4871 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4872 | /* confdefs.h. */
|
---|
4873 | _ACEOF
|
---|
4874 | cat confdefs.h >>conftest.$ac_ext
|
---|
4875 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4876 | /* end confdefs.h. */
|
---|
4877 |
|
---|
4878 | /* Override any GCC internal prototype to avoid an error.
|
---|
4879 | Use char because int might match the return type of a GCC
|
---|
4880 | builtin and then its argument prototype would still apply. */
|
---|
4881 | #ifdef __cplusplus
|
---|
4882 | extern "C"
|
---|
4883 | #endif
|
---|
4884 | char shmat ();
|
---|
4885 | int
|
---|
4886 | main ()
|
---|
4887 | {
|
---|
4888 | return shmat ();
|
---|
4889 | ;
|
---|
4890 | return 0;
|
---|
4891 | }
|
---|
4892 | _ACEOF
|
---|
4893 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4894 | if { (ac_try="$ac_link"
|
---|
4895 | case "(($ac_try" in
|
---|
4896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4897 | *) ac_try_echo=$ac_try;;
|
---|
4898 | esac
|
---|
4899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4900 | (eval "$ac_link") 2>conftest.er1
|
---|
4901 | ac_status=$?
|
---|
4902 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4903 | rm -f conftest.er1
|
---|
4904 | cat conftest.err >&5
|
---|
4905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4906 | (exit $ac_status); } && {
|
---|
4907 | test -z "$ac_c_werror_flag" ||
|
---|
4908 | test ! -s conftest.err
|
---|
4909 | } && test -s conftest$ac_exeext &&
|
---|
4910 | $as_test_x conftest$ac_exeext; then
|
---|
4911 | ac_cv_lib_ipc_shmat=yes
|
---|
4912 | else
|
---|
4913 | echo "$as_me: failed program was:" >&5
|
---|
4914 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4915 |
|
---|
4916 | ac_cv_lib_ipc_shmat=no
|
---|
4917 | fi
|
---|
4918 |
|
---|
4919 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4920 | conftest$ac_exeext conftest.$ac_ext
|
---|
4921 | LIBS=$ac_check_lib_save_LIBS
|
---|
4922 | fi
|
---|
4923 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
|
---|
4924 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
|
---|
4925 | if test $ac_cv_lib_ipc_shmat = yes; then
|
---|
4926 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
4927 | fi
|
---|
4928 |
|
---|
4929 | fi
|
---|
4930 | fi
|
---|
4931 |
|
---|
4932 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4933 | ac_save_LDFLAGS=$LDFLAGS
|
---|
4934 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
4935 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4936 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4937 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4938 | # These have to be linked with before -lX11, unlike the other
|
---|
4939 | # libraries we check for below, so use a different variable.
|
---|
4940 | # John Interrante, Karl Berry
|
---|
4941 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
|
---|
4942 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
|
---|
4943 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
|
---|
4944 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4945 | else
|
---|
4946 | ac_check_lib_save_LIBS=$LIBS
|
---|
4947 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4948 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4949 | /* confdefs.h. */
|
---|
4950 | _ACEOF
|
---|
4951 | cat confdefs.h >>conftest.$ac_ext
|
---|
4952 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4953 | /* end confdefs.h. */
|
---|
4954 |
|
---|
4955 | /* Override any GCC internal prototype to avoid an error.
|
---|
4956 | Use char because int might match the return type of a GCC
|
---|
4957 | builtin and then its argument prototype would still apply. */
|
---|
4958 | #ifdef __cplusplus
|
---|
4959 | extern "C"
|
---|
4960 | #endif
|
---|
4961 | char IceConnectionNumber ();
|
---|
4962 | int
|
---|
4963 | main ()
|
---|
4964 | {
|
---|
4965 | return IceConnectionNumber ();
|
---|
4966 | ;
|
---|
4967 | return 0;
|
---|
4968 | }
|
---|
4969 | _ACEOF
|
---|
4970 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4971 | if { (ac_try="$ac_link"
|
---|
4972 | case "(($ac_try" in
|
---|
4973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
4974 | *) ac_try_echo=$ac_try;;
|
---|
4975 | esac
|
---|
4976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
4977 | (eval "$ac_link") 2>conftest.er1
|
---|
4978 | ac_status=$?
|
---|
4979 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4980 | rm -f conftest.er1
|
---|
4981 | cat conftest.err >&5
|
---|
4982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4983 | (exit $ac_status); } && {
|
---|
4984 | test -z "$ac_c_werror_flag" ||
|
---|
4985 | test ! -s conftest.err
|
---|
4986 | } && test -s conftest$ac_exeext &&
|
---|
4987 | $as_test_x conftest$ac_exeext; then
|
---|
4988 | ac_cv_lib_ICE_IceConnectionNumber=yes
|
---|
4989 | else
|
---|
4990 | echo "$as_me: failed program was:" >&5
|
---|
4991 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4992 |
|
---|
4993 | ac_cv_lib_ICE_IceConnectionNumber=no
|
---|
4994 | fi
|
---|
4995 |
|
---|
4996 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
4997 | conftest$ac_exeext conftest.$ac_ext
|
---|
4998 | LIBS=$ac_check_lib_save_LIBS
|
---|
4999 | fi
|
---|
5000 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
|
---|
5001 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
|
---|
5002 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
|
---|
5003 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
5004 | fi
|
---|
5005 |
|
---|
5006 | LDFLAGS=$ac_save_LDFLAGS
|
---|
5007 |
|
---|
5008 | fi
|
---|
5009 |
|
---|
5010 | if test "$no_x" = "yes"; then
|
---|
5011 | echo
|
---|
5012 | echo "ERROR: Could not find X Window System headers/libraries."
|
---|
5013 | if test -f /etc/debian_version; then
|
---|
5014 | echo "Probably you need to install the libx11-dev package."
|
---|
5015 | elif test -f /etc/redhat-release; then
|
---|
5016 | echo "Probably you need to install the libX11-devel package."
|
---|
5017 | fi
|
---|
5018 | echo "To specify paths manually, use the options --x-includes and --x-libraries."
|
---|
5019 | echo
|
---|
5020 | exit 1
|
---|
5021 | fi
|
---|
5022 |
|
---|
5023 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
5024 | set dummy pkg-config; ac_word=$2
|
---|
5025 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
5026 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
5027 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
|
---|
5028 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5029 | else
|
---|
5030 | case $PKG_CONFIG in
|
---|
5031 | [\\/]* | ?:[\\/]*)
|
---|
5032 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
5033 | ;;
|
---|
5034 | *)
|
---|
5035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5036 | for as_dir in $PATH
|
---|
5037 | do
|
---|
5038 | IFS=$as_save_IFS
|
---|
5039 | test -z "$as_dir" && as_dir=.
|
---|
5040 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5041 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
5042 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
5043 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5044 | break 2
|
---|
5045 | fi
|
---|
5046 | done
|
---|
5047 | done
|
---|
5048 | IFS=$as_save_IFS
|
---|
5049 |
|
---|
5050 | ;;
|
---|
5051 | esac
|
---|
5052 | fi
|
---|
5053 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
5054 | if test -n "$PKG_CONFIG"; then
|
---|
5055 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
|
---|
5056 | echo "${ECHO_T}$PKG_CONFIG" >&6; }
|
---|
5057 | else
|
---|
5058 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
5059 | echo "${ECHO_T}no" >&6; }
|
---|
5060 | fi
|
---|
5061 |
|
---|
5062 |
|
---|
5063 |
|
---|
5064 | { echo "$as_me:$LINENO: checking for library containing socket" >&5
|
---|
5065 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
|
---|
5066 | if test "${ac_cv_search_socket+set}" = set; then
|
---|
5067 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5068 | else
|
---|
5069 | ac_func_search_save_LIBS=$LIBS
|
---|
5070 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5071 | /* confdefs.h. */
|
---|
5072 | _ACEOF
|
---|
5073 | cat confdefs.h >>conftest.$ac_ext
|
---|
5074 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5075 | /* end confdefs.h. */
|
---|
5076 |
|
---|
5077 | /* Override any GCC internal prototype to avoid an error.
|
---|
5078 | Use char because int might match the return type of a GCC
|
---|
5079 | builtin and then its argument prototype would still apply. */
|
---|
5080 | #ifdef __cplusplus
|
---|
5081 | extern "C"
|
---|
5082 | #endif
|
---|
5083 | char socket ();
|
---|
5084 | int
|
---|
5085 | main ()
|
---|
5086 | {
|
---|
5087 | return socket ();
|
---|
5088 | ;
|
---|
5089 | return 0;
|
---|
5090 | }
|
---|
5091 | _ACEOF
|
---|
5092 | for ac_lib in '' socket; do
|
---|
5093 | if test -z "$ac_lib"; then
|
---|
5094 | ac_res="none required"
|
---|
5095 | else
|
---|
5096 | ac_res=-l$ac_lib
|
---|
5097 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5098 | fi
|
---|
5099 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5100 | if { (ac_try="$ac_link"
|
---|
5101 | case "(($ac_try" in
|
---|
5102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5103 | *) ac_try_echo=$ac_try;;
|
---|
5104 | esac
|
---|
5105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5106 | (eval "$ac_link") 2>conftest.er1
|
---|
5107 | ac_status=$?
|
---|
5108 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5109 | rm -f conftest.er1
|
---|
5110 | cat conftest.err >&5
|
---|
5111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5112 | (exit $ac_status); } && {
|
---|
5113 | test -z "$ac_c_werror_flag" ||
|
---|
5114 | test ! -s conftest.err
|
---|
5115 | } && test -s conftest$ac_exeext &&
|
---|
5116 | $as_test_x conftest$ac_exeext; then
|
---|
5117 | ac_cv_search_socket=$ac_res
|
---|
5118 | else
|
---|
5119 | echo "$as_me: failed program was:" >&5
|
---|
5120 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5121 |
|
---|
5122 |
|
---|
5123 | fi
|
---|
5124 |
|
---|
5125 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5126 | conftest$ac_exeext
|
---|
5127 | if test "${ac_cv_search_socket+set}" = set; then
|
---|
5128 | break
|
---|
5129 | fi
|
---|
5130 | done
|
---|
5131 | if test "${ac_cv_search_socket+set}" = set; then
|
---|
5132 | :
|
---|
5133 | else
|
---|
5134 | ac_cv_search_socket=no
|
---|
5135 | fi
|
---|
5136 | rm conftest.$ac_ext
|
---|
5137 | LIBS=$ac_func_search_save_LIBS
|
---|
5138 | fi
|
---|
5139 | { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
|
---|
5140 | echo "${ECHO_T}$ac_cv_search_socket" >&6; }
|
---|
5141 | ac_res=$ac_cv_search_socket
|
---|
5142 | if test "$ac_res" != no; then
|
---|
5143 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5144 |
|
---|
5145 | fi
|
---|
5146 |
|
---|
5147 | { echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
|
---|
5148 | echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
|
---|
5149 | if test "${ac_cv_search_inet_aton+set}" = set; then
|
---|
5150 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5151 | else
|
---|
5152 | ac_func_search_save_LIBS=$LIBS
|
---|
5153 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5154 | /* confdefs.h. */
|
---|
5155 | _ACEOF
|
---|
5156 | cat confdefs.h >>conftest.$ac_ext
|
---|
5157 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5158 | /* end confdefs.h. */
|
---|
5159 |
|
---|
5160 | /* Override any GCC internal prototype to avoid an error.
|
---|
5161 | Use char because int might match the return type of a GCC
|
---|
5162 | builtin and then its argument prototype would still apply. */
|
---|
5163 | #ifdef __cplusplus
|
---|
5164 | extern "C"
|
---|
5165 | #endif
|
---|
5166 | char inet_aton ();
|
---|
5167 | int
|
---|
5168 | main ()
|
---|
5169 | {
|
---|
5170 | return inet_aton ();
|
---|
5171 | ;
|
---|
5172 | return 0;
|
---|
5173 | }
|
---|
5174 | _ACEOF
|
---|
5175 | for ac_lib in '' resolv; do
|
---|
5176 | if test -z "$ac_lib"; then
|
---|
5177 | ac_res="none required"
|
---|
5178 | else
|
---|
5179 | ac_res=-l$ac_lib
|
---|
5180 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
5181 | fi
|
---|
5182 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
5183 | if { (ac_try="$ac_link"
|
---|
5184 | case "(($ac_try" in
|
---|
5185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5186 | *) ac_try_echo=$ac_try;;
|
---|
5187 | esac
|
---|
5188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5189 | (eval "$ac_link") 2>conftest.er1
|
---|
5190 | ac_status=$?
|
---|
5191 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5192 | rm -f conftest.er1
|
---|
5193 | cat conftest.err >&5
|
---|
5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5195 | (exit $ac_status); } && {
|
---|
5196 | test -z "$ac_c_werror_flag" ||
|
---|
5197 | test ! -s conftest.err
|
---|
5198 | } && test -s conftest$ac_exeext &&
|
---|
5199 | $as_test_x conftest$ac_exeext; then
|
---|
5200 | ac_cv_search_inet_aton=$ac_res
|
---|
5201 | else
|
---|
5202 | echo "$as_me: failed program was:" >&5
|
---|
5203 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5204 |
|
---|
5205 |
|
---|
5206 | fi
|
---|
5207 |
|
---|
5208 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
5209 | conftest$ac_exeext
|
---|
5210 | if test "${ac_cv_search_inet_aton+set}" = set; then
|
---|
5211 | break
|
---|
5212 | fi
|
---|
5213 | done
|
---|
5214 | if test "${ac_cv_search_inet_aton+set}" = set; then
|
---|
5215 | :
|
---|
5216 | else
|
---|
5217 | ac_cv_search_inet_aton=no
|
---|
5218 | fi
|
---|
5219 | rm conftest.$ac_ext
|
---|
5220 | LIBS=$ac_func_search_save_LIBS
|
---|
5221 | fi
|
---|
5222 | { echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
|
---|
5223 | echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
|
---|
5224 | ac_res=$ac_cv_search_inet_aton
|
---|
5225 | if test "$ac_res" != no; then
|
---|
5226 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
5227 |
|
---|
5228 | fi
|
---|
5229 |
|
---|
5230 |
|
---|
5231 | if test "${ac_cv_header_sys_select_h+set}" = set; then
|
---|
5232 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5
|
---|
5233 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
|
---|
5234 | if test "${ac_cv_header_sys_select_h+set}" = set; then
|
---|
5235 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5236 | fi
|
---|
5237 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
|
---|
5238 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
|
---|
5239 | else
|
---|
5240 | # Is the header compilable?
|
---|
5241 | { echo "$as_me:$LINENO: checking sys/select.h usability" >&5
|
---|
5242 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
|
---|
5243 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5244 | /* confdefs.h. */
|
---|
5245 | _ACEOF
|
---|
5246 | cat confdefs.h >>conftest.$ac_ext
|
---|
5247 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5248 | /* end confdefs.h. */
|
---|
5249 | $ac_includes_default
|
---|
5250 | #include <sys/select.h>
|
---|
5251 | _ACEOF
|
---|
5252 | rm -f conftest.$ac_objext
|
---|
5253 | if { (ac_try="$ac_compile"
|
---|
5254 | case "(($ac_try" in
|
---|
5255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5256 | *) ac_try_echo=$ac_try;;
|
---|
5257 | esac
|
---|
5258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5259 | (eval "$ac_compile") 2>conftest.er1
|
---|
5260 | ac_status=$?
|
---|
5261 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5262 | rm -f conftest.er1
|
---|
5263 | cat conftest.err >&5
|
---|
5264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5265 | (exit $ac_status); } && {
|
---|
5266 | test -z "$ac_c_werror_flag" ||
|
---|
5267 | test ! -s conftest.err
|
---|
5268 | } && test -s conftest.$ac_objext; then
|
---|
5269 | ac_header_compiler=yes
|
---|
5270 | else
|
---|
5271 | echo "$as_me: failed program was:" >&5
|
---|
5272 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5273 |
|
---|
5274 | ac_header_compiler=no
|
---|
5275 | fi
|
---|
5276 |
|
---|
5277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5278 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5279 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5280 |
|
---|
5281 | # Is the header present?
|
---|
5282 | { echo "$as_me:$LINENO: checking sys/select.h presence" >&5
|
---|
5283 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
|
---|
5284 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5285 | /* confdefs.h. */
|
---|
5286 | _ACEOF
|
---|
5287 | cat confdefs.h >>conftest.$ac_ext
|
---|
5288 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5289 | /* end confdefs.h. */
|
---|
5290 | #include <sys/select.h>
|
---|
5291 | _ACEOF
|
---|
5292 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5293 | case "(($ac_try" in
|
---|
5294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5295 | *) ac_try_echo=$ac_try;;
|
---|
5296 | esac
|
---|
5297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5298 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5299 | ac_status=$?
|
---|
5300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5301 | rm -f conftest.er1
|
---|
5302 | cat conftest.err >&5
|
---|
5303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5304 | (exit $ac_status); } >/dev/null && {
|
---|
5305 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5306 | test ! -s conftest.err
|
---|
5307 | }; then
|
---|
5308 | ac_header_preproc=yes
|
---|
5309 | else
|
---|
5310 | echo "$as_me: failed program was:" >&5
|
---|
5311 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5312 |
|
---|
5313 | ac_header_preproc=no
|
---|
5314 | fi
|
---|
5315 |
|
---|
5316 | rm -f conftest.err conftest.$ac_ext
|
---|
5317 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5318 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5319 |
|
---|
5320 | # So? What about this header?
|
---|
5321 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5322 | yes:no: )
|
---|
5323 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5324 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5325 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
|
---|
5326 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
|
---|
5327 | ac_header_preproc=yes
|
---|
5328 | ;;
|
---|
5329 | no:yes:* )
|
---|
5330 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
|
---|
5331 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
|
---|
5332 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
|
---|
5333 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
|
---|
5334 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
|
---|
5335 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
|
---|
5336 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5337 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5338 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
|
---|
5339 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
|
---|
5340 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
|
---|
5341 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
|
---|
5342 |
|
---|
5343 | ;;
|
---|
5344 | esac
|
---|
5345 | { echo "$as_me:$LINENO: checking for sys/select.h" >&5
|
---|
5346 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
|
---|
5347 | if test "${ac_cv_header_sys_select_h+set}" = set; then
|
---|
5348 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5349 | else
|
---|
5350 | ac_cv_header_sys_select_h=$ac_header_preproc
|
---|
5351 | fi
|
---|
5352 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
|
---|
5353 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
|
---|
5354 |
|
---|
5355 | fi
|
---|
5356 | if test $ac_cv_header_sys_select_h = yes; then
|
---|
5357 | cat >>confdefs.h <<\_ACEOF
|
---|
5358 | #define HAVE_SYS_SELECT_H 1
|
---|
5359 | _ACEOF
|
---|
5360 |
|
---|
5361 | fi
|
---|
5362 |
|
---|
5363 |
|
---|
5364 | if test "${ac_cv_header_sys_modem_h+set}" = set; then
|
---|
5365 | { echo "$as_me:$LINENO: checking for sys/modem.h" >&5
|
---|
5366 | echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6; }
|
---|
5367 | if test "${ac_cv_header_sys_modem_h+set}" = set; then
|
---|
5368 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5369 | fi
|
---|
5370 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
|
---|
5371 | echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6; }
|
---|
5372 | else
|
---|
5373 | # Is the header compilable?
|
---|
5374 | { echo "$as_me:$LINENO: checking sys/modem.h usability" >&5
|
---|
5375 | echo $ECHO_N "checking sys/modem.h usability... $ECHO_C" >&6; }
|
---|
5376 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5377 | /* confdefs.h. */
|
---|
5378 | _ACEOF
|
---|
5379 | cat confdefs.h >>conftest.$ac_ext
|
---|
5380 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5381 | /* end confdefs.h. */
|
---|
5382 | $ac_includes_default
|
---|
5383 | #include <sys/modem.h>
|
---|
5384 | _ACEOF
|
---|
5385 | rm -f conftest.$ac_objext
|
---|
5386 | if { (ac_try="$ac_compile"
|
---|
5387 | case "(($ac_try" in
|
---|
5388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5389 | *) ac_try_echo=$ac_try;;
|
---|
5390 | esac
|
---|
5391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5392 | (eval "$ac_compile") 2>conftest.er1
|
---|
5393 | ac_status=$?
|
---|
5394 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5395 | rm -f conftest.er1
|
---|
5396 | cat conftest.err >&5
|
---|
5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5398 | (exit $ac_status); } && {
|
---|
5399 | test -z "$ac_c_werror_flag" ||
|
---|
5400 | test ! -s conftest.err
|
---|
5401 | } && test -s conftest.$ac_objext; then
|
---|
5402 | ac_header_compiler=yes
|
---|
5403 | else
|
---|
5404 | echo "$as_me: failed program was:" >&5
|
---|
5405 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5406 |
|
---|
5407 | ac_header_compiler=no
|
---|
5408 | fi
|
---|
5409 |
|
---|
5410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5411 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5412 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5413 |
|
---|
5414 | # Is the header present?
|
---|
5415 | { echo "$as_me:$LINENO: checking sys/modem.h presence" >&5
|
---|
5416 | echo $ECHO_N "checking sys/modem.h presence... $ECHO_C" >&6; }
|
---|
5417 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5418 | /* confdefs.h. */
|
---|
5419 | _ACEOF
|
---|
5420 | cat confdefs.h >>conftest.$ac_ext
|
---|
5421 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5422 | /* end confdefs.h. */
|
---|
5423 | #include <sys/modem.h>
|
---|
5424 | _ACEOF
|
---|
5425 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5426 | case "(($ac_try" in
|
---|
5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5428 | *) ac_try_echo=$ac_try;;
|
---|
5429 | esac
|
---|
5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5431 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5432 | ac_status=$?
|
---|
5433 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5434 | rm -f conftest.er1
|
---|
5435 | cat conftest.err >&5
|
---|
5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5437 | (exit $ac_status); } >/dev/null && {
|
---|
5438 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5439 | test ! -s conftest.err
|
---|
5440 | }; then
|
---|
5441 | ac_header_preproc=yes
|
---|
5442 | else
|
---|
5443 | echo "$as_me: failed program was:" >&5
|
---|
5444 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5445 |
|
---|
5446 | ac_header_preproc=no
|
---|
5447 | fi
|
---|
5448 |
|
---|
5449 | rm -f conftest.err conftest.$ac_ext
|
---|
5450 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5451 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5452 |
|
---|
5453 | # So? What about this header?
|
---|
5454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5455 | yes:no: )
|
---|
5456 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5457 | echo "$as_me: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5458 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the compiler's result" >&5
|
---|
5459 | echo "$as_me: WARNING: sys/modem.h: proceeding with the compiler's result" >&2;}
|
---|
5460 | ac_header_preproc=yes
|
---|
5461 | ;;
|
---|
5462 | no:yes:* )
|
---|
5463 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: present but cannot be compiled" >&5
|
---|
5464 | echo "$as_me: WARNING: sys/modem.h: present but cannot be compiled" >&2;}
|
---|
5465 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: check for missing prerequisite headers?" >&5
|
---|
5466 | echo "$as_me: WARNING: sys/modem.h: check for missing prerequisite headers?" >&2;}
|
---|
5467 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: see the Autoconf documentation" >&5
|
---|
5468 | echo "$as_me: WARNING: sys/modem.h: see the Autoconf documentation" >&2;}
|
---|
5469 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5470 | echo "$as_me: WARNING: sys/modem.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5471 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&5
|
---|
5472 | echo "$as_me: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&2;}
|
---|
5473 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&5
|
---|
5474 | echo "$as_me: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&2;}
|
---|
5475 |
|
---|
5476 | ;;
|
---|
5477 | esac
|
---|
5478 | { echo "$as_me:$LINENO: checking for sys/modem.h" >&5
|
---|
5479 | echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6; }
|
---|
5480 | if test "${ac_cv_header_sys_modem_h+set}" = set; then
|
---|
5481 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5482 | else
|
---|
5483 | ac_cv_header_sys_modem_h=$ac_header_preproc
|
---|
5484 | fi
|
---|
5485 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
|
---|
5486 | echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6; }
|
---|
5487 |
|
---|
5488 | fi
|
---|
5489 | if test $ac_cv_header_sys_modem_h = yes; then
|
---|
5490 | cat >>confdefs.h <<\_ACEOF
|
---|
5491 | #define HAVE_SYS_MODEM_H 1
|
---|
5492 | _ACEOF
|
---|
5493 |
|
---|
5494 | fi
|
---|
5495 |
|
---|
5496 |
|
---|
5497 | if test "${ac_cv_header_sys_filio_h+set}" = set; then
|
---|
5498 | { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
|
---|
5499 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
|
---|
5500 | if test "${ac_cv_header_sys_filio_h+set}" = set; then
|
---|
5501 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5502 | fi
|
---|
5503 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
|
---|
5504 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
|
---|
5505 | else
|
---|
5506 | # Is the header compilable?
|
---|
5507 | { echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
|
---|
5508 | echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
|
---|
5509 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5510 | /* confdefs.h. */
|
---|
5511 | _ACEOF
|
---|
5512 | cat confdefs.h >>conftest.$ac_ext
|
---|
5513 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5514 | /* end confdefs.h. */
|
---|
5515 | $ac_includes_default
|
---|
5516 | #include <sys/filio.h>
|
---|
5517 | _ACEOF
|
---|
5518 | rm -f conftest.$ac_objext
|
---|
5519 | if { (ac_try="$ac_compile"
|
---|
5520 | case "(($ac_try" in
|
---|
5521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5522 | *) ac_try_echo=$ac_try;;
|
---|
5523 | esac
|
---|
5524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5525 | (eval "$ac_compile") 2>conftest.er1
|
---|
5526 | ac_status=$?
|
---|
5527 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5528 | rm -f conftest.er1
|
---|
5529 | cat conftest.err >&5
|
---|
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5531 | (exit $ac_status); } && {
|
---|
5532 | test -z "$ac_c_werror_flag" ||
|
---|
5533 | test ! -s conftest.err
|
---|
5534 | } && test -s conftest.$ac_objext; then
|
---|
5535 | ac_header_compiler=yes
|
---|
5536 | else
|
---|
5537 | echo "$as_me: failed program was:" >&5
|
---|
5538 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5539 |
|
---|
5540 | ac_header_compiler=no
|
---|
5541 | fi
|
---|
5542 |
|
---|
5543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5544 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5545 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5546 |
|
---|
5547 | # Is the header present?
|
---|
5548 | { echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
|
---|
5549 | echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
|
---|
5550 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5551 | /* confdefs.h. */
|
---|
5552 | _ACEOF
|
---|
5553 | cat confdefs.h >>conftest.$ac_ext
|
---|
5554 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5555 | /* end confdefs.h. */
|
---|
5556 | #include <sys/filio.h>
|
---|
5557 | _ACEOF
|
---|
5558 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5559 | case "(($ac_try" in
|
---|
5560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5561 | *) ac_try_echo=$ac_try;;
|
---|
5562 | esac
|
---|
5563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5564 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5565 | ac_status=$?
|
---|
5566 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5567 | rm -f conftest.er1
|
---|
5568 | cat conftest.err >&5
|
---|
5569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5570 | (exit $ac_status); } >/dev/null && {
|
---|
5571 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5572 | test ! -s conftest.err
|
---|
5573 | }; then
|
---|
5574 | ac_header_preproc=yes
|
---|
5575 | else
|
---|
5576 | echo "$as_me: failed program was:" >&5
|
---|
5577 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5578 |
|
---|
5579 | ac_header_preproc=no
|
---|
5580 | fi
|
---|
5581 |
|
---|
5582 | rm -f conftest.err conftest.$ac_ext
|
---|
5583 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5584 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5585 |
|
---|
5586 | # So? What about this header?
|
---|
5587 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5588 | yes:no: )
|
---|
5589 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5590 | echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5591 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
|
---|
5592 | echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
|
---|
5593 | ac_header_preproc=yes
|
---|
5594 | ;;
|
---|
5595 | no:yes:* )
|
---|
5596 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
|
---|
5597 | echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
|
---|
5598 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
|
---|
5599 | echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
|
---|
5600 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
|
---|
5601 | echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
|
---|
5602 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5603 | echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5604 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
|
---|
5605 | echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
|
---|
5606 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
|
---|
5607 | echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
|
---|
5608 |
|
---|
5609 | ;;
|
---|
5610 | esac
|
---|
5611 | { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
|
---|
5612 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
|
---|
5613 | if test "${ac_cv_header_sys_filio_h+set}" = set; then
|
---|
5614 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5615 | else
|
---|
5616 | ac_cv_header_sys_filio_h=$ac_header_preproc
|
---|
5617 | fi
|
---|
5618 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
|
---|
5619 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
|
---|
5620 |
|
---|
5621 | fi
|
---|
5622 | if test $ac_cv_header_sys_filio_h = yes; then
|
---|
5623 | cat >>confdefs.h <<\_ACEOF
|
---|
5624 | #define HAVE_SYS_FILIO_H 1
|
---|
5625 | _ACEOF
|
---|
5626 |
|
---|
5627 | fi
|
---|
5628 |
|
---|
5629 |
|
---|
5630 | if test "${ac_cv_header_sys_strtio_h+set}" = set; then
|
---|
5631 | { echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
|
---|
5632 | echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6; }
|
---|
5633 | if test "${ac_cv_header_sys_strtio_h+set}" = set; then
|
---|
5634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5635 | fi
|
---|
5636 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
|
---|
5637 | echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6; }
|
---|
5638 | else
|
---|
5639 | # Is the header compilable?
|
---|
5640 | { echo "$as_me:$LINENO: checking sys/strtio.h usability" >&5
|
---|
5641 | echo $ECHO_N "checking sys/strtio.h usability... $ECHO_C" >&6; }
|
---|
5642 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5643 | /* confdefs.h. */
|
---|
5644 | _ACEOF
|
---|
5645 | cat confdefs.h >>conftest.$ac_ext
|
---|
5646 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5647 | /* end confdefs.h. */
|
---|
5648 | $ac_includes_default
|
---|
5649 | #include <sys/strtio.h>
|
---|
5650 | _ACEOF
|
---|
5651 | rm -f conftest.$ac_objext
|
---|
5652 | if { (ac_try="$ac_compile"
|
---|
5653 | case "(($ac_try" in
|
---|
5654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5655 | *) ac_try_echo=$ac_try;;
|
---|
5656 | esac
|
---|
5657 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5658 | (eval "$ac_compile") 2>conftest.er1
|
---|
5659 | ac_status=$?
|
---|
5660 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5661 | rm -f conftest.er1
|
---|
5662 | cat conftest.err >&5
|
---|
5663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5664 | (exit $ac_status); } && {
|
---|
5665 | test -z "$ac_c_werror_flag" ||
|
---|
5666 | test ! -s conftest.err
|
---|
5667 | } && test -s conftest.$ac_objext; then
|
---|
5668 | ac_header_compiler=yes
|
---|
5669 | else
|
---|
5670 | echo "$as_me: failed program was:" >&5
|
---|
5671 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5672 |
|
---|
5673 | ac_header_compiler=no
|
---|
5674 | fi
|
---|
5675 |
|
---|
5676 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5677 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5678 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5679 |
|
---|
5680 | # Is the header present?
|
---|
5681 | { echo "$as_me:$LINENO: checking sys/strtio.h presence" >&5
|
---|
5682 | echo $ECHO_N "checking sys/strtio.h presence... $ECHO_C" >&6; }
|
---|
5683 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5684 | /* confdefs.h. */
|
---|
5685 | _ACEOF
|
---|
5686 | cat confdefs.h >>conftest.$ac_ext
|
---|
5687 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5688 | /* end confdefs.h. */
|
---|
5689 | #include <sys/strtio.h>
|
---|
5690 | _ACEOF
|
---|
5691 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5692 | case "(($ac_try" in
|
---|
5693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5694 | *) ac_try_echo=$ac_try;;
|
---|
5695 | esac
|
---|
5696 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5697 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5698 | ac_status=$?
|
---|
5699 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5700 | rm -f conftest.er1
|
---|
5701 | cat conftest.err >&5
|
---|
5702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5703 | (exit $ac_status); } >/dev/null && {
|
---|
5704 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5705 | test ! -s conftest.err
|
---|
5706 | }; then
|
---|
5707 | ac_header_preproc=yes
|
---|
5708 | else
|
---|
5709 | echo "$as_me: failed program was:" >&5
|
---|
5710 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5711 |
|
---|
5712 | ac_header_preproc=no
|
---|
5713 | fi
|
---|
5714 |
|
---|
5715 | rm -f conftest.err conftest.$ac_ext
|
---|
5716 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5717 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5718 |
|
---|
5719 | # So? What about this header?
|
---|
5720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5721 | yes:no: )
|
---|
5722 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5723 | echo "$as_me: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5724 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the compiler's result" >&5
|
---|
5725 | echo "$as_me: WARNING: sys/strtio.h: proceeding with the compiler's result" >&2;}
|
---|
5726 | ac_header_preproc=yes
|
---|
5727 | ;;
|
---|
5728 | no:yes:* )
|
---|
5729 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: present but cannot be compiled" >&5
|
---|
5730 | echo "$as_me: WARNING: sys/strtio.h: present but cannot be compiled" >&2;}
|
---|
5731 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: check for missing prerequisite headers?" >&5
|
---|
5732 | echo "$as_me: WARNING: sys/strtio.h: check for missing prerequisite headers?" >&2;}
|
---|
5733 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: see the Autoconf documentation" >&5
|
---|
5734 | echo "$as_me: WARNING: sys/strtio.h: see the Autoconf documentation" >&2;}
|
---|
5735 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5736 | echo "$as_me: WARNING: sys/strtio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5737 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&5
|
---|
5738 | echo "$as_me: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&2;}
|
---|
5739 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&5
|
---|
5740 | echo "$as_me: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&2;}
|
---|
5741 |
|
---|
5742 | ;;
|
---|
5743 | esac
|
---|
5744 | { echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
|
---|
5745 | echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6; }
|
---|
5746 | if test "${ac_cv_header_sys_strtio_h+set}" = set; then
|
---|
5747 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5748 | else
|
---|
5749 | ac_cv_header_sys_strtio_h=$ac_header_preproc
|
---|
5750 | fi
|
---|
5751 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
|
---|
5752 | echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6; }
|
---|
5753 |
|
---|
5754 | fi
|
---|
5755 | if test $ac_cv_header_sys_strtio_h = yes; then
|
---|
5756 | cat >>confdefs.h <<\_ACEOF
|
---|
5757 | #define HAVE_SYS_STRTIO_H 1
|
---|
5758 | _ACEOF
|
---|
5759 |
|
---|
5760 | fi
|
---|
5761 |
|
---|
5762 |
|
---|
5763 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
5764 | { echo "$as_me:$LINENO: checking for locale.h" >&5
|
---|
5765 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
|
---|
5766 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
5767 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5768 | fi
|
---|
5769 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
|
---|
5770 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
|
---|
5771 | else
|
---|
5772 | # Is the header compilable?
|
---|
5773 | { echo "$as_me:$LINENO: checking locale.h usability" >&5
|
---|
5774 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
|
---|
5775 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5776 | /* confdefs.h. */
|
---|
5777 | _ACEOF
|
---|
5778 | cat confdefs.h >>conftest.$ac_ext
|
---|
5779 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5780 | /* end confdefs.h. */
|
---|
5781 | $ac_includes_default
|
---|
5782 | #include <locale.h>
|
---|
5783 | _ACEOF
|
---|
5784 | rm -f conftest.$ac_objext
|
---|
5785 | if { (ac_try="$ac_compile"
|
---|
5786 | case "(($ac_try" in
|
---|
5787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5788 | *) ac_try_echo=$ac_try;;
|
---|
5789 | esac
|
---|
5790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5791 | (eval "$ac_compile") 2>conftest.er1
|
---|
5792 | ac_status=$?
|
---|
5793 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5794 | rm -f conftest.er1
|
---|
5795 | cat conftest.err >&5
|
---|
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5797 | (exit $ac_status); } && {
|
---|
5798 | test -z "$ac_c_werror_flag" ||
|
---|
5799 | test ! -s conftest.err
|
---|
5800 | } && test -s conftest.$ac_objext; then
|
---|
5801 | ac_header_compiler=yes
|
---|
5802 | else
|
---|
5803 | echo "$as_me: failed program was:" >&5
|
---|
5804 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5805 |
|
---|
5806 | ac_header_compiler=no
|
---|
5807 | fi
|
---|
5808 |
|
---|
5809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5810 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5811 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5812 |
|
---|
5813 | # Is the header present?
|
---|
5814 | { echo "$as_me:$LINENO: checking locale.h presence" >&5
|
---|
5815 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
|
---|
5816 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5817 | /* confdefs.h. */
|
---|
5818 | _ACEOF
|
---|
5819 | cat confdefs.h >>conftest.$ac_ext
|
---|
5820 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5821 | /* end confdefs.h. */
|
---|
5822 | #include <locale.h>
|
---|
5823 | _ACEOF
|
---|
5824 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5825 | case "(($ac_try" in
|
---|
5826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5827 | *) ac_try_echo=$ac_try;;
|
---|
5828 | esac
|
---|
5829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5831 | ac_status=$?
|
---|
5832 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5833 | rm -f conftest.er1
|
---|
5834 | cat conftest.err >&5
|
---|
5835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5836 | (exit $ac_status); } >/dev/null && {
|
---|
5837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5838 | test ! -s conftest.err
|
---|
5839 | }; then
|
---|
5840 | ac_header_preproc=yes
|
---|
5841 | else
|
---|
5842 | echo "$as_me: failed program was:" >&5
|
---|
5843 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5844 |
|
---|
5845 | ac_header_preproc=no
|
---|
5846 | fi
|
---|
5847 |
|
---|
5848 | rm -f conftest.err conftest.$ac_ext
|
---|
5849 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5850 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5851 |
|
---|
5852 | # So? What about this header?
|
---|
5853 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5854 | yes:no: )
|
---|
5855 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5856 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5857 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
|
---|
5858 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
|
---|
5859 | ac_header_preproc=yes
|
---|
5860 | ;;
|
---|
5861 | no:yes:* )
|
---|
5862 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
|
---|
5863 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
|
---|
5864 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
|
---|
5865 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
|
---|
5866 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
|
---|
5867 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
|
---|
5868 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5869 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5870 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
|
---|
5871 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
|
---|
5872 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
|
---|
5873 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
|
---|
5874 |
|
---|
5875 | ;;
|
---|
5876 | esac
|
---|
5877 | { echo "$as_me:$LINENO: checking for locale.h" >&5
|
---|
5878 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
|
---|
5879 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
5880 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5881 | else
|
---|
5882 | ac_cv_header_locale_h=$ac_header_preproc
|
---|
5883 | fi
|
---|
5884 | { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
|
---|
5885 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
|
---|
5886 |
|
---|
5887 | fi
|
---|
5888 | if test $ac_cv_header_locale_h = yes; then
|
---|
5889 | cat >>confdefs.h <<\_ACEOF
|
---|
5890 | #define HAVE_LOCALE_H 1
|
---|
5891 | _ACEOF
|
---|
5892 |
|
---|
5893 | fi
|
---|
5894 |
|
---|
5895 |
|
---|
5896 | if test "${ac_cv_header_langinfo_h+set}" = set; then
|
---|
5897 | { echo "$as_me:$LINENO: checking for langinfo.h" >&5
|
---|
5898 | echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
|
---|
5899 | if test "${ac_cv_header_langinfo_h+set}" = set; then
|
---|
5900 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5901 | fi
|
---|
5902 | { echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
|
---|
5903 | echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
|
---|
5904 | else
|
---|
5905 | # Is the header compilable?
|
---|
5906 | { echo "$as_me:$LINENO: checking langinfo.h usability" >&5
|
---|
5907 | echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6; }
|
---|
5908 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5909 | /* confdefs.h. */
|
---|
5910 | _ACEOF
|
---|
5911 | cat confdefs.h >>conftest.$ac_ext
|
---|
5912 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5913 | /* end confdefs.h. */
|
---|
5914 | $ac_includes_default
|
---|
5915 | #include <langinfo.h>
|
---|
5916 | _ACEOF
|
---|
5917 | rm -f conftest.$ac_objext
|
---|
5918 | if { (ac_try="$ac_compile"
|
---|
5919 | case "(($ac_try" in
|
---|
5920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5921 | *) ac_try_echo=$ac_try;;
|
---|
5922 | esac
|
---|
5923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5924 | (eval "$ac_compile") 2>conftest.er1
|
---|
5925 | ac_status=$?
|
---|
5926 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5927 | rm -f conftest.er1
|
---|
5928 | cat conftest.err >&5
|
---|
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5930 | (exit $ac_status); } && {
|
---|
5931 | test -z "$ac_c_werror_flag" ||
|
---|
5932 | test ! -s conftest.err
|
---|
5933 | } && test -s conftest.$ac_objext; then
|
---|
5934 | ac_header_compiler=yes
|
---|
5935 | else
|
---|
5936 | echo "$as_me: failed program was:" >&5
|
---|
5937 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5938 |
|
---|
5939 | ac_header_compiler=no
|
---|
5940 | fi
|
---|
5941 |
|
---|
5942 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5943 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5944 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
5945 |
|
---|
5946 | # Is the header present?
|
---|
5947 | { echo "$as_me:$LINENO: checking langinfo.h presence" >&5
|
---|
5948 | echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6; }
|
---|
5949 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5950 | /* confdefs.h. */
|
---|
5951 | _ACEOF
|
---|
5952 | cat confdefs.h >>conftest.$ac_ext
|
---|
5953 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5954 | /* end confdefs.h. */
|
---|
5955 | #include <langinfo.h>
|
---|
5956 | _ACEOF
|
---|
5957 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
5958 | case "(($ac_try" in
|
---|
5959 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
5960 | *) ac_try_echo=$ac_try;;
|
---|
5961 | esac
|
---|
5962 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
5963 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
5964 | ac_status=$?
|
---|
5965 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5966 | rm -f conftest.er1
|
---|
5967 | cat conftest.err >&5
|
---|
5968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5969 | (exit $ac_status); } >/dev/null && {
|
---|
5970 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
5971 | test ! -s conftest.err
|
---|
5972 | }; then
|
---|
5973 | ac_header_preproc=yes
|
---|
5974 | else
|
---|
5975 | echo "$as_me: failed program was:" >&5
|
---|
5976 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5977 |
|
---|
5978 | ac_header_preproc=no
|
---|
5979 | fi
|
---|
5980 |
|
---|
5981 | rm -f conftest.err conftest.$ac_ext
|
---|
5982 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5983 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
5984 |
|
---|
5985 | # So? What about this header?
|
---|
5986 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5987 | yes:no: )
|
---|
5988 | { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5989 | echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5990 | { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
|
---|
5991 | echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
|
---|
5992 | ac_header_preproc=yes
|
---|
5993 | ;;
|
---|
5994 | no:yes:* )
|
---|
5995 | { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
|
---|
5996 | echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
|
---|
5997 | { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
|
---|
5998 | echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
|
---|
5999 | { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
|
---|
6000 | echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
|
---|
6001 | { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6002 | echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6003 | { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
|
---|
6004 | echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
|
---|
6005 | { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
|
---|
6006 | echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
|
---|
6007 |
|
---|
6008 | ;;
|
---|
6009 | esac
|
---|
6010 | { echo "$as_me:$LINENO: checking for langinfo.h" >&5
|
---|
6011 | echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
|
---|
6012 | if test "${ac_cv_header_langinfo_h+set}" = set; then
|
---|
6013 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6014 | else
|
---|
6015 | ac_cv_header_langinfo_h=$ac_header_preproc
|
---|
6016 | fi
|
---|
6017 | { echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
|
---|
6018 | echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
|
---|
6019 |
|
---|
6020 | fi
|
---|
6021 | if test $ac_cv_header_langinfo_h = yes; then
|
---|
6022 | cat >>confdefs.h <<\_ACEOF
|
---|
6023 | #define HAVE_LANGINFO_H 1
|
---|
6024 | _ACEOF
|
---|
6025 |
|
---|
6026 | fi
|
---|
6027 |
|
---|
6028 |
|
---|
6029 |
|
---|
6030 | if test -n "$ac_tool_prefix"; then
|
---|
6031 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
6032 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
6033 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
6034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
6035 | if test "${ac_cv_prog_STRIP+set}" = set; then
|
---|
6036 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6037 | else
|
---|
6038 | if test -n "$STRIP"; then
|
---|
6039 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
6040 | else
|
---|
6041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6042 | for as_dir in $PATH
|
---|
6043 | do
|
---|
6044 | IFS=$as_save_IFS
|
---|
6045 | test -z "$as_dir" && as_dir=.
|
---|
6046 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
6048 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
6049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6050 | break 2
|
---|
6051 | fi
|
---|
6052 | done
|
---|
6053 | done
|
---|
6054 | IFS=$as_save_IFS
|
---|
6055 |
|
---|
6056 | fi
|
---|
6057 | fi
|
---|
6058 | STRIP=$ac_cv_prog_STRIP
|
---|
6059 | if test -n "$STRIP"; then
|
---|
6060 | { echo "$as_me:$LINENO: result: $STRIP" >&5
|
---|
6061 | echo "${ECHO_T}$STRIP" >&6; }
|
---|
6062 | else
|
---|
6063 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6064 | echo "${ECHO_T}no" >&6; }
|
---|
6065 | fi
|
---|
6066 |
|
---|
6067 |
|
---|
6068 | fi
|
---|
6069 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
6070 | ac_ct_STRIP=$STRIP
|
---|
6071 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
6072 | set dummy strip; ac_word=$2
|
---|
6073 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
6074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
6075 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
---|
6076 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6077 | else
|
---|
6078 | if test -n "$ac_ct_STRIP"; then
|
---|
6079 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
6080 | else
|
---|
6081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6082 | for as_dir in $PATH
|
---|
6083 | do
|
---|
6084 | IFS=$as_save_IFS
|
---|
6085 | test -z "$as_dir" && as_dir=.
|
---|
6086 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
6088 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
6089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6090 | break 2
|
---|
6091 | fi
|
---|
6092 | done
|
---|
6093 | done
|
---|
6094 | IFS=$as_save_IFS
|
---|
6095 |
|
---|
6096 | fi
|
---|
6097 | fi
|
---|
6098 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
6099 | if test -n "$ac_ct_STRIP"; then
|
---|
6100 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
---|
6101 | echo "${ECHO_T}$ac_ct_STRIP" >&6; }
|
---|
6102 | else
|
---|
6103 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6104 | echo "${ECHO_T}no" >&6; }
|
---|
6105 | fi
|
---|
6106 |
|
---|
6107 | if test "x$ac_ct_STRIP" = x; then
|
---|
6108 | STRIP=":"
|
---|
6109 | else
|
---|
6110 | case $cross_compiling:$ac_tool_warned in
|
---|
6111 | yes:)
|
---|
6112 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
6113 | whose name does not start with the host triplet. If you think this
|
---|
6114 | configuration is useful to you, please write to [email protected]." >&5
|
---|
6115 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
6116 | whose name does not start with the host triplet. If you think this
|
---|
6117 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
6118 | ac_tool_warned=yes ;;
|
---|
6119 | esac
|
---|
6120 | STRIP=$ac_ct_STRIP
|
---|
6121 | fi
|
---|
6122 | else
|
---|
6123 | STRIP="$ac_cv_prog_STRIP"
|
---|
6124 | fi
|
---|
6125 |
|
---|
6126 |
|
---|
6127 |
|
---|
6128 |
|
---|
6129 | rpath=""
|
---|
6130 |
|
---|
6131 | #
|
---|
6132 | # OpenSSL detection borrowed from stunnel
|
---|
6133 | #
|
---|
6134 | checkssldir() { :
|
---|
6135 | if test -f "$1/include/openssl/ssl.h"; then
|
---|
6136 | ssldir="$1"
|
---|
6137 | return 0
|
---|
6138 | fi
|
---|
6139 | return 1
|
---|
6140 | }
|
---|
6141 | { echo "$as_me:$LINENO: checking for OpenSSL directory" >&5
|
---|
6142 | echo $ECHO_N "checking for OpenSSL directory... $ECHO_C" >&6; }
|
---|
6143 |
|
---|
6144 | # Check whether --with-openssl was given.
|
---|
6145 | if test "${with_openssl+set}" = set; then
|
---|
6146 | withval=$with_openssl;
|
---|
6147 | checkssldir "$withval"
|
---|
6148 |
|
---|
6149 | else
|
---|
6150 |
|
---|
6151 | for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
|
---|
6152 | for dir in $maindir $maindir/openssl $maindir/ssl; do
|
---|
6153 | checkssldir $dir && break 2
|
---|
6154 | done
|
---|
6155 | done
|
---|
6156 |
|
---|
6157 |
|
---|
6158 | fi
|
---|
6159 |
|
---|
6160 | if test -z "$ssldir"; then
|
---|
6161 | { echo "$as_me:$LINENO: result: Not found" >&5
|
---|
6162 | echo "${ECHO_T}Not found" >&6; }
|
---|
6163 | echo
|
---|
6164 | echo "ERROR: Could not find OpenSSL headers/libraries."
|
---|
6165 | if test -f /etc/debian_version; then
|
---|
6166 | echo "Probably you need to install the libssl-dev package."
|
---|
6167 | elif test -f /etc/redhat-release; then
|
---|
6168 | echo "Probably you need to install the openssl-devel package."
|
---|
6169 | fi
|
---|
6170 | echo "To specify a path manually, use the --with-openssl option."
|
---|
6171 | echo
|
---|
6172 | exit 1
|
---|
6173 | fi
|
---|
6174 | { echo "$as_me:$LINENO: result: $ssldir" >&5
|
---|
6175 | echo "${ECHO_T}$ssldir" >&6; }
|
---|
6176 |
|
---|
6177 | cat >>confdefs.h <<_ACEOF
|
---|
6178 | #define ssldir "$ssldir"
|
---|
6179 | _ACEOF
|
---|
6180 |
|
---|
6181 |
|
---|
6182 | CFLAGS="$CFLAGS -I$ssldir/include"
|
---|
6183 | # Check whether --enable-static-openssl was given.
|
---|
6184 | if test "${enable_static_openssl+set}" = set; then
|
---|
6185 | enableval=$enable_static_openssl;
|
---|
6186 | LIBS="$LIBS $ssldir/lib/libcrypto.a"
|
---|
6187 |
|
---|
6188 | else
|
---|
6189 |
|
---|
6190 | LIBS="$LIBS -L$ssldir/lib -lcrypto"
|
---|
6191 | rpath="$rpath:$ssldir/lib"
|
---|
6192 |
|
---|
6193 | fi
|
---|
6194 |
|
---|
6195 |
|
---|
6196 |
|
---|
6197 |
|
---|
6198 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
---|
6199 | if test -n "$ac_tool_prefix"; then
|
---|
6200 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
|
---|
6201 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
|
---|
6202 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
6203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
6204 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
|
---|
6205 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6206 | else
|
---|
6207 | case $PKG_CONFIG in
|
---|
6208 | [\\/]* | ?:[\\/]*)
|
---|
6209 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
|
---|
6210 | ;;
|
---|
6211 | *)
|
---|
6212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6213 | for as_dir in $PATH
|
---|
6214 | do
|
---|
6215 | IFS=$as_save_IFS
|
---|
6216 | test -z "$as_dir" && as_dir=.
|
---|
6217 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6218 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
6219 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
6220 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6221 | break 2
|
---|
6222 | fi
|
---|
6223 | done
|
---|
6224 | done
|
---|
6225 | IFS=$as_save_IFS
|
---|
6226 |
|
---|
6227 | ;;
|
---|
6228 | esac
|
---|
6229 | fi
|
---|
6230 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG
|
---|
6231 | if test -n "$PKG_CONFIG"; then
|
---|
6232 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
|
---|
6233 | echo "${ECHO_T}$PKG_CONFIG" >&6; }
|
---|
6234 | else
|
---|
6235 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6236 | echo "${ECHO_T}no" >&6; }
|
---|
6237 | fi
|
---|
6238 |
|
---|
6239 |
|
---|
6240 | fi
|
---|
6241 | if test -z "$ac_cv_path_PKG_CONFIG"; then
|
---|
6242 | ac_pt_PKG_CONFIG=$PKG_CONFIG
|
---|
6243 | # Extract the first word of "pkg-config", so it can be a program name with args.
|
---|
6244 | set dummy pkg-config; ac_word=$2
|
---|
6245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
6246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
|
---|
6247 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
|
---|
6248 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6249 | else
|
---|
6250 | case $ac_pt_PKG_CONFIG in
|
---|
6251 | [\\/]* | ?:[\\/]*)
|
---|
6252 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
|
---|
6253 | ;;
|
---|
6254 | *)
|
---|
6255 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
6256 | for as_dir in $PATH
|
---|
6257 | do
|
---|
6258 | IFS=$as_save_IFS
|
---|
6259 | test -z "$as_dir" && as_dir=.
|
---|
6260 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
6261 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
|
---|
6262 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
|
---|
6263 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
6264 | break 2
|
---|
6265 | fi
|
---|
6266 | done
|
---|
6267 | done
|
---|
6268 | IFS=$as_save_IFS
|
---|
6269 |
|
---|
6270 | ;;
|
---|
6271 | esac
|
---|
6272 | fi
|
---|
6273 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
|
---|
6274 | if test -n "$ac_pt_PKG_CONFIG"; then
|
---|
6275 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
|
---|
6276 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
|
---|
6277 | else
|
---|
6278 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6279 | echo "${ECHO_T}no" >&6; }
|
---|
6280 | fi
|
---|
6281 |
|
---|
6282 | if test "x$ac_pt_PKG_CONFIG" = x; then
|
---|
6283 | PKG_CONFIG=""
|
---|
6284 | else
|
---|
6285 | case $cross_compiling:$ac_tool_warned in
|
---|
6286 | yes:)
|
---|
6287 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
6288 | whose name does not start with the host triplet. If you think this
|
---|
6289 | configuration is useful to you, please write to [email protected]." >&5
|
---|
6290 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
|
---|
6291 | whose name does not start with the host triplet. If you think this
|
---|
6292 | configuration is useful to you, please write to [email protected]." >&2;}
|
---|
6293 | ac_tool_warned=yes ;;
|
---|
6294 | esac
|
---|
6295 | PKG_CONFIG=$ac_pt_PKG_CONFIG
|
---|
6296 | fi
|
---|
6297 | else
|
---|
6298 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
|
---|
6299 | fi
|
---|
6300 |
|
---|
6301 | fi
|
---|
6302 | if test -n "$PKG_CONFIG"; then
|
---|
6303 | _pkg_min_version=0.9.0
|
---|
6304 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
|
---|
6305 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
|
---|
6306 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
---|
6307 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
6308 | echo "${ECHO_T}yes" >&6; }
|
---|
6309 | else
|
---|
6310 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6311 | echo "${ECHO_T}no" >&6; }
|
---|
6312 | PKG_CONFIG=""
|
---|
6313 | fi
|
---|
6314 |
|
---|
6315 | fi
|
---|
6316 | # Check whether --enable-smartcard was given.
|
---|
6317 | if test "${enable_smartcard+set}" = set; then
|
---|
6318 | enableval=$enable_smartcard;
|
---|
6319 | case "$OSTYPE" in
|
---|
6320 | darwin*)
|
---|
6321 | if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
|
---|
6322 | { echo "$as_me:$LINENO: checking for PCSC/pcsclite.h" >&5
|
---|
6323 | echo $ECHO_N "checking for PCSC/pcsclite.h... $ECHO_C" >&6; }
|
---|
6324 | if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
|
---|
6325 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6326 | fi
|
---|
6327 | { echo "$as_me:$LINENO: result: $ac_cv_header_PCSC_pcsclite_h" >&5
|
---|
6328 | echo "${ECHO_T}$ac_cv_header_PCSC_pcsclite_h" >&6; }
|
---|
6329 | else
|
---|
6330 | # Is the header compilable?
|
---|
6331 | { echo "$as_me:$LINENO: checking PCSC/pcsclite.h usability" >&5
|
---|
6332 | echo $ECHO_N "checking PCSC/pcsclite.h usability... $ECHO_C" >&6; }
|
---|
6333 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6334 | /* confdefs.h. */
|
---|
6335 | _ACEOF
|
---|
6336 | cat confdefs.h >>conftest.$ac_ext
|
---|
6337 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6338 | /* end confdefs.h. */
|
---|
6339 | $ac_includes_default
|
---|
6340 | #include <PCSC/pcsclite.h>
|
---|
6341 | _ACEOF
|
---|
6342 | rm -f conftest.$ac_objext
|
---|
6343 | if { (ac_try="$ac_compile"
|
---|
6344 | case "(($ac_try" in
|
---|
6345 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6346 | *) ac_try_echo=$ac_try;;
|
---|
6347 | esac
|
---|
6348 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6349 | (eval "$ac_compile") 2>conftest.er1
|
---|
6350 | ac_status=$?
|
---|
6351 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6352 | rm -f conftest.er1
|
---|
6353 | cat conftest.err >&5
|
---|
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6355 | (exit $ac_status); } && {
|
---|
6356 | test -z "$ac_c_werror_flag" ||
|
---|
6357 | test ! -s conftest.err
|
---|
6358 | } && test -s conftest.$ac_objext; then
|
---|
6359 | ac_header_compiler=yes
|
---|
6360 | else
|
---|
6361 | echo "$as_me: failed program was:" >&5
|
---|
6362 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6363 |
|
---|
6364 | ac_header_compiler=no
|
---|
6365 | fi
|
---|
6366 |
|
---|
6367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6368 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6369 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
6370 |
|
---|
6371 | # Is the header present?
|
---|
6372 | { echo "$as_me:$LINENO: checking PCSC/pcsclite.h presence" >&5
|
---|
6373 | echo $ECHO_N "checking PCSC/pcsclite.h presence... $ECHO_C" >&6; }
|
---|
6374 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6375 | /* confdefs.h. */
|
---|
6376 | _ACEOF
|
---|
6377 | cat confdefs.h >>conftest.$ac_ext
|
---|
6378 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6379 | /* end confdefs.h. */
|
---|
6380 | #include <PCSC/pcsclite.h>
|
---|
6381 | _ACEOF
|
---|
6382 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
6383 | case "(($ac_try" in
|
---|
6384 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6385 | *) ac_try_echo=$ac_try;;
|
---|
6386 | esac
|
---|
6387 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6388 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
6389 | ac_status=$?
|
---|
6390 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6391 | rm -f conftest.er1
|
---|
6392 | cat conftest.err >&5
|
---|
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6394 | (exit $ac_status); } >/dev/null && {
|
---|
6395 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
6396 | test ! -s conftest.err
|
---|
6397 | }; then
|
---|
6398 | ac_header_preproc=yes
|
---|
6399 | else
|
---|
6400 | echo "$as_me: failed program was:" >&5
|
---|
6401 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6402 |
|
---|
6403 | ac_header_preproc=no
|
---|
6404 | fi
|
---|
6405 |
|
---|
6406 | rm -f conftest.err conftest.$ac_ext
|
---|
6407 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6408 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
6409 |
|
---|
6410 | # So? What about this header?
|
---|
6411 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6412 | yes:no: )
|
---|
6413 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6414 | echo "$as_me: WARNING: PCSC/pcsclite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6415 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: proceeding with the compiler's result" >&5
|
---|
6416 | echo "$as_me: WARNING: PCSC/pcsclite.h: proceeding with the compiler's result" >&2;}
|
---|
6417 | ac_header_preproc=yes
|
---|
6418 | ;;
|
---|
6419 | no:yes:* )
|
---|
6420 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: present but cannot be compiled" >&5
|
---|
6421 | echo "$as_me: WARNING: PCSC/pcsclite.h: present but cannot be compiled" >&2;}
|
---|
6422 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: check for missing prerequisite headers?" >&5
|
---|
6423 | echo "$as_me: WARNING: PCSC/pcsclite.h: check for missing prerequisite headers?" >&2;}
|
---|
6424 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: see the Autoconf documentation" >&5
|
---|
6425 | echo "$as_me: WARNING: PCSC/pcsclite.h: see the Autoconf documentation" >&2;}
|
---|
6426 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6427 | echo "$as_me: WARNING: PCSC/pcsclite.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6428 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: proceeding with the preprocessor's result" >&5
|
---|
6429 | echo "$as_me: WARNING: PCSC/pcsclite.h: proceeding with the preprocessor's result" >&2;}
|
---|
6430 | { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: in the future, the compiler will take precedence" >&5
|
---|
6431 | echo "$as_me: WARNING: PCSC/pcsclite.h: in the future, the compiler will take precedence" >&2;}
|
---|
6432 |
|
---|
6433 | ;;
|
---|
6434 | esac
|
---|
6435 | { echo "$as_me:$LINENO: checking for PCSC/pcsclite.h" >&5
|
---|
6436 | echo $ECHO_N "checking for PCSC/pcsclite.h... $ECHO_C" >&6; }
|
---|
6437 | if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
|
---|
6438 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6439 | else
|
---|
6440 | ac_cv_header_PCSC_pcsclite_h=$ac_header_preproc
|
---|
6441 | fi
|
---|
6442 | { echo "$as_me:$LINENO: result: $ac_cv_header_PCSC_pcsclite_h" >&5
|
---|
6443 | echo "${ECHO_T}$ac_cv_header_PCSC_pcsclite_h" >&6; }
|
---|
6444 |
|
---|
6445 | fi
|
---|
6446 | if test $ac_cv_header_PCSC_pcsclite_h = yes; then
|
---|
6447 | WITH_SCARD=1
|
---|
6448 | else
|
---|
6449 | WITH_SCARD=0
|
---|
6450 | fi
|
---|
6451 |
|
---|
6452 |
|
---|
6453 | PCSCLITE_CFLAGS=""
|
---|
6454 | PCSCLITE_LIBS="-framework PCSC"
|
---|
6455 | ;;
|
---|
6456 | *)
|
---|
6457 | if test -n "$PKG_CONFIG"; then
|
---|
6458 |
|
---|
6459 | pkg_failed=no
|
---|
6460 | { echo "$as_me:$LINENO: checking for PCSCLITE" >&5
|
---|
6461 | echo $ECHO_N "checking for PCSCLITE... $ECHO_C" >&6; }
|
---|
6462 |
|
---|
6463 | if test -n "$PKG_CONFIG"; then
|
---|
6464 | if test -n "$PCSCLITE_CFLAGS"; then
|
---|
6465 | pkg_cv_PCSCLITE_CFLAGS="$PCSCLITE_CFLAGS"
|
---|
6466 | else
|
---|
6467 | if test -n "$PKG_CONFIG" && \
|
---|
6468 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
|
---|
6469 | ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
|
---|
6470 | ac_status=$?
|
---|
6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6472 | (exit $ac_status); }; then
|
---|
6473 | pkg_cv_PCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
|
---|
6474 | else
|
---|
6475 | pkg_failed=yes
|
---|
6476 | fi
|
---|
6477 | fi
|
---|
6478 | else
|
---|
6479 | pkg_failed=untried
|
---|
6480 | fi
|
---|
6481 | if test -n "$PKG_CONFIG"; then
|
---|
6482 | if test -n "$PCSCLITE_LIBS"; then
|
---|
6483 | pkg_cv_PCSCLITE_LIBS="$PCSCLITE_LIBS"
|
---|
6484 | else
|
---|
6485 | if test -n "$PKG_CONFIG" && \
|
---|
6486 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
|
---|
6487 | ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
|
---|
6488 | ac_status=$?
|
---|
6489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6490 | (exit $ac_status); }; then
|
---|
6491 | pkg_cv_PCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
|
---|
6492 | else
|
---|
6493 | pkg_failed=yes
|
---|
6494 | fi
|
---|
6495 | fi
|
---|
6496 | else
|
---|
6497 | pkg_failed=untried
|
---|
6498 | fi
|
---|
6499 |
|
---|
6500 |
|
---|
6501 |
|
---|
6502 | if test $pkg_failed = yes; then
|
---|
6503 |
|
---|
6504 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
6505 | _pkg_short_errors_supported=yes
|
---|
6506 | else
|
---|
6507 | _pkg_short_errors_supported=no
|
---|
6508 | fi
|
---|
6509 | if test $_pkg_short_errors_supported = yes; then
|
---|
6510 | PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcsclite"`
|
---|
6511 | else
|
---|
6512 | PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcsclite"`
|
---|
6513 | fi
|
---|
6514 | # Put the nasty error message in config.log where it belongs
|
---|
6515 | echo "$PCSCLITE_PKG_ERRORS" >&5
|
---|
6516 |
|
---|
6517 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6518 | echo "${ECHO_T}no" >&6; }
|
---|
6519 | WITH_SCARD=0
|
---|
6520 | elif test $pkg_failed = untried; then
|
---|
6521 | WITH_SCARD=0
|
---|
6522 | else
|
---|
6523 | PCSCLITE_CFLAGS=$pkg_cv_PCSCLITE_CFLAGS
|
---|
6524 | PCSCLITE_LIBS=$pkg_cv_PCSCLITE_LIBS
|
---|
6525 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
6526 | echo "${ECHO_T}yes" >&6; }
|
---|
6527 | WITH_SCARD=1
|
---|
6528 | fi
|
---|
6529 | fi
|
---|
6530 | ;;
|
---|
6531 | esac
|
---|
6532 |
|
---|
6533 | if test x"$WITH_SCARD" = "x1"; then
|
---|
6534 | SCARDOBJ="scard.o"
|
---|
6535 | CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
|
---|
6536 | LIBS="$LIBS $PCSCLITE_LIBS"
|
---|
6537 | cat >>confdefs.h <<\_ACEOF
|
---|
6538 | #define WITH_SCARD 1
|
---|
6539 | _ACEOF
|
---|
6540 |
|
---|
6541 | fi
|
---|
6542 |
|
---|
6543 | { echo "$as_me:$LINENO: checking for old version of PCSC" >&5
|
---|
6544 | echo $ECHO_N "checking for old version of PCSC... $ECHO_C" >&6; }
|
---|
6545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6546 | /* confdefs.h. */
|
---|
6547 | _ACEOF
|
---|
6548 | cat confdefs.h >>conftest.$ac_ext
|
---|
6549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6550 | /* end confdefs.h. */
|
---|
6551 |
|
---|
6552 | #include <stdlib.h>
|
---|
6553 | #ifdef __APPLE__
|
---|
6554 | #include <PCSC/wintypes.h>
|
---|
6555 | #include <PCSC/winscard.h>
|
---|
6556 | #else
|
---|
6557 | #include <winscard.h>
|
---|
6558 | #endif
|
---|
6559 |
|
---|
6560 | int
|
---|
6561 | main ()
|
---|
6562 | {
|
---|
6563 | SCardControl(NULL, NULL, 0, NULL, NULL);
|
---|
6564 | ;
|
---|
6565 | return 0;
|
---|
6566 | }
|
---|
6567 | _ACEOF
|
---|
6568 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6569 | if { (ac_try="$ac_link"
|
---|
6570 | case "(($ac_try" in
|
---|
6571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6572 | *) ac_try_echo=$ac_try;;
|
---|
6573 | esac
|
---|
6574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6575 | (eval "$ac_link") 2>conftest.er1
|
---|
6576 | ac_status=$?
|
---|
6577 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6578 | rm -f conftest.er1
|
---|
6579 | cat conftest.err >&5
|
---|
6580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6581 | (exit $ac_status); } && {
|
---|
6582 | test -z "$ac_c_werror_flag" ||
|
---|
6583 | test ! -s conftest.err
|
---|
6584 | } && test -s conftest$ac_exeext &&
|
---|
6585 | $as_test_x conftest$ac_exeext; then
|
---|
6586 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
6587 | echo "${ECHO_T}yes" >&6; }
|
---|
6588 | cat >>confdefs.h <<\_ACEOF
|
---|
6589 | #define WITH_PCSC120 1
|
---|
6590 | _ACEOF
|
---|
6591 |
|
---|
6592 | else
|
---|
6593 | echo "$as_me: failed program was:" >&5
|
---|
6594 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6595 |
|
---|
6596 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6597 | echo "${ECHO_T}no" >&6; }
|
---|
6598 |
|
---|
6599 | fi
|
---|
6600 |
|
---|
6601 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
6602 | conftest$ac_exeext conftest.$ac_ext
|
---|
6603 |
|
---|
6604 | fi
|
---|
6605 |
|
---|
6606 |
|
---|
6607 |
|
---|
6608 |
|
---|
6609 | #
|
---|
6610 | # Alignment
|
---|
6611 | #
|
---|
6612 | { echo "$as_me:$LINENO: checking if architecture needs alignment" >&5
|
---|
6613 | echo $ECHO_N "checking if architecture needs alignment... $ECHO_C" >&6; }
|
---|
6614 | if test "$cross_compiling" = yes; then
|
---|
6615 | { echo "$as_me:$LINENO: result: assuming yes" >&5
|
---|
6616 | echo "${ECHO_T}assuming yes" >&6; }
|
---|
6617 | cat >>confdefs.h <<\_ACEOF
|
---|
6618 | #define NEED_ALIGN 1
|
---|
6619 | _ACEOF
|
---|
6620 |
|
---|
6621 | else
|
---|
6622 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6623 | /* confdefs.h. */
|
---|
6624 | _ACEOF
|
---|
6625 | cat confdefs.h >>conftest.$ac_ext
|
---|
6626 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6627 | /* end confdefs.h. */
|
---|
6628 |
|
---|
6629 | #include <stdlib.h>
|
---|
6630 | #include <signal.h>
|
---|
6631 | int main(int argc, char **argv)
|
---|
6632 | {
|
---|
6633 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
6634 | signal(SIGBUS, exit);
|
---|
6635 | signal(SIGABRT, exit);
|
---|
6636 | signal(SIGSEGV, exit);
|
---|
6637 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
6638 | return 1;
|
---|
6639 | }
|
---|
6640 | return 0;
|
---|
6641 | }
|
---|
6642 | _ACEOF
|
---|
6643 | rm -f conftest$ac_exeext
|
---|
6644 | if { (ac_try="$ac_link"
|
---|
6645 | case "(($ac_try" in
|
---|
6646 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6647 | *) ac_try_echo=$ac_try;;
|
---|
6648 | esac
|
---|
6649 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6650 | (eval "$ac_link") 2>&5
|
---|
6651 | ac_status=$?
|
---|
6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
6654 | { (case "(($ac_try" in
|
---|
6655 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6656 | *) ac_try_echo=$ac_try;;
|
---|
6657 | esac
|
---|
6658 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6659 | (eval "$ac_try") 2>&5
|
---|
6660 | ac_status=$?
|
---|
6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6662 | (exit $ac_status); }; }; then
|
---|
6663 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
6664 | echo "${ECHO_T}no" >&6; }
|
---|
6665 | else
|
---|
6666 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
6667 | echo "$as_me: failed program was:" >&5
|
---|
6668 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6669 |
|
---|
6670 | ( exit $ac_status )
|
---|
6671 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
6672 | echo "${ECHO_T}yes" >&6; }
|
---|
6673 | cat >>confdefs.h <<\_ACEOF
|
---|
6674 | #define NEED_ALIGN 1
|
---|
6675 | _ACEOF
|
---|
6676 |
|
---|
6677 | fi
|
---|
6678 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
6679 | fi
|
---|
6680 |
|
---|
6681 |
|
---|
6682 |
|
---|
6683 | #
|
---|
6684 | # linux/compiler.h
|
---|
6685 | #
|
---|
6686 | echo "$as_me:$LINENO: checking if linux/compiler.h is required" >&5
|
---|
6687 | echo $ECHO_N "checking if linux/compiler.h is required... $ECHO_C" >&6
|
---|
6688 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6689 | /* confdefs.h. */
|
---|
6690 | _ACEOF
|
---|
6691 | cat confdefs.h >>conftest.$ac_ext
|
---|
6692 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6693 | /* end confdefs.h. */
|
---|
6694 |
|
---|
6695 | #include <linux/compiler.h>
|
---|
6696 |
|
---|
6697 | int
|
---|
6698 | main ()
|
---|
6699 | {
|
---|
6700 |
|
---|
6701 | ;
|
---|
6702 | return 0;
|
---|
6703 | }
|
---|
6704 | _ACEOF
|
---|
6705 | rm -f conftest.$ac_objext
|
---|
6706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6707 | (eval $ac_compile) 2>conftest.er1
|
---|
6708 | ac_status=$?
|
---|
6709 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6710 | rm -f conftest.er1
|
---|
6711 | cat conftest.err >&5
|
---|
6712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6713 | (exit $ac_status); } &&
|
---|
6714 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6715 | || test ! -s conftest.err'
|
---|
6716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6717 | (eval $ac_try) 2>&5
|
---|
6718 | ac_status=$?
|
---|
6719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6720 | (exit $ac_status); }; } &&
|
---|
6721 | { ac_try='test -s conftest.$ac_objext'
|
---|
6722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6723 | (eval $ac_try) 2>&5
|
---|
6724 | ac_status=$?
|
---|
6725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6726 | (exit $ac_status); }; }; then
|
---|
6727 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
6728 | echo "${ECHO_T}yes" >&6
|
---|
6729 | else
|
---|
6730 | echo "$as_me: failed program was:" >&5
|
---|
6731 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6732 |
|
---|
6733 | echo "$as_me:$LINENO: result: no" >&5
|
---|
6734 | echo "${ECHO_T}no" >&6
|
---|
6735 | cat >>confdefs.h <<\_ACEOF
|
---|
6736 | #define VBOX_WITHOUT_LINUX_COMPILER_H 1
|
---|
6737 | _ACEOF
|
---|
6738 |
|
---|
6739 | fi
|
---|
6740 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6741 |
|
---|
6742 |
|
---|
6743 |
|
---|
6744 | #
|
---|
6745 | # EGD
|
---|
6746 | #
|
---|
6747 |
|
---|
6748 | # Check whether --with-egd-socket was given.
|
---|
6749 | if test "${with_egd_socket+set}" = set; then
|
---|
6750 | withval=$with_egd_socket; EGD_SOCKET="$withval"
|
---|
6751 | else
|
---|
6752 | EGD_SOCKET="/var/run/egd-pool"
|
---|
6753 |
|
---|
6754 | fi
|
---|
6755 |
|
---|
6756 | cat >>confdefs.h <<_ACEOF
|
---|
6757 | #define EGD_SOCKET "$EGD_SOCKET"
|
---|
6758 | _ACEOF
|
---|
6759 |
|
---|
6760 |
|
---|
6761 |
|
---|
6762 | #
|
---|
6763 | # rdp2vnc
|
---|
6764 | #
|
---|
6765 | vncserverconfig=libvncserver-config
|
---|
6766 |
|
---|
6767 | # Check whether --with-libvncserver-config was given.
|
---|
6768 | if test "${with_libvncserver_config+set}" = set; then
|
---|
6769 | withval=$with_libvncserver_config; vncserverconfig="$withval"
|
---|
6770 |
|
---|
6771 | fi
|
---|
6772 |
|
---|
6773 |
|
---|
6774 | # Check whether --with-libvncserver was given.
|
---|
6775 | if test "${with_libvncserver+set}" = set; then
|
---|
6776 | withval=$with_libvncserver;
|
---|
6777 | VNCINC=`$vncserverconfig --cflags`
|
---|
6778 |
|
---|
6779 | LDVNC=`$vncserverconfig --libs`
|
---|
6780 |
|
---|
6781 | VNCLINK=`$vncserverconfig --link`
|
---|
6782 |
|
---|
6783 | RDP2VNCTARGET="rdp2vnc"
|
---|
6784 |
|
---|
6785 |
|
---|
6786 |
|
---|
6787 | fi
|
---|
6788 |
|
---|
6789 |
|
---|
6790 | #
|
---|
6791 | # sound
|
---|
6792 | #
|
---|
6793 |
|
---|
6794 | sound="yes"
|
---|
6795 |
|
---|
6796 | # Check whether --with-sound was given.
|
---|
6797 | if test "${with_sound+set}" = set; then
|
---|
6798 | withval=$with_sound;
|
---|
6799 | sound="$withval"
|
---|
6800 |
|
---|
6801 | fi
|
---|
6802 |
|
---|
6803 |
|
---|
6804 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
|
---|
6805 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
|
---|
6806 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
|
---|
6807 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
|
---|
6808 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6809 | fi
|
---|
6810 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
|
---|
6811 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
|
---|
6812 | else
|
---|
6813 | # Is the header compilable?
|
---|
6814 | { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
|
---|
6815 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
|
---|
6816 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6817 | /* confdefs.h. */
|
---|
6818 | _ACEOF
|
---|
6819 | cat confdefs.h >>conftest.$ac_ext
|
---|
6820 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6821 | /* end confdefs.h. */
|
---|
6822 | $ac_includes_default
|
---|
6823 | #include <sys/soundcard.h>
|
---|
6824 | _ACEOF
|
---|
6825 | rm -f conftest.$ac_objext
|
---|
6826 | if { (ac_try="$ac_compile"
|
---|
6827 | case "(($ac_try" in
|
---|
6828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6829 | *) ac_try_echo=$ac_try;;
|
---|
6830 | esac
|
---|
6831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6832 | (eval "$ac_compile") 2>conftest.er1
|
---|
6833 | ac_status=$?
|
---|
6834 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6835 | rm -f conftest.er1
|
---|
6836 | cat conftest.err >&5
|
---|
6837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6838 | (exit $ac_status); } && {
|
---|
6839 | test -z "$ac_c_werror_flag" ||
|
---|
6840 | test ! -s conftest.err
|
---|
6841 | } && test -s conftest.$ac_objext; then
|
---|
6842 | ac_header_compiler=yes
|
---|
6843 | else
|
---|
6844 | echo "$as_me: failed program was:" >&5
|
---|
6845 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6846 |
|
---|
6847 | ac_header_compiler=no
|
---|
6848 | fi
|
---|
6849 |
|
---|
6850 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6851 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6852 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
6853 |
|
---|
6854 | # Is the header present?
|
---|
6855 | { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
|
---|
6856 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
|
---|
6857 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6858 | /* confdefs.h. */
|
---|
6859 | _ACEOF
|
---|
6860 | cat confdefs.h >>conftest.$ac_ext
|
---|
6861 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6862 | /* end confdefs.h. */
|
---|
6863 | #include <sys/soundcard.h>
|
---|
6864 | _ACEOF
|
---|
6865 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
6866 | case "(($ac_try" in
|
---|
6867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6868 | *) ac_try_echo=$ac_try;;
|
---|
6869 | esac
|
---|
6870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6871 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
6872 | ac_status=$?
|
---|
6873 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6874 | rm -f conftest.er1
|
---|
6875 | cat conftest.err >&5
|
---|
6876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6877 | (exit $ac_status); } >/dev/null && {
|
---|
6878 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
6879 | test ! -s conftest.err
|
---|
6880 | }; then
|
---|
6881 | ac_header_preproc=yes
|
---|
6882 | else
|
---|
6883 | echo "$as_me: failed program was:" >&5
|
---|
6884 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6885 |
|
---|
6886 | ac_header_preproc=no
|
---|
6887 | fi
|
---|
6888 |
|
---|
6889 | rm -f conftest.err conftest.$ac_ext
|
---|
6890 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6891 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
6892 |
|
---|
6893 | # So? What about this header?
|
---|
6894 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6895 | yes:no: )
|
---|
6896 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6897 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6898 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
|
---|
6899 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
|
---|
6900 | ac_header_preproc=yes
|
---|
6901 | ;;
|
---|
6902 | no:yes:* )
|
---|
6903 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
|
---|
6904 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
|
---|
6905 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
|
---|
6906 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
|
---|
6907 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
|
---|
6908 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
|
---|
6909 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6910 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6911 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
|
---|
6912 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
|
---|
6913 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
|
---|
6914 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
|
---|
6915 |
|
---|
6916 | ;;
|
---|
6917 | esac
|
---|
6918 | { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
|
---|
6919 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
|
---|
6920 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
|
---|
6921 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6922 | else
|
---|
6923 | ac_cv_header_sys_soundcard_h=$ac_header_preproc
|
---|
6924 | fi
|
---|
6925 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
|
---|
6926 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
|
---|
6927 |
|
---|
6928 | fi
|
---|
6929 | if test $ac_cv_header_sys_soundcard_h = yes; then
|
---|
6930 | HAVE_OSS=1
|
---|
6931 | else
|
---|
6932 | HAVE_OSS=0
|
---|
6933 | fi
|
---|
6934 |
|
---|
6935 |
|
---|
6936 | if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
|
---|
6937 | { echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
|
---|
6938 | echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6; }
|
---|
6939 | if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
|
---|
6940 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6941 | fi
|
---|
6942 | { echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
|
---|
6943 | echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6; }
|
---|
6944 | else
|
---|
6945 | # Is the header compilable?
|
---|
6946 | { echo "$as_me:$LINENO: checking dmedia/audio.h usability" >&5
|
---|
6947 | echo $ECHO_N "checking dmedia/audio.h usability... $ECHO_C" >&6; }
|
---|
6948 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6949 | /* confdefs.h. */
|
---|
6950 | _ACEOF
|
---|
6951 | cat confdefs.h >>conftest.$ac_ext
|
---|
6952 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6953 | /* end confdefs.h. */
|
---|
6954 | $ac_includes_default
|
---|
6955 | #include <dmedia/audio.h>
|
---|
6956 | _ACEOF
|
---|
6957 | rm -f conftest.$ac_objext
|
---|
6958 | if { (ac_try="$ac_compile"
|
---|
6959 | case "(($ac_try" in
|
---|
6960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
6961 | *) ac_try_echo=$ac_try;;
|
---|
6962 | esac
|
---|
6963 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
6964 | (eval "$ac_compile") 2>conftest.er1
|
---|
6965 | ac_status=$?
|
---|
6966 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6967 | rm -f conftest.er1
|
---|
6968 | cat conftest.err >&5
|
---|
6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6970 | (exit $ac_status); } && {
|
---|
6971 | test -z "$ac_c_werror_flag" ||
|
---|
6972 | test ! -s conftest.err
|
---|
6973 | } && test -s conftest.$ac_objext; then
|
---|
6974 | ac_header_compiler=yes
|
---|
6975 | else
|
---|
6976 | echo "$as_me: failed program was:" >&5
|
---|
6977 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6978 |
|
---|
6979 | ac_header_compiler=no
|
---|
6980 | fi
|
---|
6981 |
|
---|
6982 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6983 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6984 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
6985 |
|
---|
6986 | # Is the header present?
|
---|
6987 | { echo "$as_me:$LINENO: checking dmedia/audio.h presence" >&5
|
---|
6988 | echo $ECHO_N "checking dmedia/audio.h presence... $ECHO_C" >&6; }
|
---|
6989 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6990 | /* confdefs.h. */
|
---|
6991 | _ACEOF
|
---|
6992 | cat confdefs.h >>conftest.$ac_ext
|
---|
6993 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6994 | /* end confdefs.h. */
|
---|
6995 | #include <dmedia/audio.h>
|
---|
6996 | _ACEOF
|
---|
6997 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
6998 | case "(($ac_try" in
|
---|
6999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7000 | *) ac_try_echo=$ac_try;;
|
---|
7001 | esac
|
---|
7002 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7003 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
7004 | ac_status=$?
|
---|
7005 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7006 | rm -f conftest.er1
|
---|
7007 | cat conftest.err >&5
|
---|
7008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7009 | (exit $ac_status); } >/dev/null && {
|
---|
7010 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
7011 | test ! -s conftest.err
|
---|
7012 | }; then
|
---|
7013 | ac_header_preproc=yes
|
---|
7014 | else
|
---|
7015 | echo "$as_me: failed program was:" >&5
|
---|
7016 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7017 |
|
---|
7018 | ac_header_preproc=no
|
---|
7019 | fi
|
---|
7020 |
|
---|
7021 | rm -f conftest.err conftest.$ac_ext
|
---|
7022 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7023 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
7024 |
|
---|
7025 | # So? What about this header?
|
---|
7026 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7027 | yes:no: )
|
---|
7028 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7029 | echo "$as_me: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7030 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&5
|
---|
7031 | echo "$as_me: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&2;}
|
---|
7032 | ac_header_preproc=yes
|
---|
7033 | ;;
|
---|
7034 | no:yes:* )
|
---|
7035 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: present but cannot be compiled" >&5
|
---|
7036 | echo "$as_me: WARNING: dmedia/audio.h: present but cannot be compiled" >&2;}
|
---|
7037 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&5
|
---|
7038 | echo "$as_me: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&2;}
|
---|
7039 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: see the Autoconf documentation" >&5
|
---|
7040 | echo "$as_me: WARNING: dmedia/audio.h: see the Autoconf documentation" >&2;}
|
---|
7041 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7042 | echo "$as_me: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7043 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&5
|
---|
7044 | echo "$as_me: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&2;}
|
---|
7045 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&5
|
---|
7046 | echo "$as_me: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&2;}
|
---|
7047 |
|
---|
7048 | ;;
|
---|
7049 | esac
|
---|
7050 | { echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
|
---|
7051 | echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6; }
|
---|
7052 | if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
|
---|
7053 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7054 | else
|
---|
7055 | ac_cv_header_dmedia_audio_h=$ac_header_preproc
|
---|
7056 | fi
|
---|
7057 | { echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
|
---|
7058 | echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6; }
|
---|
7059 |
|
---|
7060 | fi
|
---|
7061 | if test $ac_cv_header_dmedia_audio_h = yes; then
|
---|
7062 | HAVE_SGI=1
|
---|
7063 | else
|
---|
7064 | HAVE_SGI=0
|
---|
7065 | fi
|
---|
7066 |
|
---|
7067 |
|
---|
7068 | if test "${ac_cv_header_sys_audioio_h+set}" = set; then
|
---|
7069 | { echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
|
---|
7070 | echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6; }
|
---|
7071 | if test "${ac_cv_header_sys_audioio_h+set}" = set; then
|
---|
7072 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7073 | fi
|
---|
7074 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
|
---|
7075 | echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6; }
|
---|
7076 | else
|
---|
7077 | # Is the header compilable?
|
---|
7078 | { echo "$as_me:$LINENO: checking sys/audioio.h usability" >&5
|
---|
7079 | echo $ECHO_N "checking sys/audioio.h usability... $ECHO_C" >&6; }
|
---|
7080 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7081 | /* confdefs.h. */
|
---|
7082 | _ACEOF
|
---|
7083 | cat confdefs.h >>conftest.$ac_ext
|
---|
7084 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7085 | /* end confdefs.h. */
|
---|
7086 | $ac_includes_default
|
---|
7087 | #include <sys/audioio.h>
|
---|
7088 | _ACEOF
|
---|
7089 | rm -f conftest.$ac_objext
|
---|
7090 | if { (ac_try="$ac_compile"
|
---|
7091 | case "(($ac_try" in
|
---|
7092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7093 | *) ac_try_echo=$ac_try;;
|
---|
7094 | esac
|
---|
7095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7096 | (eval "$ac_compile") 2>conftest.er1
|
---|
7097 | ac_status=$?
|
---|
7098 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7099 | rm -f conftest.er1
|
---|
7100 | cat conftest.err >&5
|
---|
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7102 | (exit $ac_status); } && {
|
---|
7103 | test -z "$ac_c_werror_flag" ||
|
---|
7104 | test ! -s conftest.err
|
---|
7105 | } && test -s conftest.$ac_objext; then
|
---|
7106 | ac_header_compiler=yes
|
---|
7107 | else
|
---|
7108 | echo "$as_me: failed program was:" >&5
|
---|
7109 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7110 |
|
---|
7111 | ac_header_compiler=no
|
---|
7112 | fi
|
---|
7113 |
|
---|
7114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7115 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
7116 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
7117 |
|
---|
7118 | # Is the header present?
|
---|
7119 | { echo "$as_me:$LINENO: checking sys/audioio.h presence" >&5
|
---|
7120 | echo $ECHO_N "checking sys/audioio.h presence... $ECHO_C" >&6; }
|
---|
7121 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7122 | /* confdefs.h. */
|
---|
7123 | _ACEOF
|
---|
7124 | cat confdefs.h >>conftest.$ac_ext
|
---|
7125 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7126 | /* end confdefs.h. */
|
---|
7127 | #include <sys/audioio.h>
|
---|
7128 | _ACEOF
|
---|
7129 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
7130 | case "(($ac_try" in
|
---|
7131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7132 | *) ac_try_echo=$ac_try;;
|
---|
7133 | esac
|
---|
7134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7135 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
7136 | ac_status=$?
|
---|
7137 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7138 | rm -f conftest.er1
|
---|
7139 | cat conftest.err >&5
|
---|
7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7141 | (exit $ac_status); } >/dev/null && {
|
---|
7142 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
7143 | test ! -s conftest.err
|
---|
7144 | }; then
|
---|
7145 | ac_header_preproc=yes
|
---|
7146 | else
|
---|
7147 | echo "$as_me: failed program was:" >&5
|
---|
7148 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7149 |
|
---|
7150 | ac_header_preproc=no
|
---|
7151 | fi
|
---|
7152 |
|
---|
7153 | rm -f conftest.err conftest.$ac_ext
|
---|
7154 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7155 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
7156 |
|
---|
7157 | # So? What about this header?
|
---|
7158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7159 | yes:no: )
|
---|
7160 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7161 | echo "$as_me: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7162 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the compiler's result" >&5
|
---|
7163 | echo "$as_me: WARNING: sys/audioio.h: proceeding with the compiler's result" >&2;}
|
---|
7164 | ac_header_preproc=yes
|
---|
7165 | ;;
|
---|
7166 | no:yes:* )
|
---|
7167 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: present but cannot be compiled" >&5
|
---|
7168 | echo "$as_me: WARNING: sys/audioio.h: present but cannot be compiled" >&2;}
|
---|
7169 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: check for missing prerequisite headers?" >&5
|
---|
7170 | echo "$as_me: WARNING: sys/audioio.h: check for missing prerequisite headers?" >&2;}
|
---|
7171 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: see the Autoconf documentation" >&5
|
---|
7172 | echo "$as_me: WARNING: sys/audioio.h: see the Autoconf documentation" >&2;}
|
---|
7173 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7174 | echo "$as_me: WARNING: sys/audioio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7175 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&5
|
---|
7176 | echo "$as_me: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&2;}
|
---|
7177 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&5
|
---|
7178 | echo "$as_me: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&2;}
|
---|
7179 |
|
---|
7180 | ;;
|
---|
7181 | esac
|
---|
7182 | { echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
|
---|
7183 | echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6; }
|
---|
7184 | if test "${ac_cv_header_sys_audioio_h+set}" = set; then
|
---|
7185 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7186 | else
|
---|
7187 | ac_cv_header_sys_audioio_h=$ac_header_preproc
|
---|
7188 | fi
|
---|
7189 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
|
---|
7190 | echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6; }
|
---|
7191 |
|
---|
7192 | fi
|
---|
7193 | if test $ac_cv_header_sys_audioio_h = yes; then
|
---|
7194 | HAVE_SUN=1
|
---|
7195 | else
|
---|
7196 | HAVE_SUN=0
|
---|
7197 | fi
|
---|
7198 |
|
---|
7199 |
|
---|
7200 |
|
---|
7201 | # Check whether --enable-static-libsamplerate was given.
|
---|
7202 | if test "${enable_static_libsamplerate+set}" = set; then
|
---|
7203 | enableval=$enable_static_libsamplerate; static_libsamplerate=yes
|
---|
7204 | else
|
---|
7205 | static_libsamplerate=no
|
---|
7206 | fi
|
---|
7207 |
|
---|
7208 |
|
---|
7209 | if test -n "$PKG_CONFIG"; then
|
---|
7210 |
|
---|
7211 | pkg_failed=no
|
---|
7212 | { echo "$as_me:$LINENO: checking for LIBAO" >&5
|
---|
7213 | echo $ECHO_N "checking for LIBAO... $ECHO_C" >&6; }
|
---|
7214 |
|
---|
7215 | if test -n "$PKG_CONFIG"; then
|
---|
7216 | if test -n "$LIBAO_CFLAGS"; then
|
---|
7217 | pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
|
---|
7218 | else
|
---|
7219 | if test -n "$PKG_CONFIG" && \
|
---|
7220 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao\"") >&5
|
---|
7221 | ($PKG_CONFIG --exists --print-errors "ao") 2>&5
|
---|
7222 | ac_status=$?
|
---|
7223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7224 | (exit $ac_status); }; then
|
---|
7225 | pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
|
---|
7226 | else
|
---|
7227 | pkg_failed=yes
|
---|
7228 | fi
|
---|
7229 | fi
|
---|
7230 | else
|
---|
7231 | pkg_failed=untried
|
---|
7232 | fi
|
---|
7233 | if test -n "$PKG_CONFIG"; then
|
---|
7234 | if test -n "$LIBAO_LIBS"; then
|
---|
7235 | pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
|
---|
7236 | else
|
---|
7237 | if test -n "$PKG_CONFIG" && \
|
---|
7238 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao\"") >&5
|
---|
7239 | ($PKG_CONFIG --exists --print-errors "ao") 2>&5
|
---|
7240 | ac_status=$?
|
---|
7241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7242 | (exit $ac_status); }; then
|
---|
7243 | pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
|
---|
7244 | else
|
---|
7245 | pkg_failed=yes
|
---|
7246 | fi
|
---|
7247 | fi
|
---|
7248 | else
|
---|
7249 | pkg_failed=untried
|
---|
7250 | fi
|
---|
7251 |
|
---|
7252 |
|
---|
7253 |
|
---|
7254 | if test $pkg_failed = yes; then
|
---|
7255 |
|
---|
7256 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
7257 | _pkg_short_errors_supported=yes
|
---|
7258 | else
|
---|
7259 | _pkg_short_errors_supported=no
|
---|
7260 | fi
|
---|
7261 | if test $_pkg_short_errors_supported = yes; then
|
---|
7262 | LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ao"`
|
---|
7263 | else
|
---|
7264 | LIBAO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ao"`
|
---|
7265 | fi
|
---|
7266 | # Put the nasty error message in config.log where it belongs
|
---|
7267 | echo "$LIBAO_PKG_ERRORS" >&5
|
---|
7268 |
|
---|
7269 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7270 | echo "${ECHO_T}no" >&6; }
|
---|
7271 | HAVE_LIBAO=0
|
---|
7272 | elif test $pkg_failed = untried; then
|
---|
7273 | HAVE_LIBAO=0
|
---|
7274 | else
|
---|
7275 | LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
|
---|
7276 | LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
|
---|
7277 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7278 | echo "${ECHO_T}yes" >&6; }
|
---|
7279 | HAVE_LIBAO=1
|
---|
7280 | fi
|
---|
7281 |
|
---|
7282 | pkg_failed=no
|
---|
7283 | { echo "$as_me:$LINENO: checking for ALSA" >&5
|
---|
7284 | echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
|
---|
7285 |
|
---|
7286 | if test -n "$PKG_CONFIG"; then
|
---|
7287 | if test -n "$ALSA_CFLAGS"; then
|
---|
7288 | pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
|
---|
7289 | else
|
---|
7290 | if test -n "$PKG_CONFIG" && \
|
---|
7291 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
|
---|
7292 | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
|
---|
7293 | ac_status=$?
|
---|
7294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7295 | (exit $ac_status); }; then
|
---|
7296 | pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
|
---|
7297 | else
|
---|
7298 | pkg_failed=yes
|
---|
7299 | fi
|
---|
7300 | fi
|
---|
7301 | else
|
---|
7302 | pkg_failed=untried
|
---|
7303 | fi
|
---|
7304 | if test -n "$PKG_CONFIG"; then
|
---|
7305 | if test -n "$ALSA_LIBS"; then
|
---|
7306 | pkg_cv_ALSA_LIBS="$ALSA_LIBS"
|
---|
7307 | else
|
---|
7308 | if test -n "$PKG_CONFIG" && \
|
---|
7309 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
|
---|
7310 | ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
|
---|
7311 | ac_status=$?
|
---|
7312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7313 | (exit $ac_status); }; then
|
---|
7314 | pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
|
---|
7315 | else
|
---|
7316 | pkg_failed=yes
|
---|
7317 | fi
|
---|
7318 | fi
|
---|
7319 | else
|
---|
7320 | pkg_failed=untried
|
---|
7321 | fi
|
---|
7322 |
|
---|
7323 |
|
---|
7324 |
|
---|
7325 | if test $pkg_failed = yes; then
|
---|
7326 |
|
---|
7327 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
7328 | _pkg_short_errors_supported=yes
|
---|
7329 | else
|
---|
7330 | _pkg_short_errors_supported=no
|
---|
7331 | fi
|
---|
7332 | if test $_pkg_short_errors_supported = yes; then
|
---|
7333 | ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
|
---|
7334 | else
|
---|
7335 | ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
|
---|
7336 | fi
|
---|
7337 | # Put the nasty error message in config.log where it belongs
|
---|
7338 | echo "$ALSA_PKG_ERRORS" >&5
|
---|
7339 |
|
---|
7340 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7341 | echo "${ECHO_T}no" >&6; }
|
---|
7342 | HAVE_ALSA=0
|
---|
7343 | elif test $pkg_failed = untried; then
|
---|
7344 | HAVE_ALSA=0
|
---|
7345 | else
|
---|
7346 | ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
|
---|
7347 | ALSA_LIBS=$pkg_cv_ALSA_LIBS
|
---|
7348 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7349 | echo "${ECHO_T}yes" >&6; }
|
---|
7350 | HAVE_ALSA=1
|
---|
7351 | fi
|
---|
7352 |
|
---|
7353 | pkg_failed=no
|
---|
7354 | { echo "$as_me:$LINENO: checking for LIBSAMPLERATE" >&5
|
---|
7355 | echo $ECHO_N "checking for LIBSAMPLERATE... $ECHO_C" >&6; }
|
---|
7356 |
|
---|
7357 | if test -n "$PKG_CONFIG"; then
|
---|
7358 | if test -n "$LIBSAMPLERATE_CFLAGS"; then
|
---|
7359 | pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
|
---|
7360 | else
|
---|
7361 | if test -n "$PKG_CONFIG" && \
|
---|
7362 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5
|
---|
7363 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
|
---|
7364 | ac_status=$?
|
---|
7365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7366 | (exit $ac_status); }; then
|
---|
7367 | pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
|
---|
7368 | else
|
---|
7369 | pkg_failed=yes
|
---|
7370 | fi
|
---|
7371 | fi
|
---|
7372 | else
|
---|
7373 | pkg_failed=untried
|
---|
7374 | fi
|
---|
7375 | if test -n "$PKG_CONFIG"; then
|
---|
7376 | if test -n "$LIBSAMPLERATE_LIBS"; then
|
---|
7377 | pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
|
---|
7378 | else
|
---|
7379 | if test -n "$PKG_CONFIG" && \
|
---|
7380 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5
|
---|
7381 | ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
|
---|
7382 | ac_status=$?
|
---|
7383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7384 | (exit $ac_status); }; then
|
---|
7385 | pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
|
---|
7386 | else
|
---|
7387 | pkg_failed=yes
|
---|
7388 | fi
|
---|
7389 | fi
|
---|
7390 | else
|
---|
7391 | pkg_failed=untried
|
---|
7392 | fi
|
---|
7393 |
|
---|
7394 |
|
---|
7395 |
|
---|
7396 | if test $pkg_failed = yes; then
|
---|
7397 |
|
---|
7398 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
---|
7399 | _pkg_short_errors_supported=yes
|
---|
7400 | else
|
---|
7401 | _pkg_short_errors_supported=no
|
---|
7402 | fi
|
---|
7403 | if test $_pkg_short_errors_supported = yes; then
|
---|
7404 | LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate"`
|
---|
7405 | else
|
---|
7406 | LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate"`
|
---|
7407 | fi
|
---|
7408 | # Put the nasty error message in config.log where it belongs
|
---|
7409 | echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
|
---|
7410 |
|
---|
7411 | { echo "$as_me:$LINENO: result: no" >&5
|
---|
7412 | echo "${ECHO_T}no" >&6; }
|
---|
7413 | HAVE_LIBSAMPLERATE=0
|
---|
7414 | elif test $pkg_failed = untried; then
|
---|
7415 | HAVE_LIBSAMPLERATE=0
|
---|
7416 | else
|
---|
7417 | LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
|
---|
7418 | LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
|
---|
7419 | { echo "$as_me:$LINENO: result: yes" >&5
|
---|
7420 | echo "${ECHO_T}yes" >&6; }
|
---|
7421 | HAVE_LIBSAMPLERATE=1
|
---|
7422 | fi
|
---|
7423 | if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
|
---|
7424 | cat >>confdefs.h <<\_ACEOF
|
---|
7425 | #define HAVE_LIBSAMPLERATE 1
|
---|
7426 | _ACEOF
|
---|
7427 |
|
---|
7428 | if test x"$static_libsamplerate" = "xyes"; then
|
---|
7429 | _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
|
---|
7430 | LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
|
---|
7431 | fi
|
---|
7432 | LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
|
---|
7433 | fi
|
---|
7434 | fi
|
---|
7435 |
|
---|
7436 | if test "$sound" != "no"; then
|
---|
7437 | SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
|
---|
7438 | CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
|
---|
7439 | LIBS="$LIBS $LIBSAMPLERATE_LIBS"
|
---|
7440 | cat >>confdefs.h <<\_ACEOF
|
---|
7441 | #define WITH_RDPSND 1
|
---|
7442 | _ACEOF
|
---|
7443 |
|
---|
7444 | fi
|
---|
7445 |
|
---|
7446 | case $sound in
|
---|
7447 | yes)
|
---|
7448 | if test x"$HAVE_OSS" = "x1"; then
|
---|
7449 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
7450 | cat >>confdefs.h <<\_ACEOF
|
---|
7451 | #define RDPSND_OSS 1
|
---|
7452 | _ACEOF
|
---|
7453 |
|
---|
7454 | fi
|
---|
7455 |
|
---|
7456 | if test x"$HAVE_SGI" = "x1"; then
|
---|
7457 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
7458 | LIBS="$LIBS -laudio"
|
---|
7459 | cat >>confdefs.h <<\_ACEOF
|
---|
7460 | #define RDPSND_SGI 1
|
---|
7461 | _ACEOF
|
---|
7462 |
|
---|
7463 | fi
|
---|
7464 |
|
---|
7465 | if test x"$HAVE_SUN" = "x1"; then
|
---|
7466 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
7467 | cat >>confdefs.h <<\_ACEOF
|
---|
7468 | #define RDPSND_SUN 1
|
---|
7469 | _ACEOF
|
---|
7470 |
|
---|
7471 | fi
|
---|
7472 |
|
---|
7473 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
7474 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
7475 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
7476 | LIBS="$LIBS $ALSA_LIBS"
|
---|
7477 | cat >>confdefs.h <<\_ACEOF
|
---|
7478 | #define RDPSND_ALSA 1
|
---|
7479 | _ACEOF
|
---|
7480 |
|
---|
7481 | fi
|
---|
7482 |
|
---|
7483 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
7484 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
7485 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
7486 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
7487 | cat >>confdefs.h <<\_ACEOF
|
---|
7488 | #define RDPSND_LIBAO 1
|
---|
7489 | _ACEOF
|
---|
7490 |
|
---|
7491 | fi
|
---|
7492 |
|
---|
7493 | ;;
|
---|
7494 |
|
---|
7495 | oss)
|
---|
7496 | if test x"$HAVE_OSS" = "x1"; then
|
---|
7497 | SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
|
---|
7498 | cat >>confdefs.h <<\_ACEOF
|
---|
7499 | #define RDPSND_OSS 1
|
---|
7500 | _ACEOF
|
---|
7501 |
|
---|
7502 | else
|
---|
7503 | { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
|
---|
7504 | echo "$as_me: error: Selected sound system is not available." >&2;}
|
---|
7505 | { (exit 1); exit 1; }; }
|
---|
7506 | fi
|
---|
7507 | ;;
|
---|
7508 |
|
---|
7509 | sgi)
|
---|
7510 | if test x"$HAVE_SGI" = "x1"; then
|
---|
7511 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
|
---|
7512 | LIBS="$LIBS -laudio"
|
---|
7513 | cat >>confdefs.h <<\_ACEOF
|
---|
7514 | #define RDPSND_SGI 1
|
---|
7515 | _ACEOF
|
---|
7516 |
|
---|
7517 | else
|
---|
7518 | { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
|
---|
7519 | echo "$as_me: error: Selected sound system is not available." >&2;}
|
---|
7520 | { (exit 1); exit 1; }; }
|
---|
7521 | fi
|
---|
7522 | ;;
|
---|
7523 |
|
---|
7524 | sun)
|
---|
7525 | if test x"$HAVE_SUN" = "x1"; then
|
---|
7526 | SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
|
---|
7527 | cat >>confdefs.h <<\_ACEOF
|
---|
7528 | #define RDPSND_SUN 1
|
---|
7529 | _ACEOF
|
---|
7530 |
|
---|
7531 | else
|
---|
7532 | { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
|
---|
7533 | echo "$as_me: error: Selected sound system is not available." >&2;}
|
---|
7534 | { (exit 1); exit 1; }; }
|
---|
7535 | fi
|
---|
7536 | ;;
|
---|
7537 |
|
---|
7538 | alsa)
|
---|
7539 | if test x"$HAVE_ALSA" = "x1"; then
|
---|
7540 | SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
|
---|
7541 | CFLAGS="$CFLAGS $ALSA_CFLAGS"
|
---|
7542 | LIBS="$LIBS $ALSA_LIBS"
|
---|
7543 | cat >>confdefs.h <<\_ACEOF
|
---|
7544 | #define RDPSND_ALSA 1
|
---|
7545 | _ACEOF
|
---|
7546 |
|
---|
7547 | else
|
---|
7548 | { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
|
---|
7549 | echo "$as_me: error: Selected sound system is not available." >&2;}
|
---|
7550 | { (exit 1); exit 1; }; }
|
---|
7551 | fi
|
---|
7552 | ;;
|
---|
7553 |
|
---|
7554 | libao)
|
---|
7555 | if test x"$HAVE_LIBAO" = "x1"; then
|
---|
7556 | SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
|
---|
7557 | CFLAGS="$CFLAGS $LIBAO_CFLAGS"
|
---|
7558 | LIBS="$LIBS $LIBAO_LIBS"
|
---|
7559 | cat >>confdefs.h <<\_ACEOF
|
---|
7560 | #define RDPSND_LIBAO 1
|
---|
7561 | _ACEOF
|
---|
7562 |
|
---|
7563 | else
|
---|
7564 | { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
|
---|
7565 | echo "$as_me: error: Selected sound system is not available." >&2;}
|
---|
7566 | { (exit 1); exit 1; }; }
|
---|
7567 | fi
|
---|
7568 | ;;
|
---|
7569 |
|
---|
7570 | no)
|
---|
7571 | ;;
|
---|
7572 |
|
---|
7573 | *)
|
---|
7574 | { echo "$as_me:$LINENO: WARNING: sound support disabled" >&5
|
---|
7575 | echo "$as_me: WARNING: sound support disabled" >&2;}
|
---|
7576 | { echo "$as_me:$LINENO: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
|
---|
7577 | echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
|
---|
7578 | ;;
|
---|
7579 | esac
|
---|
7580 |
|
---|
7581 |
|
---|
7582 |
|
---|
7583 | #
|
---|
7584 | # dirfd
|
---|
7585 | #
|
---|
7586 |
|
---|
7587 |
|
---|
7588 |
|
---|
7589 |
|
---|
7590 |
|
---|
7591 |
|
---|
7592 |
|
---|
7593 |
|
---|
7594 |
|
---|
7595 |
|
---|
7596 | ac_header_dirent=no
|
---|
7597 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
7598 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
7599 | { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
7600 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
|
---|
7601 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
7602 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7603 | else
|
---|
7604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7605 | /* confdefs.h. */
|
---|
7606 | _ACEOF
|
---|
7607 | cat confdefs.h >>conftest.$ac_ext
|
---|
7608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7609 | /* end confdefs.h. */
|
---|
7610 | #include <sys/types.h>
|
---|
7611 | #include <$ac_hdr>
|
---|
7612 |
|
---|
7613 | int
|
---|
7614 | main ()
|
---|
7615 | {
|
---|
7616 | if ((DIR *) 0)
|
---|
7617 | return 0;
|
---|
7618 | ;
|
---|
7619 | return 0;
|
---|
7620 | }
|
---|
7621 | _ACEOF
|
---|
7622 | rm -f conftest.$ac_objext
|
---|
7623 | if { (ac_try="$ac_compile"
|
---|
7624 | case "(($ac_try" in
|
---|
7625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7626 | *) ac_try_echo=$ac_try;;
|
---|
7627 | esac
|
---|
7628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7629 | (eval "$ac_compile") 2>conftest.er1
|
---|
7630 | ac_status=$?
|
---|
7631 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7632 | rm -f conftest.er1
|
---|
7633 | cat conftest.err >&5
|
---|
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7635 | (exit $ac_status); } && {
|
---|
7636 | test -z "$ac_c_werror_flag" ||
|
---|
7637 | test ! -s conftest.err
|
---|
7638 | } && test -s conftest.$ac_objext; then
|
---|
7639 | eval "$as_ac_Header=yes"
|
---|
7640 | else
|
---|
7641 | echo "$as_me: failed program was:" >&5
|
---|
7642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7643 |
|
---|
7644 | eval "$as_ac_Header=no"
|
---|
7645 | fi
|
---|
7646 |
|
---|
7647 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7648 | fi
|
---|
7649 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
7650 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
7651 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
7652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
7653 | cat >>confdefs.h <<_ACEOF
|
---|
7654 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
7655 | _ACEOF
|
---|
7656 |
|
---|
7657 | ac_header_dirent=$ac_hdr; break
|
---|
7658 | fi
|
---|
7659 |
|
---|
7660 | done
|
---|
7661 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
7662 | if test $ac_header_dirent = dirent.h; then
|
---|
7663 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
7664 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
7665 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
7666 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7667 | else
|
---|
7668 | ac_func_search_save_LIBS=$LIBS
|
---|
7669 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7670 | /* confdefs.h. */
|
---|
7671 | _ACEOF
|
---|
7672 | cat confdefs.h >>conftest.$ac_ext
|
---|
7673 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7674 | /* end confdefs.h. */
|
---|
7675 |
|
---|
7676 | /* Override any GCC internal prototype to avoid an error.
|
---|
7677 | Use char because int might match the return type of a GCC
|
---|
7678 | builtin and then its argument prototype would still apply. */
|
---|
7679 | #ifdef __cplusplus
|
---|
7680 | extern "C"
|
---|
7681 | #endif
|
---|
7682 | char opendir ();
|
---|
7683 | int
|
---|
7684 | main ()
|
---|
7685 | {
|
---|
7686 | return opendir ();
|
---|
7687 | ;
|
---|
7688 | return 0;
|
---|
7689 | }
|
---|
7690 | _ACEOF
|
---|
7691 | for ac_lib in '' dir; do
|
---|
7692 | if test -z "$ac_lib"; then
|
---|
7693 | ac_res="none required"
|
---|
7694 | else
|
---|
7695 | ac_res=-l$ac_lib
|
---|
7696 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
7697 | fi
|
---|
7698 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7699 | if { (ac_try="$ac_link"
|
---|
7700 | case "(($ac_try" in
|
---|
7701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7702 | *) ac_try_echo=$ac_try;;
|
---|
7703 | esac
|
---|
7704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7705 | (eval "$ac_link") 2>conftest.er1
|
---|
7706 | ac_status=$?
|
---|
7707 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7708 | rm -f conftest.er1
|
---|
7709 | cat conftest.err >&5
|
---|
7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7711 | (exit $ac_status); } && {
|
---|
7712 | test -z "$ac_c_werror_flag" ||
|
---|
7713 | test ! -s conftest.err
|
---|
7714 | } && test -s conftest$ac_exeext &&
|
---|
7715 | $as_test_x conftest$ac_exeext; then
|
---|
7716 | ac_cv_search_opendir=$ac_res
|
---|
7717 | else
|
---|
7718 | echo "$as_me: failed program was:" >&5
|
---|
7719 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7720 |
|
---|
7721 |
|
---|
7722 | fi
|
---|
7723 |
|
---|
7724 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7725 | conftest$ac_exeext
|
---|
7726 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
7727 | break
|
---|
7728 | fi
|
---|
7729 | done
|
---|
7730 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
7731 | :
|
---|
7732 | else
|
---|
7733 | ac_cv_search_opendir=no
|
---|
7734 | fi
|
---|
7735 | rm conftest.$ac_ext
|
---|
7736 | LIBS=$ac_func_search_save_LIBS
|
---|
7737 | fi
|
---|
7738 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
7739 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
7740 | ac_res=$ac_cv_search_opendir
|
---|
7741 | if test "$ac_res" != no; then
|
---|
7742 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
7743 |
|
---|
7744 | fi
|
---|
7745 |
|
---|
7746 | else
|
---|
7747 | { echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
7748 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
|
---|
7749 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
7750 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7751 | else
|
---|
7752 | ac_func_search_save_LIBS=$LIBS
|
---|
7753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7754 | /* confdefs.h. */
|
---|
7755 | _ACEOF
|
---|
7756 | cat confdefs.h >>conftest.$ac_ext
|
---|
7757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7758 | /* end confdefs.h. */
|
---|
7759 |
|
---|
7760 | /* Override any GCC internal prototype to avoid an error.
|
---|
7761 | Use char because int might match the return type of a GCC
|
---|
7762 | builtin and then its argument prototype would still apply. */
|
---|
7763 | #ifdef __cplusplus
|
---|
7764 | extern "C"
|
---|
7765 | #endif
|
---|
7766 | char opendir ();
|
---|
7767 | int
|
---|
7768 | main ()
|
---|
7769 | {
|
---|
7770 | return opendir ();
|
---|
7771 | ;
|
---|
7772 | return 0;
|
---|
7773 | }
|
---|
7774 | _ACEOF
|
---|
7775 | for ac_lib in '' x; do
|
---|
7776 | if test -z "$ac_lib"; then
|
---|
7777 | ac_res="none required"
|
---|
7778 | else
|
---|
7779 | ac_res=-l$ac_lib
|
---|
7780 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
7781 | fi
|
---|
7782 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7783 | if { (ac_try="$ac_link"
|
---|
7784 | case "(($ac_try" in
|
---|
7785 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7786 | *) ac_try_echo=$ac_try;;
|
---|
7787 | esac
|
---|
7788 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7789 | (eval "$ac_link") 2>conftest.er1
|
---|
7790 | ac_status=$?
|
---|
7791 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7792 | rm -f conftest.er1
|
---|
7793 | cat conftest.err >&5
|
---|
7794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7795 | (exit $ac_status); } && {
|
---|
7796 | test -z "$ac_c_werror_flag" ||
|
---|
7797 | test ! -s conftest.err
|
---|
7798 | } && test -s conftest$ac_exeext &&
|
---|
7799 | $as_test_x conftest$ac_exeext; then
|
---|
7800 | ac_cv_search_opendir=$ac_res
|
---|
7801 | else
|
---|
7802 | echo "$as_me: failed program was:" >&5
|
---|
7803 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7804 |
|
---|
7805 |
|
---|
7806 | fi
|
---|
7807 |
|
---|
7808 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7809 | conftest$ac_exeext
|
---|
7810 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
7811 | break
|
---|
7812 | fi
|
---|
7813 | done
|
---|
7814 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
7815 | :
|
---|
7816 | else
|
---|
7817 | ac_cv_search_opendir=no
|
---|
7818 | fi
|
---|
7819 | rm conftest.$ac_ext
|
---|
7820 | LIBS=$ac_func_search_save_LIBS
|
---|
7821 | fi
|
---|
7822 | { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
7823 | echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
|
---|
7824 | ac_res=$ac_cv_search_opendir
|
---|
7825 | if test "$ac_res" != no; then
|
---|
7826 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
|
---|
7827 |
|
---|
7828 | fi
|
---|
7829 |
|
---|
7830 | fi
|
---|
7831 |
|
---|
7832 | dirfd_headers='
|
---|
7833 | #if HAVE_DIRENT_H
|
---|
7834 | # include <dirent.h>
|
---|
7835 | #else /* not HAVE_DIRENT_H */
|
---|
7836 | # define dirent direct
|
---|
7837 | # if HAVE_SYS_NDIR_H
|
---|
7838 | # include <sys/ndir.h>
|
---|
7839 | # endif /* HAVE_SYS_NDIR_H */
|
---|
7840 | # if HAVE_SYS_DIR_H
|
---|
7841 | # include <sys/dir.h>
|
---|
7842 | # endif /* HAVE_SYS_DIR_H */
|
---|
7843 | # if HAVE_NDIR_H
|
---|
7844 | # include <ndir.h>
|
---|
7845 | # endif /* HAVE_NDIR_H */
|
---|
7846 | #endif /* HAVE_DIRENT_H */
|
---|
7847 | '
|
---|
7848 |
|
---|
7849 | for ac_func in dirfd
|
---|
7850 | do
|
---|
7851 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
7852 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
7853 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
7854 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
7855 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7856 | else
|
---|
7857 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7858 | /* confdefs.h. */
|
---|
7859 | _ACEOF
|
---|
7860 | cat confdefs.h >>conftest.$ac_ext
|
---|
7861 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7862 | /* end confdefs.h. */
|
---|
7863 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
7864 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
7865 | #define $ac_func innocuous_$ac_func
|
---|
7866 |
|
---|
7867 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7868 | which can conflict with char $ac_func (); below.
|
---|
7869 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
7870 | <limits.h> exists even on freestanding compilers. */
|
---|
7871 |
|
---|
7872 | #ifdef __STDC__
|
---|
7873 | # include <limits.h>
|
---|
7874 | #else
|
---|
7875 | # include <assert.h>
|
---|
7876 | #endif
|
---|
7877 |
|
---|
7878 | #undef $ac_func
|
---|
7879 |
|
---|
7880 | /* Override any GCC internal prototype to avoid an error.
|
---|
7881 | Use char because int might match the return type of a GCC
|
---|
7882 | builtin and then its argument prototype would still apply. */
|
---|
7883 | #ifdef __cplusplus
|
---|
7884 | extern "C"
|
---|
7885 | #endif
|
---|
7886 | char $ac_func ();
|
---|
7887 | /* The GNU C library defines this for functions which it implements
|
---|
7888 | to always fail with ENOSYS. Some functions are actually named
|
---|
7889 | something starting with __ and the normal name is an alias. */
|
---|
7890 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
7891 | choke me
|
---|
7892 | #endif
|
---|
7893 |
|
---|
7894 | int
|
---|
7895 | main ()
|
---|
7896 | {
|
---|
7897 | return $ac_func ();
|
---|
7898 | ;
|
---|
7899 | return 0;
|
---|
7900 | }
|
---|
7901 | _ACEOF
|
---|
7902 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7903 | if { (ac_try="$ac_link"
|
---|
7904 | case "(($ac_try" in
|
---|
7905 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7906 | *) ac_try_echo=$ac_try;;
|
---|
7907 | esac
|
---|
7908 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7909 | (eval "$ac_link") 2>conftest.er1
|
---|
7910 | ac_status=$?
|
---|
7911 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7912 | rm -f conftest.er1
|
---|
7913 | cat conftest.err >&5
|
---|
7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7915 | (exit $ac_status); } && {
|
---|
7916 | test -z "$ac_c_werror_flag" ||
|
---|
7917 | test ! -s conftest.err
|
---|
7918 | } && test -s conftest$ac_exeext &&
|
---|
7919 | $as_test_x conftest$ac_exeext; then
|
---|
7920 | eval "$as_ac_var=yes"
|
---|
7921 | else
|
---|
7922 | echo "$as_me: failed program was:" >&5
|
---|
7923 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7924 |
|
---|
7925 | eval "$as_ac_var=no"
|
---|
7926 | fi
|
---|
7927 |
|
---|
7928 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
7929 | conftest$ac_exeext conftest.$ac_ext
|
---|
7930 | fi
|
---|
7931 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
7932 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
7933 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
7934 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
7935 | cat >>confdefs.h <<_ACEOF
|
---|
7936 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
7937 | _ACEOF
|
---|
7938 |
|
---|
7939 | fi
|
---|
7940 | done
|
---|
7941 |
|
---|
7942 | { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
|
---|
7943 | echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
|
---|
7944 | if test "${ac_cv_have_decl_dirfd+set}" = set; then
|
---|
7945 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7946 | else
|
---|
7947 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7948 | /* confdefs.h. */
|
---|
7949 | _ACEOF
|
---|
7950 | cat confdefs.h >>conftest.$ac_ext
|
---|
7951 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7952 | /* end confdefs.h. */
|
---|
7953 | $dirfd_headers
|
---|
7954 |
|
---|
7955 | int
|
---|
7956 | main ()
|
---|
7957 | {
|
---|
7958 | #ifndef dirfd
|
---|
7959 | (void) dirfd;
|
---|
7960 | #endif
|
---|
7961 |
|
---|
7962 | ;
|
---|
7963 | return 0;
|
---|
7964 | }
|
---|
7965 | _ACEOF
|
---|
7966 | rm -f conftest.$ac_objext
|
---|
7967 | if { (ac_try="$ac_compile"
|
---|
7968 | case "(($ac_try" in
|
---|
7969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
7970 | *) ac_try_echo=$ac_try;;
|
---|
7971 | esac
|
---|
7972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
7973 | (eval "$ac_compile") 2>conftest.er1
|
---|
7974 | ac_status=$?
|
---|
7975 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7976 | rm -f conftest.er1
|
---|
7977 | cat conftest.err >&5
|
---|
7978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7979 | (exit $ac_status); } && {
|
---|
7980 | test -z "$ac_c_werror_flag" ||
|
---|
7981 | test ! -s conftest.err
|
---|
7982 | } && test -s conftest.$ac_objext; then
|
---|
7983 | ac_cv_have_decl_dirfd=yes
|
---|
7984 | else
|
---|
7985 | echo "$as_me: failed program was:" >&5
|
---|
7986 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7987 |
|
---|
7988 | ac_cv_have_decl_dirfd=no
|
---|
7989 | fi
|
---|
7990 |
|
---|
7991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7992 | fi
|
---|
7993 | { echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
|
---|
7994 | echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
|
---|
7995 | if test $ac_cv_have_decl_dirfd = yes; then
|
---|
7996 |
|
---|
7997 | cat >>confdefs.h <<_ACEOF
|
---|
7998 | #define HAVE_DECL_DIRFD 1
|
---|
7999 | _ACEOF
|
---|
8000 |
|
---|
8001 |
|
---|
8002 | else
|
---|
8003 | cat >>confdefs.h <<_ACEOF
|
---|
8004 | #define HAVE_DECL_DIRFD 0
|
---|
8005 | _ACEOF
|
---|
8006 |
|
---|
8007 |
|
---|
8008 | fi
|
---|
8009 |
|
---|
8010 |
|
---|
8011 |
|
---|
8012 | { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
|
---|
8013 | echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
|
---|
8014 | if test "${jm_cv_func_dirfd_macro+set}" = set; then
|
---|
8015 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8016 | else
|
---|
8017 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8018 | /* confdefs.h. */
|
---|
8019 | _ACEOF
|
---|
8020 | cat confdefs.h >>conftest.$ac_ext
|
---|
8021 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8022 | /* end confdefs.h. */
|
---|
8023 | $dirfd_headers
|
---|
8024 | #ifdef dirfd
|
---|
8025 | dirent_header_defines_dirfd
|
---|
8026 | #endif
|
---|
8027 | _ACEOF
|
---|
8028 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
8029 | $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
|
---|
8030 | jm_cv_func_dirfd_macro=yes
|
---|
8031 | else
|
---|
8032 | jm_cv_func_dirfd_macro=no
|
---|
8033 | fi
|
---|
8034 | rm -f conftest*
|
---|
8035 |
|
---|
8036 | fi
|
---|
8037 | { echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
|
---|
8038 | echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6; }
|
---|
8039 |
|
---|
8040 | # Use the replacement only if we have no function, macro,
|
---|
8041 | # or declaration with that name.
|
---|
8042 | if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
|
---|
8043 | = no,no,no; then
|
---|
8044 |
|
---|
8045 | for ac_func in dirfd
|
---|
8046 | do
|
---|
8047 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
8048 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
8049 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
8050 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8051 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8052 | else
|
---|
8053 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8054 | /* confdefs.h. */
|
---|
8055 | _ACEOF
|
---|
8056 | cat confdefs.h >>conftest.$ac_ext
|
---|
8057 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8058 | /* end confdefs.h. */
|
---|
8059 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
8060 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
8061 | #define $ac_func innocuous_$ac_func
|
---|
8062 |
|
---|
8063 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
8064 | which can conflict with char $ac_func (); below.
|
---|
8065 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
8066 | <limits.h> exists even on freestanding compilers. */
|
---|
8067 |
|
---|
8068 | #ifdef __STDC__
|
---|
8069 | # include <limits.h>
|
---|
8070 | #else
|
---|
8071 | # include <assert.h>
|
---|
8072 | #endif
|
---|
8073 |
|
---|
8074 | #undef $ac_func
|
---|
8075 |
|
---|
8076 | /* Override any GCC internal prototype to avoid an error.
|
---|
8077 | Use char because int might match the return type of a GCC
|
---|
8078 | builtin and then its argument prototype would still apply. */
|
---|
8079 | #ifdef __cplusplus
|
---|
8080 | extern "C"
|
---|
8081 | #endif
|
---|
8082 | char $ac_func ();
|
---|
8083 | /* The GNU C library defines this for functions which it implements
|
---|
8084 | to always fail with ENOSYS. Some functions are actually named
|
---|
8085 | something starting with __ and the normal name is an alias. */
|
---|
8086 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
8087 | choke me
|
---|
8088 | #endif
|
---|
8089 |
|
---|
8090 | int
|
---|
8091 | main ()
|
---|
8092 | {
|
---|
8093 | return $ac_func ();
|
---|
8094 | ;
|
---|
8095 | return 0;
|
---|
8096 | }
|
---|
8097 | _ACEOF
|
---|
8098 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8099 | if { (ac_try="$ac_link"
|
---|
8100 | case "(($ac_try" in
|
---|
8101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8102 | *) ac_try_echo=$ac_try;;
|
---|
8103 | esac
|
---|
8104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8105 | (eval "$ac_link") 2>conftest.er1
|
---|
8106 | ac_status=$?
|
---|
8107 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8108 | rm -f conftest.er1
|
---|
8109 | cat conftest.err >&5
|
---|
8110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8111 | (exit $ac_status); } && {
|
---|
8112 | test -z "$ac_c_werror_flag" ||
|
---|
8113 | test ! -s conftest.err
|
---|
8114 | } && test -s conftest$ac_exeext &&
|
---|
8115 | $as_test_x conftest$ac_exeext; then
|
---|
8116 | eval "$as_ac_var=yes"
|
---|
8117 | else
|
---|
8118 | echo "$as_me: failed program was:" >&5
|
---|
8119 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8120 |
|
---|
8121 | eval "$as_ac_var=no"
|
---|
8122 | fi
|
---|
8123 |
|
---|
8124 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
8125 | conftest$ac_exeext conftest.$ac_ext
|
---|
8126 | fi
|
---|
8127 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
8128 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
8129 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
8130 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
8131 | cat >>confdefs.h <<_ACEOF
|
---|
8132 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
8133 | _ACEOF
|
---|
8134 |
|
---|
8135 | else
|
---|
8136 | case " $LIBOBJS " in
|
---|
8137 | *" $ac_func.$ac_objext "* ) ;;
|
---|
8138 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
|
---|
8139 | ;;
|
---|
8140 | esac
|
---|
8141 |
|
---|
8142 | fi
|
---|
8143 | done
|
---|
8144 |
|
---|
8145 |
|
---|
8146 | { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
|
---|
8147 | echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
|
---|
8148 | if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
|
---|
8149 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8150 | else
|
---|
8151 |
|
---|
8152 | dirfd_save_CFLAGS=$CFLAGS
|
---|
8153 | for ac_expr in d_fd dd_fd; do
|
---|
8154 |
|
---|
8155 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
|
---|
8156 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8157 | /* confdefs.h. */
|
---|
8158 | _ACEOF
|
---|
8159 | cat confdefs.h >>conftest.$ac_ext
|
---|
8160 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8161 | /* end confdefs.h. */
|
---|
8162 | $dirfd_headers
|
---|
8163 |
|
---|
8164 | int
|
---|
8165 | main ()
|
---|
8166 | {
|
---|
8167 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
|
---|
8168 | ;
|
---|
8169 | return 0;
|
---|
8170 | }
|
---|
8171 | _ACEOF
|
---|
8172 | rm -f conftest.$ac_objext
|
---|
8173 | if { (ac_try="$ac_compile"
|
---|
8174 | case "(($ac_try" in
|
---|
8175 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8176 | *) ac_try_echo=$ac_try;;
|
---|
8177 | esac
|
---|
8178 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8179 | (eval "$ac_compile") 2>conftest.er1
|
---|
8180 | ac_status=$?
|
---|
8181 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8182 | rm -f conftest.er1
|
---|
8183 | cat conftest.err >&5
|
---|
8184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8185 | (exit $ac_status); } && {
|
---|
8186 | test -z "$ac_c_werror_flag" ||
|
---|
8187 | test ! -s conftest.err
|
---|
8188 | } && test -s conftest.$ac_objext; then
|
---|
8189 | dir_fd_found=yes
|
---|
8190 |
|
---|
8191 | else
|
---|
8192 | echo "$as_me: failed program was:" >&5
|
---|
8193 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8194 |
|
---|
8195 |
|
---|
8196 | fi
|
---|
8197 |
|
---|
8198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8199 | CFLAGS=$dirfd_save_CFLAGS
|
---|
8200 | test "$dir_fd_found" = yes && break
|
---|
8201 | done
|
---|
8202 | test "$dir_fd_found" = yes || ac_expr=no_such_member
|
---|
8203 |
|
---|
8204 | gl_cv_sys_dir_fd_member_name=$ac_expr
|
---|
8205 |
|
---|
8206 |
|
---|
8207 | fi
|
---|
8208 | { echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
|
---|
8209 | echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
|
---|
8210 | if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
|
---|
8211 |
|
---|
8212 | cat >>confdefs.h <<_ACEOF
|
---|
8213 | #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
|
---|
8214 | _ACEOF
|
---|
8215 |
|
---|
8216 | fi
|
---|
8217 |
|
---|
8218 |
|
---|
8219 | fi
|
---|
8220 |
|
---|
8221 |
|
---|
8222 | #
|
---|
8223 | # iconv
|
---|
8224 | #
|
---|
8225 |
|
---|
8226 |
|
---|
8227 |
|
---|
8228 |
|
---|
8229 |
|
---|
8230 |
|
---|
8231 |
|
---|
8232 | # Check whether --with-libiconv-prefix was given.
|
---|
8233 | if test "${with_libiconv_prefix+set}" = set; then
|
---|
8234 | withval=$with_libiconv_prefix;
|
---|
8235 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
8236 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
8237 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
---|
8238 | done
|
---|
8239 |
|
---|
8240 | fi
|
---|
8241 |
|
---|
8242 | if test "${ac_cv_header_iconv_h+set}" = set; then
|
---|
8243 | { echo "$as_me:$LINENO: checking for iconv.h" >&5
|
---|
8244 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
|
---|
8245 | if test "${ac_cv_header_iconv_h+set}" = set; then
|
---|
8246 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8247 | fi
|
---|
8248 | { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
|
---|
8249 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
|
---|
8250 | else
|
---|
8251 | # Is the header compilable?
|
---|
8252 | { echo "$as_me:$LINENO: checking iconv.h usability" >&5
|
---|
8253 | echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
|
---|
8254 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8255 | /* confdefs.h. */
|
---|
8256 | _ACEOF
|
---|
8257 | cat confdefs.h >>conftest.$ac_ext
|
---|
8258 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8259 | /* end confdefs.h. */
|
---|
8260 | $ac_includes_default
|
---|
8261 | #include <iconv.h>
|
---|
8262 | _ACEOF
|
---|
8263 | rm -f conftest.$ac_objext
|
---|
8264 | if { (ac_try="$ac_compile"
|
---|
8265 | case "(($ac_try" in
|
---|
8266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8267 | *) ac_try_echo=$ac_try;;
|
---|
8268 | esac
|
---|
8269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8270 | (eval "$ac_compile") 2>conftest.er1
|
---|
8271 | ac_status=$?
|
---|
8272 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8273 | rm -f conftest.er1
|
---|
8274 | cat conftest.err >&5
|
---|
8275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8276 | (exit $ac_status); } && {
|
---|
8277 | test -z "$ac_c_werror_flag" ||
|
---|
8278 | test ! -s conftest.err
|
---|
8279 | } && test -s conftest.$ac_objext; then
|
---|
8280 | ac_header_compiler=yes
|
---|
8281 | else
|
---|
8282 | echo "$as_me: failed program was:" >&5
|
---|
8283 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8284 |
|
---|
8285 | ac_header_compiler=no
|
---|
8286 | fi
|
---|
8287 |
|
---|
8288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8289 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8290 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
8291 |
|
---|
8292 | # Is the header present?
|
---|
8293 | { echo "$as_me:$LINENO: checking iconv.h presence" >&5
|
---|
8294 | echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
|
---|
8295 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8296 | /* confdefs.h. */
|
---|
8297 | _ACEOF
|
---|
8298 | cat confdefs.h >>conftest.$ac_ext
|
---|
8299 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8300 | /* end confdefs.h. */
|
---|
8301 | #include <iconv.h>
|
---|
8302 | _ACEOF
|
---|
8303 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
8304 | case "(($ac_try" in
|
---|
8305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8306 | *) ac_try_echo=$ac_try;;
|
---|
8307 | esac
|
---|
8308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8309 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
8310 | ac_status=$?
|
---|
8311 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8312 | rm -f conftest.er1
|
---|
8313 | cat conftest.err >&5
|
---|
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8315 | (exit $ac_status); } >/dev/null && {
|
---|
8316 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
8317 | test ! -s conftest.err
|
---|
8318 | }; then
|
---|
8319 | ac_header_preproc=yes
|
---|
8320 | else
|
---|
8321 | echo "$as_me: failed program was:" >&5
|
---|
8322 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8323 |
|
---|
8324 | ac_header_preproc=no
|
---|
8325 | fi
|
---|
8326 |
|
---|
8327 | rm -f conftest.err conftest.$ac_ext
|
---|
8328 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8329 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
8330 |
|
---|
8331 | # So? What about this header?
|
---|
8332 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8333 | yes:no: )
|
---|
8334 | { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8335 | echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8336 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
|
---|
8337 | echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
|
---|
8338 | ac_header_preproc=yes
|
---|
8339 | ;;
|
---|
8340 | no:yes:* )
|
---|
8341 | { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
|
---|
8342 | echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
|
---|
8343 | { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
|
---|
8344 | echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
|
---|
8345 | { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
|
---|
8346 | echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
|
---|
8347 | { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
8348 | echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
8349 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
|
---|
8350 | echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
|
---|
8351 | { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
|
---|
8352 | echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
|
---|
8353 |
|
---|
8354 | ;;
|
---|
8355 | esac
|
---|
8356 | { echo "$as_me:$LINENO: checking for iconv.h" >&5
|
---|
8357 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
|
---|
8358 | if test "${ac_cv_header_iconv_h+set}" = set; then
|
---|
8359 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8360 | else
|
---|
8361 | ac_cv_header_iconv_h=$ac_header_preproc
|
---|
8362 | fi
|
---|
8363 | { echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
|
---|
8364 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
|
---|
8365 |
|
---|
8366 | fi
|
---|
8367 | if test $ac_cv_header_iconv_h = yes; then
|
---|
8368 | cat >>confdefs.h <<\_ACEOF
|
---|
8369 | #define HAVE_ICONV_H 1
|
---|
8370 | _ACEOF
|
---|
8371 |
|
---|
8372 | fi
|
---|
8373 |
|
---|
8374 |
|
---|
8375 |
|
---|
8376 | { echo "$as_me:$LINENO: checking for iconv" >&5
|
---|
8377 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
|
---|
8378 | if test "${am_cv_func_iconv+set}" = set; then
|
---|
8379 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8380 | else
|
---|
8381 |
|
---|
8382 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
8383 | am_cv_lib_iconv=no
|
---|
8384 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8385 | /* confdefs.h. */
|
---|
8386 | _ACEOF
|
---|
8387 | cat confdefs.h >>conftest.$ac_ext
|
---|
8388 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8389 | /* end confdefs.h. */
|
---|
8390 | #include <stdlib.h>
|
---|
8391 | #include <iconv.h>
|
---|
8392 | int
|
---|
8393 | main ()
|
---|
8394 | {
|
---|
8395 | iconv_t cd = iconv_open("","");
|
---|
8396 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
8397 | iconv_close(cd);
|
---|
8398 | ;
|
---|
8399 | return 0;
|
---|
8400 | }
|
---|
8401 | _ACEOF
|
---|
8402 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8403 | if { (ac_try="$ac_link"
|
---|
8404 | case "(($ac_try" in
|
---|
8405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8406 | *) ac_try_echo=$ac_try;;
|
---|
8407 | esac
|
---|
8408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8409 | (eval "$ac_link") 2>conftest.er1
|
---|
8410 | ac_status=$?
|
---|
8411 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8412 | rm -f conftest.er1
|
---|
8413 | cat conftest.err >&5
|
---|
8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8415 | (exit $ac_status); } && {
|
---|
8416 | test -z "$ac_c_werror_flag" ||
|
---|
8417 | test ! -s conftest.err
|
---|
8418 | } && test -s conftest$ac_exeext &&
|
---|
8419 | $as_test_x conftest$ac_exeext; then
|
---|
8420 | am_cv_func_iconv=yes
|
---|
8421 | else
|
---|
8422 | echo "$as_me: failed program was:" >&5
|
---|
8423 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8424 |
|
---|
8425 |
|
---|
8426 | fi
|
---|
8427 |
|
---|
8428 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
8429 | conftest$ac_exeext conftest.$ac_ext
|
---|
8430 | if test "$am_cv_func_iconv" != yes; then
|
---|
8431 | am_save_LIBS="$LIBS"
|
---|
8432 | LIBS="$LIBS -liconv"
|
---|
8433 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8434 | /* confdefs.h. */
|
---|
8435 | _ACEOF
|
---|
8436 | cat confdefs.h >>conftest.$ac_ext
|
---|
8437 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8438 | /* end confdefs.h. */
|
---|
8439 | #include <stdlib.h>
|
---|
8440 | #include <iconv.h>
|
---|
8441 | int
|
---|
8442 | main ()
|
---|
8443 | {
|
---|
8444 | iconv_t cd = iconv_open("","");
|
---|
8445 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
8446 | iconv_close(cd);
|
---|
8447 | ;
|
---|
8448 | return 0;
|
---|
8449 | }
|
---|
8450 | _ACEOF
|
---|
8451 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8452 | if { (ac_try="$ac_link"
|
---|
8453 | case "(($ac_try" in
|
---|
8454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8455 | *) ac_try_echo=$ac_try;;
|
---|
8456 | esac
|
---|
8457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8458 | (eval "$ac_link") 2>conftest.er1
|
---|
8459 | ac_status=$?
|
---|
8460 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8461 | rm -f conftest.er1
|
---|
8462 | cat conftest.err >&5
|
---|
8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8464 | (exit $ac_status); } && {
|
---|
8465 | test -z "$ac_c_werror_flag" ||
|
---|
8466 | test ! -s conftest.err
|
---|
8467 | } && test -s conftest$ac_exeext &&
|
---|
8468 | $as_test_x conftest$ac_exeext; then
|
---|
8469 | am_cv_lib_iconv=yes
|
---|
8470 | am_cv_func_iconv=yes
|
---|
8471 | else
|
---|
8472 | echo "$as_me: failed program was:" >&5
|
---|
8473 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8474 |
|
---|
8475 |
|
---|
8476 | fi
|
---|
8477 |
|
---|
8478 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
8479 | conftest$ac_exeext conftest.$ac_ext
|
---|
8480 | LIBS="$am_save_LIBS"
|
---|
8481 | fi
|
---|
8482 |
|
---|
8483 | fi
|
---|
8484 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
|
---|
8485 | echo "${ECHO_T}$am_cv_func_iconv" >&6; }
|
---|
8486 | if test "$am_cv_func_iconv" = yes; then
|
---|
8487 |
|
---|
8488 | cat >>confdefs.h <<\_ACEOF
|
---|
8489 | #define HAVE_ICONV 1
|
---|
8490 | _ACEOF
|
---|
8491 |
|
---|
8492 | { echo "$as_me:$LINENO: checking for iconv declaration" >&5
|
---|
8493 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
|
---|
8494 | if test "${am_cv_proto_iconv+set}" = set; then
|
---|
8495 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8496 | else
|
---|
8497 |
|
---|
8498 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8499 | /* confdefs.h. */
|
---|
8500 | _ACEOF
|
---|
8501 | cat confdefs.h >>conftest.$ac_ext
|
---|
8502 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8503 | /* end confdefs.h. */
|
---|
8504 |
|
---|
8505 | #include <stdlib.h>
|
---|
8506 | #include <iconv.h>
|
---|
8507 | extern
|
---|
8508 | #ifdef __cplusplus
|
---|
8509 | "C"
|
---|
8510 | #endif
|
---|
8511 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
8512 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
8513 | #else
|
---|
8514 | size_t iconv();
|
---|
8515 | #endif
|
---|
8516 |
|
---|
8517 | int
|
---|
8518 | main ()
|
---|
8519 | {
|
---|
8520 |
|
---|
8521 | ;
|
---|
8522 | return 0;
|
---|
8523 | }
|
---|
8524 | _ACEOF
|
---|
8525 | rm -f conftest.$ac_objext
|
---|
8526 | if { (ac_try="$ac_compile"
|
---|
8527 | case "(($ac_try" in
|
---|
8528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8529 | *) ac_try_echo=$ac_try;;
|
---|
8530 | esac
|
---|
8531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8532 | (eval "$ac_compile") 2>conftest.er1
|
---|
8533 | ac_status=$?
|
---|
8534 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8535 | rm -f conftest.er1
|
---|
8536 | cat conftest.err >&5
|
---|
8537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8538 | (exit $ac_status); } && {
|
---|
8539 | test -z "$ac_c_werror_flag" ||
|
---|
8540 | test ! -s conftest.err
|
---|
8541 | } && test -s conftest.$ac_objext; then
|
---|
8542 | am_cv_proto_iconv_arg1=""
|
---|
8543 | else
|
---|
8544 | echo "$as_me: failed program was:" >&5
|
---|
8545 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8546 |
|
---|
8547 | am_cv_proto_iconv_arg1="const"
|
---|
8548 | fi
|
---|
8549 |
|
---|
8550 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8551 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
|
---|
8552 | fi
|
---|
8553 |
|
---|
8554 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
8555 | { echo "$as_me:$LINENO: result: ${ac_t:-
|
---|
8556 | }$am_cv_proto_iconv" >&5
|
---|
8557 | echo "${ECHO_T}${ac_t:-
|
---|
8558 | }$am_cv_proto_iconv" >&6; }
|
---|
8559 |
|
---|
8560 | cat >>confdefs.h <<_ACEOF
|
---|
8561 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
8562 | _ACEOF
|
---|
8563 |
|
---|
8564 | fi
|
---|
8565 | LIBICONV=
|
---|
8566 | if test "$am_cv_lib_iconv" = yes; then
|
---|
8567 | LIBICONV="-liconv"
|
---|
8568 | fi
|
---|
8569 |
|
---|
8570 |
|
---|
8571 | LIBS="$LIBS $LIBICONV"
|
---|
8572 |
|
---|
8573 | #
|
---|
8574 | # socklen_t
|
---|
8575 | # from curl
|
---|
8576 |
|
---|
8577 |
|
---|
8578 |
|
---|
8579 |
|
---|
8580 | { echo "$as_me:$LINENO: checking for socklen_t" >&5
|
---|
8581 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
|
---|
8582 | if test "${ac_cv_type_socklen_t+set}" = set; then
|
---|
8583 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8584 | else
|
---|
8585 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8586 | /* confdefs.h. */
|
---|
8587 | _ACEOF
|
---|
8588 | cat confdefs.h >>conftest.$ac_ext
|
---|
8589 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8590 | /* end confdefs.h. */
|
---|
8591 | #include <sys/types.h>
|
---|
8592 | #include <sys/socket.h>
|
---|
8593 |
|
---|
8594 | typedef socklen_t ac__type_new_;
|
---|
8595 | int
|
---|
8596 | main ()
|
---|
8597 | {
|
---|
8598 | if ((ac__type_new_ *) 0)
|
---|
8599 | return 0;
|
---|
8600 | if (sizeof (ac__type_new_))
|
---|
8601 | return 0;
|
---|
8602 | ;
|
---|
8603 | return 0;
|
---|
8604 | }
|
---|
8605 | _ACEOF
|
---|
8606 | rm -f conftest.$ac_objext
|
---|
8607 | if { (ac_try="$ac_compile"
|
---|
8608 | case "(($ac_try" in
|
---|
8609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8610 | *) ac_try_echo=$ac_try;;
|
---|
8611 | esac
|
---|
8612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8613 | (eval "$ac_compile") 2>conftest.er1
|
---|
8614 | ac_status=$?
|
---|
8615 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8616 | rm -f conftest.er1
|
---|
8617 | cat conftest.err >&5
|
---|
8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8619 | (exit $ac_status); } && {
|
---|
8620 | test -z "$ac_c_werror_flag" ||
|
---|
8621 | test ! -s conftest.err
|
---|
8622 | } && test -s conftest.$ac_objext; then
|
---|
8623 | ac_cv_type_socklen_t=yes
|
---|
8624 | else
|
---|
8625 | echo "$as_me: failed program was:" >&5
|
---|
8626 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8627 |
|
---|
8628 | ac_cv_type_socklen_t=no
|
---|
8629 | fi
|
---|
8630 |
|
---|
8631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8632 | fi
|
---|
8633 | { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
|
---|
8634 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
|
---|
8635 | if test $ac_cv_type_socklen_t = yes; then
|
---|
8636 | :
|
---|
8637 | else
|
---|
8638 |
|
---|
8639 | { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
|
---|
8640 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
|
---|
8641 | if test "${socklen_t_equiv+set}" = set; then
|
---|
8642 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8643 | else
|
---|
8644 |
|
---|
8645 | # Systems have either "struct sockaddr *" or
|
---|
8646 | # "void *" as the second argument to getpeername
|
---|
8647 | socklen_t_equiv=
|
---|
8648 | for arg2 in "struct sockaddr" void; do
|
---|
8649 | for t in int size_t unsigned long "unsigned long"; do
|
---|
8650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8651 | /* confdefs.h. */
|
---|
8652 | _ACEOF
|
---|
8653 | cat confdefs.h >>conftest.$ac_ext
|
---|
8654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8655 | /* end confdefs.h. */
|
---|
8656 |
|
---|
8657 | #include <sys/types.h>
|
---|
8658 | #include <sys/socket.h>
|
---|
8659 |
|
---|
8660 | int getpeername (int, $arg2 *, $t *);
|
---|
8661 |
|
---|
8662 | int
|
---|
8663 | main ()
|
---|
8664 | {
|
---|
8665 |
|
---|
8666 | $t len;
|
---|
8667 | getpeername(0,0,&len);
|
---|
8668 |
|
---|
8669 | ;
|
---|
8670 | return 0;
|
---|
8671 | }
|
---|
8672 | _ACEOF
|
---|
8673 | rm -f conftest.$ac_objext
|
---|
8674 | if { (ac_try="$ac_compile"
|
---|
8675 | case "(($ac_try" in
|
---|
8676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8677 | *) ac_try_echo=$ac_try;;
|
---|
8678 | esac
|
---|
8679 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8680 | (eval "$ac_compile") 2>conftest.er1
|
---|
8681 | ac_status=$?
|
---|
8682 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8683 | rm -f conftest.er1
|
---|
8684 | cat conftest.err >&5
|
---|
8685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8686 | (exit $ac_status); } && {
|
---|
8687 | test -z "$ac_c_werror_flag" ||
|
---|
8688 | test ! -s conftest.err
|
---|
8689 | } && test -s conftest.$ac_objext; then
|
---|
8690 |
|
---|
8691 | socklen_t_equiv="$t"
|
---|
8692 | break
|
---|
8693 |
|
---|
8694 | else
|
---|
8695 | echo "$as_me: failed program was:" >&5
|
---|
8696 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8697 |
|
---|
8698 |
|
---|
8699 | fi
|
---|
8700 |
|
---|
8701 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8702 | done
|
---|
8703 | done
|
---|
8704 |
|
---|
8705 | if test "x$socklen_t_equiv" = x; then
|
---|
8706 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
|
---|
8707 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
|
---|
8708 | { (exit 1); exit 1; }; }
|
---|
8709 | fi
|
---|
8710 |
|
---|
8711 | fi
|
---|
8712 |
|
---|
8713 | { echo "$as_me:$LINENO: result: $socklen_t_equiv" >&5
|
---|
8714 | echo "${ECHO_T}$socklen_t_equiv" >&6; }
|
---|
8715 |
|
---|
8716 | cat >>confdefs.h <<_ACEOF
|
---|
8717 | #define socklen_t $socklen_t_equiv
|
---|
8718 | _ACEOF
|
---|
8719 |
|
---|
8720 | fi
|
---|
8721 |
|
---|
8722 |
|
---|
8723 |
|
---|
8724 | #
|
---|
8725 | # statfs stuff
|
---|
8726 | #
|
---|
8727 |
|
---|
8728 | for ac_header in sys/vfs.h
|
---|
8729 | do
|
---|
8730 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8731 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8732 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8733 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
8734 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8735 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8736 | fi
|
---|
8737 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
8738 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
8739 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
8740 | else
|
---|
8741 | # Is the header compilable?
|
---|
8742 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
8743 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
8744 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8745 | /* confdefs.h. */
|
---|
8746 | _ACEOF
|
---|
8747 | cat confdefs.h >>conftest.$ac_ext
|
---|
8748 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8749 | /* end confdefs.h. */
|
---|
8750 | $ac_includes_default
|
---|
8751 | #include <$ac_header>
|
---|
8752 | _ACEOF
|
---|
8753 | rm -f conftest.$ac_objext
|
---|
8754 | if { (ac_try="$ac_compile"
|
---|
8755 | case "(($ac_try" in
|
---|
8756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8757 | *) ac_try_echo=$ac_try;;
|
---|
8758 | esac
|
---|
8759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8760 | (eval "$ac_compile") 2>conftest.er1
|
---|
8761 | ac_status=$?
|
---|
8762 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8763 | rm -f conftest.er1
|
---|
8764 | cat conftest.err >&5
|
---|
8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8766 | (exit $ac_status); } && {
|
---|
8767 | test -z "$ac_c_werror_flag" ||
|
---|
8768 | test ! -s conftest.err
|
---|
8769 | } && test -s conftest.$ac_objext; then
|
---|
8770 | ac_header_compiler=yes
|
---|
8771 | else
|
---|
8772 | echo "$as_me: failed program was:" >&5
|
---|
8773 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8774 |
|
---|
8775 | ac_header_compiler=no
|
---|
8776 | fi
|
---|
8777 |
|
---|
8778 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8779 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8780 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
8781 |
|
---|
8782 | # Is the header present?
|
---|
8783 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
8784 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
8785 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8786 | /* confdefs.h. */
|
---|
8787 | _ACEOF
|
---|
8788 | cat confdefs.h >>conftest.$ac_ext
|
---|
8789 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8790 | /* end confdefs.h. */
|
---|
8791 | #include <$ac_header>
|
---|
8792 | _ACEOF
|
---|
8793 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
8794 | case "(($ac_try" in
|
---|
8795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8796 | *) ac_try_echo=$ac_try;;
|
---|
8797 | esac
|
---|
8798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8799 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
8800 | ac_status=$?
|
---|
8801 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8802 | rm -f conftest.er1
|
---|
8803 | cat conftest.err >&5
|
---|
8804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8805 | (exit $ac_status); } >/dev/null && {
|
---|
8806 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
8807 | test ! -s conftest.err
|
---|
8808 | }; then
|
---|
8809 | ac_header_preproc=yes
|
---|
8810 | else
|
---|
8811 | echo "$as_me: failed program was:" >&5
|
---|
8812 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8813 |
|
---|
8814 | ac_header_preproc=no
|
---|
8815 | fi
|
---|
8816 |
|
---|
8817 | rm -f conftest.err conftest.$ac_ext
|
---|
8818 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8819 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
8820 |
|
---|
8821 | # So? What about this header?
|
---|
8822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8823 | yes:no: )
|
---|
8824 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8825 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
8827 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
8828 | ac_header_preproc=yes
|
---|
8829 | ;;
|
---|
8830 | no:yes:* )
|
---|
8831 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
8832 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
8833 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
8834 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
8835 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
8836 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
8837 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
8838 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
8839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
8840 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
8841 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
8842 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
8843 |
|
---|
8844 | ;;
|
---|
8845 | esac
|
---|
8846 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8847 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
8848 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8849 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8850 | else
|
---|
8851 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
8852 | fi
|
---|
8853 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
8854 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
8855 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
8856 |
|
---|
8857 | fi
|
---|
8858 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
8859 | cat >>confdefs.h <<_ACEOF
|
---|
8860 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
8861 | _ACEOF
|
---|
8862 |
|
---|
8863 | fi
|
---|
8864 |
|
---|
8865 | done
|
---|
8866 |
|
---|
8867 |
|
---|
8868 | for ac_header in sys/statvfs.h
|
---|
8869 | do
|
---|
8870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8871 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8872 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
8874 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8875 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8876 | fi
|
---|
8877 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
8878 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
8879 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
8880 | else
|
---|
8881 | # Is the header compilable?
|
---|
8882 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
8883 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
8884 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8885 | /* confdefs.h. */
|
---|
8886 | _ACEOF
|
---|
8887 | cat confdefs.h >>conftest.$ac_ext
|
---|
8888 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8889 | /* end confdefs.h. */
|
---|
8890 | $ac_includes_default
|
---|
8891 | #include <$ac_header>
|
---|
8892 | _ACEOF
|
---|
8893 | rm -f conftest.$ac_objext
|
---|
8894 | if { (ac_try="$ac_compile"
|
---|
8895 | case "(($ac_try" in
|
---|
8896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8897 | *) ac_try_echo=$ac_try;;
|
---|
8898 | esac
|
---|
8899 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8900 | (eval "$ac_compile") 2>conftest.er1
|
---|
8901 | ac_status=$?
|
---|
8902 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8903 | rm -f conftest.er1
|
---|
8904 | cat conftest.err >&5
|
---|
8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8906 | (exit $ac_status); } && {
|
---|
8907 | test -z "$ac_c_werror_flag" ||
|
---|
8908 | test ! -s conftest.err
|
---|
8909 | } && test -s conftest.$ac_objext; then
|
---|
8910 | ac_header_compiler=yes
|
---|
8911 | else
|
---|
8912 | echo "$as_me: failed program was:" >&5
|
---|
8913 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8914 |
|
---|
8915 | ac_header_compiler=no
|
---|
8916 | fi
|
---|
8917 |
|
---|
8918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8919 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8920 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
8921 |
|
---|
8922 | # Is the header present?
|
---|
8923 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
8924 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
8925 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8926 | /* confdefs.h. */
|
---|
8927 | _ACEOF
|
---|
8928 | cat confdefs.h >>conftest.$ac_ext
|
---|
8929 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8930 | /* end confdefs.h. */
|
---|
8931 | #include <$ac_header>
|
---|
8932 | _ACEOF
|
---|
8933 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
8934 | case "(($ac_try" in
|
---|
8935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
8936 | *) ac_try_echo=$ac_try;;
|
---|
8937 | esac
|
---|
8938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
8939 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
8940 | ac_status=$?
|
---|
8941 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8942 | rm -f conftest.er1
|
---|
8943 | cat conftest.err >&5
|
---|
8944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8945 | (exit $ac_status); } >/dev/null && {
|
---|
8946 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
8947 | test ! -s conftest.err
|
---|
8948 | }; then
|
---|
8949 | ac_header_preproc=yes
|
---|
8950 | else
|
---|
8951 | echo "$as_me: failed program was:" >&5
|
---|
8952 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8953 |
|
---|
8954 | ac_header_preproc=no
|
---|
8955 | fi
|
---|
8956 |
|
---|
8957 | rm -f conftest.err conftest.$ac_ext
|
---|
8958 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8959 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
8960 |
|
---|
8961 | # So? What about this header?
|
---|
8962 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8963 | yes:no: )
|
---|
8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8965 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
8967 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
8968 | ac_header_preproc=yes
|
---|
8969 | ;;
|
---|
8970 | no:yes:* )
|
---|
8971 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
8972 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
8973 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
8974 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
8975 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
8976 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
8977 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
8978 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
8979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
8980 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
8981 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
8982 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
8983 |
|
---|
8984 | ;;
|
---|
8985 | esac
|
---|
8986 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
8988 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
8989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8990 | else
|
---|
8991 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
8992 | fi
|
---|
8993 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
8994 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
8995 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
8996 |
|
---|
8997 | fi
|
---|
8998 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
8999 | cat >>confdefs.h <<_ACEOF
|
---|
9000 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
9001 | _ACEOF
|
---|
9002 |
|
---|
9003 | fi
|
---|
9004 |
|
---|
9005 | done
|
---|
9006 |
|
---|
9007 |
|
---|
9008 | for ac_header in sys/statfs.h
|
---|
9009 | do
|
---|
9010 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
9011 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9012 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
9013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
9014 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9015 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9016 | fi
|
---|
9017 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
9018 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
9019 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
9020 | else
|
---|
9021 | # Is the header compilable?
|
---|
9022 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
9023 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
9024 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9025 | /* confdefs.h. */
|
---|
9026 | _ACEOF
|
---|
9027 | cat confdefs.h >>conftest.$ac_ext
|
---|
9028 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9029 | /* end confdefs.h. */
|
---|
9030 | $ac_includes_default
|
---|
9031 | #include <$ac_header>
|
---|
9032 | _ACEOF
|
---|
9033 | rm -f conftest.$ac_objext
|
---|
9034 | if { (ac_try="$ac_compile"
|
---|
9035 | case "(($ac_try" in
|
---|
9036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9037 | *) ac_try_echo=$ac_try;;
|
---|
9038 | esac
|
---|
9039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9040 | (eval "$ac_compile") 2>conftest.er1
|
---|
9041 | ac_status=$?
|
---|
9042 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9043 | rm -f conftest.er1
|
---|
9044 | cat conftest.err >&5
|
---|
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9046 | (exit $ac_status); } && {
|
---|
9047 | test -z "$ac_c_werror_flag" ||
|
---|
9048 | test ! -s conftest.err
|
---|
9049 | } && test -s conftest.$ac_objext; then
|
---|
9050 | ac_header_compiler=yes
|
---|
9051 | else
|
---|
9052 | echo "$as_me: failed program was:" >&5
|
---|
9053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9054 |
|
---|
9055 | ac_header_compiler=no
|
---|
9056 | fi
|
---|
9057 |
|
---|
9058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9059 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
9060 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
9061 |
|
---|
9062 | # Is the header present?
|
---|
9063 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
9064 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
9065 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9066 | /* confdefs.h. */
|
---|
9067 | _ACEOF
|
---|
9068 | cat confdefs.h >>conftest.$ac_ext
|
---|
9069 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9070 | /* end confdefs.h. */
|
---|
9071 | #include <$ac_header>
|
---|
9072 | _ACEOF
|
---|
9073 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
9074 | case "(($ac_try" in
|
---|
9075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9076 | *) ac_try_echo=$ac_try;;
|
---|
9077 | esac
|
---|
9078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9079 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
9080 | ac_status=$?
|
---|
9081 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9082 | rm -f conftest.er1
|
---|
9083 | cat conftest.err >&5
|
---|
9084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9085 | (exit $ac_status); } >/dev/null && {
|
---|
9086 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
9087 | test ! -s conftest.err
|
---|
9088 | }; then
|
---|
9089 | ac_header_preproc=yes
|
---|
9090 | else
|
---|
9091 | echo "$as_me: failed program was:" >&5
|
---|
9092 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9093 |
|
---|
9094 | ac_header_preproc=no
|
---|
9095 | fi
|
---|
9096 |
|
---|
9097 | rm -f conftest.err conftest.$ac_ext
|
---|
9098 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
9099 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
9100 |
|
---|
9101 | # So? What about this header?
|
---|
9102 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
9103 | yes:no: )
|
---|
9104 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
9105 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
9106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
9107 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
9108 | ac_header_preproc=yes
|
---|
9109 | ;;
|
---|
9110 | no:yes:* )
|
---|
9111 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
9112 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
9113 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
9114 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
9115 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
9116 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
9117 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
9118 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
9119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
9120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
9121 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
9122 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
9123 |
|
---|
9124 | ;;
|
---|
9125 | esac
|
---|
9126 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
9127 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
9128 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9129 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9130 | else
|
---|
9131 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
9132 | fi
|
---|
9133 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
9134 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
9135 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
9136 |
|
---|
9137 | fi
|
---|
9138 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
9139 | cat >>confdefs.h <<_ACEOF
|
---|
9140 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
9141 | _ACEOF
|
---|
9142 |
|
---|
9143 | fi
|
---|
9144 |
|
---|
9145 | done
|
---|
9146 |
|
---|
9147 |
|
---|
9148 | for ac_header in sys/param.h
|
---|
9149 | do
|
---|
9150 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
9151 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9152 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
9153 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
9154 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9155 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9156 | fi
|
---|
9157 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
9158 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
9159 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
9160 | else
|
---|
9161 | # Is the header compilable?
|
---|
9162 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
9163 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
|
---|
9164 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9165 | /* confdefs.h. */
|
---|
9166 | _ACEOF
|
---|
9167 | cat confdefs.h >>conftest.$ac_ext
|
---|
9168 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9169 | /* end confdefs.h. */
|
---|
9170 | $ac_includes_default
|
---|
9171 | #include <$ac_header>
|
---|
9172 | _ACEOF
|
---|
9173 | rm -f conftest.$ac_objext
|
---|
9174 | if { (ac_try="$ac_compile"
|
---|
9175 | case "(($ac_try" in
|
---|
9176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9177 | *) ac_try_echo=$ac_try;;
|
---|
9178 | esac
|
---|
9179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9180 | (eval "$ac_compile") 2>conftest.er1
|
---|
9181 | ac_status=$?
|
---|
9182 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9183 | rm -f conftest.er1
|
---|
9184 | cat conftest.err >&5
|
---|
9185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9186 | (exit $ac_status); } && {
|
---|
9187 | test -z "$ac_c_werror_flag" ||
|
---|
9188 | test ! -s conftest.err
|
---|
9189 | } && test -s conftest.$ac_objext; then
|
---|
9190 | ac_header_compiler=yes
|
---|
9191 | else
|
---|
9192 | echo "$as_me: failed program was:" >&5
|
---|
9193 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9194 |
|
---|
9195 | ac_header_compiler=no
|
---|
9196 | fi
|
---|
9197 |
|
---|
9198 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9199 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
9200 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
9201 |
|
---|
9202 | # Is the header present?
|
---|
9203 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
9204 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
|
---|
9205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9206 | /* confdefs.h. */
|
---|
9207 | _ACEOF
|
---|
9208 | cat confdefs.h >>conftest.$ac_ext
|
---|
9209 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9210 | /* end confdefs.h. */
|
---|
9211 | #include <$ac_header>
|
---|
9212 | _ACEOF
|
---|
9213 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
9214 | case "(($ac_try" in
|
---|
9215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9216 | *) ac_try_echo=$ac_try;;
|
---|
9217 | esac
|
---|
9218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9219 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
9220 | ac_status=$?
|
---|
9221 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9222 | rm -f conftest.er1
|
---|
9223 | cat conftest.err >&5
|
---|
9224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9225 | (exit $ac_status); } >/dev/null && {
|
---|
9226 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
9227 | test ! -s conftest.err
|
---|
9228 | }; then
|
---|
9229 | ac_header_preproc=yes
|
---|
9230 | else
|
---|
9231 | echo "$as_me: failed program was:" >&5
|
---|
9232 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9233 |
|
---|
9234 | ac_header_preproc=no
|
---|
9235 | fi
|
---|
9236 |
|
---|
9237 | rm -f conftest.err conftest.$ac_ext
|
---|
9238 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
9239 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
9240 |
|
---|
9241 | # So? What about this header?
|
---|
9242 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
9243 | yes:no: )
|
---|
9244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
9245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
9246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
9247 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
9248 | ac_header_preproc=yes
|
---|
9249 | ;;
|
---|
9250 | no:yes:* )
|
---|
9251 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
9252 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
9253 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
9254 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
9255 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
9256 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
9257 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
9258 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
9259 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
9260 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
9261 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
9262 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
9263 |
|
---|
9264 | ;;
|
---|
9265 | esac
|
---|
9266 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
9267 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
9268 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9269 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9270 | else
|
---|
9271 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
9272 | fi
|
---|
9273 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
9274 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
9275 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
9276 |
|
---|
9277 | fi
|
---|
9278 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
9279 | cat >>confdefs.h <<_ACEOF
|
---|
9280 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
9281 | _ACEOF
|
---|
9282 |
|
---|
9283 | fi
|
---|
9284 |
|
---|
9285 | done
|
---|
9286 |
|
---|
9287 |
|
---|
9288 | mount_includes="\
|
---|
9289 | $ac_includes_default
|
---|
9290 | #if HAVE_SYS_PARAM_H
|
---|
9291 | # include <sys/param.h>
|
---|
9292 | #endif
|
---|
9293 | "
|
---|
9294 |
|
---|
9295 |
|
---|
9296 | for ac_header in sys/mount.h
|
---|
9297 | do
|
---|
9298 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
9299 | { echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
9300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
|
---|
9301 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
9302 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9303 | else
|
---|
9304 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9305 | /* confdefs.h. */
|
---|
9306 | _ACEOF
|
---|
9307 | cat confdefs.h >>conftest.$ac_ext
|
---|
9308 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9309 | /* end confdefs.h. */
|
---|
9310 | $mount_includes
|
---|
9311 |
|
---|
9312 | #include <$ac_header>
|
---|
9313 | _ACEOF
|
---|
9314 | rm -f conftest.$ac_objext
|
---|
9315 | if { (ac_try="$ac_compile"
|
---|
9316 | case "(($ac_try" in
|
---|
9317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9318 | *) ac_try_echo=$ac_try;;
|
---|
9319 | esac
|
---|
9320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9321 | (eval "$ac_compile") 2>conftest.er1
|
---|
9322 | ac_status=$?
|
---|
9323 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9324 | rm -f conftest.er1
|
---|
9325 | cat conftest.err >&5
|
---|
9326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9327 | (exit $ac_status); } && {
|
---|
9328 | test -z "$ac_c_werror_flag" ||
|
---|
9329 | test ! -s conftest.err
|
---|
9330 | } && test -s conftest.$ac_objext; then
|
---|
9331 | eval "$as_ac_Header=yes"
|
---|
9332 | else
|
---|
9333 | echo "$as_me: failed program was:" >&5
|
---|
9334 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9335 |
|
---|
9336 | eval "$as_ac_Header=no"
|
---|
9337 | fi
|
---|
9338 |
|
---|
9339 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9340 | fi
|
---|
9341 | ac_res=`eval echo '${'$as_ac_Header'}'`
|
---|
9342 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
9343 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
9344 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
9345 | cat >>confdefs.h <<_ACEOF
|
---|
9346 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
9347 | _ACEOF
|
---|
9348 |
|
---|
9349 | fi
|
---|
9350 |
|
---|
9351 | done
|
---|
9352 |
|
---|
9353 |
|
---|
9354 | #################################################
|
---|
9355 | # these tests are taken from the GNU fileutils package
|
---|
9356 | { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
|
---|
9357 | echo "$as_me: checking how to get filesystem space usage..." >&6;}
|
---|
9358 | space=no
|
---|
9359 |
|
---|
9360 | # Test for statvfs64.
|
---|
9361 | if test $space = no; then
|
---|
9362 | # SVR4
|
---|
9363 | { echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
|
---|
9364 | echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6; }
|
---|
9365 | if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
|
---|
9366 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9367 | else
|
---|
9368 | if test "$cross_compiling" = yes; then
|
---|
9369 | fu_cv_sys_stat_statvfs64=cross
|
---|
9370 | else
|
---|
9371 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9372 | /* confdefs.h. */
|
---|
9373 | _ACEOF
|
---|
9374 | cat confdefs.h >>conftest.$ac_ext
|
---|
9375 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9376 | /* end confdefs.h. */
|
---|
9377 |
|
---|
9378 | #if defined(HAVE_UNISTD_H)
|
---|
9379 | #include <unistd.h>
|
---|
9380 | #endif
|
---|
9381 | #include <sys/types.h>
|
---|
9382 | #include <sys/statvfs.h>
|
---|
9383 | main ()
|
---|
9384 | {
|
---|
9385 | struct statvfs64 fsd;
|
---|
9386 | exit (statvfs64 (".", &fsd));
|
---|
9387 | }
|
---|
9388 | _ACEOF
|
---|
9389 | rm -f conftest$ac_exeext
|
---|
9390 | if { (ac_try="$ac_link"
|
---|
9391 | case "(($ac_try" in
|
---|
9392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9393 | *) ac_try_echo=$ac_try;;
|
---|
9394 | esac
|
---|
9395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9396 | (eval "$ac_link") 2>&5
|
---|
9397 | ac_status=$?
|
---|
9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9400 | { (case "(($ac_try" in
|
---|
9401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9402 | *) ac_try_echo=$ac_try;;
|
---|
9403 | esac
|
---|
9404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9405 | (eval "$ac_try") 2>&5
|
---|
9406 | ac_status=$?
|
---|
9407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9408 | (exit $ac_status); }; }; then
|
---|
9409 | fu_cv_sys_stat_statvfs64=yes
|
---|
9410 | else
|
---|
9411 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9412 | echo "$as_me: failed program was:" >&5
|
---|
9413 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9414 |
|
---|
9415 | ( exit $ac_status )
|
---|
9416 | fu_cv_sys_stat_statvfs64=no
|
---|
9417 | fi
|
---|
9418 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9419 | fi
|
---|
9420 |
|
---|
9421 |
|
---|
9422 | fi
|
---|
9423 | { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
|
---|
9424 | echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6; }
|
---|
9425 | if test $fu_cv_sys_stat_statvfs64 = yes; then
|
---|
9426 | space=yes
|
---|
9427 |
|
---|
9428 | cat >>confdefs.h <<\_ACEOF
|
---|
9429 | #define STAT_STATVFS64 1
|
---|
9430 | _ACEOF
|
---|
9431 |
|
---|
9432 | fi
|
---|
9433 | fi
|
---|
9434 |
|
---|
9435 | # Perform only the link test since it seems there are no variants of the
|
---|
9436 | # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
---|
9437 | # because that got a false positive on SCO OSR5. Adding the declaration
|
---|
9438 | # of a `struct statvfs' causes this test to fail (as it should) on such
|
---|
9439 | # systems. That system is reported to work fine with STAT_STATFS4 which
|
---|
9440 | # is what it gets when this test fails.
|
---|
9441 | if test $space = no; then
|
---|
9442 | # SVR4
|
---|
9443 | { echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
|
---|
9444 | echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6; }
|
---|
9445 | if test "${fu_cv_sys_stat_statvfs+set}" = set; then
|
---|
9446 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9447 | else
|
---|
9448 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9449 | /* confdefs.h. */
|
---|
9450 | _ACEOF
|
---|
9451 | cat confdefs.h >>conftest.$ac_ext
|
---|
9452 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9453 | /* end confdefs.h. */
|
---|
9454 | #include <sys/types.h>
|
---|
9455 | #include <sys/statvfs.h>
|
---|
9456 | int
|
---|
9457 | main ()
|
---|
9458 | {
|
---|
9459 | struct statvfs fsd; statvfs (0, &fsd);
|
---|
9460 | ;
|
---|
9461 | return 0;
|
---|
9462 | }
|
---|
9463 | _ACEOF
|
---|
9464 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
9465 | if { (ac_try="$ac_link"
|
---|
9466 | case "(($ac_try" in
|
---|
9467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9468 | *) ac_try_echo=$ac_try;;
|
---|
9469 | esac
|
---|
9470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9471 | (eval "$ac_link") 2>conftest.er1
|
---|
9472 | ac_status=$?
|
---|
9473 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9474 | rm -f conftest.er1
|
---|
9475 | cat conftest.err >&5
|
---|
9476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9477 | (exit $ac_status); } && {
|
---|
9478 | test -z "$ac_c_werror_flag" ||
|
---|
9479 | test ! -s conftest.err
|
---|
9480 | } && test -s conftest$ac_exeext &&
|
---|
9481 | $as_test_x conftest$ac_exeext; then
|
---|
9482 | fu_cv_sys_stat_statvfs=yes
|
---|
9483 | else
|
---|
9484 | echo "$as_me: failed program was:" >&5
|
---|
9485 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9486 |
|
---|
9487 | fu_cv_sys_stat_statvfs=no
|
---|
9488 | fi
|
---|
9489 |
|
---|
9490 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
9491 | conftest$ac_exeext conftest.$ac_ext
|
---|
9492 | fi
|
---|
9493 | { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
|
---|
9494 | echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
|
---|
9495 | if test $fu_cv_sys_stat_statvfs = yes; then
|
---|
9496 | space=yes
|
---|
9497 |
|
---|
9498 | cat >>confdefs.h <<\_ACEOF
|
---|
9499 | #define STAT_STATVFS 1
|
---|
9500 | _ACEOF
|
---|
9501 |
|
---|
9502 | fi
|
---|
9503 | fi
|
---|
9504 |
|
---|
9505 | if test $space = no; then
|
---|
9506 | # DEC Alpha running OSF/1
|
---|
9507 | { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
---|
9508 | echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
|
---|
9509 | if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
|
---|
9510 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9511 | else
|
---|
9512 | if test "$cross_compiling" = yes; then
|
---|
9513 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
9514 | else
|
---|
9515 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9516 | /* confdefs.h. */
|
---|
9517 | _ACEOF
|
---|
9518 | cat confdefs.h >>conftest.$ac_ext
|
---|
9519 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9520 | /* end confdefs.h. */
|
---|
9521 |
|
---|
9522 | #include <sys/param.h>
|
---|
9523 | #include <sys/types.h>
|
---|
9524 | #include <sys/mount.h>
|
---|
9525 | main ()
|
---|
9526 | {
|
---|
9527 | struct statfs fsd;
|
---|
9528 | fsd.f_fsize = 0;
|
---|
9529 | exit (statfs (".", &fsd, sizeof (struct statfs)));
|
---|
9530 | }
|
---|
9531 | _ACEOF
|
---|
9532 | rm -f conftest$ac_exeext
|
---|
9533 | if { (ac_try="$ac_link"
|
---|
9534 | case "(($ac_try" in
|
---|
9535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9536 | *) ac_try_echo=$ac_try;;
|
---|
9537 | esac
|
---|
9538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9539 | (eval "$ac_link") 2>&5
|
---|
9540 | ac_status=$?
|
---|
9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9542 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9543 | { (case "(($ac_try" in
|
---|
9544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9545 | *) ac_try_echo=$ac_try;;
|
---|
9546 | esac
|
---|
9547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9548 | (eval "$ac_try") 2>&5
|
---|
9549 | ac_status=$?
|
---|
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9551 | (exit $ac_status); }; }; then
|
---|
9552 | fu_cv_sys_stat_statfs3_osf1=yes
|
---|
9553 | else
|
---|
9554 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9555 | echo "$as_me: failed program was:" >&5
|
---|
9556 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9557 |
|
---|
9558 | ( exit $ac_status )
|
---|
9559 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
9560 | fi
|
---|
9561 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9562 | fi
|
---|
9563 |
|
---|
9564 |
|
---|
9565 | fi
|
---|
9566 |
|
---|
9567 |
|
---|
9568 |
|
---|
9569 | #C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
|
---|
9570 | if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
---|
9571 | space=yes
|
---|
9572 |
|
---|
9573 | cat >>confdefs.h <<\_ACEOF
|
---|
9574 | #define STAT_STATFS3_OSF1 1
|
---|
9575 | _ACEOF
|
---|
9576 |
|
---|
9577 | fi
|
---|
9578 | fi
|
---|
9579 |
|
---|
9580 | if test $space = no; then
|
---|
9581 | # AIX
|
---|
9582 | { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
---|
9583 | echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
|
---|
9584 | if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
|
---|
9585 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9586 | else
|
---|
9587 | if test "$cross_compiling" = yes; then
|
---|
9588 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
9589 | else
|
---|
9590 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9591 | /* confdefs.h. */
|
---|
9592 | _ACEOF
|
---|
9593 | cat confdefs.h >>conftest.$ac_ext
|
---|
9594 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9595 | /* end confdefs.h. */
|
---|
9596 |
|
---|
9597 | #ifdef HAVE_SYS_PARAM_H
|
---|
9598 | #include <sys/param.h>
|
---|
9599 | #endif
|
---|
9600 | #ifdef HAVE_SYS_MOUNT_H
|
---|
9601 | #include <sys/mount.h>
|
---|
9602 | #endif
|
---|
9603 | #ifdef HAVE_SYS_VFS_H
|
---|
9604 | #include <sys/vfs.h>
|
---|
9605 | #endif
|
---|
9606 | main ()
|
---|
9607 | {
|
---|
9608 | struct statfs fsd;
|
---|
9609 | fsd.f_bsize = 0;
|
---|
9610 | exit (statfs (".", &fsd));
|
---|
9611 | }
|
---|
9612 | _ACEOF
|
---|
9613 | rm -f conftest$ac_exeext
|
---|
9614 | if { (ac_try="$ac_link"
|
---|
9615 | case "(($ac_try" in
|
---|
9616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9617 | *) ac_try_echo=$ac_try;;
|
---|
9618 | esac
|
---|
9619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9620 | (eval "$ac_link") 2>&5
|
---|
9621 | ac_status=$?
|
---|
9622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9623 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9624 | { (case "(($ac_try" in
|
---|
9625 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9626 | *) ac_try_echo=$ac_try;;
|
---|
9627 | esac
|
---|
9628 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9629 | (eval "$ac_try") 2>&5
|
---|
9630 | ac_status=$?
|
---|
9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9632 | (exit $ac_status); }; }; then
|
---|
9633 | fu_cv_sys_stat_statfs2_bsize=yes
|
---|
9634 | else
|
---|
9635 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9636 | echo "$as_me: failed program was:" >&5
|
---|
9637 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9638 |
|
---|
9639 | ( exit $ac_status )
|
---|
9640 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
9641 | fi
|
---|
9642 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9643 | fi
|
---|
9644 |
|
---|
9645 |
|
---|
9646 | fi
|
---|
9647 |
|
---|
9648 | { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
|
---|
9649 | echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
|
---|
9650 | if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
---|
9651 | space=yes
|
---|
9652 |
|
---|
9653 | cat >>confdefs.h <<\_ACEOF
|
---|
9654 | #define STAT_STATFS2_BSIZE 1
|
---|
9655 | _ACEOF
|
---|
9656 |
|
---|
9657 | fi
|
---|
9658 | fi
|
---|
9659 |
|
---|
9660 | if test $space = no; then
|
---|
9661 | # SVR3
|
---|
9662 | { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
---|
9663 | echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
|
---|
9664 | if test "${fu_cv_sys_stat_statfs4+set}" = set; then
|
---|
9665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9666 | else
|
---|
9667 | if test "$cross_compiling" = yes; then
|
---|
9668 | fu_cv_sys_stat_statfs4=no
|
---|
9669 | else
|
---|
9670 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9671 | /* confdefs.h. */
|
---|
9672 | _ACEOF
|
---|
9673 | cat confdefs.h >>conftest.$ac_ext
|
---|
9674 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9675 | /* end confdefs.h. */
|
---|
9676 | #include <sys/types.h>
|
---|
9677 | #include <sys/statfs.h>
|
---|
9678 | main ()
|
---|
9679 | {
|
---|
9680 | struct statfs fsd;
|
---|
9681 | exit (statfs (".", &fsd, sizeof fsd, 0));
|
---|
9682 | }
|
---|
9683 | _ACEOF
|
---|
9684 | rm -f conftest$ac_exeext
|
---|
9685 | if { (ac_try="$ac_link"
|
---|
9686 | case "(($ac_try" in
|
---|
9687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9688 | *) ac_try_echo=$ac_try;;
|
---|
9689 | esac
|
---|
9690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9691 | (eval "$ac_link") 2>&5
|
---|
9692 | ac_status=$?
|
---|
9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9694 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9695 | { (case "(($ac_try" in
|
---|
9696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9697 | *) ac_try_echo=$ac_try;;
|
---|
9698 | esac
|
---|
9699 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9700 | (eval "$ac_try") 2>&5
|
---|
9701 | ac_status=$?
|
---|
9702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9703 | (exit $ac_status); }; }; then
|
---|
9704 | fu_cv_sys_stat_statfs4=yes
|
---|
9705 | else
|
---|
9706 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9707 | echo "$as_me: failed program was:" >&5
|
---|
9708 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9709 |
|
---|
9710 | ( exit $ac_status )
|
---|
9711 | fu_cv_sys_stat_statfs4=no
|
---|
9712 | fi
|
---|
9713 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9714 | fi
|
---|
9715 |
|
---|
9716 |
|
---|
9717 | fi
|
---|
9718 |
|
---|
9719 | { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
|
---|
9720 | echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
|
---|
9721 | if test $fu_cv_sys_stat_statfs4 = yes; then
|
---|
9722 | space=yes
|
---|
9723 |
|
---|
9724 | cat >>confdefs.h <<\_ACEOF
|
---|
9725 | #define STAT_STATFS4 1
|
---|
9726 | _ACEOF
|
---|
9727 |
|
---|
9728 | fi
|
---|
9729 | fi
|
---|
9730 |
|
---|
9731 | if test $space = no; then
|
---|
9732 | # 4.4BSD and NetBSD
|
---|
9733 | { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
---|
9734 | echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
|
---|
9735 | if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
|
---|
9736 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9737 | else
|
---|
9738 | if test "$cross_compiling" = yes; then
|
---|
9739 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
9740 | else
|
---|
9741 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9742 | /* confdefs.h. */
|
---|
9743 | _ACEOF
|
---|
9744 | cat confdefs.h >>conftest.$ac_ext
|
---|
9745 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9746 | /* end confdefs.h. */
|
---|
9747 | #include <sys/types.h>
|
---|
9748 | #ifdef HAVE_SYS_PARAM_H
|
---|
9749 | #include <sys/param.h>
|
---|
9750 | #endif
|
---|
9751 | #ifdef HAVE_SYS_MOUNT_H
|
---|
9752 | #include <sys/mount.h>
|
---|
9753 | #endif
|
---|
9754 | main ()
|
---|
9755 | {
|
---|
9756 | struct statfs fsd;
|
---|
9757 | fsd.f_fsize = 0;
|
---|
9758 | exit (statfs (".", &fsd));
|
---|
9759 | }
|
---|
9760 | _ACEOF
|
---|
9761 | rm -f conftest$ac_exeext
|
---|
9762 | if { (ac_try="$ac_link"
|
---|
9763 | case "(($ac_try" in
|
---|
9764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9765 | *) ac_try_echo=$ac_try;;
|
---|
9766 | esac
|
---|
9767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9768 | (eval "$ac_link") 2>&5
|
---|
9769 | ac_status=$?
|
---|
9770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9771 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9772 | { (case "(($ac_try" in
|
---|
9773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9774 | *) ac_try_echo=$ac_try;;
|
---|
9775 | esac
|
---|
9776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9777 | (eval "$ac_try") 2>&5
|
---|
9778 | ac_status=$?
|
---|
9779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9780 | (exit $ac_status); }; }; then
|
---|
9781 | fu_cv_sys_stat_statfs2_fsize=yes
|
---|
9782 | else
|
---|
9783 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9784 | echo "$as_me: failed program was:" >&5
|
---|
9785 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9786 |
|
---|
9787 | ( exit $ac_status )
|
---|
9788 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
9789 | fi
|
---|
9790 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9791 | fi
|
---|
9792 |
|
---|
9793 |
|
---|
9794 | fi
|
---|
9795 |
|
---|
9796 | { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
|
---|
9797 | echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
|
---|
9798 | if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
---|
9799 | space=yes
|
---|
9800 |
|
---|
9801 | cat >>confdefs.h <<\_ACEOF
|
---|
9802 | #define STAT_STATFS2_FSIZE 1
|
---|
9803 | _ACEOF
|
---|
9804 |
|
---|
9805 | fi
|
---|
9806 | fi
|
---|
9807 |
|
---|
9808 | if test $space = no; then
|
---|
9809 | # Ultrix
|
---|
9810 | { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
---|
9811 | echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
|
---|
9812 | if test "${fu_cv_sys_stat_fs_data+set}" = set; then
|
---|
9813 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9814 | else
|
---|
9815 | if test "$cross_compiling" = yes; then
|
---|
9816 | fu_cv_sys_stat_fs_data=no
|
---|
9817 | else
|
---|
9818 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9819 | /* confdefs.h. */
|
---|
9820 | _ACEOF
|
---|
9821 | cat confdefs.h >>conftest.$ac_ext
|
---|
9822 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9823 | /* end confdefs.h. */
|
---|
9824 | #include <sys/types.h>
|
---|
9825 | #ifdef HAVE_SYS_PARAM_H
|
---|
9826 | #include <sys/param.h>
|
---|
9827 | #endif
|
---|
9828 | #ifdef HAVE_SYS_MOUNT_H
|
---|
9829 | #include <sys/mount.h>
|
---|
9830 | #endif
|
---|
9831 | #ifdef HAVE_SYS_FS_TYPES_H
|
---|
9832 | #include <sys/fs_types.h>
|
---|
9833 | #endif
|
---|
9834 | main ()
|
---|
9835 | {
|
---|
9836 | struct fs_data fsd;
|
---|
9837 | /* Ultrix's statfs returns 1 for success,
|
---|
9838 | 0 for not mounted, -1 for failure. */
|
---|
9839 | exit (statfs (".", &fsd) != 1);
|
---|
9840 | }
|
---|
9841 | _ACEOF
|
---|
9842 | rm -f conftest$ac_exeext
|
---|
9843 | if { (ac_try="$ac_link"
|
---|
9844 | case "(($ac_try" in
|
---|
9845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9846 | *) ac_try_echo=$ac_try;;
|
---|
9847 | esac
|
---|
9848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9849 | (eval "$ac_link") 2>&5
|
---|
9850 | ac_status=$?
|
---|
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
9853 | { (case "(($ac_try" in
|
---|
9854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9855 | *) ac_try_echo=$ac_try;;
|
---|
9856 | esac
|
---|
9857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9858 | (eval "$ac_try") 2>&5
|
---|
9859 | ac_status=$?
|
---|
9860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9861 | (exit $ac_status); }; }; then
|
---|
9862 | fu_cv_sys_stat_fs_data=yes
|
---|
9863 | else
|
---|
9864 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
9865 | echo "$as_me: failed program was:" >&5
|
---|
9866 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9867 |
|
---|
9868 | ( exit $ac_status )
|
---|
9869 | fu_cv_sys_stat_fs_data=no
|
---|
9870 | fi
|
---|
9871 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
9872 | fi
|
---|
9873 |
|
---|
9874 |
|
---|
9875 | fi
|
---|
9876 |
|
---|
9877 | { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
|
---|
9878 | echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
|
---|
9879 | if test $fu_cv_sys_stat_fs_data = yes; then
|
---|
9880 | space=yes
|
---|
9881 |
|
---|
9882 | cat >>confdefs.h <<\_ACEOF
|
---|
9883 | #define STAT_STATFS2_FS_DATA 1
|
---|
9884 | _ACEOF
|
---|
9885 |
|
---|
9886 | fi
|
---|
9887 | fi
|
---|
9888 |
|
---|
9889 | statxfs_includes="\
|
---|
9890 | $ac_includes_default
|
---|
9891 | #if HAVE_SYS_STATVFS_H
|
---|
9892 | # include <sys/statvfs.h>
|
---|
9893 | #endif
|
---|
9894 | #if HAVE_SYS_VFS_H
|
---|
9895 | # include <sys/vfs.h>
|
---|
9896 | #endif
|
---|
9897 | #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
|
---|
9898 | # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
|
---|
9899 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
|
---|
9900 | # include <sys/param.h>
|
---|
9901 | # include <sys/mount.h>
|
---|
9902 | # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
|
---|
9903 | /* Ultrix 4.4 needs these for the declaration of struct statfs. */
|
---|
9904 | # include <netinet/in.h>
|
---|
9905 | # include <nfs/nfs_clnt.h>
|
---|
9906 | # include <nfs/vfs.h>
|
---|
9907 | # endif
|
---|
9908 | #endif
|
---|
9909 | "
|
---|
9910 |
|
---|
9911 | { echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
|
---|
9912 | echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
|
---|
9913 | if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
|
---|
9914 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9915 | else
|
---|
9916 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9917 | /* confdefs.h. */
|
---|
9918 | _ACEOF
|
---|
9919 | cat confdefs.h >>conftest.$ac_ext
|
---|
9920 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9921 | /* end confdefs.h. */
|
---|
9922 | $statxfs_includes
|
---|
9923 |
|
---|
9924 | int
|
---|
9925 | main ()
|
---|
9926 | {
|
---|
9927 | static struct statfs ac_aggr;
|
---|
9928 | if (ac_aggr.f_namemax)
|
---|
9929 | return 0;
|
---|
9930 | ;
|
---|
9931 | return 0;
|
---|
9932 | }
|
---|
9933 | _ACEOF
|
---|
9934 | rm -f conftest.$ac_objext
|
---|
9935 | if { (ac_try="$ac_compile"
|
---|
9936 | case "(($ac_try" in
|
---|
9937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9938 | *) ac_try_echo=$ac_try;;
|
---|
9939 | esac
|
---|
9940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9941 | (eval "$ac_compile") 2>conftest.er1
|
---|
9942 | ac_status=$?
|
---|
9943 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9944 | rm -f conftest.er1
|
---|
9945 | cat conftest.err >&5
|
---|
9946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9947 | (exit $ac_status); } && {
|
---|
9948 | test -z "$ac_c_werror_flag" ||
|
---|
9949 | test ! -s conftest.err
|
---|
9950 | } && test -s conftest.$ac_objext; then
|
---|
9951 | ac_cv_member_struct_statfs_f_namemax=yes
|
---|
9952 | else
|
---|
9953 | echo "$as_me: failed program was:" >&5
|
---|
9954 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9955 |
|
---|
9956 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9957 | /* confdefs.h. */
|
---|
9958 | _ACEOF
|
---|
9959 | cat confdefs.h >>conftest.$ac_ext
|
---|
9960 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9961 | /* end confdefs.h. */
|
---|
9962 | $statxfs_includes
|
---|
9963 |
|
---|
9964 | int
|
---|
9965 | main ()
|
---|
9966 | {
|
---|
9967 | static struct statfs ac_aggr;
|
---|
9968 | if (sizeof ac_aggr.f_namemax)
|
---|
9969 | return 0;
|
---|
9970 | ;
|
---|
9971 | return 0;
|
---|
9972 | }
|
---|
9973 | _ACEOF
|
---|
9974 | rm -f conftest.$ac_objext
|
---|
9975 | if { (ac_try="$ac_compile"
|
---|
9976 | case "(($ac_try" in
|
---|
9977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
9978 | *) ac_try_echo=$ac_try;;
|
---|
9979 | esac
|
---|
9980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
9981 | (eval "$ac_compile") 2>conftest.er1
|
---|
9982 | ac_status=$?
|
---|
9983 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9984 | rm -f conftest.er1
|
---|
9985 | cat conftest.err >&5
|
---|
9986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9987 | (exit $ac_status); } && {
|
---|
9988 | test -z "$ac_c_werror_flag" ||
|
---|
9989 | test ! -s conftest.err
|
---|
9990 | } && test -s conftest.$ac_objext; then
|
---|
9991 | ac_cv_member_struct_statfs_f_namemax=yes
|
---|
9992 | else
|
---|
9993 | echo "$as_me: failed program was:" >&5
|
---|
9994 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9995 |
|
---|
9996 | ac_cv_member_struct_statfs_f_namemax=no
|
---|
9997 | fi
|
---|
9998 |
|
---|
9999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10000 | fi
|
---|
10001 |
|
---|
10002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10003 | fi
|
---|
10004 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
|
---|
10005 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
|
---|
10006 | if test $ac_cv_member_struct_statfs_f_namemax = yes; then
|
---|
10007 |
|
---|
10008 | cat >>confdefs.h <<_ACEOF
|
---|
10009 | #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
|
---|
10010 | _ACEOF
|
---|
10011 |
|
---|
10012 |
|
---|
10013 | fi
|
---|
10014 |
|
---|
10015 | { echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
|
---|
10016 | echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
|
---|
10017 | if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
|
---|
10018 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10019 | else
|
---|
10020 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10021 | /* confdefs.h. */
|
---|
10022 | _ACEOF
|
---|
10023 | cat confdefs.h >>conftest.$ac_ext
|
---|
10024 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10025 | /* end confdefs.h. */
|
---|
10026 | $statxfs_includes
|
---|
10027 |
|
---|
10028 | int
|
---|
10029 | main ()
|
---|
10030 | {
|
---|
10031 | static struct statvfs ac_aggr;
|
---|
10032 | if (ac_aggr.f_namemax)
|
---|
10033 | return 0;
|
---|
10034 | ;
|
---|
10035 | return 0;
|
---|
10036 | }
|
---|
10037 | _ACEOF
|
---|
10038 | rm -f conftest.$ac_objext
|
---|
10039 | if { (ac_try="$ac_compile"
|
---|
10040 | case "(($ac_try" in
|
---|
10041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10042 | *) ac_try_echo=$ac_try;;
|
---|
10043 | esac
|
---|
10044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10045 | (eval "$ac_compile") 2>conftest.er1
|
---|
10046 | ac_status=$?
|
---|
10047 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10048 | rm -f conftest.er1
|
---|
10049 | cat conftest.err >&5
|
---|
10050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10051 | (exit $ac_status); } && {
|
---|
10052 | test -z "$ac_c_werror_flag" ||
|
---|
10053 | test ! -s conftest.err
|
---|
10054 | } && test -s conftest.$ac_objext; then
|
---|
10055 | ac_cv_member_struct_statvfs_f_namemax=yes
|
---|
10056 | else
|
---|
10057 | echo "$as_me: failed program was:" >&5
|
---|
10058 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10059 |
|
---|
10060 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10061 | /* confdefs.h. */
|
---|
10062 | _ACEOF
|
---|
10063 | cat confdefs.h >>conftest.$ac_ext
|
---|
10064 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10065 | /* end confdefs.h. */
|
---|
10066 | $statxfs_includes
|
---|
10067 |
|
---|
10068 | int
|
---|
10069 | main ()
|
---|
10070 | {
|
---|
10071 | static struct statvfs ac_aggr;
|
---|
10072 | if (sizeof ac_aggr.f_namemax)
|
---|
10073 | return 0;
|
---|
10074 | ;
|
---|
10075 | return 0;
|
---|
10076 | }
|
---|
10077 | _ACEOF
|
---|
10078 | rm -f conftest.$ac_objext
|
---|
10079 | if { (ac_try="$ac_compile"
|
---|
10080 | case "(($ac_try" in
|
---|
10081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10082 | *) ac_try_echo=$ac_try;;
|
---|
10083 | esac
|
---|
10084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10085 | (eval "$ac_compile") 2>conftest.er1
|
---|
10086 | ac_status=$?
|
---|
10087 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10088 | rm -f conftest.er1
|
---|
10089 | cat conftest.err >&5
|
---|
10090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10091 | (exit $ac_status); } && {
|
---|
10092 | test -z "$ac_c_werror_flag" ||
|
---|
10093 | test ! -s conftest.err
|
---|
10094 | } && test -s conftest.$ac_objext; then
|
---|
10095 | ac_cv_member_struct_statvfs_f_namemax=yes
|
---|
10096 | else
|
---|
10097 | echo "$as_me: failed program was:" >&5
|
---|
10098 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10099 |
|
---|
10100 | ac_cv_member_struct_statvfs_f_namemax=no
|
---|
10101 | fi
|
---|
10102 |
|
---|
10103 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10104 | fi
|
---|
10105 |
|
---|
10106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10107 | fi
|
---|
10108 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
|
---|
10109 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
|
---|
10110 | if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
|
---|
10111 |
|
---|
10112 | cat >>confdefs.h <<_ACEOF
|
---|
10113 | #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
|
---|
10114 | _ACEOF
|
---|
10115 |
|
---|
10116 |
|
---|
10117 | fi
|
---|
10118 |
|
---|
10119 | { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
|
---|
10120 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
|
---|
10121 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
|
---|
10122 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10123 | else
|
---|
10124 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10125 | /* confdefs.h. */
|
---|
10126 | _ACEOF
|
---|
10127 | cat confdefs.h >>conftest.$ac_ext
|
---|
10128 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10129 | /* end confdefs.h. */
|
---|
10130 | $statxfs_includes
|
---|
10131 |
|
---|
10132 | int
|
---|
10133 | main ()
|
---|
10134 | {
|
---|
10135 | static struct statfs ac_aggr;
|
---|
10136 | if (ac_aggr.f_namelen)
|
---|
10137 | return 0;
|
---|
10138 | ;
|
---|
10139 | return 0;
|
---|
10140 | }
|
---|
10141 | _ACEOF
|
---|
10142 | rm -f conftest.$ac_objext
|
---|
10143 | if { (ac_try="$ac_compile"
|
---|
10144 | case "(($ac_try" in
|
---|
10145 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10146 | *) ac_try_echo=$ac_try;;
|
---|
10147 | esac
|
---|
10148 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10149 | (eval "$ac_compile") 2>conftest.er1
|
---|
10150 | ac_status=$?
|
---|
10151 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10152 | rm -f conftest.er1
|
---|
10153 | cat conftest.err >&5
|
---|
10154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10155 | (exit $ac_status); } && {
|
---|
10156 | test -z "$ac_c_werror_flag" ||
|
---|
10157 | test ! -s conftest.err
|
---|
10158 | } && test -s conftest.$ac_objext; then
|
---|
10159 | ac_cv_member_struct_statfs_f_namelen=yes
|
---|
10160 | else
|
---|
10161 | echo "$as_me: failed program was:" >&5
|
---|
10162 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10163 |
|
---|
10164 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10165 | /* confdefs.h. */
|
---|
10166 | _ACEOF
|
---|
10167 | cat confdefs.h >>conftest.$ac_ext
|
---|
10168 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10169 | /* end confdefs.h. */
|
---|
10170 | $statxfs_includes
|
---|
10171 |
|
---|
10172 | int
|
---|
10173 | main ()
|
---|
10174 | {
|
---|
10175 | static struct statfs ac_aggr;
|
---|
10176 | if (sizeof ac_aggr.f_namelen)
|
---|
10177 | return 0;
|
---|
10178 | ;
|
---|
10179 | return 0;
|
---|
10180 | }
|
---|
10181 | _ACEOF
|
---|
10182 | rm -f conftest.$ac_objext
|
---|
10183 | if { (ac_try="$ac_compile"
|
---|
10184 | case "(($ac_try" in
|
---|
10185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10186 | *) ac_try_echo=$ac_try;;
|
---|
10187 | esac
|
---|
10188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10189 | (eval "$ac_compile") 2>conftest.er1
|
---|
10190 | ac_status=$?
|
---|
10191 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10192 | rm -f conftest.er1
|
---|
10193 | cat conftest.err >&5
|
---|
10194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10195 | (exit $ac_status); } && {
|
---|
10196 | test -z "$ac_c_werror_flag" ||
|
---|
10197 | test ! -s conftest.err
|
---|
10198 | } && test -s conftest.$ac_objext; then
|
---|
10199 | ac_cv_member_struct_statfs_f_namelen=yes
|
---|
10200 | else
|
---|
10201 | echo "$as_me: failed program was:" >&5
|
---|
10202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10203 |
|
---|
10204 | ac_cv_member_struct_statfs_f_namelen=no
|
---|
10205 | fi
|
---|
10206 |
|
---|
10207 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10208 | fi
|
---|
10209 |
|
---|
10210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10211 | fi
|
---|
10212 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
|
---|
10213 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
|
---|
10214 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then
|
---|
10215 |
|
---|
10216 | cat >>confdefs.h <<_ACEOF
|
---|
10217 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1
|
---|
10218 | _ACEOF
|
---|
10219 |
|
---|
10220 |
|
---|
10221 | fi
|
---|
10222 |
|
---|
10223 | { echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
|
---|
10224 | echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
|
---|
10225 | if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
|
---|
10226 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10227 | else
|
---|
10228 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10229 | /* confdefs.h. */
|
---|
10230 | _ACEOF
|
---|
10231 | cat confdefs.h >>conftest.$ac_ext
|
---|
10232 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10233 | /* end confdefs.h. */
|
---|
10234 | $statxfs_includes
|
---|
10235 |
|
---|
10236 | int
|
---|
10237 | main ()
|
---|
10238 | {
|
---|
10239 | static struct statvfs ac_aggr;
|
---|
10240 | if (ac_aggr.f_namelen)
|
---|
10241 | return 0;
|
---|
10242 | ;
|
---|
10243 | return 0;
|
---|
10244 | }
|
---|
10245 | _ACEOF
|
---|
10246 | rm -f conftest.$ac_objext
|
---|
10247 | if { (ac_try="$ac_compile"
|
---|
10248 | case "(($ac_try" in
|
---|
10249 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10250 | *) ac_try_echo=$ac_try;;
|
---|
10251 | esac
|
---|
10252 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10253 | (eval "$ac_compile") 2>conftest.er1
|
---|
10254 | ac_status=$?
|
---|
10255 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10256 | rm -f conftest.er1
|
---|
10257 | cat conftest.err >&5
|
---|
10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10259 | (exit $ac_status); } && {
|
---|
10260 | test -z "$ac_c_werror_flag" ||
|
---|
10261 | test ! -s conftest.err
|
---|
10262 | } && test -s conftest.$ac_objext; then
|
---|
10263 | ac_cv_member_struct_statvfs_f_namelen=yes
|
---|
10264 | else
|
---|
10265 | echo "$as_me: failed program was:" >&5
|
---|
10266 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10267 |
|
---|
10268 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10269 | /* confdefs.h. */
|
---|
10270 | _ACEOF
|
---|
10271 | cat confdefs.h >>conftest.$ac_ext
|
---|
10272 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10273 | /* end confdefs.h. */
|
---|
10274 | $statxfs_includes
|
---|
10275 |
|
---|
10276 | int
|
---|
10277 | main ()
|
---|
10278 | {
|
---|
10279 | static struct statvfs ac_aggr;
|
---|
10280 | if (sizeof ac_aggr.f_namelen)
|
---|
10281 | return 0;
|
---|
10282 | ;
|
---|
10283 | return 0;
|
---|
10284 | }
|
---|
10285 | _ACEOF
|
---|
10286 | rm -f conftest.$ac_objext
|
---|
10287 | if { (ac_try="$ac_compile"
|
---|
10288 | case "(($ac_try" in
|
---|
10289 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10290 | *) ac_try_echo=$ac_try;;
|
---|
10291 | esac
|
---|
10292 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10293 | (eval "$ac_compile") 2>conftest.er1
|
---|
10294 | ac_status=$?
|
---|
10295 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10296 | rm -f conftest.er1
|
---|
10297 | cat conftest.err >&5
|
---|
10298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10299 | (exit $ac_status); } && {
|
---|
10300 | test -z "$ac_c_werror_flag" ||
|
---|
10301 | test ! -s conftest.err
|
---|
10302 | } && test -s conftest.$ac_objext; then
|
---|
10303 | ac_cv_member_struct_statvfs_f_namelen=yes
|
---|
10304 | else
|
---|
10305 | echo "$as_me: failed program was:" >&5
|
---|
10306 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10307 |
|
---|
10308 | ac_cv_member_struct_statvfs_f_namelen=no
|
---|
10309 | fi
|
---|
10310 |
|
---|
10311 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10312 | fi
|
---|
10313 |
|
---|
10314 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10315 | fi
|
---|
10316 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
|
---|
10317 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
|
---|
10318 | if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
|
---|
10319 |
|
---|
10320 | cat >>confdefs.h <<_ACEOF
|
---|
10321 | #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
|
---|
10322 | _ACEOF
|
---|
10323 |
|
---|
10324 |
|
---|
10325 | fi
|
---|
10326 |
|
---|
10327 |
|
---|
10328 | #
|
---|
10329 | # Large file support
|
---|
10330 | #
|
---|
10331 | # Check whether --enable-largefile was given.
|
---|
10332 | if test "${enable_largefile+set}" = set; then
|
---|
10333 | enableval=$enable_largefile;
|
---|
10334 | fi
|
---|
10335 |
|
---|
10336 | if test "$enable_largefile" != no; then
|
---|
10337 |
|
---|
10338 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
---|
10339 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
|
---|
10340 | if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
---|
10341 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10342 | else
|
---|
10343 | ac_cv_sys_largefile_CC=no
|
---|
10344 | if test "$GCC" != yes; then
|
---|
10345 | ac_save_CC=$CC
|
---|
10346 | while :; do
|
---|
10347 | # IRIX 6.2 and later do not support large files by default,
|
---|
10348 | # so use the C compiler's -n32 option if that helps.
|
---|
10349 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10350 | /* confdefs.h. */
|
---|
10351 | _ACEOF
|
---|
10352 | cat confdefs.h >>conftest.$ac_ext
|
---|
10353 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10354 | /* end confdefs.h. */
|
---|
10355 | #include <sys/types.h>
|
---|
10356 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
10357 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
10358 | since some C++ compilers masquerading as C compilers
|
---|
10359 | incorrectly reject 9223372036854775807. */
|
---|
10360 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
10361 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
10362 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
10363 | ? 1 : -1];
|
---|
10364 | int
|
---|
10365 | main ()
|
---|
10366 | {
|
---|
10367 |
|
---|
10368 | ;
|
---|
10369 | return 0;
|
---|
10370 | }
|
---|
10371 | _ACEOF
|
---|
10372 | rm -f conftest.$ac_objext
|
---|
10373 | if { (ac_try="$ac_compile"
|
---|
10374 | case "(($ac_try" in
|
---|
10375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10376 | *) ac_try_echo=$ac_try;;
|
---|
10377 | esac
|
---|
10378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10379 | (eval "$ac_compile") 2>conftest.er1
|
---|
10380 | ac_status=$?
|
---|
10381 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10382 | rm -f conftest.er1
|
---|
10383 | cat conftest.err >&5
|
---|
10384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10385 | (exit $ac_status); } && {
|
---|
10386 | test -z "$ac_c_werror_flag" ||
|
---|
10387 | test ! -s conftest.err
|
---|
10388 | } && test -s conftest.$ac_objext; then
|
---|
10389 | break
|
---|
10390 | else
|
---|
10391 | echo "$as_me: failed program was:" >&5
|
---|
10392 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10393 |
|
---|
10394 |
|
---|
10395 | fi
|
---|
10396 |
|
---|
10397 | rm -f core conftest.err conftest.$ac_objext
|
---|
10398 | CC="$CC -n32"
|
---|
10399 | rm -f conftest.$ac_objext
|
---|
10400 | if { (ac_try="$ac_compile"
|
---|
10401 | case "(($ac_try" in
|
---|
10402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10403 | *) ac_try_echo=$ac_try;;
|
---|
10404 | esac
|
---|
10405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10406 | (eval "$ac_compile") 2>conftest.er1
|
---|
10407 | ac_status=$?
|
---|
10408 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10409 | rm -f conftest.er1
|
---|
10410 | cat conftest.err >&5
|
---|
10411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10412 | (exit $ac_status); } && {
|
---|
10413 | test -z "$ac_c_werror_flag" ||
|
---|
10414 | test ! -s conftest.err
|
---|
10415 | } && test -s conftest.$ac_objext; then
|
---|
10416 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
10417 | else
|
---|
10418 | echo "$as_me: failed program was:" >&5
|
---|
10419 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10420 |
|
---|
10421 |
|
---|
10422 | fi
|
---|
10423 |
|
---|
10424 | rm -f core conftest.err conftest.$ac_objext
|
---|
10425 | break
|
---|
10426 | done
|
---|
10427 | CC=$ac_save_CC
|
---|
10428 | rm -f conftest.$ac_ext
|
---|
10429 | fi
|
---|
10430 | fi
|
---|
10431 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
---|
10432 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
|
---|
10433 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
10434 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
10435 | fi
|
---|
10436 |
|
---|
10437 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
10438 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
|
---|
10439 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
---|
10440 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10441 | else
|
---|
10442 | while :; do
|
---|
10443 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10444 | /* confdefs.h. */
|
---|
10445 | _ACEOF
|
---|
10446 | cat confdefs.h >>conftest.$ac_ext
|
---|
10447 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10448 | /* end confdefs.h. */
|
---|
10449 | #include <sys/types.h>
|
---|
10450 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
10451 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
10452 | since some C++ compilers masquerading as C compilers
|
---|
10453 | incorrectly reject 9223372036854775807. */
|
---|
10454 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
10455 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
10456 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
10457 | ? 1 : -1];
|
---|
10458 | int
|
---|
10459 | main ()
|
---|
10460 | {
|
---|
10461 |
|
---|
10462 | ;
|
---|
10463 | return 0;
|
---|
10464 | }
|
---|
10465 | _ACEOF
|
---|
10466 | rm -f conftest.$ac_objext
|
---|
10467 | if { (ac_try="$ac_compile"
|
---|
10468 | case "(($ac_try" in
|
---|
10469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10470 | *) ac_try_echo=$ac_try;;
|
---|
10471 | esac
|
---|
10472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10473 | (eval "$ac_compile") 2>conftest.er1
|
---|
10474 | ac_status=$?
|
---|
10475 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10476 | rm -f conftest.er1
|
---|
10477 | cat conftest.err >&5
|
---|
10478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10479 | (exit $ac_status); } && {
|
---|
10480 | test -z "$ac_c_werror_flag" ||
|
---|
10481 | test ! -s conftest.err
|
---|
10482 | } && test -s conftest.$ac_objext; then
|
---|
10483 | ac_cv_sys_file_offset_bits=no; break
|
---|
10484 | else
|
---|
10485 | echo "$as_me: failed program was:" >&5
|
---|
10486 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10487 |
|
---|
10488 |
|
---|
10489 | fi
|
---|
10490 |
|
---|
10491 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10492 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10493 | /* confdefs.h. */
|
---|
10494 | _ACEOF
|
---|
10495 | cat confdefs.h >>conftest.$ac_ext
|
---|
10496 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10497 | /* end confdefs.h. */
|
---|
10498 | #define _FILE_OFFSET_BITS 64
|
---|
10499 | #include <sys/types.h>
|
---|
10500 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
10501 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
10502 | since some C++ compilers masquerading as C compilers
|
---|
10503 | incorrectly reject 9223372036854775807. */
|
---|
10504 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
10505 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
10506 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
10507 | ? 1 : -1];
|
---|
10508 | int
|
---|
10509 | main ()
|
---|
10510 | {
|
---|
10511 |
|
---|
10512 | ;
|
---|
10513 | return 0;
|
---|
10514 | }
|
---|
10515 | _ACEOF
|
---|
10516 | rm -f conftest.$ac_objext
|
---|
10517 | if { (ac_try="$ac_compile"
|
---|
10518 | case "(($ac_try" in
|
---|
10519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10520 | *) ac_try_echo=$ac_try;;
|
---|
10521 | esac
|
---|
10522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10523 | (eval "$ac_compile") 2>conftest.er1
|
---|
10524 | ac_status=$?
|
---|
10525 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10526 | rm -f conftest.er1
|
---|
10527 | cat conftest.err >&5
|
---|
10528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10529 | (exit $ac_status); } && {
|
---|
10530 | test -z "$ac_c_werror_flag" ||
|
---|
10531 | test ! -s conftest.err
|
---|
10532 | } && test -s conftest.$ac_objext; then
|
---|
10533 | ac_cv_sys_file_offset_bits=64; break
|
---|
10534 | else
|
---|
10535 | echo "$as_me: failed program was:" >&5
|
---|
10536 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10537 |
|
---|
10538 |
|
---|
10539 | fi
|
---|
10540 |
|
---|
10541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10542 | ac_cv_sys_file_offset_bits=unknown
|
---|
10543 | break
|
---|
10544 | done
|
---|
10545 | fi
|
---|
10546 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
10547 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
|
---|
10548 | case $ac_cv_sys_file_offset_bits in #(
|
---|
10549 | no | unknown) ;;
|
---|
10550 | *)
|
---|
10551 | cat >>confdefs.h <<_ACEOF
|
---|
10552 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
10553 | _ACEOF
|
---|
10554 | ;;
|
---|
10555 | esac
|
---|
10556 | rm -f conftest*
|
---|
10557 | if test $ac_cv_sys_file_offset_bits = unknown; then
|
---|
10558 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
---|
10559 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
|
---|
10560 | if test "${ac_cv_sys_large_files+set}" = set; then
|
---|
10561 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10562 | else
|
---|
10563 | while :; do
|
---|
10564 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10565 | /* confdefs.h. */
|
---|
10566 | _ACEOF
|
---|
10567 | cat confdefs.h >>conftest.$ac_ext
|
---|
10568 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10569 | /* end confdefs.h. */
|
---|
10570 | #include <sys/types.h>
|
---|
10571 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
10572 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
10573 | since some C++ compilers masquerading as C compilers
|
---|
10574 | incorrectly reject 9223372036854775807. */
|
---|
10575 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
10576 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
10577 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
10578 | ? 1 : -1];
|
---|
10579 | int
|
---|
10580 | main ()
|
---|
10581 | {
|
---|
10582 |
|
---|
10583 | ;
|
---|
10584 | return 0;
|
---|
10585 | }
|
---|
10586 | _ACEOF
|
---|
10587 | rm -f conftest.$ac_objext
|
---|
10588 | if { (ac_try="$ac_compile"
|
---|
10589 | case "(($ac_try" in
|
---|
10590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10591 | *) ac_try_echo=$ac_try;;
|
---|
10592 | esac
|
---|
10593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10594 | (eval "$ac_compile") 2>conftest.er1
|
---|
10595 | ac_status=$?
|
---|
10596 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10597 | rm -f conftest.er1
|
---|
10598 | cat conftest.err >&5
|
---|
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10600 | (exit $ac_status); } && {
|
---|
10601 | test -z "$ac_c_werror_flag" ||
|
---|
10602 | test ! -s conftest.err
|
---|
10603 | } && test -s conftest.$ac_objext; then
|
---|
10604 | ac_cv_sys_large_files=no; break
|
---|
10605 | else
|
---|
10606 | echo "$as_me: failed program was:" >&5
|
---|
10607 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10608 |
|
---|
10609 |
|
---|
10610 | fi
|
---|
10611 |
|
---|
10612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10613 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10614 | /* confdefs.h. */
|
---|
10615 | _ACEOF
|
---|
10616 | cat confdefs.h >>conftest.$ac_ext
|
---|
10617 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10618 | /* end confdefs.h. */
|
---|
10619 | #define _LARGE_FILES 1
|
---|
10620 | #include <sys/types.h>
|
---|
10621 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
10622 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
10623 | since some C++ compilers masquerading as C compilers
|
---|
10624 | incorrectly reject 9223372036854775807. */
|
---|
10625 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
10626 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
10627 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
10628 | ? 1 : -1];
|
---|
10629 | int
|
---|
10630 | main ()
|
---|
10631 | {
|
---|
10632 |
|
---|
10633 | ;
|
---|
10634 | return 0;
|
---|
10635 | }
|
---|
10636 | _ACEOF
|
---|
10637 | rm -f conftest.$ac_objext
|
---|
10638 | if { (ac_try="$ac_compile"
|
---|
10639 | case "(($ac_try" in
|
---|
10640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10641 | *) ac_try_echo=$ac_try;;
|
---|
10642 | esac
|
---|
10643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10644 | (eval "$ac_compile") 2>conftest.er1
|
---|
10645 | ac_status=$?
|
---|
10646 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10647 | rm -f conftest.er1
|
---|
10648 | cat conftest.err >&5
|
---|
10649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10650 | (exit $ac_status); } && {
|
---|
10651 | test -z "$ac_c_werror_flag" ||
|
---|
10652 | test ! -s conftest.err
|
---|
10653 | } && test -s conftest.$ac_objext; then
|
---|
10654 | ac_cv_sys_large_files=1; break
|
---|
10655 | else
|
---|
10656 | echo "$as_me: failed program was:" >&5
|
---|
10657 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10658 |
|
---|
10659 |
|
---|
10660 | fi
|
---|
10661 |
|
---|
10662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10663 | ac_cv_sys_large_files=unknown
|
---|
10664 | break
|
---|
10665 | done
|
---|
10666 | fi
|
---|
10667 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
---|
10668 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
|
---|
10669 | case $ac_cv_sys_large_files in #(
|
---|
10670 | no | unknown) ;;
|
---|
10671 | *)
|
---|
10672 | cat >>confdefs.h <<_ACEOF
|
---|
10673 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
10674 | _ACEOF
|
---|
10675 | ;;
|
---|
10676 | esac
|
---|
10677 | rm -f conftest*
|
---|
10678 | fi
|
---|
10679 | fi
|
---|
10680 |
|
---|
10681 |
|
---|
10682 | #
|
---|
10683 | # mntent
|
---|
10684 | #
|
---|
10685 | if test "${ac_cv_header_mntent_h+set}" = set; then
|
---|
10686 | { echo "$as_me:$LINENO: checking for mntent.h" >&5
|
---|
10687 | echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6; }
|
---|
10688 | if test "${ac_cv_header_mntent_h+set}" = set; then
|
---|
10689 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10690 | fi
|
---|
10691 | { echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
|
---|
10692 | echo "${ECHO_T}$ac_cv_header_mntent_h" >&6; }
|
---|
10693 | else
|
---|
10694 | # Is the header compilable?
|
---|
10695 | { echo "$as_me:$LINENO: checking mntent.h usability" >&5
|
---|
10696 | echo $ECHO_N "checking mntent.h usability... $ECHO_C" >&6; }
|
---|
10697 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10698 | /* confdefs.h. */
|
---|
10699 | _ACEOF
|
---|
10700 | cat confdefs.h >>conftest.$ac_ext
|
---|
10701 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10702 | /* end confdefs.h. */
|
---|
10703 | $ac_includes_default
|
---|
10704 | #include <mntent.h>
|
---|
10705 | _ACEOF
|
---|
10706 | rm -f conftest.$ac_objext
|
---|
10707 | if { (ac_try="$ac_compile"
|
---|
10708 | case "(($ac_try" in
|
---|
10709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10710 | *) ac_try_echo=$ac_try;;
|
---|
10711 | esac
|
---|
10712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10713 | (eval "$ac_compile") 2>conftest.er1
|
---|
10714 | ac_status=$?
|
---|
10715 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10716 | rm -f conftest.er1
|
---|
10717 | cat conftest.err >&5
|
---|
10718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10719 | (exit $ac_status); } && {
|
---|
10720 | test -z "$ac_c_werror_flag" ||
|
---|
10721 | test ! -s conftest.err
|
---|
10722 | } && test -s conftest.$ac_objext; then
|
---|
10723 | ac_header_compiler=yes
|
---|
10724 | else
|
---|
10725 | echo "$as_me: failed program was:" >&5
|
---|
10726 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10727 |
|
---|
10728 | ac_header_compiler=no
|
---|
10729 | fi
|
---|
10730 |
|
---|
10731 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
10732 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
10733 | echo "${ECHO_T}$ac_header_compiler" >&6; }
|
---|
10734 |
|
---|
10735 | # Is the header present?
|
---|
10736 | { echo "$as_me:$LINENO: checking mntent.h presence" >&5
|
---|
10737 | echo $ECHO_N "checking mntent.h presence... $ECHO_C" >&6; }
|
---|
10738 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10739 | /* confdefs.h. */
|
---|
10740 | _ACEOF
|
---|
10741 | cat confdefs.h >>conftest.$ac_ext
|
---|
10742 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10743 | /* end confdefs.h. */
|
---|
10744 | #include <mntent.h>
|
---|
10745 | _ACEOF
|
---|
10746 | if { (ac_try="$ac_cpp conftest.$ac_ext"
|
---|
10747 | case "(($ac_try" in
|
---|
10748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10749 | *) ac_try_echo=$ac_try;;
|
---|
10750 | esac
|
---|
10751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
|
---|
10753 | ac_status=$?
|
---|
10754 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10755 | rm -f conftest.er1
|
---|
10756 | cat conftest.err >&5
|
---|
10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10758 | (exit $ac_status); } >/dev/null && {
|
---|
10759 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
|
---|
10760 | test ! -s conftest.err
|
---|
10761 | }; then
|
---|
10762 | ac_header_preproc=yes
|
---|
10763 | else
|
---|
10764 | echo "$as_me: failed program was:" >&5
|
---|
10765 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10766 |
|
---|
10767 | ac_header_preproc=no
|
---|
10768 | fi
|
---|
10769 |
|
---|
10770 | rm -f conftest.err conftest.$ac_ext
|
---|
10771 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
10772 | echo "${ECHO_T}$ac_header_preproc" >&6; }
|
---|
10773 |
|
---|
10774 | # So? What about this header?
|
---|
10775 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
10776 | yes:no: )
|
---|
10777 | { echo "$as_me:$LINENO: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
10778 | echo "$as_me: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
10779 | { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the compiler's result" >&5
|
---|
10780 | echo "$as_me: WARNING: mntent.h: proceeding with the compiler's result" >&2;}
|
---|
10781 | ac_header_preproc=yes
|
---|
10782 | ;;
|
---|
10783 | no:yes:* )
|
---|
10784 | { echo "$as_me:$LINENO: WARNING: mntent.h: present but cannot be compiled" >&5
|
---|
10785 | echo "$as_me: WARNING: mntent.h: present but cannot be compiled" >&2;}
|
---|
10786 | { echo "$as_me:$LINENO: WARNING: mntent.h: check for missing prerequisite headers?" >&5
|
---|
10787 | echo "$as_me: WARNING: mntent.h: check for missing prerequisite headers?" >&2;}
|
---|
10788 | { echo "$as_me:$LINENO: WARNING: mntent.h: see the Autoconf documentation" >&5
|
---|
10789 | echo "$as_me: WARNING: mntent.h: see the Autoconf documentation" >&2;}
|
---|
10790 | { echo "$as_me:$LINENO: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
10791 | echo "$as_me: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
10792 | { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the preprocessor's result" >&5
|
---|
10793 | echo "$as_me: WARNING: mntent.h: proceeding with the preprocessor's result" >&2;}
|
---|
10794 | { echo "$as_me:$LINENO: WARNING: mntent.h: in the future, the compiler will take precedence" >&5
|
---|
10795 | echo "$as_me: WARNING: mntent.h: in the future, the compiler will take precedence" >&2;}
|
---|
10796 |
|
---|
10797 | ;;
|
---|
10798 | esac
|
---|
10799 | { echo "$as_me:$LINENO: checking for mntent.h" >&5
|
---|
10800 | echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6; }
|
---|
10801 | if test "${ac_cv_header_mntent_h+set}" = set; then
|
---|
10802 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10803 | else
|
---|
10804 | ac_cv_header_mntent_h=$ac_header_preproc
|
---|
10805 | fi
|
---|
10806 | { echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
|
---|
10807 | echo "${ECHO_T}$ac_cv_header_mntent_h" >&6; }
|
---|
10808 |
|
---|
10809 | fi
|
---|
10810 | if test $ac_cv_header_mntent_h = yes; then
|
---|
10811 | cat >>confdefs.h <<\_ACEOF
|
---|
10812 | #define HAVE_MNTENT_H 1
|
---|
10813 | _ACEOF
|
---|
10814 |
|
---|
10815 | fi
|
---|
10816 |
|
---|
10817 |
|
---|
10818 |
|
---|
10819 | for ac_func in setmntent
|
---|
10820 | do
|
---|
10821 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
10822 | { echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
10823 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
|
---|
10824 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
|
---|
10825 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10826 | else
|
---|
10827 | cat >conftest.$ac_ext <<_ACEOF
|
---|
10828 | /* confdefs.h. */
|
---|
10829 | _ACEOF
|
---|
10830 | cat confdefs.h >>conftest.$ac_ext
|
---|
10831 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
10832 | /* end confdefs.h. */
|
---|
10833 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
10834 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
10835 | #define $ac_func innocuous_$ac_func
|
---|
10836 |
|
---|
10837 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
10838 | which can conflict with char $ac_func (); below.
|
---|
10839 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
10840 | <limits.h> exists even on freestanding compilers. */
|
---|
10841 |
|
---|
10842 | #ifdef __STDC__
|
---|
10843 | # include <limits.h>
|
---|
10844 | #else
|
---|
10845 | # include <assert.h>
|
---|
10846 | #endif
|
---|
10847 |
|
---|
10848 | #undef $ac_func
|
---|
10849 |
|
---|
10850 | /* Override any GCC internal prototype to avoid an error.
|
---|
10851 | Use char because int might match the return type of a GCC
|
---|
10852 | builtin and then its argument prototype would still apply. */
|
---|
10853 | #ifdef __cplusplus
|
---|
10854 | extern "C"
|
---|
10855 | #endif
|
---|
10856 | char $ac_func ();
|
---|
10857 | /* The GNU C library defines this for functions which it implements
|
---|
10858 | to always fail with ENOSYS. Some functions are actually named
|
---|
10859 | something starting with __ and the normal name is an alias. */
|
---|
10860 | #if defined __stub_$ac_func || defined __stub___$ac_func
|
---|
10861 | choke me
|
---|
10862 | #endif
|
---|
10863 |
|
---|
10864 | int
|
---|
10865 | main ()
|
---|
10866 | {
|
---|
10867 | return $ac_func ();
|
---|
10868 | ;
|
---|
10869 | return 0;
|
---|
10870 | }
|
---|
10871 | _ACEOF
|
---|
10872 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10873 | if { (ac_try="$ac_link"
|
---|
10874 | case "(($ac_try" in
|
---|
10875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
---|
10876 | *) ac_try_echo=$ac_try;;
|
---|
10877 | esac
|
---|
10878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
|
---|
10879 | (eval "$ac_link") 2>conftest.er1
|
---|
10880 | ac_status=$?
|
---|
10881 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10882 | rm -f conftest.er1
|
---|
10883 | cat conftest.err >&5
|
---|
10884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10885 | (exit $ac_status); } && {
|
---|
10886 | test -z "$ac_c_werror_flag" ||
|
---|
10887 | test ! -s conftest.err
|
---|
10888 | } && test -s conftest$ac_exeext &&
|
---|
10889 | $as_test_x conftest$ac_exeext; then
|
---|
10890 | eval "$as_ac_var=yes"
|
---|
10891 | else
|
---|
10892 | echo "$as_me: failed program was:" >&5
|
---|
10893 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10894 |
|
---|
10895 | eval "$as_ac_var=no"
|
---|
10896 | fi
|
---|
10897 |
|
---|
10898 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
|
---|
10899 | conftest$ac_exeext conftest.$ac_ext
|
---|
10900 | fi
|
---|
10901 | ac_res=`eval echo '${'$as_ac_var'}'`
|
---|
10902 | { echo "$as_me:$LINENO: result: $ac_res" >&5
|
---|
10903 | echo "${ECHO_T}$ac_res" >&6; }
|
---|
10904 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
10905 | cat >>confdefs.h <<_ACEOF
|
---|
10906 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
10907 | _ACEOF
|
---|
10908 |
|
---|
10909 | fi
|
---|
10910 | done
|
---|
10911 |
|
---|
10912 |
|
---|
10913 | #
|
---|
10914 | # IPv6
|
---|
10915 | #
|
---|
10916 |
|
---|
10917 | # Check whether --with-ipv6 was given.
|
---|
10918 | if test "${with_ipv6+set}" = set; then
|
---|
10919 | withval=$with_ipv6;
|
---|
10920 | if test $withval != "no";
|
---|
10921 | then
|
---|
10922 | cat >>confdefs.h <<\_ACEOF
|
---|
10923 | #define IPv6 1
|
---|
10924 | _ACEOF
|
---|
10925 |
|
---|
10926 | fi
|
---|
10927 |
|
---|
10928 | fi
|
---|
10929 |
|
---|
10930 |
|
---|
10931 |
|
---|
10932 | #
|
---|
10933 | # debugging
|
---|
10934 | #
|
---|
10935 |
|
---|
10936 | # Check whether --with-debug was given.
|
---|
10937 | if test "${with_debug+set}" = set; then
|
---|
10938 | withval=$with_debug;
|
---|
10939 | if test $withval != "no";
|
---|
10940 | then
|
---|
10941 | cat >>confdefs.h <<\_ACEOF
|
---|
10942 | #define WITH_DEBUG 1
|
---|
10943 | _ACEOF
|
---|
10944 |
|
---|
10945 | fi
|
---|
10946 |
|
---|
10947 | fi
|
---|
10948 |
|
---|
10949 |
|
---|
10950 |
|
---|
10951 | # Check whether --with-debug-kbd was given.
|
---|
10952 | if test "${with_debug_kbd+set}" = set; then
|
---|
10953 | withval=$with_debug_kbd;
|
---|
10954 | if test $withval != "no";
|
---|
10955 | then
|
---|
10956 | cat >>confdefs.h <<\_ACEOF
|
---|
10957 | #define WITH_DEBUG_KBD 1
|
---|
10958 | _ACEOF
|
---|
10959 |
|
---|
10960 | fi
|
---|
10961 |
|
---|
10962 | fi
|
---|
10963 |
|
---|
10964 |
|
---|
10965 |
|
---|
10966 | # Check whether --with-debug-rdp5 was given.
|
---|
10967 | if test "${with_debug_rdp5+set}" = set; then
|
---|
10968 | withval=$with_debug_rdp5;
|
---|
10969 | if test $withval != "no";
|
---|
10970 | then
|
---|
10971 | cat >>confdefs.h <<\_ACEOF
|
---|
10972 | #define WITH_DEBUG_RDP5 1
|
---|
10973 | _ACEOF
|
---|
10974 |
|
---|
10975 | fi
|
---|
10976 |
|
---|
10977 | fi
|
---|
10978 |
|
---|
10979 |
|
---|
10980 |
|
---|
10981 | # Check whether --with-debug-clipboard was given.
|
---|
10982 | if test "${with_debug_clipboard+set}" = set; then
|
---|
10983 | withval=$with_debug_clipboard;
|
---|
10984 | if test $withval != "no";
|
---|
10985 | then
|
---|
10986 | cat >>confdefs.h <<\_ACEOF
|
---|
10987 | #define WITH_DEBUG_CLIPBOARD 1
|
---|
10988 | _ACEOF
|
---|
10989 |
|
---|
10990 | fi
|
---|
10991 |
|
---|
10992 | fi
|
---|
10993 |
|
---|
10994 |
|
---|
10995 |
|
---|
10996 | # Check whether --with-debug-sound was given.
|
---|
10997 | if test "${with_debug_sound+set}" = set; then
|
---|
10998 | withval=$with_debug_sound;
|
---|
10999 | if test $withval != "no";
|
---|
11000 | then
|
---|
11001 | cat >>confdefs.h <<\_ACEOF
|
---|
11002 | #define WITH_DEBUG_SOUND 1
|
---|
11003 | _ACEOF
|
---|
11004 |
|
---|
11005 | fi
|
---|
11006 |
|
---|
11007 | fi
|
---|
11008 |
|
---|
11009 |
|
---|
11010 |
|
---|
11011 | # Check whether --with-debug-channel was given.
|
---|
11012 | if test "${with_debug_channel+set}" = set; then
|
---|
11013 | withval=$with_debug_channel;
|
---|
11014 | if test $withval != "no";
|
---|
11015 | then
|
---|
11016 | cat >>confdefs.h <<\_ACEOF
|
---|
11017 | #define WITH_DEBUG_CHANNEL 1
|
---|
11018 | _ACEOF
|
---|
11019 |
|
---|
11020 | fi
|
---|
11021 |
|
---|
11022 | fi
|
---|
11023 |
|
---|
11024 |
|
---|
11025 |
|
---|
11026 | # Check whether --with-debug-seamless was given.
|
---|
11027 | if test "${with_debug_seamless+set}" = set; then
|
---|
11028 | withval=$with_debug_seamless;
|
---|
11029 | if test $withval != "no";
|
---|
11030 | then
|
---|
11031 | cat >>confdefs.h <<\_ACEOF
|
---|
11032 | #define WITH_DEBUG_SEAMLESS 1
|
---|
11033 | _ACEOF
|
---|
11034 |
|
---|
11035 | fi
|
---|
11036 |
|
---|
11037 | fi
|
---|
11038 |
|
---|
11039 |
|
---|
11040 |
|
---|
11041 | # Check whether --with-debug-smartcard was given.
|
---|
11042 | if test "${with_debug_smartcard+set}" = set; then
|
---|
11043 | withval=$with_debug_smartcard;
|
---|
11044 | if test $withval != "no";
|
---|
11045 | then
|
---|
11046 | if test x"$WITH_SCARD" = "x1"; then
|
---|
11047 | cat >>confdefs.h <<\_ACEOF
|
---|
11048 | #define WITH_DEBUG_SCARD 1
|
---|
11049 | _ACEOF
|
---|
11050 |
|
---|
11051 | fi
|
---|
11052 | fi
|
---|
11053 |
|
---|
11054 | fi
|
---|
11055 |
|
---|
11056 |
|
---|
11057 | #
|
---|
11058 | # target-specific stuff
|
---|
11059 | #
|
---|
11060 | # strip leading colon from rpath
|
---|
11061 | rpath=`echo $rpath |sed 's/^://'`
|
---|
11062 | # Make sure we can run config.sub.
|
---|
11063 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
|
---|
11064 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
|
---|
11065 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
|
---|
11066 | { (exit 1); exit 1; }; }
|
---|
11067 |
|
---|
11068 | { echo "$as_me:$LINENO: checking build system type" >&5
|
---|
11069 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
|
---|
11070 | if test "${ac_cv_build+set}" = set; then
|
---|
11071 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11072 | else
|
---|
11073 | ac_build_alias=$build_alias
|
---|
11074 | test "x$ac_build_alias" = x &&
|
---|
11075 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
|
---|
11076 | test "x$ac_build_alias" = x &&
|
---|
11077 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
11078 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
11079 | { (exit 1); exit 1; }; }
|
---|
11080 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
|
---|
11081 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
|
---|
11082 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
|
---|
11083 | { (exit 1); exit 1; }; }
|
---|
11084 |
|
---|
11085 | fi
|
---|
11086 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
11087 | echo "${ECHO_T}$ac_cv_build" >&6; }
|
---|
11088 | case $ac_cv_build in
|
---|
11089 | *-*-*) ;;
|
---|
11090 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
|
---|
11091 | echo "$as_me: error: invalid value of canonical build" >&2;}
|
---|
11092 | { (exit 1); exit 1; }; };;
|
---|
11093 | esac
|
---|
11094 | build=$ac_cv_build
|
---|
11095 | ac_save_IFS=$IFS; IFS='-'
|
---|
11096 | set x $ac_cv_build
|
---|
11097 | shift
|
---|
11098 | build_cpu=$1
|
---|
11099 | build_vendor=$2
|
---|
11100 | shift; shift
|
---|
11101 | # Remember, the first character of IFS is used to create $*,
|
---|
11102 | # except with old shells:
|
---|
11103 | build_os=$*
|
---|
11104 | IFS=$ac_save_IFS
|
---|
11105 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
|
---|
11106 |
|
---|
11107 |
|
---|
11108 | { echo "$as_me:$LINENO: checking host system type" >&5
|
---|
11109 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
|
---|
11110 | if test "${ac_cv_host+set}" = set; then
|
---|
11111 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
11112 | else
|
---|
11113 | if test "x$host_alias" = x; then
|
---|
11114 | ac_cv_host=$ac_cv_build
|
---|
11115 | else
|
---|
11116 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
|
---|
11117 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
|
---|
11118 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
|
---|
11119 | { (exit 1); exit 1; }; }
|
---|
11120 | fi
|
---|
11121 |
|
---|
11122 | fi
|
---|
11123 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
11124 | echo "${ECHO_T}$ac_cv_host" >&6; }
|
---|
11125 | case $ac_cv_host in
|
---|
11126 | *-*-*) ;;
|
---|
11127 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
|
---|
11128 | echo "$as_me: error: invalid value of canonical host" >&2;}
|
---|
11129 | { (exit 1); exit 1; }; };;
|
---|
11130 | esac
|
---|
11131 | host=$ac_cv_host
|
---|
11132 | ac_save_IFS=$IFS; IFS='-'
|
---|
11133 | set x $ac_cv_host
|
---|
11134 | shift
|
---|
11135 | host_cpu=$1
|
---|
11136 | host_vendor=$2
|
---|
11137 | shift; shift
|
---|
11138 | # Remember, the first character of IFS is used to create $*,
|
---|
11139 | # except with old shells:
|
---|
11140 | host_os=$*
|
---|
11141 | IFS=$ac_save_IFS
|
---|
11142 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
|
---|
11143 |
|
---|
11144 |
|
---|
11145 | case "$host" in
|
---|
11146 | *-*-solaris*)
|
---|
11147 | LDFLAGS="$LDFLAGS -R$rpath"
|
---|
11148 | ;;
|
---|
11149 | *-dec-osf*)
|
---|
11150 | LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
|
---|
11151 | ;;
|
---|
11152 | *-*-hpux*)
|
---|
11153 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
---|
11154 | ;;
|
---|
11155 | *-*-irix6.5*)
|
---|
11156 | LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
|
---|
11157 | CFLAGS="$CFLAGS -D__SGI_IRIX__"
|
---|
11158 | ;;
|
---|
11159 | esac
|
---|
11160 |
|
---|
11161 |
|
---|
11162 | ac_config_files="$ac_config_files Makefile"
|
---|
11163 |
|
---|
11164 | cat >confcache <<\_ACEOF
|
---|
11165 | # This file is a shell script that caches the results of configure
|
---|
11166 | # tests run on this system so they can be shared between configure
|
---|
11167 | # scripts and configure runs, see configure's option --config-cache.
|
---|
11168 | # It is not useful on other systems. If it contains results you don't
|
---|
11169 | # want to keep, you may remove or edit it.
|
---|
11170 | #
|
---|
11171 | # config.status only pays attention to the cache file if you give it
|
---|
11172 | # the --recheck option to rerun configure.
|
---|
11173 | #
|
---|
11174 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
11175 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
11176 | # following values.
|
---|
11177 |
|
---|
11178 | _ACEOF
|
---|
11179 |
|
---|
11180 | # The following way of writing the cache mishandles newlines in values,
|
---|
11181 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
11182 | # So, we kill variables containing newlines.
|
---|
11183 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
11184 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
11185 | (
|
---|
11186 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
|
---|
11187 | eval ac_val=\$$ac_var
|
---|
11188 | case $ac_val in #(
|
---|
11189 | *${as_nl}*)
|
---|
11190 | case $ac_var in #(
|
---|
11191 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
|
---|
11192 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
|
---|
11193 | esac
|
---|
11194 | case $ac_var in #(
|
---|
11195 | _ | IFS | as_nl) ;; #(
|
---|
11196 | *) $as_unset $ac_var ;;
|
---|
11197 | esac ;;
|
---|
11198 | esac
|
---|
11199 | done
|
---|
11200 |
|
---|
11201 | (set) 2>&1 |
|
---|
11202 | case $as_nl`(ac_space=' '; set) 2>&1` in #(
|
---|
11203 | *${as_nl}ac_space=\ *)
|
---|
11204 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
11205 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
11206 | sed -n \
|
---|
11207 | "s/'/'\\\\''/g;
|
---|
11208 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
11209 | ;; #(
|
---|
11210 | *)
|
---|
11211 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
11212 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
|
---|
11213 | ;;
|
---|
11214 | esac |
|
---|
11215 | sort
|
---|
11216 | ) |
|
---|
11217 | sed '
|
---|
11218 | /^ac_cv_env_/b end
|
---|
11219 | t clear
|
---|
11220 | :clear
|
---|
11221 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
11222 | t end
|
---|
11223 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
11224 | :end' >>confcache
|
---|
11225 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
|
---|
11226 | if test -w "$cache_file"; then
|
---|
11227 | test "x$cache_file" != "x/dev/null" &&
|
---|
11228 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5
|
---|
11229 | echo "$as_me: updating cache $cache_file" >&6;}
|
---|
11230 | cat confcache >$cache_file
|
---|
11231 | else
|
---|
11232 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
|
---|
11233 | echo "$as_me: not updating unwritable cache $cache_file" >&6;}
|
---|
11234 | fi
|
---|
11235 | fi
|
---|
11236 | rm -f confcache
|
---|
11237 |
|
---|
11238 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
11239 | # Let make expand exec_prefix.
|
---|
11240 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
11241 |
|
---|
11242 | # Transform confdefs.h into DEFS.
|
---|
11243 | # Protect against shell expansion while executing Makefile rules.
|
---|
11244 | # Protect against Makefile macro expansion.
|
---|
11245 | #
|
---|
11246 | # If the first sed substitution is executed (which looks for macros that
|
---|
11247 | # take arguments), then branch to the quote section. Otherwise,
|
---|
11248 | # look for a macro that doesn't take arguments.
|
---|
11249 | ac_script='
|
---|
11250 | t clear
|
---|
11251 | :clear
|
---|
11252 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
|
---|
11253 | t quote
|
---|
11254 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
|
---|
11255 | t quote
|
---|
11256 | b any
|
---|
11257 | :quote
|
---|
11258 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
|
---|
11259 | s/\[/\\&/g
|
---|
11260 | s/\]/\\&/g
|
---|
11261 | s/\$/$$/g
|
---|
11262 | H
|
---|
11263 | :any
|
---|
11264 | ${
|
---|
11265 | g
|
---|
11266 | s/^\n//
|
---|
11267 | s/\n/ /g
|
---|
11268 | p
|
---|
11269 | }
|
---|
11270 | '
|
---|
11271 | DEFS=`sed -n "$ac_script" confdefs.h`
|
---|
11272 |
|
---|
11273 |
|
---|
11274 | ac_libobjs=
|
---|
11275 | ac_ltlibobjs=
|
---|
11276 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
11277 | # 1. Remove the extension, and $U if already installed.
|
---|
11278 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
|
---|
11279 | ac_i=`echo "$ac_i" | sed "$ac_script"`
|
---|
11280 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
|
---|
11281 | # will be set to the directory where LIBOBJS objects are built.
|
---|
11282 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
|
---|
11283 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
|
---|
11284 | done
|
---|
11285 | LIBOBJS=$ac_libobjs
|
---|
11286 |
|
---|
11287 | LTLIBOBJS=$ac_ltlibobjs
|
---|
11288 |
|
---|
11289 |
|
---|
11290 |
|
---|
11291 | : ${CONFIG_STATUS=./config.status}
|
---|
11292 | ac_clean_files_save=$ac_clean_files
|
---|
11293 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
11294 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
11295 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
11296 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
11297 | #! $SHELL
|
---|
11298 | # Generated by $as_me.
|
---|
11299 | # Run this file to recreate the current configuration.
|
---|
11300 | # Compiler output produced by configure, useful for debugging
|
---|
11301 | # configure, is in config.log if it exists.
|
---|
11302 |
|
---|
11303 | debug=false
|
---|
11304 | ac_cs_recheck=false
|
---|
11305 | ac_cs_silent=false
|
---|
11306 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
11307 | _ACEOF
|
---|
11308 |
|
---|
11309 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11310 | ## --------------------- ##
|
---|
11311 | ## M4sh Initialization. ##
|
---|
11312 | ## --------------------- ##
|
---|
11313 |
|
---|
11314 | # Be more Bourne compatible
|
---|
11315 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
11316 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
11317 | emulate sh
|
---|
11318 | NULLCMD=:
|
---|
11319 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
11320 | # is contrary to our usage. Disable this feature.
|
---|
11321 | alias -g '${1+"$@"}'='"$@"'
|
---|
11322 | setopt NO_GLOB_SUBST
|
---|
11323 | else
|
---|
11324 | case `(set -o) 2>/dev/null` in
|
---|
11325 | *posix*) set -o posix ;;
|
---|
11326 | esac
|
---|
11327 |
|
---|
11328 | fi
|
---|
11329 |
|
---|
11330 |
|
---|
11331 |
|
---|
11332 |
|
---|
11333 | # PATH needs CR
|
---|
11334 | # Avoid depending upon Character Ranges.
|
---|
11335 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
11336 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
11337 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
11338 | as_cr_digits='0123456789'
|
---|
11339 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
11340 |
|
---|
11341 | # The user is always right.
|
---|
11342 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
11343 | echo "#! /bin/sh" >conf$$.sh
|
---|
11344 | echo "exit 0" >>conf$$.sh
|
---|
11345 | chmod +x conf$$.sh
|
---|
11346 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
11347 | PATH_SEPARATOR=';'
|
---|
11348 | else
|
---|
11349 | PATH_SEPARATOR=:
|
---|
11350 | fi
|
---|
11351 | rm -f conf$$.sh
|
---|
11352 | fi
|
---|
11353 |
|
---|
11354 | # Support unset when possible.
|
---|
11355 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
11356 | as_unset=unset
|
---|
11357 | else
|
---|
11358 | as_unset=false
|
---|
11359 | fi
|
---|
11360 |
|
---|
11361 |
|
---|
11362 | # IFS
|
---|
11363 | # We need space, tab and new line, in precisely that order. Quoting is
|
---|
11364 | # there to prevent editors from complaining about space-tab.
|
---|
11365 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word
|
---|
11366 | # splitting by setting IFS to empty value.)
|
---|
11367 | as_nl='
|
---|
11368 | '
|
---|
11369 | IFS=" "" $as_nl"
|
---|
11370 |
|
---|
11371 | # Find who we are. Look in the path if we contain no directory separator.
|
---|
11372 | case $0 in
|
---|
11373 | *[\\/]* ) as_myself=$0 ;;
|
---|
11374 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
11375 | for as_dir in $PATH
|
---|
11376 | do
|
---|
11377 | IFS=$as_save_IFS
|
---|
11378 | test -z "$as_dir" && as_dir=.
|
---|
11379 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
11380 | done
|
---|
11381 | IFS=$as_save_IFS
|
---|
11382 |
|
---|
11383 | ;;
|
---|
11384 | esac
|
---|
11385 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
11386 | # in which case we are not to be found in the path.
|
---|
11387 | if test "x$as_myself" = x; then
|
---|
11388 | as_myself=$0
|
---|
11389 | fi
|
---|
11390 | if test ! -f "$as_myself"; then
|
---|
11391 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
|
---|
11392 | { (exit 1); exit 1; }
|
---|
11393 | fi
|
---|
11394 |
|
---|
11395 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
11396 | for as_var in ENV MAIL MAILPATH
|
---|
11397 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
11398 | done
|
---|
11399 | PS1='$ '
|
---|
11400 | PS2='> '
|
---|
11401 | PS4='+ '
|
---|
11402 |
|
---|
11403 | # NLS nuisances.
|
---|
11404 | for as_var in \
|
---|
11405 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
11406 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
11407 | LC_TELEPHONE LC_TIME
|
---|
11408 | do
|
---|
11409 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
11410 | eval $as_var=C; export $as_var
|
---|
11411 | else
|
---|
11412 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
|
---|
11413 | fi
|
---|
11414 | done
|
---|
11415 |
|
---|
11416 | # Required to use basename.
|
---|
11417 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
11418 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
11419 | as_expr=expr
|
---|
11420 | else
|
---|
11421 | as_expr=false
|
---|
11422 | fi
|
---|
11423 |
|
---|
11424 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
|
---|
11425 | as_basename=basename
|
---|
11426 | else
|
---|
11427 | as_basename=false
|
---|
11428 | fi
|
---|
11429 |
|
---|
11430 |
|
---|
11431 | # Name of the executable.
|
---|
11432 | as_me=`$as_basename -- "$0" ||
|
---|
11433 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
11434 | X"$0" : 'X\(//\)$' \| \
|
---|
11435 | X"$0" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
11436 | echo X/"$0" |
|
---|
11437 | sed '/^.*\/\([^/][^/]*\)\/*$/{
|
---|
11438 | s//\1/
|
---|
11439 | q
|
---|
11440 | }
|
---|
11441 | /^X\/\(\/\/\)$/{
|
---|
11442 | s//\1/
|
---|
11443 | q
|
---|
11444 | }
|
---|
11445 | /^X\/\(\/\).*/{
|
---|
11446 | s//\1/
|
---|
11447 | q
|
---|
11448 | }
|
---|
11449 | s/.*/./; q'`
|
---|
11450 |
|
---|
11451 | # CDPATH.
|
---|
11452 | $as_unset CDPATH
|
---|
11453 |
|
---|
11454 |
|
---|
11455 |
|
---|
11456 | as_lineno_1=$LINENO
|
---|
11457 | as_lineno_2=$LINENO
|
---|
11458 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
11459 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
|
---|
11460 |
|
---|
11461 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
11462 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
11463 | # line-number line after each line using $LINENO; the second 'sed'
|
---|
11464 | # does the real work. The second script uses 'N' to pair each
|
---|
11465 | # line-number line with the line containing $LINENO, and appends
|
---|
11466 | # trailing '-' during substitution so that $LINENO is not a special
|
---|
11467 | # case at line end.
|
---|
11468 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
11469 | # scripts with optimization help from Paolo Bonzini. Blame Lee
|
---|
11470 | # E. McMahon (1931-1989) for sed's syntax. :-)
|
---|
11471 | sed -n '
|
---|
11472 | p
|
---|
11473 | /[$]LINENO/=
|
---|
11474 | ' <$as_myself |
|
---|
11475 | sed '
|
---|
11476 | s/[$]LINENO.*/&-/
|
---|
11477 | t lineno
|
---|
11478 | b
|
---|
11479 | :lineno
|
---|
11480 | N
|
---|
11481 | :loop
|
---|
11482 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
|
---|
11483 | t loop
|
---|
11484 | s/-\n.*//
|
---|
11485 | ' >$as_me.lineno &&
|
---|
11486 | chmod +x "$as_me.lineno" ||
|
---|
11487 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
11488 | { (exit 1); exit 1; }; }
|
---|
11489 |
|
---|
11490 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
11491 | # (the dirname of $[0] is not the place where we might find the
|
---|
11492 | # original and so on. Autoconf is especially sensitive to this).
|
---|
11493 | . "./$as_me.lineno"
|
---|
11494 | # Exit status is that of the last command.
|
---|
11495 | exit
|
---|
11496 | }
|
---|
11497 |
|
---|
11498 |
|
---|
11499 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
|
---|
11500 | as_dirname=dirname
|
---|
11501 | else
|
---|
11502 | as_dirname=false
|
---|
11503 | fi
|
---|
11504 |
|
---|
11505 | ECHO_C= ECHO_N= ECHO_T=
|
---|
11506 | case `echo -n x` in
|
---|
11507 | -n*)
|
---|
11508 | case `echo 'x\c'` in
|
---|
11509 | *c*) ECHO_T=' ';; # ECHO_T is single tab character.
|
---|
11510 | *) ECHO_C='\c';;
|
---|
11511 | esac;;
|
---|
11512 | *)
|
---|
11513 | ECHO_N='-n';;
|
---|
11514 | esac
|
---|
11515 |
|
---|
11516 | if expr a : '\(a\)' >/dev/null 2>&1 &&
|
---|
11517 | test "X`expr 00001 : '.*\(...\)'`" = X001; then
|
---|
11518 | as_expr=expr
|
---|
11519 | else
|
---|
11520 | as_expr=false
|
---|
11521 | fi
|
---|
11522 |
|
---|
11523 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
11524 | if test -d conf$$.dir; then
|
---|
11525 | rm -f conf$$.dir/conf$$.file
|
---|
11526 | else
|
---|
11527 | rm -f conf$$.dir
|
---|
11528 | mkdir conf$$.dir
|
---|
11529 | fi
|
---|
11530 | echo >conf$$.file
|
---|
11531 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
11532 | as_ln_s='ln -s'
|
---|
11533 | # ... but there are two gotchas:
|
---|
11534 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
|
---|
11535 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
|
---|
11536 | # In both cases, we have to default to `cp -p'.
|
---|
11537 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
|
---|
11538 | as_ln_s='cp -p'
|
---|
11539 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
11540 | as_ln_s=ln
|
---|
11541 | else
|
---|
11542 | as_ln_s='cp -p'
|
---|
11543 | fi
|
---|
11544 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
|
---|
11545 | rmdir conf$$.dir 2>/dev/null
|
---|
11546 |
|
---|
11547 | if mkdir -p . 2>/dev/null; then
|
---|
11548 | as_mkdir_p=:
|
---|
11549 | else
|
---|
11550 | test -d ./-p && rmdir ./-p
|
---|
11551 | as_mkdir_p=false
|
---|
11552 | fi
|
---|
11553 |
|
---|
11554 | if test -x / >/dev/null 2>&1; then
|
---|
11555 | as_test_x='test -x'
|
---|
11556 | else
|
---|
11557 | if ls -dL / >/dev/null 2>&1; then
|
---|
11558 | as_ls_L_option=L
|
---|
11559 | else
|
---|
11560 | as_ls_L_option=
|
---|
11561 | fi
|
---|
11562 | as_test_x='
|
---|
11563 | eval sh -c '\''
|
---|
11564 | if test -d "$1"; then
|
---|
11565 | test -d "$1/.";
|
---|
11566 | else
|
---|
11567 | case $1 in
|
---|
11568 | -*)set "./$1";;
|
---|
11569 | esac;
|
---|
11570 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
|
---|
11571 | ???[sx]*):;;*)false;;esac;fi
|
---|
11572 | '\'' sh
|
---|
11573 | '
|
---|
11574 | fi
|
---|
11575 | as_executable_p=$as_test_x
|
---|
11576 |
|
---|
11577 | # Sed expression to map a string onto a valid CPP name.
|
---|
11578 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
11579 |
|
---|
11580 | # Sed expression to map a string onto a valid variable name.
|
---|
11581 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
11582 |
|
---|
11583 |
|
---|
11584 | exec 6>&1
|
---|
11585 |
|
---|
11586 | # Save the log message, to keep $[0] and so on meaningful, and to
|
---|
11587 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
11588 | # values after options handling.
|
---|
11589 | ac_log="
|
---|
11590 | This file was extended by rdesktop $as_me 1.6.0, which was
|
---|
11591 | generated by GNU Autoconf 2.61. Invocation command line was
|
---|
11592 |
|
---|
11593 | CONFIG_FILES = $CONFIG_FILES
|
---|
11594 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
11595 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
11596 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
11597 | $ $0 $@
|
---|
11598 |
|
---|
11599 | on `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
11600 | "
|
---|
11601 |
|
---|
11602 | _ACEOF
|
---|
11603 |
|
---|
11604 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11605 | # Files that config.status was made for.
|
---|
11606 | config_files="$ac_config_files"
|
---|
11607 |
|
---|
11608 | _ACEOF
|
---|
11609 |
|
---|
11610 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11611 | ac_cs_usage="\
|
---|
11612 | \`$as_me' instantiates files from templates according to the
|
---|
11613 | current configuration.
|
---|
11614 |
|
---|
11615 | Usage: $0 [OPTIONS] [FILE]...
|
---|
11616 |
|
---|
11617 | -h, --help print this help, then exit
|
---|
11618 | -V, --version print version number and configuration settings, then exit
|
---|
11619 | -q, --quiet do not print progress messages
|
---|
11620 | -d, --debug don't remove temporary files
|
---|
11621 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
11622 | --file=FILE[:TEMPLATE]
|
---|
11623 | instantiate the configuration file FILE
|
---|
11624 |
|
---|
11625 | Configuration files:
|
---|
11626 | $config_files
|
---|
11627 |
|
---|
11628 | Report bugs to <[email protected]>."
|
---|
11629 |
|
---|
11630 | _ACEOF
|
---|
11631 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11632 | ac_cs_version="\\
|
---|
11633 | rdesktop config.status 1.6.0
|
---|
11634 | configured by $0, generated by GNU Autoconf 2.61,
|
---|
11635 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
|
---|
11636 |
|
---|
11637 | Copyright (C) 2006 Free Software Foundation, Inc.
|
---|
11638 | This config.status script is free software; the Free Software Foundation
|
---|
11639 | gives unlimited permission to copy, distribute and modify it."
|
---|
11640 |
|
---|
11641 | ac_pwd='$ac_pwd'
|
---|
11642 | srcdir='$srcdir'
|
---|
11643 | INSTALL='$INSTALL'
|
---|
11644 | _ACEOF
|
---|
11645 |
|
---|
11646 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11647 | # If no file are specified by the user, then we need to provide default
|
---|
11648 | # value. By we need to know if files were specified by the user.
|
---|
11649 | ac_need_defaults=:
|
---|
11650 | while test $# != 0
|
---|
11651 | do
|
---|
11652 | case $1 in
|
---|
11653 | --*=*)
|
---|
11654 | ac_option=`expr "X$1" : 'X\([^=]*\)='`
|
---|
11655 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
|
---|
11656 | ac_shift=:
|
---|
11657 | ;;
|
---|
11658 | *)
|
---|
11659 | ac_option=$1
|
---|
11660 | ac_optarg=$2
|
---|
11661 | ac_shift=shift
|
---|
11662 | ;;
|
---|
11663 | esac
|
---|
11664 |
|
---|
11665 | case $ac_option in
|
---|
11666 | # Handling of the options.
|
---|
11667 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
11668 | ac_cs_recheck=: ;;
|
---|
11669 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
|
---|
11670 | echo "$ac_cs_version"; exit ;;
|
---|
11671 | --debug | --debu | --deb | --de | --d | -d )
|
---|
11672 | debug=: ;;
|
---|
11673 | --file | --fil | --fi | --f )
|
---|
11674 | $ac_shift
|
---|
11675 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
11676 | ac_need_defaults=false;;
|
---|
11677 | --he | --h | --help | --hel | -h )
|
---|
11678 | echo "$ac_cs_usage"; exit ;;
|
---|
11679 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
11680 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
11681 | ac_cs_silent=: ;;
|
---|
11682 |
|
---|
11683 | # This is an error.
|
---|
11684 | -*) { echo "$as_me: error: unrecognized option: $1
|
---|
11685 | Try \`$0 --help' for more information." >&2
|
---|
11686 | { (exit 1); exit 1; }; } ;;
|
---|
11687 |
|
---|
11688 | *) ac_config_targets="$ac_config_targets $1"
|
---|
11689 | ac_need_defaults=false ;;
|
---|
11690 |
|
---|
11691 | esac
|
---|
11692 | shift
|
---|
11693 | done
|
---|
11694 |
|
---|
11695 | ac_configure_extra_args=
|
---|
11696 |
|
---|
11697 | if $ac_cs_silent; then
|
---|
11698 | exec 6>/dev/null
|
---|
11699 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
11700 | fi
|
---|
11701 |
|
---|
11702 | _ACEOF
|
---|
11703 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11704 | if \$ac_cs_recheck; then
|
---|
11705 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
11706 | CONFIG_SHELL=$SHELL
|
---|
11707 | export CONFIG_SHELL
|
---|
11708 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
11709 | fi
|
---|
11710 |
|
---|
11711 | _ACEOF
|
---|
11712 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11713 | exec 5>>config.log
|
---|
11714 | {
|
---|
11715 | echo
|
---|
11716 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
11717 | ## Running $as_me. ##
|
---|
11718 | _ASBOX
|
---|
11719 | echo "$ac_log"
|
---|
11720 | } >&5
|
---|
11721 |
|
---|
11722 | _ACEOF
|
---|
11723 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11724 | _ACEOF
|
---|
11725 |
|
---|
11726 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11727 |
|
---|
11728 | # Handling of arguments.
|
---|
11729 | for ac_config_target in $ac_config_targets
|
---|
11730 | do
|
---|
11731 | case $ac_config_target in
|
---|
11732 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
11733 |
|
---|
11734 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
11735 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
11736 | { (exit 1); exit 1; }; };;
|
---|
11737 | esac
|
---|
11738 | done
|
---|
11739 |
|
---|
11740 |
|
---|
11741 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
11742 | # then the envvar interface is used. Set only those that are not.
|
---|
11743 | # We use the long form for the default assignment because of an extremely
|
---|
11744 | # bizarre bug on SunOS 4.1.3.
|
---|
11745 | if $ac_need_defaults; then
|
---|
11746 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
11747 | fi
|
---|
11748 |
|
---|
11749 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
11750 | # simply because there is no reason against having it here, and in addition,
|
---|
11751 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
11752 | # Hook for its removal unless debugging.
|
---|
11753 | # Note that there is a small window in which the directory will not be cleaned:
|
---|
11754 | # after its creation but before its name has been assigned to `$tmp'.
|
---|
11755 | $debug ||
|
---|
11756 | {
|
---|
11757 | tmp=
|
---|
11758 | trap 'exit_status=$?
|
---|
11759 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
|
---|
11760 | ' 0
|
---|
11761 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
11762 | }
|
---|
11763 | # Create a (secure) tmp directory for tmp files.
|
---|
11764 |
|
---|
11765 | {
|
---|
11766 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
|
---|
11767 | test -n "$tmp" && test -d "$tmp"
|
---|
11768 | } ||
|
---|
11769 | {
|
---|
11770 | tmp=./conf$$-$RANDOM
|
---|
11771 | (umask 077 && mkdir "$tmp")
|
---|
11772 | } ||
|
---|
11773 | {
|
---|
11774 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
11775 | { (exit 1); exit 1; }
|
---|
11776 | }
|
---|
11777 |
|
---|
11778 | #
|
---|
11779 | # Set up the sed scripts for CONFIG_FILES section.
|
---|
11780 | #
|
---|
11781 |
|
---|
11782 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
11783 | # This happens for instance when ./config.status config.h
|
---|
11784 | if test -n "$CONFIG_FILES"; then
|
---|
11785 |
|
---|
11786 | _ACEOF
|
---|
11787 |
|
---|
11788 |
|
---|
11789 |
|
---|
11790 | ac_delim='%!_!# '
|
---|
11791 | for ac_last_try in false false false false false :; do
|
---|
11792 | cat >conf$$subs.sed <<_ACEOF
|
---|
11793 | SHELL!$SHELL$ac_delim
|
---|
11794 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
|
---|
11795 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim
|
---|
11796 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
|
---|
11797 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
|
---|
11798 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim
|
---|
11799 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
|
---|
11800 | exec_prefix!$exec_prefix$ac_delim
|
---|
11801 | prefix!$prefix$ac_delim
|
---|
11802 | program_transform_name!$program_transform_name$ac_delim
|
---|
11803 | bindir!$bindir$ac_delim
|
---|
11804 | sbindir!$sbindir$ac_delim
|
---|
11805 | libexecdir!$libexecdir$ac_delim
|
---|
11806 | datarootdir!$datarootdir$ac_delim
|
---|
11807 | datadir!$datadir$ac_delim
|
---|
11808 | sysconfdir!$sysconfdir$ac_delim
|
---|
11809 | sharedstatedir!$sharedstatedir$ac_delim
|
---|
11810 | localstatedir!$localstatedir$ac_delim
|
---|
11811 | includedir!$includedir$ac_delim
|
---|
11812 | oldincludedir!$oldincludedir$ac_delim
|
---|
11813 | docdir!$docdir$ac_delim
|
---|
11814 | infodir!$infodir$ac_delim
|
---|
11815 | htmldir!$htmldir$ac_delim
|
---|
11816 | dvidir!$dvidir$ac_delim
|
---|
11817 | pdfdir!$pdfdir$ac_delim
|
---|
11818 | psdir!$psdir$ac_delim
|
---|
11819 | libdir!$libdir$ac_delim
|
---|
11820 | localedir!$localedir$ac_delim
|
---|
11821 | mandir!$mandir$ac_delim
|
---|
11822 | DEFS!$DEFS$ac_delim
|
---|
11823 | ECHO_C!$ECHO_C$ac_delim
|
---|
11824 | ECHO_N!$ECHO_N$ac_delim
|
---|
11825 | ECHO_T!$ECHO_T$ac_delim
|
---|
11826 | LIBS!$LIBS$ac_delim
|
---|
11827 | build_alias!$build_alias$ac_delim
|
---|
11828 | host_alias!$host_alias$ac_delim
|
---|
11829 | target_alias!$target_alias$ac_delim
|
---|
11830 | CC!$CC$ac_delim
|
---|
11831 | CFLAGS!$CFLAGS$ac_delim
|
---|
11832 | LDFLAGS!$LDFLAGS$ac_delim
|
---|
11833 | CPPFLAGS!$CPPFLAGS$ac_delim
|
---|
11834 | ac_ct_CC!$ac_ct_CC$ac_delim
|
---|
11835 | EXEEXT!$EXEEXT$ac_delim
|
---|
11836 | OBJEXT!$OBJEXT$ac_delim
|
---|
11837 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
|
---|
11838 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
|
---|
11839 | INSTALL_DATA!$INSTALL_DATA$ac_delim
|
---|
11840 | CPP!$CPP$ac_delim
|
---|
11841 | GREP!$GREP$ac_delim
|
---|
11842 | EGREP!$EGREP$ac_delim
|
---|
11843 | XMKMF!$XMKMF$ac_delim
|
---|
11844 | X_CFLAGS!$X_CFLAGS$ac_delim
|
---|
11845 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim
|
---|
11846 | X_LIBS!$X_LIBS$ac_delim
|
---|
11847 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
|
---|
11848 | PKG_CONFIG!$PKG_CONFIG$ac_delim
|
---|
11849 | STRIP!$STRIP$ac_delim
|
---|
11850 | ssldir!$ssldir$ac_delim
|
---|
11851 | PCSCLITE_CFLAGS!$PCSCLITE_CFLAGS$ac_delim
|
---|
11852 | PCSCLITE_LIBS!$PCSCLITE_LIBS$ac_delim
|
---|
11853 | SCARDOBJ!$SCARDOBJ$ac_delim
|
---|
11854 | VNCINC!$VNCINC$ac_delim
|
---|
11855 | LDVNC!$LDVNC$ac_delim
|
---|
11856 | VNCLINK!$VNCLINK$ac_delim
|
---|
11857 | RDP2VNCTARGET!$RDP2VNCTARGET$ac_delim
|
---|
11858 | LIBAO_CFLAGS!$LIBAO_CFLAGS$ac_delim
|
---|
11859 | LIBAO_LIBS!$LIBAO_LIBS$ac_delim
|
---|
11860 | ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
|
---|
11861 | ALSA_LIBS!$ALSA_LIBS$ac_delim
|
---|
11862 | LIBSAMPLERATE_CFLAGS!$LIBSAMPLERATE_CFLAGS$ac_delim
|
---|
11863 | LIBSAMPLERATE_LIBS!$LIBSAMPLERATE_LIBS$ac_delim
|
---|
11864 | SOUNDOBJ!$SOUNDOBJ$ac_delim
|
---|
11865 | LIBOBJS!$LIBOBJS$ac_delim
|
---|
11866 | LIBICONV!$LIBICONV$ac_delim
|
---|
11867 | build!$build$ac_delim
|
---|
11868 | build_cpu!$build_cpu$ac_delim
|
---|
11869 | build_vendor!$build_vendor$ac_delim
|
---|
11870 | build_os!$build_os$ac_delim
|
---|
11871 | host!$host$ac_delim
|
---|
11872 | host_cpu!$host_cpu$ac_delim
|
---|
11873 | host_vendor!$host_vendor$ac_delim
|
---|
11874 | host_os!$host_os$ac_delim
|
---|
11875 | LTLIBOBJS!$LTLIBOBJS$ac_delim
|
---|
11876 | _ACEOF
|
---|
11877 |
|
---|
11878 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
|
---|
11879 | break
|
---|
11880 | elif $ac_last_try; then
|
---|
11881 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
|
---|
11882 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
|
---|
11883 | { (exit 1); exit 1; }; }
|
---|
11884 | else
|
---|
11885 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
|
---|
11886 | fi
|
---|
11887 | done
|
---|
11888 |
|
---|
11889 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
|
---|
11890 | if test -n "$ac_eof"; then
|
---|
11891 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
|
---|
11892 | ac_eof=`expr $ac_eof + 1`
|
---|
11893 | fi
|
---|
11894 |
|
---|
11895 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11896 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
|
---|
11897 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
|
---|
11898 | _ACEOF
|
---|
11899 | sed '
|
---|
11900 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
|
---|
11901 | s/^/s,@/; s/!/@,|#_!!_#|/
|
---|
11902 | :n
|
---|
11903 | t n
|
---|
11904 | s/'"$ac_delim"'$/,g/; t
|
---|
11905 | s/$/\\/; p
|
---|
11906 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
|
---|
11907 | ' >>$CONFIG_STATUS <conf$$subs.sed
|
---|
11908 | rm -f conf$$subs.sed
|
---|
11909 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11910 | :end
|
---|
11911 | s/|#_!!_#|//g
|
---|
11912 | CEOF$ac_eof
|
---|
11913 | _ACEOF
|
---|
11914 |
|
---|
11915 |
|
---|
11916 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
11917 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
11918 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
11919 | # (actually we leave an empty line to preserve line numbers).
|
---|
11920 | if test "x$srcdir" = x.; then
|
---|
11921 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
11922 | s/:*\$(srcdir):*/:/
|
---|
11923 | s/:*\${srcdir}:*/:/
|
---|
11924 | s/:*@srcdir@:*/:/
|
---|
11925 | s/^\([^=]*=[ ]*\):*/\1/
|
---|
11926 | s/:*$//
|
---|
11927 | s/^[^=]*=[ ]*$//
|
---|
11928 | }'
|
---|
11929 | fi
|
---|
11930 |
|
---|
11931 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11932 | fi # test -n "$CONFIG_FILES"
|
---|
11933 |
|
---|
11934 |
|
---|
11935 | for ac_tag in :F $CONFIG_FILES
|
---|
11936 | do
|
---|
11937 | case $ac_tag in
|
---|
11938 | :[FHLC]) ac_mode=$ac_tag; continue;;
|
---|
11939 | esac
|
---|
11940 | case $ac_mode$ac_tag in
|
---|
11941 | :[FHL]*:*);;
|
---|
11942 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
|
---|
11943 | echo "$as_me: error: Invalid tag $ac_tag." >&2;}
|
---|
11944 | { (exit 1); exit 1; }; };;
|
---|
11945 | :[FH]-) ac_tag=-:-;;
|
---|
11946 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
|
---|
11947 | esac
|
---|
11948 | ac_save_IFS=$IFS
|
---|
11949 | IFS=:
|
---|
11950 | set x $ac_tag
|
---|
11951 | IFS=$ac_save_IFS
|
---|
11952 | shift
|
---|
11953 | ac_file=$1
|
---|
11954 | shift
|
---|
11955 |
|
---|
11956 | case $ac_mode in
|
---|
11957 | :L) ac_source=$1;;
|
---|
11958 | :[FH])
|
---|
11959 | ac_file_inputs=
|
---|
11960 | for ac_f
|
---|
11961 | do
|
---|
11962 | case $ac_f in
|
---|
11963 | -) ac_f="$tmp/stdin";;
|
---|
11964 | *) # Look for the file first in the build tree, then in the source tree
|
---|
11965 | # (if the path is not absolute). The absolute path cannot be DOS-style,
|
---|
11966 | # because $ac_f cannot contain `:'.
|
---|
11967 | test -f "$ac_f" ||
|
---|
11968 | case $ac_f in
|
---|
11969 | [\\/$]*) false;;
|
---|
11970 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
|
---|
11971 | esac ||
|
---|
11972 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
|
---|
11973 | echo "$as_me: error: cannot find input file: $ac_f" >&2;}
|
---|
11974 | { (exit 1); exit 1; }; };;
|
---|
11975 | esac
|
---|
11976 | ac_file_inputs="$ac_file_inputs $ac_f"
|
---|
11977 | done
|
---|
11978 |
|
---|
11979 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
11980 | # use $as_me), people would be surprised to read:
|
---|
11981 | # /* config.h. Generated by config.status. */
|
---|
11982 | configure_input="Generated from "`IFS=:
|
---|
11983 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
|
---|
11984 | if test x"$ac_file" != x-; then
|
---|
11985 | configure_input="$ac_file. $configure_input"
|
---|
11986 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
11987 | echo "$as_me: creating $ac_file" >&6;}
|
---|
11988 | fi
|
---|
11989 |
|
---|
11990 | case $ac_tag in
|
---|
11991 | *:-:* | *:-) cat >"$tmp/stdin";;
|
---|
11992 | esac
|
---|
11993 | ;;
|
---|
11994 | esac
|
---|
11995 |
|
---|
11996 | ac_dir=`$as_dirname -- "$ac_file" ||
|
---|
11997 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
11998 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
11999 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
12000 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
12001 | echo X"$ac_file" |
|
---|
12002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
12003 | s//\1/
|
---|
12004 | q
|
---|
12005 | }
|
---|
12006 | /^X\(\/\/\)[^/].*/{
|
---|
12007 | s//\1/
|
---|
12008 | q
|
---|
12009 | }
|
---|
12010 | /^X\(\/\/\)$/{
|
---|
12011 | s//\1/
|
---|
12012 | q
|
---|
12013 | }
|
---|
12014 | /^X\(\/\).*/{
|
---|
12015 | s//\1/
|
---|
12016 | q
|
---|
12017 | }
|
---|
12018 | s/.*/./; q'`
|
---|
12019 | { as_dir="$ac_dir"
|
---|
12020 | case $as_dir in #(
|
---|
12021 | -*) as_dir=./$as_dir;;
|
---|
12022 | esac
|
---|
12023 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
|
---|
12024 | as_dirs=
|
---|
12025 | while :; do
|
---|
12026 | case $as_dir in #(
|
---|
12027 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
|
---|
12028 | *) as_qdir=$as_dir;;
|
---|
12029 | esac
|
---|
12030 | as_dirs="'$as_qdir' $as_dirs"
|
---|
12031 | as_dir=`$as_dirname -- "$as_dir" ||
|
---|
12032 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
12033 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
12034 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
12035 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
|
---|
12036 | echo X"$as_dir" |
|
---|
12037 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
---|
12038 | s//\1/
|
---|
12039 | q
|
---|
12040 | }
|
---|
12041 | /^X\(\/\/\)[^/].*/{
|
---|
12042 | s//\1/
|
---|
12043 | q
|
---|
12044 | }
|
---|
12045 | /^X\(\/\/\)$/{
|
---|
12046 | s//\1/
|
---|
12047 | q
|
---|
12048 | }
|
---|
12049 | /^X\(\/\).*/{
|
---|
12050 | s//\1/
|
---|
12051 | q
|
---|
12052 | }
|
---|
12053 | s/.*/./; q'`
|
---|
12054 | test -d "$as_dir" && break
|
---|
12055 | done
|
---|
12056 | test -z "$as_dirs" || eval "mkdir $as_dirs"
|
---|
12057 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
|
---|
12058 | echo "$as_me: error: cannot create directory $as_dir" >&2;}
|
---|
12059 | { (exit 1); exit 1; }; }; }
|
---|
12060 | ac_builddir=.
|
---|
12061 |
|
---|
12062 | case "$ac_dir" in
|
---|
12063 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
12064 | *)
|
---|
12065 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
12066 | # A ".." for each directory in $ac_dir_suffix.
|
---|
12067 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
|
---|
12068 | case $ac_top_builddir_sub in
|
---|
12069 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
|
---|
12070 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
|
---|
12071 | esac ;;
|
---|
12072 | esac
|
---|
12073 | ac_abs_top_builddir=$ac_pwd
|
---|
12074 | ac_abs_builddir=$ac_pwd$ac_dir_suffix
|
---|
12075 | # for backward compatibility:
|
---|
12076 | ac_top_builddir=$ac_top_build_prefix
|
---|
12077 |
|
---|
12078 | case $srcdir in
|
---|
12079 | .) # We are building in place.
|
---|
12080 | ac_srcdir=.
|
---|
12081 | ac_top_srcdir=$ac_top_builddir_sub
|
---|
12082 | ac_abs_top_srcdir=$ac_pwd ;;
|
---|
12083 | [\\/]* | ?:[\\/]* ) # Absolute name.
|
---|
12084 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
12085 | ac_top_srcdir=$srcdir
|
---|
12086 | ac_abs_top_srcdir=$srcdir ;;
|
---|
12087 | *) # Relative name.
|
---|
12088 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
|
---|
12089 | ac_top_srcdir=$ac_top_build_prefix$srcdir
|
---|
12090 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
|
---|
12091 | esac
|
---|
12092 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
|
---|
12093 |
|
---|
12094 |
|
---|
12095 | case $ac_mode in
|
---|
12096 | :F)
|
---|
12097 | #
|
---|
12098 | # CONFIG_FILE
|
---|
12099 | #
|
---|
12100 |
|
---|
12101 | case $INSTALL in
|
---|
12102 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
12103 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
|
---|
12104 | esac
|
---|
12105 | _ACEOF
|
---|
12106 |
|
---|
12107 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
12108 | # If the template does not know about datarootdir, expand it.
|
---|
12109 | # FIXME: This hack should be removed a few years after 2.60.
|
---|
12110 | ac_datarootdir_hack=; ac_datarootdir_seen=
|
---|
12111 |
|
---|
12112 | case `sed -n '/datarootdir/ {
|
---|
12113 | p
|
---|
12114 | q
|
---|
12115 | }
|
---|
12116 | /@datadir@/p
|
---|
12117 | /@docdir@/p
|
---|
12118 | /@infodir@/p
|
---|
12119 | /@localedir@/p
|
---|
12120 | /@mandir@/p
|
---|
12121 | ' $ac_file_inputs` in
|
---|
12122 | *datarootdir*) ac_datarootdir_seen=yes;;
|
---|
12123 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
|
---|
12124 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
|
---|
12125 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
|
---|
12126 | _ACEOF
|
---|
12127 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
12128 | ac_datarootdir_hack='
|
---|
12129 | s&@datadir@&$datadir&g
|
---|
12130 | s&@docdir@&$docdir&g
|
---|
12131 | s&@infodir@&$infodir&g
|
---|
12132 | s&@localedir@&$localedir&g
|
---|
12133 | s&@mandir@&$mandir&g
|
---|
12134 | s&\\\${datarootdir}&$datarootdir&g' ;;
|
---|
12135 | esac
|
---|
12136 | _ACEOF
|
---|
12137 |
|
---|
12138 | # Neutralize VPATH when `$srcdir' = `.'.
|
---|
12139 | # Shell code in configure.ac might set extrasub.
|
---|
12140 | # FIXME: do we really want to maintain this feature?
|
---|
12141 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
12142 | sed "$ac_vpsub
|
---|
12143 | $extrasub
|
---|
12144 | _ACEOF
|
---|
12145 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
12146 | :t
|
---|
12147 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
12148 | s&@configure_input@&$configure_input&;t t
|
---|
12149 | s&@top_builddir@&$ac_top_builddir_sub&;t t
|
---|
12150 | s&@srcdir@&$ac_srcdir&;t t
|
---|
12151 | s&@abs_srcdir@&$ac_abs_srcdir&;t t
|
---|
12152 | s&@top_srcdir@&$ac_top_srcdir&;t t
|
---|
12153 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
|
---|
12154 | s&@builddir@&$ac_builddir&;t t
|
---|
12155 | s&@abs_builddir@&$ac_abs_builddir&;t t
|
---|
12156 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
|
---|
12157 | s&@INSTALL@&$ac_INSTALL&;t t
|
---|
12158 | $ac_datarootdir_hack
|
---|
12159 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
|
---|
12160 |
|
---|
12161 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
|
---|
12162 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
|
---|
12163 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
|
---|
12164 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
12165 | which seems to be undefined. Please make sure it is defined." >&5
|
---|
12166 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
|
---|
12167 | which seems to be undefined. Please make sure it is defined." >&2;}
|
---|
12168 |
|
---|
12169 | rm -f "$tmp/stdin"
|
---|
12170 | case $ac_file in
|
---|
12171 | -) cat "$tmp/out"; rm -f "$tmp/out";;
|
---|
12172 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
|
---|
12173 | esac
|
---|
12174 | ;;
|
---|
12175 |
|
---|
12176 |
|
---|
12177 |
|
---|
12178 | esac
|
---|
12179 |
|
---|
12180 | done # for ac_tag
|
---|
12181 |
|
---|
12182 |
|
---|
12183 | { (exit 0); exit 0; }
|
---|
12184 | _ACEOF
|
---|
12185 | chmod +x $CONFIG_STATUS
|
---|
12186 | ac_clean_files=$ac_clean_files_save
|
---|
12187 |
|
---|
12188 |
|
---|
12189 | # configure is writing to config.log, and then calls config.status.
|
---|
12190 | # config.status does its own redirection, appending to config.log.
|
---|
12191 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
12192 | # by configure, so config.status won't be able to write to it; its
|
---|
12193 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
12194 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
12195 | # appended to by config.status. When coming back to configure, we
|
---|
12196 | # need to make the FD available again.
|
---|
12197 | if test "$no_create" != yes; then
|
---|
12198 | ac_cs_success=:
|
---|
12199 | ac_config_status_args=
|
---|
12200 | test "$silent" = yes &&
|
---|
12201 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
12202 | exec 5>/dev/null
|
---|
12203 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
12204 | exec 5>>config.log
|
---|
12205 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
12206 | # would make configure fail if this is the last instruction.
|
---|
12207 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
12208 | fi
|
---|
12209 |
|
---|
12210 |
|
---|