Commit | Line | Data |
---|---|---|
e2991ea7 | 1 | #! /bin/sh |
e2991ea7 | 2 | # Guess values for system-dependent variables and create Makefiles. |
7affdd4c | 3 | # Generated by GNU Autoconf 2.60a for Wine 0.9.23. |
e2991ea7 | 4 | # |
875927f6 AJ |
5 | # Report bugs to <wine-devel@winehq.org>. |
6 | # | |
fc6ffb29 AJ |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
e2991ea7 AJ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
daa2886c AJ |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
f5818d2f AJ |
14 | |
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
11af04e3 AJ |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
fc6ffb29 AJ |
22 | setopt NO_GLOB_SUBST |
23 | else | |
24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
f5818d2f | 25 | fi |
fc6ffb29 | 26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
875927f6 | 27 | DUALCASE=1; export DUALCASE # for MKS sh |
f5818d2f | 28 | |
fc6ffb29 AJ |
29 | |
30 | # PATH needs CR | |
31 | # Avoid depending upon Character Ranges. | |
32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
35 | as_cr_digits='0123456789' | |
36 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
37 | ||
38 | # The user is always right. | |
39 | if test "${PATH_SEPARATOR+set}" != set; then | |
40 | echo "#! /bin/sh" >conf$$.sh | |
41 | echo "exit 0" >>conf$$.sh | |
42 | chmod +x conf$$.sh | |
43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
44 | PATH_SEPARATOR=';' | |
45 | else | |
46 | PATH_SEPARATOR=: | |
47 | fi | |
48 | rm -f conf$$.sh | |
49 | fi | |
50 | ||
daa2886c | 51 | # Support unset when possible. |
875927f6 | 52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
daa2886c AJ |
53 | as_unset=unset |
54 | else | |
55 | as_unset=false | |
56 | fi | |
57 | ||
11af04e3 | 58 | |
fc6ffb29 AJ |
59 | # IFS |
60 | # We need space, tab and new line, in precisely that order. Quoting is | |
61 | # there to prevent editors from complaining about space-tab. | |
62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
63 | # splitting by setting IFS to empty value.) | |
64 | as_nl=' | |
65 | ' | |
66 | IFS=" "" $as_nl" | |
67 | ||
68 | # Find who we are. Look in the path if we contain no directory separator. | |
69 | case $0 in | |
70 | *[\\/]* ) as_myself=$0 ;; | |
71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
72 | for as_dir in $PATH | |
73 | do | |
74 | IFS=$as_save_IFS | |
75 | test -z "$as_dir" && as_dir=. | |
76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
77 | done | |
78 | IFS=$as_save_IFS | |
79 | ||
80 | ;; | |
81 | esac | |
82 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
83 | # in which case we are not to be found in the path. | |
84 | if test "x$as_myself" = x; then | |
85 | as_myself=$0 | |
86 | fi | |
87 | if test ! -f "$as_myself"; then | |
88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
89 | { (exit 1); exit 1; } | |
90 | fi | |
91 | ||
11af04e3 | 92 | # Work around bugs in pre-3.0 UWIN ksh. |
fc6ffb29 AJ |
93 | for as_var in ENV MAIL MAILPATH |
94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
95 | done | |
11af04e3 AJ |
96 | PS1='$ ' |
97 | PS2='> ' | |
98 | PS4='+ ' | |
99 | ||
100 | # NLS nuisances. | |
e24bcc77 AJ |
101 | for as_var in \ |
102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
104 | LC_TELEPHONE LC_TIME | |
11af04e3 | 105 | do |
875927f6 | 106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
11af04e3 AJ |
107 | eval $as_var=C; export $as_var |
108 | else | |
fc6ffb29 | 109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
11af04e3 AJ |
110 | fi |
111 | done | |
112 | ||
113 | # Required to use basename. | |
fc6ffb29 AJ |
114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11af04e3 AJ |
116 | as_expr=expr |
117 | else | |
118 | as_expr=false | |
119 | fi | |
120 | ||
fc6ffb29 | 121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
11af04e3 AJ |
122 | as_basename=basename |
123 | else | |
124 | as_basename=false | |
125 | fi | |
daa2886c AJ |
126 | |
127 | ||
f5818d2f | 128 | # Name of the executable. |
fc6ffb29 | 129 | as_me=`$as_basename -- "$0" || |
daa2886c AJ |
130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
131 | X"$0" : 'X\(//\)$' \| \ | |
fc6ffb29 | 132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
daa2886c | 133 | echo X/"$0" | |
fc6ffb29 AJ |
134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
135 | s//\1/ | |
136 | q | |
137 | } | |
138 | /^X\/\(\/\/\)$/{ | |
139 | s//\1/ | |
140 | q | |
141 | } | |
142 | /^X\/\(\/\).*/{ | |
143 | s//\1/ | |
144 | q | |
145 | } | |
146 | s/.*/./; q'` | |
daa2886c | 147 | |
fc6ffb29 AJ |
148 | # CDPATH. |
149 | $as_unset CDPATH | |
11af04e3 | 150 | |
daa2886c | 151 | |
fc6ffb29 AJ |
152 | if test "x$CONFIG_SHELL" = x; then |
153 | if (eval ":") 2>/dev/null; then | |
154 | as_have_required=yes | |
155 | else | |
156 | as_have_required=no | |
daa2886c AJ |
157 | fi |
158 | ||
fc6ffb29 AJ |
159 | if test $as_have_required = yes && (eval ": |
160 | (as_func_return () { | |
161 | (exit \$1) | |
162 | } | |
163 | as_func_success () { | |
164 | as_func_return 0 | |
165 | } | |
166 | as_func_failure () { | |
167 | as_func_return 1 | |
168 | } | |
169 | as_func_ret_success () { | |
170 | return 0 | |
171 | } | |
172 | as_func_ret_failure () { | |
173 | return 1 | |
174 | } | |
daa2886c | 175 | |
fc6ffb29 AJ |
176 | exitcode=0 |
177 | if as_func_success; then | |
178 | : | |
179 | else | |
180 | exitcode=1 | |
181 | echo as_func_success failed. | |
182 | fi | |
daa2886c | 183 | |
fc6ffb29 AJ |
184 | if as_func_failure; then |
185 | exitcode=1 | |
186 | echo as_func_failure succeeded. | |
187 | fi | |
188 | ||
189 | if as_func_ret_success; then | |
190 | : | |
191 | else | |
192 | exitcode=1 | |
193 | echo as_func_ret_success failed. | |
194 | fi | |
195 | ||
196 | if as_func_ret_failure; then | |
197 | exitcode=1 | |
198 | echo as_func_ret_failure succeeded. | |
199 | fi | |
200 | ||
201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
202 | : | |
203 | else | |
204 | exitcode=1 | |
205 | echo positional parameters were not saved. | |
206 | fi | |
207 | ||
208 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
209 | ||
210 | ( | |
211 | as_lineno_1=\$LINENO | |
212 | as_lineno_2=\$LINENO | |
213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
215 | ") 2> /dev/null; then | |
216 | : | |
217 | else | |
218 | as_candidate_shells= | |
daa2886c | 219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
fc6ffb29 | 220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
daa2886c AJ |
221 | do |
222 | IFS=$as_save_IFS | |
223 | test -z "$as_dir" && as_dir=. | |
fc6ffb29 | 224 | case $as_dir in |
daa2886c | 225 | /*) |
fc6ffb29 AJ |
226 | for as_base in sh bash ksh sh5; do |
227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
228 | done;; | |
229 | esac | |
230 | done | |
231 | IFS=$as_save_IFS | |
232 | ||
233 | ||
234 | for as_shell in $as_candidate_shells $SHELL; do | |
0ebeb530 JW |
235 | # Try only shells that exist, to save several forks. |
236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
237 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
fc6ffb29 AJ |
238 | # Be Bourne compatible |
239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
240 | emulate sh | |
241 | NULLCMD=: | |
242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
243 | # is contrary to our usage. Disable this feature. | |
244 | alias -g '${1+"$@"}'='"$@"' | |
245 | setopt NO_GLOB_SUBST | |
246 | else | |
247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
248 | fi | |
249 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
250 | DUALCASE=1; export DUALCASE # for MKS sh | |
251 | ||
252 | : | |
253 | _ASEOF | |
254 | }; then | |
255 | CONFIG_SHELL=$as_shell | |
256 | as_have_required=yes | |
0ebeb530 | 257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
fc6ffb29 AJ |
258 | # Be Bourne compatible |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
260 | emulate sh | |
261 | NULLCMD=: | |
262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
263 | # is contrary to our usage. Disable this feature. | |
264 | alias -g '${1+"$@"}'='"$@"' | |
265 | setopt NO_GLOB_SUBST | |
266 | else | |
267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
268 | fi | |
269 | BIN_SH=xpg4; export BIN_SH # for Tru64 | |
270 | DUALCASE=1; export DUALCASE # for MKS sh | |
271 | ||
272 | : | |
273 | (as_func_return () { | |
274 | (exit $1) | |
275 | } | |
276 | as_func_success () { | |
277 | as_func_return 0 | |
278 | } | |
279 | as_func_failure () { | |
280 | as_func_return 1 | |
281 | } | |
282 | as_func_ret_success () { | |
283 | return 0 | |
284 | } | |
285 | as_func_ret_failure () { | |
286 | return 1 | |
287 | } | |
288 | ||
289 | exitcode=0 | |
290 | if as_func_success; then | |
291 | : | |
292 | else | |
293 | exitcode=1 | |
294 | echo as_func_success failed. | |
295 | fi | |
296 | ||
297 | if as_func_failure; then | |
298 | exitcode=1 | |
299 | echo as_func_failure succeeded. | |
300 | fi | |
301 | ||
302 | if as_func_ret_success; then | |
303 | : | |
304 | else | |
305 | exitcode=1 | |
306 | echo as_func_ret_success failed. | |
307 | fi | |
308 | ||
309 | if as_func_ret_failure; then | |
310 | exitcode=1 | |
311 | echo as_func_ret_failure succeeded. | |
312 | fi | |
313 | ||
314 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
315 | : | |
316 | else | |
317 | exitcode=1 | |
318 | echo positional parameters were not saved. | |
319 | fi | |
320 | ||
321 | test $exitcode = 0) || { (exit 1); exit 1; } | |
322 | ||
323 | ( | |
daa2886c AJ |
324 | as_lineno_1=$LINENO |
325 | as_lineno_2=$LINENO | |
daa2886c | 326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
fc6ffb29 AJ |
327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
328 | ||
329 | _ASEOF | |
330 | }; then | |
331 | break | |
332 | fi | |
333 | ||
334 | fi | |
335 | ||
336 | done | |
337 | ||
338 | if test "x$CONFIG_SHELL" != x; then | |
339 | for as_var in BASH_ENV ENV | |
340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
341 | done | |
342 | export CONFIG_SHELL | |
343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
344 | fi | |
345 | ||
346 | ||
347 | if test $as_have_required = no; then | |
348 | echo This script requires a shell more modern than all the | |
349 | echo shells that I found on your system. Please install a | |
350 | echo modern shell, or manually run the script under such a | |
351 | echo shell if you do have one. | |
352 | { (exit 1); exit 1; } | |
353 | fi | |
354 | ||
355 | ||
356 | fi | |
357 | ||
358 | fi | |
359 | ||
360 | ||
361 | ||
362 | (eval "as_func_return () { | |
363 | (exit \$1) | |
364 | } | |
365 | as_func_success () { | |
366 | as_func_return 0 | |
367 | } | |
368 | as_func_failure () { | |
369 | as_func_return 1 | |
370 | } | |
371 | as_func_ret_success () { | |
372 | return 0 | |
373 | } | |
374 | as_func_ret_failure () { | |
375 | return 1 | |
376 | } | |
377 | ||
378 | exitcode=0 | |
379 | if as_func_success; then | |
380 | : | |
381 | else | |
382 | exitcode=1 | |
383 | echo as_func_success failed. | |
384 | fi | |
385 | ||
386 | if as_func_failure; then | |
387 | exitcode=1 | |
388 | echo as_func_failure succeeded. | |
389 | fi | |
390 | ||
391 | if as_func_ret_success; then | |
392 | : | |
393 | else | |
394 | exitcode=1 | |
395 | echo as_func_ret_success failed. | |
396 | fi | |
397 | ||
398 | if as_func_ret_failure; then | |
399 | exitcode=1 | |
400 | echo as_func_ret_failure succeeded. | |
401 | fi | |
402 | ||
403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
404 | : | |
405 | else | |
406 | exitcode=1 | |
407 | echo positional parameters were not saved. | |
408 | fi | |
409 | ||
410 | test \$exitcode = 0") || { | |
411 | echo No shell found that supports shell functions. | |
412 | echo Please tell autoconf@gnu.org about your system, | |
413 | echo including any error possibly output before this | |
414 | echo message | |
415 | } | |
416 | ||
417 | ||
418 | ||
419 | as_lineno_1=$LINENO | |
420 | as_lineno_2=$LINENO | |
421 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
daa2886c AJ |
423 | |
424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
425 | # uniformly replaced by the line number. The first 'sed' inserts a | |
fc6ffb29 AJ |
426 | # line-number line after each line using $LINENO; the second 'sed' |
427 | # does the real work. The second script uses 'N' to pair each | |
428 | # line-number line with the line containing $LINENO, and appends | |
429 | # trailing '-' during substitution so that $LINENO is not a special | |
430 | # case at line end. | |
daa2886c | 431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
fc6ffb29 AJ |
432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
433 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
434 | sed -n ' | |
435 | p | |
436 | /[$]LINENO/= | |
437 | ' <$as_myself | | |
daa2886c | 438 | sed ' |
fc6ffb29 AJ |
439 | s/[$]LINENO.*/&-/ |
440 | t lineno | |
441 | b | |
442 | :lineno | |
daa2886c | 443 | N |
fc6ffb29 AJ |
444 | :loop |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
daa2886c | 446 | t loop |
fc6ffb29 | 447 | s/-\n.*// |
daa2886c | 448 | ' >$as_me.lineno && |
fc6ffb29 | 449 | chmod +x "$as_me.lineno" || |
daa2886c AJ |
450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
451 | { (exit 1); exit 1; }; } | |
452 | ||
453 | # Don't try to exec as it changes $[0], causing all sort of problems | |
454 | # (the dirname of $[0] is not the place where we might find the | |
fc6ffb29 AJ |
455 | # original and so on. Autoconf is especially sensitive to this). |
456 | . "./$as_me.lineno" | |
daa2886c AJ |
457 | # Exit status is that of the last command. |
458 | exit | |
459 | } | |
460 | ||
461 | ||
0ebeb530 | 462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
fc6ffb29 AJ |
463 | as_dirname=dirname |
464 | else | |
465 | as_dirname=false | |
466 | fi | |
467 | ||
468 | ECHO_C= ECHO_N= ECHO_T= | |
469 | case `echo -n x` in | |
470 | -n*) | |
471 | case `echo 'x\c'` in | |
472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
473 | *) ECHO_C='\c';; | |
474 | esac;; | |
475 | *) | |
476 | ECHO_N='-n';; | |
daa2886c | 477 | esac |
f5818d2f | 478 | |
fc6ffb29 AJ |
479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f5818d2f AJ |
481 | as_expr=expr |
482 | else | |
483 | as_expr=false | |
484 | fi | |
485 | ||
486 | rm -f conf$$ conf$$.exe conf$$.file | |
fc6ffb29 AJ |
487 | if test -d conf$$.dir; then |
488 | rm -f conf$$.dir/conf$$.file | |
489 | else | |
490 | rm -f conf$$.dir | |
491 | mkdir conf$$.dir | |
492 | fi | |
f5818d2f AJ |
493 | echo >conf$$.file |
494 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fc6ffb29 AJ |
495 | as_ln_s='ln -s' |
496 | # ... but there are two gotchas: | |
497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
499 | # In both cases, we have to default to `cp -p'. | |
500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
f5818d2f | 501 | as_ln_s='cp -p' |
f5818d2f AJ |
502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
503 | as_ln_s=ln | |
504 | else | |
505 | as_ln_s='cp -p' | |
506 | fi | |
fc6ffb29 AJ |
507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 | rmdir conf$$.dir 2>/dev/null | |
f5818d2f | 509 | |
11af04e3 AJ |
510 | if mkdir -p . 2>/dev/null; then |
511 | as_mkdir_p=: | |
512 | else | |
875927f6 | 513 | test -d ./-p && rmdir ./-p |
11af04e3 AJ |
514 | as_mkdir_p=false |
515 | fi | |
516 | ||
fc6ffb29 AJ |
517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
518 | # systems may use methods other than mode bits to determine executability. | |
519 | cat >conf$$.file <<_ASEOF | |
520 | #! /bin/sh | |
521 | exit 0 | |
522 | _ASEOF | |
523 | chmod +x conf$$.file | |
524 | if test -x conf$$.file >/dev/null 2>&1; then | |
525 | as_executable_p="test -x" | |
526 | else | |
527 | as_executable_p=: | |
528 | fi | |
529 | rm -f conf$$.file | |
f5818d2f | 530 | |
daa2886c | 531 | # Sed expression to map a string onto a valid CPP name. |
875927f6 | 532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
daa2886c AJ |
533 | |
534 | # Sed expression to map a string onto a valid variable name. | |
875927f6 | 535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
f5818d2f | 536 | |
f5818d2f | 537 | |
daa2886c | 538 | |
fc6ffb29 | 539 | exec 7<&0 </dev/null 6>&1 |
f5818d2f AJ |
540 | |
541 | # Name of the host. | |
542 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
543 | # so uname gets run too. | |
544 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
545 | ||
f5818d2f AJ |
546 | # |
547 | # Initializations. | |
548 | # | |
e2991ea7 | 549 | ac_default_prefix=/usr/local |
fc6ffb29 | 550 | ac_clean_files= |
11af04e3 | 551 | ac_config_libobj_dir=. |
fc6ffb29 | 552 | LIBOBJS= |
f5818d2f AJ |
553 | cross_compiling=no |
554 | subdirs= | |
daa2886c AJ |
555 | MFLAGS= |
556 | MAKEFLAGS= | |
f5818d2f AJ |
557 | SHELL=${CONFIG_SHELL-/bin/sh} |
558 | ||
daa2886c AJ |
559 | # Identity of this package. |
560 | PACKAGE_NAME='Wine' | |
561 | PACKAGE_TARNAME='wine' | |
7affdd4c AJ |
562 | PACKAGE_VERSION='0.9.23' |
563 | PACKAGE_STRING='Wine 0.9.23' | |
875927f6 | 564 | PACKAGE_BUGREPORT='wine-devel@winehq.org' |
daa2886c | 565 | |
f5818d2f AJ |
566 | ac_unique_file="server/atom.c" |
567 | # Factoring default headers for most tests. | |
568 | ac_includes_default="\ | |
569 | #include <stdio.h> | |
570 | #if HAVE_SYS_TYPES_H | |
571 | # include <sys/types.h> | |
572 | #endif | |
573 | #if HAVE_SYS_STAT_H | |
574 | # include <sys/stat.h> | |
575 | #endif | |
576 | #if STDC_HEADERS | |
577 | # include <stdlib.h> | |
578 | # include <stddef.h> | |
579 | #else | |
580 | # if HAVE_STDLIB_H | |
581 | # include <stdlib.h> | |
582 | # endif | |
583 | #endif | |
584 | #if HAVE_STRING_H | |
585 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
586 | # include <memory.h> | |
587 | # endif | |
588 | # include <string.h> | |
589 | #endif | |
590 | #if HAVE_STRINGS_H | |
591 | # include <strings.h> | |
592 | #endif | |
593 | #if HAVE_INTTYPES_H | |
594 | # include <inttypes.h> | |
fc6ffb29 AJ |
595 | #endif |
596 | #if HAVE_STDINT_H | |
597 | # include <stdint.h> | |
f5818d2f AJ |
598 | #endif |
599 | #if HAVE_UNISTD_H | |
600 | # include <unistd.h> | |
601 | #endif" | |
e2991ea7 | 602 | |
fc6ffb29 AJ |
603 | ac_subst_vars='SHELL |
604 | PATH_SEPARATOR | |
605 | PACKAGE_NAME | |
606 | PACKAGE_TARNAME | |
607 | PACKAGE_VERSION | |
608 | PACKAGE_STRING | |
609 | PACKAGE_BUGREPORT | |
610 | exec_prefix | |
611 | prefix | |
612 | program_transform_name | |
613 | bindir | |
614 | sbindir | |
615 | libexecdir | |
616 | datarootdir | |
617 | datadir | |
618 | sysconfdir | |
619 | sharedstatedir | |
620 | localstatedir | |
621 | includedir | |
622 | oldincludedir | |
623 | docdir | |
624 | infodir | |
625 | htmldir | |
626 | dvidir | |
627 | pdfdir | |
628 | psdir | |
629 | libdir | |
630 | localedir | |
631 | mandir | |
632 | DEFS | |
633 | ECHO_C | |
634 | ECHO_N | |
635 | ECHO_T | |
636 | LIBS | |
637 | build_alias | |
638 | host_alias | |
639 | target_alias | |
640 | build | |
641 | build_cpu | |
642 | build_vendor | |
643 | build_os | |
644 | host | |
645 | host_cpu | |
646 | host_vendor | |
647 | host_os | |
648 | WIN16_FILES | |
649 | WIN16_INSTALL | |
650 | SET_MAKE | |
651 | CC | |
652 | CFLAGS | |
653 | LDFLAGS | |
654 | CPPFLAGS | |
655 | ac_ct_CC | |
656 | EXEEXT | |
657 | OBJEXT | |
658 | CXX | |
659 | CXXFLAGS | |
660 | ac_ct_CXX | |
661 | CPPBIN | |
662 | TOOLSDIR | |
663 | XMKMF | |
664 | CPP | |
665 | X_CFLAGS | |
666 | X_PRE_LIBS | |
667 | X_LIBS | |
668 | X_EXTRA_LIBS | |
669 | LEX | |
670 | LEXLIB | |
671 | LEX_OUTPUT_ROOT | |
672 | XLEX | |
673 | BISON | |
674 | AS | |
675 | ac_ct_AS | |
676 | LD | |
677 | AR | |
678 | RANLIB | |
679 | STRIP | |
680 | WINDRES | |
681 | LN_S | |
682 | LN | |
683 | GREP | |
684 | EGREP | |
685 | LDCONFIG | |
686 | INSTALL_PROGRAM | |
687 | INSTALL_SCRIPT | |
688 | INSTALL_DATA | |
689 | LINT | |
690 | LINTFLAGS | |
691 | FONTFORGE | |
692 | PKG_CONFIG | |
693 | PRELINK | |
694 | LIBPTHREAD | |
695 | XLIB | |
696 | XFILES | |
697 | OPENGLFILES | |
698 | GLU32FILES | |
699 | OPENGL_LIBS | |
700 | GLUT_LIBS | |
701 | GLUT32FILES | |
702 | NASLIBS | |
703 | XML2LIBS | |
704 | XML2INCL | |
705 | XSLTLIBS | |
706 | XSLTINCL | |
707 | HALINCL | |
708 | CURSESLIBS | |
709 | sane_devel | |
710 | SANELIBS | |
711 | SANEINCL | |
712 | gphoto2_devel | |
713 | gphoto2port_devel | |
714 | GPHOTO2LIBS | |
715 | GPHOTO2INCL | |
716 | ICULIBS | |
717 | RESOLVLIBS | |
718 | LCMSLIBS | |
719 | LDAPLIBS | |
720 | FREETYPELIBS | |
721 | FREETYPEINCL | |
722 | ft_devel | |
723 | ft_devel2 | |
724 | FONTSSUBDIRS | |
725 | ARTSCCONFIG | |
726 | ARTSLIBS | |
727 | ARTSINCL | |
728 | ESDCONFIG | |
729 | ESDLIBS | |
730 | ESDINCL | |
731 | ALSALIBS | |
732 | AUDIOIOLIBS | |
733 | EXTRACFLAGS | |
734 | BUILTINFLAG | |
735 | DLLEXT | |
736 | DLLFLAGS | |
fc6ffb29 AJ |
737 | LDSHARED |
738 | LDDLLFLAGS | |
739 | LIBEXT | |
740 | IMPLIBEXT | |
13a93b4a | 741 | LIBWINE_LDFLAGS |
fc6ffb29 AJ |
742 | DLLTOOL |
743 | DLLWRAP | |
fc6ffb29 AJ |
744 | COREFOUNDATIONLIB |
745 | IOKITLIB | |
6735eb2e | 746 | DISKARBITRATIONLIB |
42b81ea0 | 747 | LDEXECFLAGS |
144a5353 | 748 | COREAUDIO |
fc6ffb29 AJ |
749 | CROSSTEST |
750 | CROSSCC | |
751 | CROSSWINDRES | |
752 | LDPATH | |
753 | CRTLIBS | |
754 | SOCKETLIBS | |
755 | MAIN_BINARY | |
756 | EXTRA_BINARIES | |
757 | LDD | |
e533e972 | 758 | LIBDL |
1089260f | 759 | LIBPOLL |
32ab895e | 760 | DEPENDENCIES |
fc6ffb29 AJ |
761 | LIBOBJS |
762 | LTLIBOBJS' | |
763 | ac_subst_files='MAKE_RULES | |
764 | MAKE_DLL_RULES | |
765 | MAKE_IMPLIB_RULES | |
766 | MAKE_TEST_RULES | |
fc6ffb29 AJ |
767 | MAKE_PROG_RULES' |
768 | ac_precious_vars='build_alias | |
769 | host_alias | |
770 | target_alias | |
771 | CC | |
772 | CFLAGS | |
773 | LDFLAGS | |
774 | CPPFLAGS | |
775 | CXX | |
776 | CXXFLAGS | |
777 | CCC | |
778 | XMKMF | |
779 | CPP' | |
780 | ||
daa2886c | 781 | |
e2991ea7 | 782 | # Initialize some variables set by options. |
f5818d2f AJ |
783 | ac_init_help= |
784 | ac_init_version=false | |
e2991ea7 AJ |
785 | # The variables have the same names as the options, with |
786 | # dashes changed to underlines. | |
f5818d2f | 787 | cache_file=/dev/null |
e2991ea7 | 788 | exec_prefix=NONE |
e2991ea7 | 789 | no_create= |
e2991ea7 AJ |
790 | no_recursion= |
791 | prefix=NONE | |
792 | program_prefix=NONE | |
793 | program_suffix=NONE | |
794 | program_transform_name=s,x,x, | |
795 | silent= | |
796 | site= | |
797 | srcdir= | |
e2991ea7 AJ |
798 | verbose= |
799 | x_includes=NONE | |
800 | x_libraries=NONE | |
f5818d2f AJ |
801 | |
802 | # Installation directory options. | |
803 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
804 | # and all the variables that are supposed to be based on exec_prefix | |
805 | # by default will actually change. | |
806 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
fc6ffb29 | 807 | # (The list follows the same order as the GNU Coding Standards.) |
d7d4fdf8 AJ |
808 | bindir='${exec_prefix}/bin' |
809 | sbindir='${exec_prefix}/sbin' | |
810 | libexecdir='${exec_prefix}/libexec' | |
fc6ffb29 AJ |
811 | datarootdir='${prefix}/share' |
812 | datadir='${datarootdir}' | |
d7d4fdf8 AJ |
813 | sysconfdir='${prefix}/etc' |
814 | sharedstatedir='${prefix}/com' | |
815 | localstatedir='${prefix}/var' | |
d7d4fdf8 AJ |
816 | includedir='${prefix}/include' |
817 | oldincludedir='/usr/include' | |
fc6ffb29 AJ |
818 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
819 | infodir='${datarootdir}/info' | |
820 | htmldir='${docdir}' | |
821 | dvidir='${docdir}' | |
822 | pdfdir='${docdir}' | |
823 | psdir='${docdir}' | |
824 | libdir='${exec_prefix}/lib' | |
825 | localedir='${datarootdir}/locale' | |
826 | mandir='${datarootdir}/man' | |
e2991ea7 | 827 | |
e2991ea7 | 828 | ac_prev= |
fc6ffb29 | 829 | ac_dashdash= |
e2991ea7 AJ |
830 | for ac_option |
831 | do | |
e2991ea7 AJ |
832 | # If the previous option needs an argument, assign it. |
833 | if test -n "$ac_prev"; then | |
fc6ffb29 | 834 | eval $ac_prev=\$ac_option |
e2991ea7 AJ |
835 | ac_prev= |
836 | continue | |
837 | fi | |
838 | ||
fc6ffb29 AJ |
839 | case $ac_option in |
840 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
841 | *) ac_optarg=yes ;; | |
842 | esac | |
e2991ea7 AJ |
843 | |
844 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
845 | ||
fc6ffb29 AJ |
846 | case $ac_dashdash$ac_option in |
847 | --) | |
848 | ac_dashdash=yes ;; | |
e2991ea7 | 849 | |
d7d4fdf8 AJ |
850 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
851 | ac_prev=bindir ;; | |
852 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
f5818d2f | 853 | bindir=$ac_optarg ;; |
d7d4fdf8 AJ |
854 | |
855 | -build | --build | --buil | --bui | --bu) | |
f5818d2f | 856 | ac_prev=build_alias ;; |
d7d4fdf8 | 857 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
f5818d2f | 858 | build_alias=$ac_optarg ;; |
e2991ea7 AJ |
859 | |
860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
862 | ac_prev=cache_file ;; | |
863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
f5818d2f AJ |
865 | cache_file=$ac_optarg ;; |
866 | ||
867 | --config-cache | -C) | |
868 | cache_file=config.cache ;; | |
e2991ea7 | 869 | |
fc6ffb29 | 870 | -datadir | --datadir | --datadi | --datad) |
d7d4fdf8 | 871 | ac_prev=datadir ;; |
fc6ffb29 | 872 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
f5818d2f | 873 | datadir=$ac_optarg ;; |
d7d4fdf8 | 874 | |
fc6ffb29 AJ |
875 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
876 | | --dataroo | --dataro | --datar) | |
877 | ac_prev=datarootdir ;; | |
878 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
879 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
880 | datarootdir=$ac_optarg ;; | |
881 | ||
e2991ea7 | 882 | -disable-* | --disable-*) |
f5818d2f | 883 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
e2991ea7 | 884 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
885 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
886 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
887 | { (exit 1); exit 1; }; } | |
888 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
fc6ffb29 AJ |
889 | eval enable_$ac_feature=no ;; |
890 | ||
891 | -docdir | --docdir | --docdi | --doc | --do) | |
892 | ac_prev=docdir ;; | |
893 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
894 | docdir=$ac_optarg ;; | |
895 | ||
896 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
897 | ac_prev=dvidir ;; | |
898 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
899 | dvidir=$ac_optarg ;; | |
e2991ea7 AJ |
900 | |
901 | -enable-* | --enable-*) | |
f5818d2f | 902 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
e2991ea7 | 903 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
904 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
905 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
906 | { (exit 1); exit 1; }; } | |
907 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
fc6ffb29 | 908 | eval enable_$ac_feature=\$ac_optarg ;; |
e2991ea7 AJ |
909 | |
910 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
911 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
912 | | --exec | --exe | --ex) | |
913 | ac_prev=exec_prefix ;; | |
914 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
915 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
916 | | --exec=* | --exe=* | --ex=*) | |
f5818d2f | 917 | exec_prefix=$ac_optarg ;; |
e2991ea7 AJ |
918 | |
919 | -gas | --gas | --ga | --g) | |
920 | # Obsolete; use --with-gas. | |
921 | with_gas=yes ;; | |
922 | ||
f5818d2f AJ |
923 | -help | --help | --hel | --he | -h) |
924 | ac_init_help=long ;; | |
925 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
926 | ac_init_help=recursive ;; | |
927 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
928 | ac_init_help=short ;; | |
e2991ea7 AJ |
929 | |
930 | -host | --host | --hos | --ho) | |
f5818d2f | 931 | ac_prev=host_alias ;; |
e2991ea7 | 932 | -host=* | --host=* | --hos=* | --ho=*) |
f5818d2f | 933 | host_alias=$ac_optarg ;; |
e2991ea7 | 934 | |
fc6ffb29 AJ |
935 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
936 | ac_prev=htmldir ;; | |
937 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
938 | | --ht=*) | |
939 | htmldir=$ac_optarg ;; | |
940 | ||
d7d4fdf8 AJ |
941 | -includedir | --includedir | --includedi | --included | --include \ |
942 | | --includ | --inclu | --incl | --inc) | |
943 | ac_prev=includedir ;; | |
944 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
945 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
f5818d2f | 946 | includedir=$ac_optarg ;; |
d7d4fdf8 AJ |
947 | |
948 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
949 | ac_prev=infodir ;; | |
950 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
f5818d2f | 951 | infodir=$ac_optarg ;; |
d7d4fdf8 AJ |
952 | |
953 | -libdir | --libdir | --libdi | --libd) | |
954 | ac_prev=libdir ;; | |
955 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
f5818d2f | 956 | libdir=$ac_optarg ;; |
d7d4fdf8 AJ |
957 | |
958 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
959 | | --libexe | --libex | --libe) | |
960 | ac_prev=libexecdir ;; | |
961 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
962 | | --libexe=* | --libex=* | --libe=*) | |
f5818d2f | 963 | libexecdir=$ac_optarg ;; |
d7d4fdf8 | 964 | |
fc6ffb29 AJ |
965 | -localedir | --localedir | --localedi | --localed | --locale) |
966 | ac_prev=localedir ;; | |
967 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
968 | localedir=$ac_optarg ;; | |
969 | ||
d7d4fdf8 | 970 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
fc6ffb29 | 971 | | --localstate | --localstat | --localsta | --localst | --locals) |
d7d4fdf8 AJ |
972 | ac_prev=localstatedir ;; |
973 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
fc6ffb29 | 974 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
f5818d2f | 975 | localstatedir=$ac_optarg ;; |
d7d4fdf8 AJ |
976 | |
977 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
978 | ac_prev=mandir ;; | |
979 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
f5818d2f | 980 | mandir=$ac_optarg ;; |
d7d4fdf8 | 981 | |
e2991ea7 AJ |
982 | -nfp | --nfp | --nf) |
983 | # Obsolete; use --without-fp. | |
984 | with_fp=no ;; | |
985 | ||
986 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
daa2886c | 987 | | --no-cr | --no-c | -n) |
e2991ea7 AJ |
988 | no_create=yes ;; |
989 | ||
990 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
991 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
992 | no_recursion=yes ;; | |
993 | ||
d7d4fdf8 AJ |
994 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
995 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
996 | | --oldin | --oldi | --old | --ol | --o) | |
997 | ac_prev=oldincludedir ;; | |
998 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
999 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1000 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
f5818d2f | 1001 | oldincludedir=$ac_optarg ;; |
d7d4fdf8 | 1002 | |
e2991ea7 AJ |
1003 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1004 | ac_prev=prefix ;; | |
1005 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
f5818d2f | 1006 | prefix=$ac_optarg ;; |
e2991ea7 AJ |
1007 | |
1008 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1009 | | --program-pre | --program-pr | --program-p) | |
1010 | ac_prev=program_prefix ;; | |
1011 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1012 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
f5818d2f | 1013 | program_prefix=$ac_optarg ;; |
e2991ea7 AJ |
1014 | |
1015 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1016 | | --program-suf | --program-su | --program-s) | |
1017 | ac_prev=program_suffix ;; | |
1018 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1019 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
f5818d2f | 1020 | program_suffix=$ac_optarg ;; |
e2991ea7 AJ |
1021 | |
1022 | -program-transform-name | --program-transform-name \ | |
1023 | | --program-transform-nam | --program-transform-na \ | |
1024 | | --program-transform-n | --program-transform- \ | |
1025 | | --program-transform | --program-transfor \ | |
1026 | | --program-transfo | --program-transf \ | |
1027 | | --program-trans | --program-tran \ | |
1028 | | --progr-tra | --program-tr | --program-t) | |
1029 | ac_prev=program_transform_name ;; | |
1030 | -program-transform-name=* | --program-transform-name=* \ | |
1031 | | --program-transform-nam=* | --program-transform-na=* \ | |
1032 | | --program-transform-n=* | --program-transform-=* \ | |
1033 | | --program-transform=* | --program-transfor=* \ | |
1034 | | --program-transfo=* | --program-transf=* \ | |
1035 | | --program-trans=* | --program-tran=* \ | |
1036 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
f5818d2f | 1037 | program_transform_name=$ac_optarg ;; |
e2991ea7 | 1038 | |
fc6ffb29 AJ |
1039 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1040 | ac_prev=pdfdir ;; | |
1041 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1042 | pdfdir=$ac_optarg ;; | |
1043 | ||
1044 | -psdir | --psdir | --psdi | --psd | --ps) | |
1045 | ac_prev=psdir ;; | |
1046 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1047 | psdir=$ac_optarg ;; | |
1048 | ||
e2991ea7 AJ |
1049 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1050 | | -silent | --silent | --silen | --sile | --sil) | |
1051 | silent=yes ;; | |
1052 | ||
d7d4fdf8 AJ |
1053 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1054 | ac_prev=sbindir ;; | |
1055 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1056 | | --sbi=* | --sb=*) | |
f5818d2f | 1057 | sbindir=$ac_optarg ;; |
d7d4fdf8 AJ |
1058 | |
1059 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1060 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1061 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1062 | | --sha | --sh) | |
1063 | ac_prev=sharedstatedir ;; | |
1064 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1065 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1066 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1067 | | --sha=* | --sh=*) | |
f5818d2f | 1068 | sharedstatedir=$ac_optarg ;; |
d7d4fdf8 | 1069 | |
e2991ea7 AJ |
1070 | -site | --site | --sit) |
1071 | ac_prev=site ;; | |
1072 | -site=* | --site=* | --sit=*) | |
f5818d2f | 1073 | site=$ac_optarg ;; |
e2991ea7 AJ |
1074 | |
1075 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1076 | ac_prev=srcdir ;; | |
1077 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
f5818d2f | 1078 | srcdir=$ac_optarg ;; |
e2991ea7 | 1079 | |
d7d4fdf8 AJ |
1080 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1081 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1082 | ac_prev=sysconfdir ;; | |
1083 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1084 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
f5818d2f | 1085 | sysconfdir=$ac_optarg ;; |
d7d4fdf8 | 1086 | |
e2991ea7 | 1087 | -target | --target | --targe | --targ | --tar | --ta | --t) |
f5818d2f | 1088 | ac_prev=target_alias ;; |
e2991ea7 | 1089 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
f5818d2f | 1090 | target_alias=$ac_optarg ;; |
e2991ea7 AJ |
1091 | |
1092 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1093 | verbose=yes ;; | |
1094 | ||
f5818d2f AJ |
1095 | -version | --version | --versio | --versi | --vers | -V) |
1096 | ac_init_version=: ;; | |
e2991ea7 AJ |
1097 | |
1098 | -with-* | --with-*) | |
f5818d2f | 1099 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
e2991ea7 | 1100 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
1101 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1102 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1103 | { (exit 1); exit 1; }; } | |
e2991ea7 | 1104 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
fc6ffb29 | 1105 | eval with_$ac_package=\$ac_optarg ;; |
e2991ea7 AJ |
1106 | |
1107 | -without-* | --without-*) | |
f5818d2f | 1108 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
e2991ea7 | 1109 | # Reject names that are not valid shell variable names. |
f5818d2f AJ |
1110 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1111 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1112 | { (exit 1); exit 1; }; } | |
1113 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
fc6ffb29 | 1114 | eval with_$ac_package=no ;; |
e2991ea7 AJ |
1115 | |
1116 | --x) | |
1117 | # Obsolete; use --with-x. | |
1118 | with_x=yes ;; | |
1119 | ||
1120 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1121 | | --x-incl | --x-inc | --x-in | --x-i) | |
1122 | ac_prev=x_includes ;; | |
1123 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1124 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
f5818d2f | 1125 | x_includes=$ac_optarg ;; |
e2991ea7 AJ |
1126 | |
1127 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1128 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1129 | ac_prev=x_libraries ;; | |
1130 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1131 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
f5818d2f | 1132 | x_libraries=$ac_optarg ;; |
e2991ea7 | 1133 | |
f5818d2f AJ |
1134 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1135 | Try \`$0 --help' for more information." >&2 | |
1136 | { (exit 1); exit 1; }; } | |
e2991ea7 AJ |
1137 | ;; |
1138 | ||
f5818d2f AJ |
1139 | *=*) |
1140 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1141 | # Reject names that are not valid shell variable names. | |
1142 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1143 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1144 | { (exit 1); exit 1; }; } | |
fc6ffb29 | 1145 | eval $ac_envvar=\$ac_optarg |
f5818d2f AJ |
1146 | export $ac_envvar ;; |
1147 | ||
d7d4fdf8 | 1148 | *) |
f5818d2f AJ |
1149 | # FIXME: should be removed in autoconf 3.0. |
1150 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1151 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1152 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1153 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
e2991ea7 AJ |
1154 | ;; |
1155 | ||
1156 | esac | |
1157 | done | |
1158 | ||
1159 | if test -n "$ac_prev"; then | |
f5818d2f AJ |
1160 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1161 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1162 | { (exit 1); exit 1; }; } | |
e2991ea7 | 1163 | fi |
e2991ea7 | 1164 | |
fc6ffb29 AJ |
1165 | # Be sure to have absolute directory names. |
1166 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1167 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1168 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1169 | libdir localedir mandir | |
e2991ea7 | 1170 | do |
fc6ffb29 | 1171 | eval ac_val=\$$ac_var |
f5818d2f | 1172 | case $ac_val in |
fc6ffb29 AJ |
1173 | [\\/$]* | ?:[\\/]* ) continue;; |
1174 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
e2991ea7 | 1175 | esac |
fc6ffb29 AJ |
1176 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1177 | { (exit 1); exit 1; }; } | |
e2991ea7 AJ |
1178 | done |
1179 | ||
f5818d2f AJ |
1180 | # There might be people who depend on the old broken behavior: `$host' |
1181 | # used to hold the argument of --host etc. | |
daa2886c | 1182 | # FIXME: To remove some day. |
f5818d2f AJ |
1183 | build=$build_alias |
1184 | host=$host_alias | |
1185 | target=$target_alias | |
1186 | ||
daa2886c | 1187 | # FIXME: To remove some day. |
f5818d2f AJ |
1188 | if test "x$host_alias" != x; then |
1189 | if test "x$build_alias" = x; then | |
1190 | cross_compiling=maybe | |
1191 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1192 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1193 | elif test "x$build_alias" != "x$host_alias"; then | |
1194 | cross_compiling=yes | |
1195 | fi | |
1196 | fi | |
e2991ea7 | 1197 | |
f5818d2f AJ |
1198 | ac_tool_prefix= |
1199 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
e2991ea7 | 1200 | |
f5818d2f | 1201 | test "$silent" = yes && exec 6>/dev/null |
e2991ea7 | 1202 | |
daa2886c | 1203 | |
fc6ffb29 AJ |
1204 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1205 | ac_ls_di=`ls -di .` && | |
1206 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1207 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1208 | { (exit 1); exit 1; }; } | |
1209 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1210 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1211 | { (exit 1); exit 1; }; } | |
1212 | ||
1213 | ||
e2991ea7 AJ |
1214 | # Find the source files, if location was not specified. |
1215 | if test -z "$srcdir"; then | |
1216 | ac_srcdir_defaulted=yes | |
fc6ffb29 AJ |
1217 | # Try the directory containing this script, then the parent directory. |
1218 | ac_confdir=`$as_dirname -- "$0" || | |
daa2886c | 1219 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
875927f6 AJ |
1220 | X"$0" : 'X\(//\)[^/]' \| \ |
1221 | X"$0" : 'X\(//\)$' \| \ | |
fc6ffb29 | 1222 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
daa2886c | 1223 | echo X"$0" | |
fc6ffb29 AJ |
1224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1225 | s//\1/ | |
1226 | q | |
1227 | } | |
1228 | /^X\(\/\/\)[^/].*/{ | |
1229 | s//\1/ | |
1230 | q | |
1231 | } | |
1232 | /^X\(\/\/\)$/{ | |
1233 | s//\1/ | |
1234 | q | |
1235 | } | |
1236 | /^X\(\/\).*/{ | |
1237 | s//\1/ | |
1238 | q | |
1239 | } | |
1240 | s/.*/./; q'` | |
e2991ea7 | 1241 | srcdir=$ac_confdir |
fc6ffb29 | 1242 | if test ! -r "$srcdir/$ac_unique_file"; then |
e2991ea7 AJ |
1243 | srcdir=.. |
1244 | fi | |
1245 | else | |
1246 | ac_srcdir_defaulted=no | |
1247 | fi | |
fc6ffb29 AJ |
1248 | if test ! -r "$srcdir/$ac_unique_file"; then |
1249 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1250 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
f5818d2f | 1251 | { (exit 1); exit 1; }; } |
e2991ea7 | 1252 | fi |
fc6ffb29 AJ |
1253 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1254 | ac_abs_confdir=`( | |
1255 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
11af04e3 | 1256 | { (exit 1); exit 1; }; } |
fc6ffb29 AJ |
1257 | pwd)` |
1258 | # When building in place, set srcdir=. | |
1259 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1260 | srcdir=. | |
1261 | fi | |
1262 | # Remove unnecessary trailing slashes from srcdir. | |
1263 | # Double slashes in file names in object file debugging info | |
1264 | # mess up M-x gdb in Emacs. | |
1265 | case $srcdir in | |
1266 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1267 | esac | |
1268 | for ac_var in $ac_precious_vars; do | |
1269 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1270 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1271 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1272 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1273 | done | |
f5818d2f AJ |
1274 | |
1275 | # | |
1276 | # Report the --help message. | |
1277 | # | |
1278 | if test "$ac_init_help" = "long"; then | |
1279 | # Omit some internal or obsolete options to make the list less imposing. | |
1280 | # This message is too long to be a string in the A/UX 3.1 sh. | |
daa2886c | 1281 | cat <<_ACEOF |
7affdd4c | 1282 | \`configure' configures Wine 0.9.23 to adapt to many kinds of systems. |
f5818d2f AJ |
1283 | |
1284 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1285 | ||
1286 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1287 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1288 | ||
1289 | Defaults for the options are specified in brackets. | |
1290 | ||
1291 | Configuration: | |
1292 | -h, --help display this help and exit | |
1293 | --help=short display options specific to this package | |
1294 | --help=recursive display the short help of all the included packages | |
1295 | -V, --version display version information and exit | |
1296 | -q, --quiet, --silent do not print \`checking...' messages | |
1297 | --cache-file=FILE cache test results in FILE [disabled] | |
1298 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1299 | -n, --no-create do not create output files | |
1300 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1301 | ||
f5818d2f AJ |
1302 | Installation directories: |
1303 | --prefix=PREFIX install architecture-independent files in PREFIX | |
875927f6 | 1304 | [$ac_default_prefix] |
f5818d2f | 1305 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
875927f6 | 1306 | [PREFIX] |
f5818d2f AJ |
1307 | |
1308 | By default, \`make install' will install all the files in | |
1309 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1310 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1311 | for instance \`--prefix=\$HOME'. | |
1312 | ||
1313 | For better control, use the options below. | |
1314 | ||
1315 | Fine tuning of the installation directories: | |
1316 | --bindir=DIR user executables [EPREFIX/bin] | |
1317 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1318 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
f5818d2f AJ |
1319 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1320 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1321 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1322 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1323 | --includedir=DIR C header files [PREFIX/include] | |
1324 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
fc6ffb29 AJ |
1325 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1326 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1327 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1328 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1329 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1330 | --docdir=DIR documentation root [DATAROOTDIR/doc/wine] | |
1331 | --htmldir=DIR html documentation [DOCDIR] | |
1332 | --dvidir=DIR dvi documentation [DOCDIR] | |
1333 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1334 | --psdir=DIR ps documentation [DOCDIR] | |
daa2886c | 1335 | _ACEOF |
f5818d2f | 1336 | |
daa2886c | 1337 | cat <<\_ACEOF |
f5818d2f AJ |
1338 | |
1339 | X features: | |
1340 | --x-includes=DIR X include files are in DIR | |
1341 | --x-libraries=DIR X library files are in DIR | |
1342 | ||
1343 | System types: | |
1344 | --build=BUILD configure for building on BUILD [guessed] | |
daa2886c | 1345 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
daa2886c | 1346 | _ACEOF |
f5818d2f AJ |
1347 | fi |
1348 | ||
1349 | if test -n "$ac_init_help"; then | |
1350 | case $ac_init_help in | |
7affdd4c | 1351 | short | recursive ) echo "Configuration of Wine 0.9.23:";; |
f5818d2f | 1352 | esac |
daa2886c | 1353 | cat <<\_ACEOF |
f5818d2f AJ |
1354 | |
1355 | Optional Features: | |
1356 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1357 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
53fa0d54 | 1358 | --disable-win16 do not include Win16 support |
2aa8e871 AJ |
1359 | --enable-win64 build a Win64 emulator on AMD64 (won't run Win32 |
1360 | binaries) | |
f5818d2f AJ |
1361 | |
1362 | Optional Packages: | |
1363 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1364 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
53fa0d54 EP |
1365 | --without-opengl do not use OpenGL |
1366 | --without-curses do not use curses | |
1367 | --with-wine-tools=<dir> use Wine tools from directory <dir> | |
f5818d2f AJ |
1368 | --with-x use the X Window System |
1369 | ||
1370 | Some influential environment variables: | |
53fa0d54 EP |
1371 | CC C compiler command |
1372 | CFLAGS C compiler flags | |
1373 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1374 | nonstandard directory <lib dir> | |
fc6ffb29 AJ |
1375 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1376 | you have headers in a nonstandard directory <include dir> | |
f41c2b21 DP |
1377 | CXX C++ compiler command |
1378 | CXXFLAGS C++ compiler flags | |
fc6ffb29 | 1379 | XMKMF Path to xmkmf, Makefile generator for X Window System |
53fa0d54 | 1380 | CPP C preprocessor |
f5818d2f AJ |
1381 | |
1382 | Use these variables to override the choices made by `configure' or to help | |
1383 | it to find libraries and programs with nonstandard names/locations. | |
1384 | ||
875927f6 | 1385 | Report bugs to <wine-devel@winehq.org>. |
daa2886c | 1386 | _ACEOF |
fc6ffb29 | 1387 | ac_status=$? |
f5818d2f AJ |
1388 | fi |
1389 | ||
1390 | if test "$ac_init_help" = "recursive"; then | |
1391 | # If there are subdirs, report their specific --help. | |
daa2886c | 1392 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
0ebeb530 | 1393 | test -d "$ac_dir" || continue |
daa2886c AJ |
1394 | ac_builddir=. |
1395 | ||
fc6ffb29 AJ |
1396 | case "$ac_dir" in |
1397 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1398 | *) | |
daa2886c | 1399 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
fc6ffb29 AJ |
1400 | # A ".." for each directory in $ac_dir_suffix. |
1401 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
1402 | case $ac_top_builddir_sub in | |
1403 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1404 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1405 | esac ;; | |
1406 | esac | |
1407 | ac_abs_top_builddir=$ac_pwd | |
1408 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1409 | # for backward compatibility: | |
1410 | ac_top_builddir=$ac_top_build_prefix | |
f5818d2f | 1411 | |
daa2886c | 1412 | case $srcdir in |
fc6ffb29 | 1413 | .) # We are building in place. |
daa2886c | 1414 | ac_srcdir=. |
fc6ffb29 AJ |
1415 | ac_top_srcdir=$ac_top_builddir_sub |
1416 | ac_abs_top_srcdir=$ac_pwd ;; | |
1417 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
daa2886c | 1418 | ac_srcdir=$srcdir$ac_dir_suffix; |
fc6ffb29 AJ |
1419 | ac_top_srcdir=$srcdir |
1420 | ac_abs_top_srcdir=$srcdir ;; | |
1421 | *) # Relative name. | |
1422 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1423 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1424 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
875927f6 | 1425 | esac |
fc6ffb29 | 1426 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
daa2886c | 1427 | |
fc6ffb29 AJ |
1428 | cd "$ac_dir" || { ac_status=$?; continue; } |
1429 | # Check for guested configure. | |
0ebeb530 | 1430 | if test -f "$ac_srcdir/configure.gnu"; then |
fc6ffb29 | 1431 | echo && |
0ebeb530 JW |
1432 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1433 | elif test -f "$ac_srcdir/configure"; then | |
fc6ffb29 | 1434 | echo && |
0ebeb530 | 1435 | $SHELL "$ac_srcdir/configure" --help=recursive |
f5818d2f | 1436 | else |
daa2886c | 1437 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
fc6ffb29 AJ |
1438 | fi || ac_status=$? |
1439 | cd "$ac_pwd" || { ac_status=$?; break; } | |
f5818d2f AJ |
1440 | done |
1441 | fi | |
e2991ea7 | 1442 | |
fc6ffb29 | 1443 | test -n "$ac_init_help" && exit $ac_status |
f5818d2f | 1444 | if $ac_init_version; then |
daa2886c | 1445 | cat <<\_ACEOF |
7affdd4c | 1446 | Wine configure 0.9.23 |
f5f37a85 | 1447 | generated by GNU Autoconf 2.60a |
f5818d2f | 1448 | |
fc6ffb29 AJ |
1449 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1450 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
f5818d2f AJ |
1451 | This configure script is free software; the Free Software Foundation |
1452 | gives unlimited permission to copy, distribute and modify it. | |
daa2886c | 1453 | _ACEOF |
fc6ffb29 | 1454 | exit |
f5818d2f | 1455 | fi |
fc6ffb29 | 1456 | cat >config.log <<_ACEOF |
f5818d2f AJ |
1457 | This file contains any messages produced by compilers while |
1458 | running configure, to aid debugging if configure makes a mistake. | |
1459 | ||
7affdd4c | 1460 | It was created by Wine $as_me 0.9.23, which was |
f5f37a85 | 1461 | generated by GNU Autoconf 2.60a. Invocation command line was |
f5818d2f AJ |
1462 | |
1463 | $ $0 $@ | |
1464 | ||
daa2886c | 1465 | _ACEOF |
fc6ffb29 | 1466 | exec 5>>config.log |
f5818d2f AJ |
1467 | { |
1468 | cat <<_ASUNAME | |
daa2886c AJ |
1469 | ## --------- ## |
1470 | ## Platform. ## | |
1471 | ## --------- ## | |
f5818d2f AJ |
1472 | |
1473 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1474 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1475 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1476 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1477 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1478 | ||
1479 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1480 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1481 | ||
1482 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1483 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1484 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
fc6ffb29 | 1485 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
f5818d2f AJ |
1486 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1487 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1488 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1489 | ||
f5818d2f | 1490 | _ASUNAME |
daa2886c AJ |
1491 | |
1492 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1493 | for as_dir in $PATH | |
1494 | do | |
1495 | IFS=$as_save_IFS | |
1496 | test -z "$as_dir" && as_dir=. | |
1497 | echo "PATH: $as_dir" | |
1498 | done | |
fc6ffb29 | 1499 | IFS=$as_save_IFS |
daa2886c | 1500 | |
f5818d2f AJ |
1501 | } >&5 |
1502 | ||
daa2886c AJ |
1503 | cat >&5 <<_ACEOF |
1504 | ||
1505 | ||
1506 | ## ----------- ## | |
1507 | ## Core tests. ## | |
1508 | ## ----------- ## | |
1509 | ||
1510 | _ACEOF | |
f5818d2f | 1511 | |
f5818d2f AJ |
1512 | |
1513 | # Keep a trace of the command line. | |
1514 | # Strip out --no-create and --no-recursion so they do not pile up. | |
e24bcc77 | 1515 | # Strip out --silent because we don't want to record it for future runs. |
f5818d2f | 1516 | # Also quote any args containing shell meta-characters. |
e24bcc77 | 1517 | # Make two passes to allow for proper duplicate-argument suppression. |
f5818d2f | 1518 | ac_configure_args= |
e24bcc77 AJ |
1519 | ac_configure_args0= |
1520 | ac_configure_args1= | |
e24bcc77 AJ |
1521 | ac_must_keep_next=false |
1522 | for ac_pass in 1 2 | |
f5818d2f | 1523 | do |
e24bcc77 AJ |
1524 | for ac_arg |
1525 | do | |
1526 | case $ac_arg in | |
1527 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1528 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1529 | | -silent | --silent | --silen | --sile | --sil) | |
1530 | continue ;; | |
fc6ffb29 | 1531 | *\'*) |
e24bcc77 AJ |
1532 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1533 | esac | |
1534 | case $ac_pass in | |
1535 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1536 | 2) | |
1537 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1538 | if test $ac_must_keep_next = true; then | |
875927f6 | 1539 | ac_must_keep_next=false # Got value, back to normal. |
e24bcc77 | 1540 | else |
875927f6 AJ |
1541 | case $ac_arg in |
1542 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1543 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1544 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1545 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1546 | case "$ac_configure_args0 " in | |
1547 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1548 | esac | |
1549 | ;; | |
1550 | -* ) ac_must_keep_next=true ;; | |
1551 | esac | |
e24bcc77 | 1552 | fi |
0ebeb530 | 1553 | ac_configure_args="$ac_configure_args '$ac_arg'" |
e24bcc77 AJ |
1554 | ;; |
1555 | esac | |
1556 | done | |
f5818d2f | 1557 | done |
e24bcc77 AJ |
1558 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1559 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
f5818d2f AJ |
1560 | |
1561 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1562 | # config.log. We remove comments because anyway the quotes in there | |
1563 | # would cause problems or look ugly. | |
fc6ffb29 AJ |
1564 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1565 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
f5818d2f AJ |
1566 | trap 'exit_status=$? |
1567 | # Save into config.log some information that might help in debugging. | |
daa2886c AJ |
1568 | { |
1569 | echo | |
11af04e3 | 1570 | |
daa2886c AJ |
1571 | cat <<\_ASBOX |
1572 | ## ---------------- ## | |
1573 | ## Cache variables. ## | |
1574 | ## ---------------- ## | |
1575 | _ASBOX | |
1576 | echo | |
1577 | # The following way of writing the cache mishandles newlines in values, | |
fc6ffb29 AJ |
1578 | ( |
1579 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1580 | eval ac_val=\$$ac_var | |
1581 | case $ac_val in #( | |
1582 | *${as_nl}*) | |
1583 | case $ac_var in #( | |
1584 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
1585 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
1586 | esac | |
1587 | case $ac_var in #( | |
1588 | _ | IFS | as_nl) ;; #( | |
1589 | *) $as_unset $ac_var ;; | |
1590 | esac ;; | |
1591 | esac | |
1592 | done | |
f5818d2f | 1593 | (set) 2>&1 | |
fc6ffb29 AJ |
1594 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1595 | *${as_nl}ac_space=\ *) | |
f5818d2f | 1596 | sed -n \ |
fc6ffb29 AJ |
1597 | "s/'\''/'\''\\\\'\'''\''/g; |
1598 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
1599 | ;; #( | |
f5818d2f | 1600 | *) |
fc6ffb29 | 1601 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
f5818d2f | 1602 | ;; |
fc6ffb29 AJ |
1603 | esac | |
1604 | sort | |
1605 | ) | |
daa2886c | 1606 | echo |
11af04e3 AJ |
1607 | |
1608 | cat <<\_ASBOX | |
1609 | ## ----------------- ## | |
1610 | ## Output variables. ## | |
1611 | ## ----------------- ## | |
1612 | _ASBOX | |
1613 | echo | |
1614 | for ac_var in $ac_subst_vars | |
1615 | do | |
fc6ffb29 | 1616 | eval ac_val=\$$ac_var |
0ebeb530 JW |
1617 | case $ac_val in |
1618 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1619 | esac | |
fc6ffb29 | 1620 | echo "$ac_var='\''$ac_val'\''" |
11af04e3 AJ |
1621 | done | sort |
1622 | echo | |
1623 | ||
1624 | if test -n "$ac_subst_files"; then | |
1625 | cat <<\_ASBOX | |
fc6ffb29 AJ |
1626 | ## ------------------- ## |
1627 | ## File substitutions. ## | |
1628 | ## ------------------- ## | |
11af04e3 AJ |
1629 | _ASBOX |
1630 | echo | |
1631 | for ac_var in $ac_subst_files | |
1632 | do | |
fc6ffb29 | 1633 | eval ac_val=\$$ac_var |
0ebeb530 JW |
1634 | case $ac_val in |
1635 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
1636 | esac | |
fc6ffb29 | 1637 | echo "$ac_var='\''$ac_val'\''" |
11af04e3 AJ |
1638 | done | sort |
1639 | echo | |
1640 | fi | |
1641 | ||
daa2886c AJ |
1642 | if test -s confdefs.h; then |
1643 | cat <<\_ASBOX | |
1644 | ## ----------- ## | |
1645 | ## confdefs.h. ## | |
1646 | ## ----------- ## | |
1647 | _ASBOX | |
1648 | echo | |
fc6ffb29 | 1649 | cat confdefs.h |
daa2886c AJ |
1650 | echo |
1651 | fi | |
1652 | test "$ac_signal" != 0 && | |
1653 | echo "$as_me: caught signal $ac_signal" | |
1654 | echo "$as_me: exit $exit_status" | |
1655 | } >&5 | |
fc6ffb29 AJ |
1656 | rm -f core *.core core.conftest.* && |
1657 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
f5818d2f | 1658 | exit $exit_status |
fc6ffb29 | 1659 | ' 0 |
f5818d2f AJ |
1660 | for ac_signal in 1 2 13 15; do |
1661 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1662 | done | |
1663 | ac_signal=0 | |
1664 | ||
1665 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
fc6ffb29 | 1666 | rm -f -r conftest* confdefs.h |
f5818d2f | 1667 | |
daa2886c AJ |
1668 | # Predefined preprocessor variables. |
1669 | ||
1670 | cat >>confdefs.h <<_ACEOF | |
1671 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1672 | _ACEOF | |
1673 | ||
1674 | ||
1675 | cat >>confdefs.h <<_ACEOF | |
1676 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1677 | _ACEOF | |
1678 | ||
1679 | ||
1680 | cat >>confdefs.h <<_ACEOF | |
1681 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1682 | _ACEOF | |
1683 | ||
1684 | ||
1685 | cat >>confdefs.h <<_ACEOF | |
1686 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1687 | _ACEOF | |
1688 | ||
1689 | ||
1690 | cat >>confdefs.h <<_ACEOF | |
1691 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1692 | _ACEOF | |
1693 | ||
1694 | ||
f5818d2f | 1695 | # Let the site file select an alternate cache file if it wants to. |
e2991ea7 | 1696 | # Prefer explicitly selected file to automatically selected ones. |
fc6ffb29 AJ |
1697 | if test -n "$CONFIG_SITE"; then |
1698 | set x "$CONFIG_SITE" | |
1699 | elif test "x$prefix" != xNONE; then | |
1700 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | |
1701 | else | |
1702 | set x "$ac_default_prefix/share/config.site" \ | |
1703 | "$ac_default_prefix/etc/config.site" | |
e2991ea7 | 1704 | fi |
fc6ffb29 AJ |
1705 | shift |
1706 | for ac_site_file | |
1707 | do | |
e2991ea7 | 1708 | if test -r "$ac_site_file"; then |
daa2886c | 1709 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
f5818d2f | 1710 | echo "$as_me: loading site script $ac_site_file" >&6;} |
daa2886c | 1711 | sed 's/^/| /' "$ac_site_file" >&5 |
e2991ea7 AJ |
1712 | . "$ac_site_file" |
1713 | fi | |
1714 | done | |
1715 | ||
1716 | if test -r "$cache_file"; then | |
f5818d2f AJ |
1717 | # Some versions of bash will fail to source /dev/null (special |
1718 | # files actually), so we avoid doing that. | |
1719 | if test -f "$cache_file"; then | |
daa2886c | 1720 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
f5818d2f AJ |
1721 | echo "$as_me: loading cache $cache_file" >&6;} |
1722 | case $cache_file in | |
0ebeb530 JW |
1723 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1724 | *) . "./$cache_file";; | |
f5818d2f AJ |
1725 | esac |
1726 | fi | |
e2991ea7 | 1727 | else |
daa2886c | 1728 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
f5818d2f AJ |
1729 | echo "$as_me: creating cache $cache_file" >&6;} |
1730 | >$cache_file | |
1731 | fi | |
1732 | ||
1733 | # Check that the precious variables saved in the cache have kept the same | |
1734 | # value. | |
1735 | ac_cache_corrupted=false | |
fc6ffb29 | 1736 | for ac_var in $ac_precious_vars; do |
f5818d2f AJ |
1737 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1738 | eval ac_new_set=\$ac_env_${ac_var}_set | |
fc6ffb29 AJ |
1739 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1740 | eval ac_new_val=\$ac_env_${ac_var}_value | |
f5818d2f AJ |
1741 | case $ac_old_set,$ac_new_set in |
1742 | set,) | |
daa2886c | 1743 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
f5818d2f AJ |
1744 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1745 | ac_cache_corrupted=: ;; | |
1746 | ,set) | |
daa2886c | 1747 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
f5818d2f AJ |
1748 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1749 | ac_cache_corrupted=: ;; | |
1750 | ,);; | |
1751 | *) | |
1752 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
875927f6 | 1753 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
f5818d2f | 1754 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
875927f6 | 1755 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
f5818d2f | 1756 | echo "$as_me: former value: $ac_old_val" >&2;} |
875927f6 | 1757 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
f5818d2f | 1758 | echo "$as_me: current value: $ac_new_val" >&2;} |
875927f6 | 1759 | ac_cache_corrupted=: |
f5818d2f AJ |
1760 | fi;; |
1761 | esac | |
daa2886c | 1762 | # Pass precious variables to config.status. |
f5818d2f AJ |
1763 | if test "$ac_new_set" = set; then |
1764 | case $ac_new_val in | |
fc6ffb29 | 1765 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
daa2886c AJ |
1766 | *) ac_arg=$ac_var=$ac_new_val ;; |
1767 | esac | |
1768 | case " $ac_configure_args " in | |
1769 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1770 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
f5818d2f AJ |
1771 | esac |
1772 | fi | |
1773 | done | |
1774 | if $ac_cache_corrupted; then | |
daa2886c | 1775 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
f5818d2f | 1776 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
daa2886c | 1777 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
f5818d2f AJ |
1778 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1779 | { (exit 1); exit 1; }; } | |
e2991ea7 AJ |
1780 | fi |
1781 | ||
daa2886c AJ |
1782 | |
1783 | ||
1784 | ||
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | ||
1792 | ||
1793 | ||
1794 | ||
1795 | ||
1796 | ||
1797 | ||
1798 | ||
1799 | ||
1800 | ||
1801 | ||
1802 | ||
1803 | ||
1804 | ||
1805 | ||
fc6ffb29 AJ |
1806 | ac_ext=c |
1807 | ac_cpp='$CPP $CPPFLAGS' | |
1808 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1809 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1810 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
daa2886c | 1811 | |
e2991ea7 | 1812 | |
11af04e3 | 1813 | |
fc6ffb29 | 1814 | ac_config_headers="$ac_config_headers include/config.h" |
18f92e76 | 1815 | |
d7d4fdf8 | 1816 | ac_aux_dir= |
0ebeb530 JW |
1817 | for ac_dir in tools "$srcdir"/tools; do |
1818 | if test -f "$ac_dir/install-sh"; then | |
d7d4fdf8 AJ |
1819 | ac_aux_dir=$ac_dir |
1820 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1821 | break | |
0ebeb530 | 1822 | elif test -f "$ac_dir/install.sh"; then |
d7d4fdf8 AJ |
1823 | ac_aux_dir=$ac_dir |
1824 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1825 | break | |
0ebeb530 | 1826 | elif test -f "$ac_dir/shtool"; then |
f5818d2f AJ |
1827 | ac_aux_dir=$ac_dir |
1828 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1829 | break | |
d7d4fdf8 AJ |
1830 | fi |
1831 | done | |
1832 | if test -z "$ac_aux_dir"; then | |
0ebeb530 JW |
1833 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5 |
1834 | echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;} | |
f5818d2f | 1835 | { (exit 1); exit 1; }; } |
d7d4fdf8 | 1836 | fi |
0ebeb530 JW |
1837 | |
1838 | # These three variables are undocumented and unsupported, | |
1839 | # and are intended to be withdrawn in a future Autoconf release. | |
1840 | # They can cause serious problems if a builder's source tree is in a directory | |
1841 | # whose full name contains unusual characters. | |
1842 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
1843 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
1844 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
1845 | ||
ff8331ea | 1846 | |
daa2886c AJ |
1847 | |
1848 | ||
fc6ffb29 | 1849 | # Check whether --enable-win16 was given. |
c728efc3 | 1850 | if test "${enable_win16+set}" = set; then |
fc6ffb29 AJ |
1851 | enableval=$enable_win16; |
1852 | fi | |
c728efc3 | 1853 | |
fc6ffb29 | 1854 | # Check whether --enable-win64 was given. |
2aa8e871 | 1855 | if test "${enable_win64+set}" = set; then |
fc6ffb29 AJ |
1856 | enableval=$enable_win64; |
1857 | fi | |
2aa8e871 | 1858 | |
b8074991 AJ |
1859 | |
1860 | ||
fc6ffb29 | 1861 | # Check whether --with-opengl was given. |
b8074991 | 1862 | if test "${with_opengl+set}" = set; then |
fc6ffb29 AJ |
1863 | withval=$with_opengl; |
1864 | fi | |
f90efa9c AJ |
1865 | |
1866 | ||
fc6ffb29 | 1867 | # Check whether --with-curses was given. |
5e5ad531 | 1868 | if test "${with_curses+set}" = set; then |
fc6ffb29 AJ |
1869 | withval=$with_curses; |
1870 | fi | |
5e5ad531 PS |
1871 | |
1872 | ||
fc6ffb29 | 1873 | # Check whether --with-wine-tools was given. |
fc01b729 | 1874 | if test "${with_wine_tools+set}" = set; then |
fc6ffb29 AJ |
1875 | withval=$with_wine_tools; |
1876 | fi | |
fc01b729 | 1877 | |
fc01b729 | 1878 | |
f5818d2f | 1879 | # Make sure we can run config.sub. |
0ebeb530 JW |
1880 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
1881 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
1882 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
f5818d2f AJ |
1883 | { (exit 1); exit 1; }; } |
1884 | ||
fc6ffb29 AJ |
1885 | { echo "$as_me:$LINENO: checking build system type" >&5 |
1886 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
f5818d2f AJ |
1887 | if test "${ac_cv_build+set}" = set; then |
1888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1889 | else | |
fc6ffb29 AJ |
1890 | ac_build_alias=$build_alias |
1891 | test "x$ac_build_alias" = x && | |
0ebeb530 | 1892 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
fc6ffb29 | 1893 | test "x$ac_build_alias" = x && |
daa2886c | 1894 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
f5818d2f AJ |
1895 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1896 | { (exit 1); exit 1; }; } | |
0ebeb530 JW |
1897 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
1898 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
1899 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
f5818d2f AJ |
1900 | { (exit 1); exit 1; }; } |
1901 | ||
1902 | fi | |
fc6ffb29 AJ |
1903 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1904 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
1905 | case $ac_cv_build in | |
1906 | *-*-*) ;; | |
1907 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
1908 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
1909 | { (exit 1); exit 1; }; };; | |
1910 | esac | |
f5818d2f | 1911 | build=$ac_cv_build |
fc6ffb29 AJ |
1912 | ac_save_IFS=$IFS; IFS='-' |
1913 | set x $ac_cv_build | |
1914 | shift | |
1915 | build_cpu=$1 | |
1916 | build_vendor=$2 | |
1917 | shift; shift | |
1918 | # Remember, the first character of IFS is used to create $*, | |
1919 | # except with old shells: | |
1920 | build_os=$* | |
1921 | IFS=$ac_save_IFS | |
1922 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
1923 | ||
1924 | ||
1925 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
1926 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
f5818d2f AJ |
1927 | if test "${ac_cv_host+set}" = set; then |
1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1929 | else | |
fc6ffb29 AJ |
1930 | if test "x$host_alias" = x; then |
1931 | ac_cv_host=$ac_cv_build | |
1932 | else | |
0ebeb530 JW |
1933 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
1934 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
1935 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
f5818d2f | 1936 | { (exit 1); exit 1; }; } |
fc6ffb29 | 1937 | fi |
f5818d2f AJ |
1938 | |
1939 | fi | |
fc6ffb29 AJ |
1940 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1941 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
1942 | case $ac_cv_host in | |
1943 | *-*-*) ;; | |
1944 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
1945 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
1946 | { (exit 1); exit 1; }; };; | |
1947 | esac | |
f5818d2f | 1948 | host=$ac_cv_host |
fc6ffb29 AJ |
1949 | ac_save_IFS=$IFS; IFS='-' |
1950 | set x $ac_cv_host | |
1951 | shift | |
1952 | host_cpu=$1 | |
1953 | host_vendor=$2 | |
1954 | shift; shift | |
1955 | # Remember, the first character of IFS is used to create $*, | |
1956 | # except with old shells: | |
1957 | host_os=$* | |
1958 | IFS=$ac_save_IFS | |
1959 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
f5818d2f | 1960 | |
daa2886c | 1961 | |
2aa8e871 AJ |
1962 | case $host in |
1963 | x86_64*linux*) | |
1964 | if test "x$enable_win64" != "xyes" | |
1965 | then | |
1966 | test -n "$CC" || CC="gcc -m32" | |
1967 | test -n "$LD" || LD="ld -m elf_i386" | |
1968 | test -n "$AS" || AS="as --32" | |
bbcf9864 | 1969 | host_cpu="i386" |
2aa8e871 AJ |
1970 | fi |
1971 | ;; | |
1972 | esac | |
1973 | ||
71440f35 AJ |
1974 | case $host_cpu in |
1975 | *i[3456789]86*) | |
1976 | if test "x$enable_win16" != "xno" | |
1977 | then | |
1978 | enable_win16="yes" | |
1979 | fi | |
1980 | ;; | |
1981 | esac | |
1982 | ||
1983 | WIN16_FILES="\$(WIN16_FILES)" | |
1984 | ||
1985 | WIN16_INSTALL="\$(WIN16_INSTALL)" | |
1986 | ||
1987 | if test "x$enable_win16" != "xyes" | |
1988 | then | |
1989 | WIN16_FILES="" | |
1990 | WIN16_INSTALL="" | |
1991 | fi | |
1992 | ||
1993 | ||
fc6ffb29 AJ |
1994 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1995 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
0ebeb530 | 1996 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
fc6ffb29 | 1997 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
f5818d2f AJ |
1998 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1999 | else | |
daa2886c | 2000 | cat >conftest.make <<\_ACEOF |
fc6ffb29 | 2001 | SHELL = /bin/sh |
e2991ea7 | 2002 | all: |
0ebeb530 | 2003 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
daa2886c | 2004 | _ACEOF |
e2991ea7 | 2005 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
0ebeb530 JW |
2006 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2007 | *@@@%%%=?*=@@@%%%*) | |
2008 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2009 | *) | |
2010 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2011 | esac | |
f5818d2f | 2012 | rm -f conftest.make |
e2991ea7 | 2013 | fi |
0ebeb530 | 2014 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
fc6ffb29 AJ |
2015 | { echo "$as_me:$LINENO: result: yes" >&5 |
2016 | echo "${ECHO_T}yes" >&6; } | |
e2991ea7 AJ |
2017 | SET_MAKE= |
2018 | else | |
fc6ffb29 AJ |
2019 | { echo "$as_me:$LINENO: result: no" >&5 |
2020 | echo "${ECHO_T}no" >&6; } | |
e2991ea7 AJ |
2021 | SET_MAKE="MAKE=${MAKE-make}" |
2022 | fi | |
2023 | ||
f5818d2f AJ |
2024 | ac_ext=c |
2025 | ac_cpp='$CPP $CPPFLAGS' | |
2026 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2027 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2028 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2029 | if test -n "$ac_tool_prefix"; then | |
2030 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2031 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
fc6ffb29 AJ |
2032 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2033 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
2034 | if test "${ac_cv_prog_CC+set}" = set; then |
2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2036 | else | |
2037 | if test -n "$CC"; then | |
2038 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2039 | else | |
daa2886c AJ |
2040 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2041 | for as_dir in $PATH | |
2042 | do | |
2043 | IFS=$as_save_IFS | |
2044 | test -z "$as_dir" && as_dir=. | |
2045 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 2046 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
2047 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2048 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2049 | break 2 | |
2050 | fi | |
2051 | done | |
f5818d2f | 2052 | done |
fc6ffb29 | 2053 | IFS=$as_save_IFS |
f5818d2f AJ |
2054 | |
2055 | fi | |
2056 | fi | |
2057 | CC=$ac_cv_prog_CC | |
2058 | if test -n "$CC"; then | |
fc6ffb29 AJ |
2059 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2060 | echo "${ECHO_T}$CC" >&6; } | |
f5818d2f | 2061 | else |
fc6ffb29 AJ |
2062 | { echo "$as_me:$LINENO: result: no" >&5 |
2063 | echo "${ECHO_T}no" >&6; } | |
f5818d2f AJ |
2064 | fi |
2065 | ||
fc6ffb29 | 2066 | |
f5818d2f AJ |
2067 | fi |
2068 | if test -z "$ac_cv_prog_CC"; then | |
2069 | ac_ct_CC=$CC | |
2070 | # Extract the first word of "gcc", so it can be a program name with args. | |
e2991ea7 | 2071 | set dummy gcc; ac_word=$2 |
fc6ffb29 AJ |
2072 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2073 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
2074 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2076 | else | |
2077 | if test -n "$ac_ct_CC"; then | |
2078 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2079 | else | |
daa2886c AJ |
2080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2081 | for as_dir in $PATH | |
2082 | do | |
2083 | IFS=$as_save_IFS | |
2084 | test -z "$as_dir" && as_dir=. | |
2085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 2086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
2087 | ac_cv_prog_ac_ct_CC="gcc" |
2088 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2089 | break 2 | |
2090 | fi | |
2091 | done | |
f5818d2f | 2092 | done |
fc6ffb29 | 2093 | IFS=$as_save_IFS |
f5818d2f AJ |
2094 | |
2095 | fi | |
2096 | fi | |
2097 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2098 | if test -n "$ac_ct_CC"; then | |
fc6ffb29 AJ |
2099 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2100 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
f5818d2f | 2101 | else |
fc6ffb29 AJ |
2102 | { echo "$as_me:$LINENO: result: no" >&5 |
2103 | echo "${ECHO_T}no" >&6; } | |
f5818d2f AJ |
2104 | fi |
2105 | ||
fc6ffb29 AJ |
2106 | if test "x$ac_ct_CC" = x; then |
2107 | CC="" | |
2108 | else | |
2109 | case $cross_compiling:$ac_tool_warned in | |
2110 | yes:) | |
2111 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2112 | whose name does not start with the host triplet. If you think this | |
2113 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2114 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2115 | whose name does not start with the host triplet. If you think this | |
2116 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2117 | ac_tool_warned=yes ;; | |
2118 | esac | |
2119 | CC=$ac_ct_CC | |
2120 | fi | |
f5818d2f AJ |
2121 | else |
2122 | CC="$ac_cv_prog_CC" | |
2123 | fi | |
2124 | ||
2125 | if test -z "$CC"; then | |
fc6ffb29 AJ |
2126 | if test -n "$ac_tool_prefix"; then |
2127 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
f5818d2f | 2128 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
fc6ffb29 AJ |
2129 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
2131 | if test "${ac_cv_prog_CC+set}" = set; then |
2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 AJ |
2133 | else |
2134 | if test -n "$CC"; then | |
2135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2136 | else | |
daa2886c AJ |
2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2138 | for as_dir in $PATH | |
2139 | do | |
2140 | IFS=$as_save_IFS | |
2141 | test -z "$as_dir" && as_dir=. | |
2142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 2143 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
2144 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2146 | break 2 | |
2147 | fi | |
2148 | done | |
f5818d2f | 2149 | done |
fc6ffb29 | 2150 | IFS=$as_save_IFS |
f5818d2f | 2151 | |
e2991ea7 AJ |
2152 | fi |
2153 | fi | |
f5818d2f | 2154 | CC=$ac_cv_prog_CC |
e2991ea7 | 2155 | if test -n "$CC"; then |
fc6ffb29 AJ |
2156 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2157 | echo "${ECHO_T}$CC" >&6; } | |
f5818d2f | 2158 | else |
fc6ffb29 AJ |
2159 | { echo "$as_me:$LINENO: result: no" >&5 |
2160 | echo "${ECHO_T}no" >&6; } | |
f5818d2f AJ |
2161 | fi |
2162 | ||
e2991ea7 | 2163 | |
fc6ffb29 | 2164 | fi |
f5818d2f | 2165 | fi |
b817f4fb AJ |
2166 | if test -z "$CC"; then |
2167 | # Extract the first word of "cc", so it can be a program name with args. | |
2168 | set dummy cc; ac_word=$2 | |
fc6ffb29 AJ |
2169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
2171 | if test "${ac_cv_prog_CC+set}" = set; then |
2172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b817f4fb AJ |
2173 | else |
2174 | if test -n "$CC"; then | |
2175 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2176 | else | |
b817f4fb | 2177 | ac_prog_rejected=no |
daa2886c AJ |
2178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2179 | for as_dir in $PATH | |
2180 | do | |
2181 | IFS=$as_save_IFS | |
2182 | test -z "$as_dir" && as_dir=. | |
2183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 2184 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
2185 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2186 | ac_prog_rejected=yes | |
2187 | continue | |
2188 | fi | |
2189 | ac_cv_prog_CC="cc" | |
2190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2191 | break 2 | |
2192 | fi | |
2193 | done | |
f5818d2f | 2194 | done |
fc6ffb29 | 2195 | IFS=$as_save_IFS |
f5818d2f | 2196 | |
b817f4fb AJ |
2197 | if test $ac_prog_rejected = yes; then |
2198 | # We found a bogon in the path, so make sure we never use it. | |
2199 | set dummy $ac_cv_prog_CC | |
2200 | shift | |
f5818d2f | 2201 | if test $# != 0; then |
b817f4fb AJ |
2202 | # We chose a different compiler from the bogus one. |
2203 | # However, it has the same basename, so the bogon will be chosen | |
2204 | # first if we set CC to just the basename; use the full file name. | |
2205 | shift | |
11af04e3 | 2206 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
b817f4fb AJ |
2207 | fi |
2208 | fi | |
2209 | fi | |
2210 | fi | |
f5818d2f | 2211 | CC=$ac_cv_prog_CC |
b817f4fb | 2212 | if test -n "$CC"; then |
fc6ffb29 AJ |
2213 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2214 | echo "${ECHO_T}$CC" >&6; } | |
b817f4fb | 2215 | else |
fc6ffb29 AJ |
2216 | { echo "$as_me:$LINENO: result: no" >&5 |
2217 | echo "${ECHO_T}no" >&6; } | |
b817f4fb AJ |
2218 | fi |
2219 | ||
fc6ffb29 | 2220 | |
f5818d2f AJ |
2221 | fi |
2222 | if test -z "$CC"; then | |
2223 | if test -n "$ac_tool_prefix"; then | |
fc6ffb29 | 2224 | for ac_prog in cl.exe |
f5818d2f AJ |
2225 | do |
2226 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2227 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
2228 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
2230 | if test "${ac_cv_prog_CC+set}" = set; then |
2231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2232 | else | |
2233 | if test -n "$CC"; then | |
18ad24a7 EP |
2234 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2235 | else | |
daa2886c AJ |
2236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2237 | for as_dir in $PATH | |
2238 | do | |
2239 | IFS=$as_save_IFS | |
2240 | test -z "$as_dir" && as_dir=. | |
2241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 2242 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
2243 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2245 | break 2 | |
2246 | fi | |
2247 | done | |
f5818d2f | 2248 | done |
fc6ffb29 | 2249 | IFS=$as_save_IFS |
f5818d2f | 2250 | |
18ad24a7 EP |
2251 | fi |
2252 | fi | |
f5818d2f | 2253 | CC=$ac_cv_prog_CC |
18ad24a7 | 2254 | if test -n "$CC"; then |
fc6ffb29 AJ |
2255 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2256 | echo "${ECHO_T}$CC" >&6; } | |
18ad24a7 | 2257 | else |
fc6ffb29 AJ |
2258 | { echo "$as_me:$LINENO: result: no" >&5 |
2259 | echo "${ECHO_T}no" >&6; } | |
b817f4fb | 2260 | fi |
e2991ea7 | 2261 | |
fc6ffb29 | 2262 | |
f5818d2f AJ |
2263 | test -n "$CC" && break |
2264 | done | |
2265 | fi | |
2266 | if test -z "$CC"; then | |
2267 | ac_ct_CC=$CC | |
fc6ffb29 | 2268 | for ac_prog in cl.exe |
f5818d2f AJ |
2269 | do |
2270 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2271 | set dummy $ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
2272 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2273 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
2274 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2276 | else | |
2277 | if test -n "$ac_ct_CC"; then | |
2278 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2279 | else | |
daa2886c AJ |
2280 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2281 | for as_dir in $PATH | |
2282 | do | |
2283 | IFS=$as_save_IFS | |
2284 | test -z "$as_dir" && as_dir=. | |
2285 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 2286 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
2287 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2288 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2289 | break 2 | |
2290 | fi | |
2291 | done | |
f5818d2f | 2292 | done |
fc6ffb29 | 2293 | IFS=$as_save_IFS |
da0cfb36 | 2294 | |
f5818d2f AJ |
2295 | fi |
2296 | fi | |
2297 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2298 | if test -n "$ac_ct_CC"; then | |
fc6ffb29 AJ |
2299 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2300 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
f5818d2f | 2301 | else |
fc6ffb29 AJ |
2302 | { echo "$as_me:$LINENO: result: no" >&5 |
2303 | echo "${ECHO_T}no" >&6; } | |
f5818d2f | 2304 | fi |
da0cfb36 | 2305 | |
fc6ffb29 | 2306 | |
f5818d2f AJ |
2307 | test -n "$ac_ct_CC" && break |
2308 | done | |
18ad24a7 | 2309 | |
fc6ffb29 AJ |
2310 | if test "x$ac_ct_CC" = x; then |
2311 | CC="" | |
2312 | else | |
2313 | case $cross_compiling:$ac_tool_warned in | |
2314 | yes:) | |
2315 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2316 | whose name does not start with the host triplet. If you think this | |
2317 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2318 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2319 | whose name does not start with the host triplet. If you think this | |
2320 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2321 | ac_tool_warned=yes ;; | |
2322 | esac | |
2323 | CC=$ac_ct_CC | |
2324 | fi | |
f5818d2f AJ |
2325 | fi |
2326 | ||
2327 | fi | |
2328 | ||
daa2886c | 2329 | |
e24bcc77 AJ |
2330 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2331 | See \`config.log' for more details." >&5 | |
2332 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2333 | See \`config.log' for more details." >&2;} | |
f5818d2f AJ |
2334 | { (exit 1); exit 1; }; } |
2335 | ||
2336 | # Provide some information about the compiler. | |
fc6ffb29 | 2337 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
f5818d2f | 2338 | ac_compiler=`set X $ac_compile; echo $2` |
0ebeb530 JW |
2339 | { (ac_try="$ac_compiler --version >&5" |
2340 | case "(($ac_try" in | |
2341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2342 | *) ac_try_echo=$ac_try;; | |
2343 | esac | |
2344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2345 | (eval "$ac_compiler --version >&5") 2>&5 | |
f5818d2f | 2346 | ac_status=$? |
daa2886c | 2347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2348 | (exit $ac_status); } |
0ebeb530 JW |
2349 | { (ac_try="$ac_compiler -v >&5" |
2350 | case "(($ac_try" in | |
2351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2352 | *) ac_try_echo=$ac_try;; | |
2353 | esac | |
2354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2355 | (eval "$ac_compiler -v >&5") 2>&5 | |
f5818d2f | 2356 | ac_status=$? |
daa2886c | 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2358 | (exit $ac_status); } |
0ebeb530 JW |
2359 | { (ac_try="$ac_compiler -V >&5" |
2360 | case "(($ac_try" in | |
2361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2362 | *) ac_try_echo=$ac_try;; | |
2363 | esac | |
2364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2365 | (eval "$ac_compiler -V >&5") 2>&5 | |
f5818d2f | 2366 | ac_status=$? |
daa2886c | 2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2368 | (exit $ac_status); } |
2369 | ||
2370 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
2371 | /* confdefs.h. */ |
2372 | _ACEOF | |
2373 | cat confdefs.h >>conftest.$ac_ext | |
2374 | cat >>conftest.$ac_ext <<_ACEOF | |
2375 | /* end confdefs.h. */ | |
18ad24a7 | 2376 | |
f5818d2f AJ |
2377 | int |
2378 | main () | |
2379 | { | |
2380 | ||
2381 | ; | |
2382 | return 0; | |
2383 | } | |
2384 | _ACEOF | |
2385 | ac_clean_files_save=$ac_clean_files | |
0ebeb530 | 2386 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
f5818d2f AJ |
2387 | # Try to create an executable without -o first, disregard a.out. |
2388 | # It will help us diagnose broken compilers, and finding out an intuition | |
2389 | # of exeext. | |
fc6ffb29 AJ |
2390 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2391 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
f5818d2f | 2392 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
0ebeb530 JW |
2393 | # |
2394 | # List of possible output files, starting from the most likely. | |
2395 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
2396 | # only as a last resort. b.out is created by i960 compilers. | |
2397 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
2398 | # | |
2399 | # The IRIX 6 linker writes into existing files which may not be | |
2400 | # executable, retaining their permissions. Remove them first so a | |
2401 | # subsequent execution test works. | |
2402 | ac_rmfiles= | |
2403 | for ac_file in $ac_files | |
2404 | do | |
2405 | case $ac_file in | |
2406 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2407 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2408 | esac | |
2409 | done | |
2410 | rm -f $ac_rmfiles | |
fc6ffb29 | 2411 | |
0ebeb530 JW |
2412 | if { (ac_try="$ac_link_default" |
2413 | case "(($ac_try" in | |
2414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2415 | *) ac_try_echo=$ac_try;; | |
2416 | esac | |
2417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2418 | (eval "$ac_link_default") 2>&5 | |
f5818d2f | 2419 | ac_status=$? |
daa2886c | 2420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2421 | (exit $ac_status); }; then |
0ebeb530 JW |
2422 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2423 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2424 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2425 | # so that the user can short-circuit this test for compilers unknown to | |
2426 | # Autoconf. | |
78bd1948 | 2427 | for ac_file in $ac_files '' |
e24bcc77 | 2428 | do |
11af04e3 | 2429 | test -f "$ac_file" || continue |
f5818d2f | 2430 | case $ac_file in |
0ebeb530 JW |
2431 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2432 | ;; | |
2433 | [ab].out ) | |
2434 | # We found the default executable, but exeext='' is most | |
2435 | # certainly right. | |
2436 | break;; | |
2437 | *.* ) | |
2438 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2439 | then :; else | |
2440 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2441 | fi | |
2442 | # We set ac_cv_exeext here because the later test for it is not | |
2443 | # safe: cross compilers may not add the suffix if given an `-o' | |
2444 | # argument, so we may need to know it at that point already. | |
2445 | # Even if this section looks crufty: it has the advantage of | |
2446 | # actually working. | |
2447 | break;; | |
2448 | * ) | |
2449 | break;; | |
f5818d2f AJ |
2450 | esac |
2451 | done | |
0ebeb530 | 2452 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
fc6ffb29 | 2453 | |
f5818d2f | 2454 | else |
78bd1948 AJ |
2455 | ac_file='' |
2456 | fi | |
2457 | ||
2458 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2459 | echo "${ECHO_T}$ac_file" >&6; } | |
2460 | if test -z "$ac_file"; then | |
f5818d2f | 2461 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
2462 | sed 's/^/| /' conftest.$ac_ext >&5 |
2463 | ||
11af04e3 | 2464 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
e24bcc77 | 2465 | See \`config.log' for more details." >&5 |
11af04e3 | 2466 | echo "$as_me: error: C compiler cannot create executables |
e24bcc77 | 2467 | See \`config.log' for more details." >&2;} |
f5818d2f AJ |
2468 | { (exit 77); exit 77; }; } |
2469 | fi | |
2470 | ||
0ebeb530 | 2471 | ac_exeext=$ac_cv_exeext |
0ebeb530 | 2472 | |
fc6ffb29 | 2473 | # Check that the compiler produces executables we can run. If not, either |
f5818d2f | 2474 | # the compiler is broken, or we cross compile. |
fc6ffb29 AJ |
2475 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2476 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
f5818d2f AJ |
2477 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2478 | # If not cross compiling, check that we can run a simple program. | |
2479 | if test "$cross_compiling" != yes; then | |
2480 | if { ac_try='./$ac_file' | |
0ebeb530 JW |
2481 | { (case "(($ac_try" in |
2482 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2483 | *) ac_try_echo=$ac_try;; | |
2484 | esac | |
2485 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2486 | (eval "$ac_try") 2>&5 | |
f5818d2f | 2487 | ac_status=$? |
daa2886c | 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2489 | (exit $ac_status); }; }; then |
2490 | cross_compiling=no | |
7e6ae4ba | 2491 | else |
f5818d2f AJ |
2492 | if test "$cross_compiling" = maybe; then |
2493 | cross_compiling=yes | |
2494 | else | |
daa2886c | 2495 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
e24bcc77 AJ |
2496 | If you meant to cross compile, use \`--host'. |
2497 | See \`config.log' for more details." >&5 | |
f5818d2f | 2498 | echo "$as_me: error: cannot run C compiled programs. |
e24bcc77 AJ |
2499 | If you meant to cross compile, use \`--host'. |
2500 | See \`config.log' for more details." >&2;} | |
f5818d2f AJ |
2501 | { (exit 1); exit 1; }; } |
2502 | fi | |
7e6ae4ba | 2503 | fi |
f5818d2f | 2504 | fi |
fc6ffb29 AJ |
2505 | { echo "$as_me:$LINENO: result: yes" >&5 |
2506 | echo "${ECHO_T}yes" >&6; } | |
f5818d2f | 2507 | |
0ebeb530 JW |
2508 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2509 | ac_clean_files=$ac_clean_files_save | |
2510 | # Check that the compiler produces executables we can run. If not, either | |
2511 | # the compiler is broken, or we cross compile. | |
fc6ffb29 AJ |
2512 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2513 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
2514 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2515 | echo "${ECHO_T}$cross_compiling" >&6; } | |
2516 | ||
2517 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2518 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
0ebeb530 JW |
2519 | if { (ac_try="$ac_link" |
2520 | case "(($ac_try" in | |
2521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2522 | *) ac_try_echo=$ac_try;; | |
2523 | esac | |
2524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2525 | (eval "$ac_link") 2>&5 | |
f5818d2f | 2526 | ac_status=$? |
daa2886c | 2527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2528 | (exit $ac_status); }; then |
0ebeb530 JW |
2529 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2530 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2531 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2532 | # `rm'. | |
2533 | for ac_file in conftest.exe conftest conftest.*; do | |
2534 | test -f "$ac_file" || continue | |
2535 | case $ac_file in | |
2536 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
2537 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2538 | break;; | |
2539 | * ) break;; | |
2540 | esac | |
2541 | done | |
da0cfb36 | 2542 | else |
e24bcc77 AJ |
2543 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2544 | See \`config.log' for more details." >&5 | |
2545 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2546 | See \`config.log' for more details." >&2;} | |
f5818d2f | 2547 | { (exit 1); exit 1; }; } |
da0cfb36 | 2548 | fi |
da0cfb36 | 2549 | |
0ebeb530 | 2550 | rm -f conftest$ac_cv_exeext |
fc6ffb29 AJ |
2551 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2552 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
0ebeb530 JW |
2553 | |
2554 | rm -f conftest.$ac_ext | |
f5818d2f AJ |
2555 | EXEEXT=$ac_cv_exeext |
2556 | ac_exeext=$EXEEXT | |
fc6ffb29 AJ |
2557 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2558 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
f5818d2f AJ |
2559 | if test "${ac_cv_objext+set}" = set; then |
2560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 2561 | else |
0ebeb530 JW |
2562 | cat >conftest.$ac_ext <<_ACEOF |
2563 | /* confdefs.h. */ | |
2564 | _ACEOF | |
2565 | cat confdefs.h >>conftest.$ac_ext | |
2566 | cat >>conftest.$ac_ext <<_ACEOF | |
2567 | /* end confdefs.h. */ | |
2568 | ||
2569 | int | |
2570 | main () | |
2571 | { | |
2572 | ||
2573 | ; | |
2574 | return 0; | |
2575 | } | |
2576 | _ACEOF | |
2577 | rm -f conftest.o conftest.obj | |
2578 | if { (ac_try="$ac_compile" | |
2579 | case "(($ac_try" in | |
2580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2581 | *) ac_try_echo=$ac_try;; | |
2582 | esac | |
2583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2584 | (eval "$ac_compile") 2>&5 | |
f5818d2f | 2585 | ac_status=$? |
daa2886c | 2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2587 | (exit $ac_status); }; then |
fc6ffb29 AJ |
2588 | for ac_file in conftest.o conftest.obj conftest.*; do |
2589 | test -f "$ac_file" || continue; | |
f5818d2f | 2590 | case $ac_file in |
fc6ffb29 | 2591 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
f5818d2f AJ |
2592 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2593 | break;; | |
2594 | esac | |
2595 | done | |
18ad24a7 | 2596 | else |
f5818d2f | 2597 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
2598 | sed 's/^/| /' conftest.$ac_ext >&5 |
2599 | ||
2600 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2601 | See \`config.log' for more details." >&5 | |
2602 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2603 | See \`config.log' for more details." >&2;} | |
f5818d2f | 2604 | { (exit 1); exit 1; }; } |
18ad24a7 EP |
2605 | fi |
2606 | ||
0ebeb530 | 2607 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
f5818d2f | 2608 | fi |
fc6ffb29 AJ |
2609 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2610 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
f5818d2f AJ |
2611 | OBJEXT=$ac_cv_objext |
2612 | ac_objext=$OBJEXT | |
fc6ffb29 AJ |
2613 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2614 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
f5818d2f AJ |
2615 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 2617 | else |
f5818d2f | 2618 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
2619 | /* confdefs.h. */ |
2620 | _ACEOF | |
2621 | cat confdefs.h >>conftest.$ac_ext | |
2622 | cat >>conftest.$ac_ext <<_ACEOF | |
2623 | /* end confdefs.h. */ | |
f5818d2f AJ |
2624 | |
2625 | int | |
2626 | main () | |
2627 | { | |
2628 | #ifndef __GNUC__ | |
2629 | choke me | |
2630 | #endif | |
2631 | ||
2632 | ; | |
2633 | return 0; | |
2634 | } | |
2635 | _ACEOF | |
2636 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
2637 | if { (ac_try="$ac_compile" |
2638 | case "(($ac_try" in | |
2639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2640 | *) ac_try_echo=$ac_try;; | |
2641 | esac | |
2642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2643 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 2644 | ac_status=$? |
875927f6 AJ |
2645 | grep -v '^ *+' conftest.er1 >conftest.err |
2646 | rm -f conftest.er1 | |
2647 | cat conftest.err >&5 | |
daa2886c | 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2649 | (exit $ac_status); } && |
0ebeb530 JW |
2650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2651 | { (case "(($ac_try" in | |
2652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2653 | *) ac_try_echo=$ac_try;; | |
2654 | esac | |
2655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2656 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
2657 | ac_status=$? |
2658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2659 | (exit $ac_status); }; } && | |
2660 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
2661 | { (case "(($ac_try" in |
2662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2663 | *) ac_try_echo=$ac_try;; | |
2664 | esac | |
2665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2666 | (eval "$ac_try") 2>&5 | |
f5818d2f | 2667 | ac_status=$? |
daa2886c | 2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
2669 | (exit $ac_status); }; }; then |
2670 | ac_compiler_gnu=yes | |
2671 | else | |
2672 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
2673 | sed 's/^/| /' conftest.$ac_ext >&5 |
2674 | ||
fc6ffb29 | 2675 | ac_compiler_gnu=no |
f5818d2f | 2676 | fi |
fc6ffb29 | 2677 | |
0ebeb530 | 2678 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f AJ |
2679 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2680 | ||
2681 | fi | |
fc6ffb29 AJ |
2682 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2683 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
f5818d2f AJ |
2684 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
2685 | ac_test_CFLAGS=${CFLAGS+set} | |
2686 | ac_save_CFLAGS=$CFLAGS | |
fc6ffb29 AJ |
2687 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2688 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
f5818d2f AJ |
2689 | if test "${ac_cv_prog_cc_g+set}" = set; then |
2690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2691 | else | |
fc6ffb29 AJ |
2692 | ac_save_c_werror_flag=$ac_c_werror_flag |
2693 | ac_c_werror_flag=yes | |
2694 | ac_cv_prog_cc_g=no | |
2695 | CFLAGS="-g" | |
2696 | cat >conftest.$ac_ext <<_ACEOF | |
2697 | /* confdefs.h. */ | |
2698 | _ACEOF | |
2699 | cat confdefs.h >>conftest.$ac_ext | |
2700 | cat >>conftest.$ac_ext <<_ACEOF | |
2701 | /* end confdefs.h. */ | |
2702 | ||
2703 | int | |
2704 | main () | |
2705 | { | |
2706 | ||
2707 | ; | |
2708 | return 0; | |
2709 | } | |
2710 | _ACEOF | |
2711 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
2712 | if { (ac_try="$ac_compile" |
2713 | case "(($ac_try" in | |
2714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2715 | *) ac_try_echo=$ac_try;; | |
2716 | esac | |
2717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2718 | (eval "$ac_compile") 2>conftest.er1 | |
fc6ffb29 AJ |
2719 | ac_status=$? |
2720 | grep -v '^ *+' conftest.er1 >conftest.err | |
2721 | rm -f conftest.er1 | |
2722 | cat conftest.err >&5 | |
2723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2724 | (exit $ac_status); } && | |
0ebeb530 JW |
2725 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2726 | { (case "(($ac_try" in | |
2727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2728 | *) ac_try_echo=$ac_try;; | |
2729 | esac | |
2730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2731 | (eval "$ac_try") 2>&5 | |
fc6ffb29 AJ |
2732 | ac_status=$? |
2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2734 | (exit $ac_status); }; } && | |
2735 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
2736 | { (case "(($ac_try" in |
2737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2738 | *) ac_try_echo=$ac_try;; | |
2739 | esac | |
2740 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2741 | (eval "$ac_try") 2>&5 | |
fc6ffb29 AJ |
2742 | ac_status=$? |
2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2744 | (exit $ac_status); }; }; then | |
2745 | ac_cv_prog_cc_g=yes | |
2746 | else | |
2747 | echo "$as_me: failed program was:" >&5 | |
2748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2749 | ||
2750 | CFLAGS="" | |
2751 | cat >conftest.$ac_ext <<_ACEOF | |
2752 | /* confdefs.h. */ | |
2753 | _ACEOF | |
2754 | cat confdefs.h >>conftest.$ac_ext | |
2755 | cat >>conftest.$ac_ext <<_ACEOF | |
2756 | /* end confdefs.h. */ | |
2757 | ||
2758 | int | |
2759 | main () | |
2760 | { | |
2761 | ||
2762 | ; | |
2763 | return 0; | |
2764 | } | |
2765 | _ACEOF | |
2766 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
2767 | if { (ac_try="$ac_compile" |
2768 | case "(($ac_try" in | |
2769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2770 | *) ac_try_echo=$ac_try;; | |
2771 | esac | |
2772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2773 | (eval "$ac_compile") 2>conftest.er1 | |
fc6ffb29 AJ |
2774 | ac_status=$? |
2775 | grep -v '^ *+' conftest.er1 >conftest.err | |
2776 | rm -f conftest.er1 | |
2777 | cat conftest.err >&5 | |
2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2779 | (exit $ac_status); } && | |
0ebeb530 JW |
2780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2781 | { (case "(($ac_try" in | |
2782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2783 | *) ac_try_echo=$ac_try;; | |
2784 | esac | |
2785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2786 | (eval "$ac_try") 2>&5 | |
fc6ffb29 AJ |
2787 | ac_status=$? |
2788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2789 | (exit $ac_status); }; } && | |
2790 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
2791 | { (case "(($ac_try" in |
2792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2793 | *) ac_try_echo=$ac_try;; | |
2794 | esac | |
2795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2796 | (eval "$ac_try") 2>&5 | |
fc6ffb29 AJ |
2797 | ac_status=$? |
2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2799 | (exit $ac_status); }; }; then | |
2800 | : | |
2801 | else | |
2802 | echo "$as_me: failed program was:" >&5 | |
2803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2804 | ||
2805 | ac_c_werror_flag=$ac_save_c_werror_flag | |
2806 | CFLAGS="-g" | |
2807 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
2808 | /* confdefs.h. */ |
2809 | _ACEOF | |
2810 | cat confdefs.h >>conftest.$ac_ext | |
2811 | cat >>conftest.$ac_ext <<_ACEOF | |
2812 | /* end confdefs.h. */ | |
f5818d2f AJ |
2813 | |
2814 | int | |
2815 | main () | |
2816 | { | |
2817 | ||
2818 | ; | |
2819 | return 0; | |
2820 | } | |
2821 | _ACEOF | |
2822 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
2823 | if { (ac_try="$ac_compile" |
2824 | case "(($ac_try" in | |
2825 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2826 | *) ac_try_echo=$ac_try;; | |
2827 | esac | |
2828 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2829 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 2830 | ac_status=$? |
875927f6 AJ |
2831 | grep -v '^ *+' conftest.er1 >conftest.err |
2832 | rm -f conftest.er1 | |
2833 | cat conftest.err >&5 | |
daa2886c | 2834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2835 | (exit $ac_status); } && |
0ebeb530 JW |
2836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2837 | { (case "(($ac_try" in | |
2838 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2839 | *) ac_try_echo=$ac_try;; | |
2840 | esac | |
2841 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2842 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
2843 | ac_status=$? |
2844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2845 | (exit $ac_status); }; } && | |
2846 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
2847 | { (case "(($ac_try" in |
2848 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2849 | *) ac_try_echo=$ac_try;; | |
2850 | esac | |
2851 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2852 | (eval "$ac_try") 2>&5 | |
f5818d2f | 2853 | ac_status=$? |
daa2886c | 2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 2855 | (exit $ac_status); }; }; then |
7e6ae4ba | 2856 | ac_cv_prog_cc_g=yes |
e2991ea7 | 2857 | else |
f5818d2f | 2858 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
2859 | sed 's/^/| /' conftest.$ac_ext >&5 |
2860 | ||
fc6ffb29 AJ |
2861 | |
2862 | fi | |
2863 | ||
0ebeb530 | 2864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
2865 | fi |
2866 | ||
0ebeb530 | 2867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e2991ea7 | 2868 | fi |
fc6ffb29 | 2869 | |
0ebeb530 | 2870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 | 2871 | ac_c_werror_flag=$ac_save_c_werror_flag |
e2991ea7 | 2872 | fi |
fc6ffb29 AJ |
2873 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2874 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
18ad24a7 | 2875 | if test "$ac_test_CFLAGS" = set; then |
f5818d2f | 2876 | CFLAGS=$ac_save_CFLAGS |
18ad24a7 EP |
2877 | elif test $ac_cv_prog_cc_g = yes; then |
2878 | if test "$GCC" = yes; then | |
da0cfb36 AJ |
2879 | CFLAGS="-g -O2" |
2880 | else | |
18ad24a7 | 2881 | CFLAGS="-g" |
e2991ea7 AJ |
2882 | fi |
2883 | else | |
18ad24a7 EP |
2884 | if test "$GCC" = yes; then |
2885 | CFLAGS="-O2" | |
2886 | else | |
2887 | CFLAGS= | |
2888 | fi | |
e2991ea7 | 2889 | fi |
fc6ffb29 AJ |
2890 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
2891 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
2892 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
11af04e3 AJ |
2893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2894 | else | |
fc6ffb29 | 2895 | ac_cv_prog_cc_c89=no |
11af04e3 AJ |
2896 | ac_save_CC=$CC |
2897 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
2898 | /* confdefs.h. */ |
2899 | _ACEOF | |
2900 | cat confdefs.h >>conftest.$ac_ext | |
2901 | cat >>conftest.$ac_ext <<_ACEOF | |
2902 | /* end confdefs.h. */ | |
11af04e3 AJ |
2903 | #include <stdarg.h> |
2904 | #include <stdio.h> | |
2905 | #include <sys/types.h> | |
2906 | #include <sys/stat.h> | |
2907 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2908 | struct buf { int x; }; | |
2909 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2910 | static char *e (p, i) | |
2911 | char **p; | |
2912 | int i; | |
2913 | { | |
2914 | return p[i]; | |
2915 | } | |
2916 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2917 | { | |
2918 | char *s; | |
2919 | va_list v; | |
2920 | va_start (v,p); | |
2921 | s = g (p, va_arg (v,int)); | |
2922 | va_end (v); | |
2923 | return s; | |
2924 | } | |
875927f6 AJ |
2925 | |
2926 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2927 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2928 | These don't provoke an error unfortunately, instead are silently treated | |
fc6ffb29 | 2929 | as 'x'. The following induces an error, until -std is added to get |
875927f6 AJ |
2930 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2931 | array size at least. It's necessary to write '\x00'==0 to get something | |
fc6ffb29 | 2932 | that's true only with -std. */ |
875927f6 AJ |
2933 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2934 | ||
f5f37a85 AJ |
2935 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2936 | inside strings and character constants. */ | |
2937 | #define FOO(x) 'x' | |
2938 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
2939 | ||
11af04e3 AJ |
2940 | int test (int i, double x); |
2941 | struct s1 {int (*f) (int a);}; | |
2942 | struct s2 {int (*f) (double a);}; | |
2943 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2944 | int argc; | |
2945 | char **argv; | |
2946 | int | |
2947 | main () | |
2948 | { | |
2949 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2950 | ; | |
2951 | return 0; | |
2952 | } | |
2953 | _ACEOF | |
fc6ffb29 AJ |
2954 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
2955 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
11af04e3 AJ |
2956 | do |
2957 | CC="$ac_save_CC $ac_arg" | |
2958 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
2959 | if { (ac_try="$ac_compile" |
2960 | case "(($ac_try" in | |
2961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2962 | *) ac_try_echo=$ac_try;; | |
2963 | esac | |
2964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2965 | (eval "$ac_compile") 2>conftest.er1 | |
11af04e3 | 2966 | ac_status=$? |
875927f6 AJ |
2967 | grep -v '^ *+' conftest.er1 >conftest.err |
2968 | rm -f conftest.er1 | |
2969 | cat conftest.err >&5 | |
11af04e3 AJ |
2970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2971 | (exit $ac_status); } && | |
0ebeb530 JW |
2972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2973 | { (case "(($ac_try" in | |
2974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2975 | *) ac_try_echo=$ac_try;; | |
2976 | esac | |
2977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2978 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
2979 | ac_status=$? |
2980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2981 | (exit $ac_status); }; } && | |
2982 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
2983 | { (case "(($ac_try" in |
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2985 | *) ac_try_echo=$ac_try;; | |
2986 | esac | |
2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
2988 | (eval "$ac_try") 2>&5 | |
11af04e3 AJ |
2989 | ac_status=$? |
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2991 | (exit $ac_status); }; }; then | |
fc6ffb29 | 2992 | ac_cv_prog_cc_c89=$ac_arg |
11af04e3 AJ |
2993 | else |
2994 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
2995 | sed 's/^/| /' conftest.$ac_ext >&5 |
2996 | ||
fc6ffb29 | 2997 | |
11af04e3 | 2998 | fi |
fc6ffb29 | 2999 | |
0ebeb530 | 3000 | rm -f core conftest.err conftest.$ac_objext |
fc6ffb29 | 3001 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
11af04e3 | 3002 | done |
fc6ffb29 | 3003 | rm -f conftest.$ac_ext |
11af04e3 AJ |
3004 | CC=$ac_save_CC |
3005 | ||
3006 | fi | |
fc6ffb29 AJ |
3007 | # AC_CACHE_VAL |
3008 | case "x$ac_cv_prog_cc_c89" in | |
3009 | x) | |
3010 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3011 | echo "${ECHO_T}none needed" >&6; } ;; | |
3012 | xno) | |
3013 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3014 | echo "${ECHO_T}unsupported" >&6; } ;; | |
11af04e3 | 3015 | *) |
fc6ffb29 AJ |
3016 | CC="$CC $ac_cv_prog_cc_c89" |
3017 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3018 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
11af04e3 AJ |
3019 | esac |
3020 | ||
e24bcc77 | 3021 | |
f5818d2f AJ |
3022 | ac_ext=c |
3023 | ac_cpp='$CPP $CPPFLAGS' | |
3024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
e2991ea7 | 3027 | |
fc6ffb29 | 3028 | ac_ext=cpp |
f41c2b21 DP |
3029 | ac_cpp='$CXXCPP $CPPFLAGS' |
3030 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3031 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3032 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
fc6ffb29 AJ |
3033 | if test -z "$CXX"; then |
3034 | if test -n "$CCC"; then | |
3035 | CXX=$CCC | |
3036 | else | |
3037 | if test -n "$ac_tool_prefix"; then | |
3038 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
f41c2b21 DP |
3039 | do |
3040 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3041 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
3042 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3043 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f41c2b21 DP |
3044 | if test "${ac_cv_prog_CXX+set}" = set; then |
3045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3046 | else | |
3047 | if test -n "$CXX"; then | |
3048 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3049 | else | |
3050 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3051 | for as_dir in $PATH | |
3052 | do | |
3053 | IFS=$as_save_IFS | |
3054 | test -z "$as_dir" && as_dir=. | |
3055 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 3056 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
f41c2b21 DP |
3057 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3058 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3059 | break 2 | |
3060 | fi | |
3061 | done | |
3062 | done | |
fc6ffb29 | 3063 | IFS=$as_save_IFS |
f41c2b21 DP |
3064 | |
3065 | fi | |
3066 | fi | |
3067 | CXX=$ac_cv_prog_CXX | |
3068 | if test -n "$CXX"; then | |
fc6ffb29 AJ |
3069 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
3070 | echo "${ECHO_T}$CXX" >&6; } | |
f41c2b21 | 3071 | else |
fc6ffb29 AJ |
3072 | { echo "$as_me:$LINENO: result: no" >&5 |
3073 | echo "${ECHO_T}no" >&6; } | |
f41c2b21 DP |
3074 | fi |
3075 | ||
fc6ffb29 | 3076 | |
f41c2b21 DP |
3077 | test -n "$CXX" && break |
3078 | done | |
3079 | fi | |
3080 | if test -z "$CXX"; then | |
3081 | ac_ct_CXX=$CXX | |
fc6ffb29 | 3082 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
f41c2b21 DP |
3083 | do |
3084 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3085 | set dummy $ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
3086 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3087 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f41c2b21 DP |
3088 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3090 | else | |
3091 | if test -n "$ac_ct_CXX"; then | |
3092 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3093 | else | |
3094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3095 | for as_dir in $PATH | |
3096 | do | |
3097 | IFS=$as_save_IFS | |
3098 | test -z "$as_dir" && as_dir=. | |
3099 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 3100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
f41c2b21 DP |
3101 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3102 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3103 | break 2 | |
3104 | fi | |
3105 | done | |
3106 | done | |
fc6ffb29 | 3107 | IFS=$as_save_IFS |
f41c2b21 DP |
3108 | |
3109 | fi | |
3110 | fi | |
3111 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3112 | if test -n "$ac_ct_CXX"; then | |
fc6ffb29 AJ |
3113 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3114 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
f41c2b21 | 3115 | else |
fc6ffb29 AJ |
3116 | { echo "$as_me:$LINENO: result: no" >&5 |
3117 | echo "${ECHO_T}no" >&6; } | |
f41c2b21 DP |
3118 | fi |
3119 | ||
fc6ffb29 | 3120 | |
f41c2b21 DP |
3121 | test -n "$ac_ct_CXX" && break |
3122 | done | |
f41c2b21 | 3123 | |
fc6ffb29 AJ |
3124 | if test "x$ac_ct_CXX" = x; then |
3125 | CXX="g++" | |
3126 | else | |
3127 | case $cross_compiling:$ac_tool_warned in | |
3128 | yes:) | |
3129 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3130 | whose name does not start with the host triplet. If you think this | |
3131 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3132 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3133 | whose name does not start with the host triplet. If you think this | |
3134 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3135 | ac_tool_warned=yes ;; | |
3136 | esac | |
3137 | CXX=$ac_ct_CXX | |
3138 | fi | |
f41c2b21 DP |
3139 | fi |
3140 | ||
fc6ffb29 AJ |
3141 | fi |
3142 | fi | |
f41c2b21 | 3143 | # Provide some information about the compiler. |
fc6ffb29 | 3144 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
f41c2b21 | 3145 | ac_compiler=`set X $ac_compile; echo $2` |
0ebeb530 JW |
3146 | { (ac_try="$ac_compiler --version >&5" |
3147 | case "(($ac_try" in | |
3148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3149 | *) ac_try_echo=$ac_try;; | |
3150 | esac | |
3151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3152 | (eval "$ac_compiler --version >&5") 2>&5 | |
f41c2b21 DP |
3153 | ac_status=$? |
3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3155 | (exit $ac_status); } | |
0ebeb530 JW |
3156 | { (ac_try="$ac_compiler -v >&5" |
3157 | case "(($ac_try" in | |
3158 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3159 | *) ac_try_echo=$ac_try;; | |
3160 | esac | |
3161 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3162 | (eval "$ac_compiler -v >&5") 2>&5 | |
f41c2b21 DP |
3163 | ac_status=$? |
3164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3165 | (exit $ac_status); } | |
0ebeb530 JW |
3166 | { (ac_try="$ac_compiler -V >&5" |
3167 | case "(($ac_try" in | |
3168 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3169 | *) ac_try_echo=$ac_try;; | |
3170 | esac | |
3171 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3172 | (eval "$ac_compiler -V >&5") 2>&5 | |
f41c2b21 DP |
3173 | ac_status=$? |
3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3175 | (exit $ac_status); } | |
3176 | ||
fc6ffb29 AJ |
3177 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3178 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
f41c2b21 DP |
3179 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3181 | else | |
3182 | cat >conftest.$ac_ext <<_ACEOF | |
3183 | /* confdefs.h. */ | |
3184 | _ACEOF | |
3185 | cat confdefs.h >>conftest.$ac_ext | |
3186 | cat >>conftest.$ac_ext <<_ACEOF | |
3187 | /* end confdefs.h. */ | |
3188 | ||
3189 | int | |
3190 | main () | |
3191 | { | |
3192 | #ifndef __GNUC__ | |
3193 | choke me | |
3194 | #endif | |
3195 | ||
3196 | ; | |
3197 | return 0; | |
3198 | } | |
3199 | _ACEOF | |
3200 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
3201 | if { (ac_try="$ac_compile" |
3202 | case "(($ac_try" in | |
3203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3204 | *) ac_try_echo=$ac_try;; | |
3205 | esac | |
3206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3207 | (eval "$ac_compile") 2>conftest.er1 | |
f41c2b21 DP |
3208 | ac_status=$? |
3209 | grep -v '^ *+' conftest.er1 >conftest.err | |
3210 | rm -f conftest.er1 | |
3211 | cat conftest.err >&5 | |
3212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3213 | (exit $ac_status); } && | |
0ebeb530 JW |
3214 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3215 | { (case "(($ac_try" in | |
3216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3217 | *) ac_try_echo=$ac_try;; | |
3218 | esac | |
3219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3220 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3221 | ac_status=$? |
3222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3223 | (exit $ac_status); }; } && | |
3224 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
3225 | { (case "(($ac_try" in |
3226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3227 | *) ac_try_echo=$ac_try;; | |
3228 | esac | |
3229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3230 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3231 | ac_status=$? |
3232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3233 | (exit $ac_status); }; }; then | |
3234 | ac_compiler_gnu=yes | |
3235 | else | |
3236 | echo "$as_me: failed program was:" >&5 | |
3237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3238 | ||
fc6ffb29 | 3239 | ac_compiler_gnu=no |
f41c2b21 | 3240 | fi |
fc6ffb29 | 3241 | |
0ebeb530 | 3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f41c2b21 DP |
3243 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3244 | ||
3245 | fi | |
fc6ffb29 AJ |
3246 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3247 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
f41c2b21 DP |
3248 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
3249 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3250 | ac_save_CXXFLAGS=$CXXFLAGS | |
fc6ffb29 AJ |
3251 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3252 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
f41c2b21 DP |
3253 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
3254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3255 | else | |
fc6ffb29 AJ |
3256 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3257 | ac_cxx_werror_flag=yes | |
3258 | ac_cv_prog_cxx_g=no | |
3259 | CXXFLAGS="-g" | |
3260 | cat >conftest.$ac_ext <<_ACEOF | |
f41c2b21 DP |
3261 | /* confdefs.h. */ |
3262 | _ACEOF | |
3263 | cat confdefs.h >>conftest.$ac_ext | |
3264 | cat >>conftest.$ac_ext <<_ACEOF | |
3265 | /* end confdefs.h. */ | |
3266 | ||
3267 | int | |
3268 | main () | |
3269 | { | |
3270 | ||
3271 | ; | |
3272 | return 0; | |
3273 | } | |
3274 | _ACEOF | |
3275 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
3276 | if { (ac_try="$ac_compile" |
3277 | case "(($ac_try" in | |
3278 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3279 | *) ac_try_echo=$ac_try;; | |
3280 | esac | |
3281 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3282 | (eval "$ac_compile") 2>conftest.er1 | |
f41c2b21 DP |
3283 | ac_status=$? |
3284 | grep -v '^ *+' conftest.er1 >conftest.err | |
3285 | rm -f conftest.er1 | |
3286 | cat conftest.err >&5 | |
3287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3288 | (exit $ac_status); } && | |
0ebeb530 JW |
3289 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3290 | { (case "(($ac_try" in | |
3291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3292 | *) ac_try_echo=$ac_try;; | |
3293 | esac | |
3294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3295 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3296 | ac_status=$? |
3297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3298 | (exit $ac_status); }; } && | |
3299 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
3300 | { (case "(($ac_try" in |
3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3302 | *) ac_try_echo=$ac_try;; | |
3303 | esac | |
3304 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3305 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3306 | ac_status=$? |
3307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3308 | (exit $ac_status); }; }; then | |
3309 | ac_cv_prog_cxx_g=yes | |
3310 | else | |
3311 | echo "$as_me: failed program was:" >&5 | |
3312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3313 | ||
fc6ffb29 AJ |
3314 | CXXFLAGS="" |
3315 | cat >conftest.$ac_ext <<_ACEOF | |
f41c2b21 DP |
3316 | /* confdefs.h. */ |
3317 | _ACEOF | |
3318 | cat confdefs.h >>conftest.$ac_ext | |
3319 | cat >>conftest.$ac_ext <<_ACEOF | |
3320 | /* end confdefs.h. */ | |
fc6ffb29 | 3321 | |
f41c2b21 DP |
3322 | int |
3323 | main () | |
3324 | { | |
fc6ffb29 | 3325 | |
f41c2b21 DP |
3326 | ; |
3327 | return 0; | |
3328 | } | |
3329 | _ACEOF | |
3330 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
3331 | if { (ac_try="$ac_compile" |
3332 | case "(($ac_try" in | |
3333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3334 | *) ac_try_echo=$ac_try;; | |
3335 | esac | |
3336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3337 | (eval "$ac_compile") 2>conftest.er1 | |
f41c2b21 DP |
3338 | ac_status=$? |
3339 | grep -v '^ *+' conftest.er1 >conftest.err | |
3340 | rm -f conftest.er1 | |
3341 | cat conftest.err >&5 | |
3342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3343 | (exit $ac_status); } && | |
0ebeb530 JW |
3344 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3345 | { (case "(($ac_try" in | |
3346 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3347 | *) ac_try_echo=$ac_try;; | |
3348 | esac | |
3349 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3350 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3351 | ac_status=$? |
3352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3353 | (exit $ac_status); }; } && | |
3354 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
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 | |
f41c2b21 DP |
3361 | ac_status=$? |
3362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3363 | (exit $ac_status); }; }; then | |
3364 | : | |
3365 | else | |
3366 | echo "$as_me: failed program was:" >&5 | |
3367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3368 | ||
fc6ffb29 AJ |
3369 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3370 | CXXFLAGS="-g" | |
3371 | cat >conftest.$ac_ext <<_ACEOF | |
f41c2b21 DP |
3372 | /* confdefs.h. */ |
3373 | _ACEOF | |
3374 | cat confdefs.h >>conftest.$ac_ext | |
3375 | cat >>conftest.$ac_ext <<_ACEOF | |
3376 | /* end confdefs.h. */ | |
fc6ffb29 | 3377 | |
f41c2b21 DP |
3378 | int |
3379 | main () | |
3380 | { | |
fc6ffb29 | 3381 | |
f41c2b21 DP |
3382 | ; |
3383 | return 0; | |
3384 | } | |
3385 | _ACEOF | |
3386 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
3387 | if { (ac_try="$ac_compile" |
3388 | case "(($ac_try" in | |
3389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3390 | *) ac_try_echo=$ac_try;; | |
3391 | esac | |
3392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3393 | (eval "$ac_compile") 2>conftest.er1 | |
f41c2b21 DP |
3394 | ac_status=$? |
3395 | grep -v '^ *+' conftest.er1 >conftest.err | |
3396 | rm -f conftest.er1 | |
3397 | cat conftest.err >&5 | |
3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3399 | (exit $ac_status); } && | |
0ebeb530 JW |
3400 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
3401 | { (case "(($ac_try" in | |
3402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3403 | *) ac_try_echo=$ac_try;; | |
3404 | esac | |
3405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3406 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3407 | ac_status=$? |
3408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3409 | (exit $ac_status); }; } && | |
3410 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
3411 | { (case "(($ac_try" in |
3412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3413 | *) ac_try_echo=$ac_try;; | |
3414 | esac | |
3415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3416 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
3417 | ac_status=$? |
3418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3419 | (exit $ac_status); }; }; then | |
fc6ffb29 | 3420 | ac_cv_prog_cxx_g=yes |
f41c2b21 DP |
3421 | else |
3422 | echo "$as_me: failed program was:" >&5 | |
3423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3424 | ||
fc6ffb29 | 3425 | |
f41c2b21 | 3426 | fi |
fc6ffb29 | 3427 | |
0ebeb530 | 3428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
3429 | fi |
3430 | ||
0ebeb530 | 3431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f41c2b21 DP |
3432 | fi |
3433 | ||
0ebeb530 | 3434 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
3435 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3436 | fi | |
3437 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3438 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
3439 | if test "$ac_test_CXXFLAGS" = set; then | |
3440 | CXXFLAGS=$ac_save_CXXFLAGS | |
3441 | elif test $ac_cv_prog_cxx_g = yes; then | |
3442 | if test "$GXX" = yes; then | |
3443 | CXXFLAGS="-g -O2" | |
3444 | else | |
3445 | CXXFLAGS="-g" | |
3446 | fi | |
3447 | else | |
3448 | if test "$GXX" = yes; then | |
3449 | CXXFLAGS="-O2" | |
3450 | else | |
3451 | CXXFLAGS= | |
3452 | fi | |
3453 | fi | |
f41c2b21 DP |
3454 | ac_ext=c |
3455 | ac_cpp='$CPP $CPPFLAGS' | |
3456 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3457 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3458 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3459 | ||
3e61ef7d AJ |
3460 | if test -n "$ac_tool_prefix"; then |
3461 | # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args. | |
3462 | set dummy ${ac_tool_prefix}cpp; ac_word=$2 | |
fc6ffb29 AJ |
3463 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a631ef63 | 3465 | if test "${ac_cv_prog_CPPBIN+set}" = set; then |
f41c2b21 DP |
3466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3467 | else | |
a631ef63 AJ |
3468 | if test -n "$CPPBIN"; then |
3469 | ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test. | |
f41c2b21 DP |
3470 | else |
3471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3472 | for as_dir in $PATH | |
3473 | do | |
3474 | IFS=$as_save_IFS | |
3475 | test -z "$as_dir" && as_dir=. | |
3476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 3477 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
a631ef63 | 3478 | ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp" |
f41c2b21 DP |
3479 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3480 | break 2 | |
3481 | fi | |
3482 | done | |
3483 | done | |
fc6ffb29 | 3484 | IFS=$as_save_IFS |
f41c2b21 DP |
3485 | |
3486 | fi | |
3487 | fi | |
a631ef63 AJ |
3488 | CPPBIN=$ac_cv_prog_CPPBIN |
3489 | if test -n "$CPPBIN"; then | |
fc6ffb29 AJ |
3490 | { echo "$as_me:$LINENO: result: $CPPBIN" >&5 |
3491 | echo "${ECHO_T}$CPPBIN" >&6; } | |
f41c2b21 | 3492 | else |
fc6ffb29 AJ |
3493 | { echo "$as_me:$LINENO: result: no" >&5 |
3494 | echo "${ECHO_T}no" >&6; } | |
f41c2b21 DP |
3495 | fi |
3496 | ||
fc6ffb29 | 3497 | |
3e61ef7d | 3498 | fi |
a631ef63 AJ |
3499 | if test -z "$ac_cv_prog_CPPBIN"; then |
3500 | ac_ct_CPPBIN=$CPPBIN | |
3e61ef7d AJ |
3501 | # Extract the first word of "cpp", so it can be a program name with args. |
3502 | set dummy cpp; ac_word=$2 | |
fc6ffb29 AJ |
3503 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
a631ef63 | 3505 | if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then |
3e61ef7d AJ |
3506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3507 | else | |
a631ef63 AJ |
3508 | if test -n "$ac_ct_CPPBIN"; then |
3509 | ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test. | |
3e61ef7d AJ |
3510 | else |
3511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3512 | for as_dir in $PATH | |
3513 | do | |
3514 | IFS=$as_save_IFS | |
3515 | test -z "$as_dir" && as_dir=. | |
3516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 3517 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
a631ef63 | 3518 | ac_cv_prog_ac_ct_CPPBIN="cpp" |
3e61ef7d AJ |
3519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3520 | break 2 | |
3521 | fi | |
3522 | done | |
3523 | done | |
fc6ffb29 | 3524 | IFS=$as_save_IFS |
3e61ef7d | 3525 | |
3e61ef7d AJ |
3526 | fi |
3527 | fi | |
a631ef63 AJ |
3528 | ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN |
3529 | if test -n "$ac_ct_CPPBIN"; then | |
fc6ffb29 AJ |
3530 | { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5 |
3531 | echo "${ECHO_T}$ac_ct_CPPBIN" >&6; } | |
3e61ef7d | 3532 | else |
fc6ffb29 AJ |
3533 | { echo "$as_me:$LINENO: result: no" >&5 |
3534 | echo "${ECHO_T}no" >&6; } | |
3e61ef7d AJ |
3535 | fi |
3536 | ||
fc6ffb29 AJ |
3537 | if test "x$ac_ct_CPPBIN" = x; then |
3538 | CPPBIN="cpp" | |
3539 | else | |
3540 | case $cross_compiling:$ac_tool_warned in | |
3541 | yes:) | |
3542 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3543 | whose name does not start with the host triplet. If you think this | |
3544 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3545 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3546 | whose name does not start with the host triplet. If you think this | |
3547 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3548 | ac_tool_warned=yes ;; | |
3549 | esac | |
3550 | CPPBIN=$ac_ct_CPPBIN | |
3551 | fi | |
3e61ef7d | 3552 | else |
a631ef63 | 3553 | CPPBIN="$ac_cv_prog_CPPBIN" |
3e61ef7d AJ |
3554 | fi |
3555 | ||
f41c2b21 | 3556 | |
fc6ffb29 AJ |
3557 | { echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5 |
3558 | echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; } | |
f41c2b21 DP |
3559 | if test "${wine_cv_toolsdir+set}" = set; then |
3560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3561 | else | |
3562 | if test -z "$with_wine_tools"; then | |
3563 | if test "$cross_compiling" = "yes"; then | |
3564 | { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5 | |
3565 | echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;} | |
3566 | { (exit 1); exit 1; }; } | |
3567 | else | |
3568 | wine_cv_toolsdir="\$(TOPOBJDIR)" | |
3569 | fi | |
3570 | elif test -d "$with_wine_tools/tools/winebuild"; then | |
3571 | case $with_wine_tools in | |
3572 | /*) wine_cv_toolsdir="$with_wine_tools" ;; | |
3573 | *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;; | |
3574 | esac | |
3575 | else | |
3576 | { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5 | |
3577 | echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;} | |
3578 | { (exit 1); exit 1; }; } | |
3579 | fi | |
3580 | fi | |
fc6ffb29 AJ |
3581 | { echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5 |
3582 | echo "${ECHO_T}$wine_cv_toolsdir" >&6; } | |
f41c2b21 DP |
3583 | TOOLSDIR=$wine_cv_toolsdir |
3584 | ||
3585 | ||
3586 | ||
f5818d2f AJ |
3587 | ac_ext=c |
3588 | ac_cpp='$CPP $CPPFLAGS' | |
3589 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3590 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3591 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
fc6ffb29 AJ |
3592 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
3593 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
e2991ea7 AJ |
3594 | # On Suns, sometimes $CPP names a directory. |
3595 | if test -n "$CPP" && test -d "$CPP"; then | |
3596 | CPP= | |
3597 | fi | |
3598 | if test -z "$CPP"; then | |
f5818d2f AJ |
3599 | if test "${ac_cv_prog_CPP+set}" = set; then |
3600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3601 | else | |
3602 | # Double quotes because CPP needs to be expanded | |
3603 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3604 | do | |
3605 | ac_preproc_ok=false | |
3606 | for ac_c_preproc_warn_flag in '' yes | |
3607 | do | |
3608 | # Use a header file that comes with gcc, so configuring glibc | |
3609 | # with a fresh cross-compiler works. | |
e24bcc77 AJ |
3610 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3611 | # <limits.h> exists even on freestanding compilers. | |
e2991ea7 | 3612 | # On the NeXT, cc -E runs the code through the compiler's parser, |
f5818d2f AJ |
3613 | # not just through cpp. "Syntax error" is here to catch this case. |
3614 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
3615 | /* confdefs.h. */ |
3616 | _ACEOF | |
3617 | cat confdefs.h >>conftest.$ac_ext | |
3618 | cat >>conftest.$ac_ext <<_ACEOF | |
3619 | /* end confdefs.h. */ | |
3620 | #ifdef __STDC__ | |
3621 | # include <limits.h> | |
3622 | #else | |
3623 | # include <assert.h> | |
3624 | #endif | |
875927f6 | 3625 | Syntax error |
f5818d2f | 3626 | _ACEOF |
0ebeb530 JW |
3627 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3628 | case "(($ac_try" in | |
3629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3630 | *) ac_try_echo=$ac_try;; | |
3631 | esac | |
3632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3633 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 3634 | ac_status=$? |
11af04e3 | 3635 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
3636 | rm -f conftest.er1 |
3637 | cat conftest.err >&5 | |
daa2886c | 3638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3639 | (exit $ac_status); } >/dev/null; then |
3640 | if test -s conftest.err; then | |
3641 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 3642 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
3643 | else |
3644 | ac_cpp_err= | |
3645 | fi | |
3646 | else | |
3647 | ac_cpp_err=yes | |
3648 | fi | |
3649 | if test -z "$ac_cpp_err"; then | |
e2991ea7 AJ |
3650 | : |
3651 | else | |
f5818d2f | 3652 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
3653 | sed 's/^/| /' conftest.$ac_ext >&5 |
3654 | ||
f5818d2f AJ |
3655 | # Broken: fails on valid input. |
3656 | continue | |
3657 | fi | |
fc6ffb29 | 3658 | |
f5818d2f AJ |
3659 | rm -f conftest.err conftest.$ac_ext |
3660 | ||
fc6ffb29 | 3661 | # OK, works on sane cases. Now check whether nonexistent headers |
f5818d2f AJ |
3662 | # can be detected and how. |
3663 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
3664 | /* confdefs.h. */ |
3665 | _ACEOF | |
3666 | cat confdefs.h >>conftest.$ac_ext | |
3667 | cat >>conftest.$ac_ext <<_ACEOF | |
3668 | /* end confdefs.h. */ | |
f5818d2f AJ |
3669 | #include <ac_nonexistent.h> |
3670 | _ACEOF | |
0ebeb530 JW |
3671 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3672 | case "(($ac_try" in | |
3673 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3674 | *) ac_try_echo=$ac_try;; | |
3675 | esac | |
3676 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3677 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 3678 | ac_status=$? |
11af04e3 | 3679 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
3680 | rm -f conftest.er1 |
3681 | cat conftest.err >&5 | |
daa2886c | 3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3683 | (exit $ac_status); } >/dev/null; then |
3684 | if test -s conftest.err; then | |
3685 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 3686 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
3687 | else |
3688 | ac_cpp_err= | |
3689 | fi | |
3690 | else | |
3691 | ac_cpp_err=yes | |
3692 | fi | |
3693 | if test -z "$ac_cpp_err"; then | |
3694 | # Broken: success on invalid input. | |
3695 | continue | |
18ad24a7 | 3696 | else |
f5818d2f | 3697 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
3698 | sed 's/^/| /' conftest.$ac_ext >&5 |
3699 | ||
f5818d2f AJ |
3700 | # Passes both tests. |
3701 | ac_preproc_ok=: | |
3702 | break | |
3703 | fi | |
fc6ffb29 | 3704 | |
f5818d2f AJ |
3705 | rm -f conftest.err conftest.$ac_ext |
3706 | ||
3707 | done | |
3708 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3709 | rm -f conftest.err conftest.$ac_ext | |
3710 | if $ac_preproc_ok; then | |
3711 | break | |
3712 | fi | |
3713 | ||
3714 | done | |
3715 | ac_cv_prog_CPP=$CPP | |
3716 | ||
3717 | fi | |
3718 | CPP=$ac_cv_prog_CPP | |
3719 | else | |
3720 | ac_cv_prog_CPP=$CPP | |
3721 | fi | |
fc6ffb29 AJ |
3722 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
3723 | echo "${ECHO_T}$CPP" >&6; } | |
f5818d2f AJ |
3724 | ac_preproc_ok=false |
3725 | for ac_c_preproc_warn_flag in '' yes | |
3726 | do | |
3727 | # Use a header file that comes with gcc, so configuring glibc | |
3728 | # with a fresh cross-compiler works. | |
e24bcc77 AJ |
3729 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
3730 | # <limits.h> exists even on freestanding compilers. | |
f5818d2f AJ |
3731 | # On the NeXT, cc -E runs the code through the compiler's parser, |
3732 | # not just through cpp. "Syntax error" is here to catch this case. | |
3733 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
3734 | /* confdefs.h. */ |
3735 | _ACEOF | |
3736 | cat confdefs.h >>conftest.$ac_ext | |
3737 | cat >>conftest.$ac_ext <<_ACEOF | |
3738 | /* end confdefs.h. */ | |
3739 | #ifdef __STDC__ | |
3740 | # include <limits.h> | |
3741 | #else | |
3742 | # include <assert.h> | |
3743 | #endif | |
875927f6 | 3744 | Syntax error |
f5818d2f | 3745 | _ACEOF |
0ebeb530 JW |
3746 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3747 | case "(($ac_try" in | |
3748 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3749 | *) ac_try_echo=$ac_try;; | |
3750 | esac | |
3751 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3752 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 3753 | ac_status=$? |
11af04e3 | 3754 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
3755 | rm -f conftest.er1 |
3756 | cat conftest.err >&5 | |
daa2886c | 3757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3758 | (exit $ac_status); } >/dev/null; then |
3759 | if test -s conftest.err; then | |
3760 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 3761 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
3762 | else |
3763 | ac_cpp_err= | |
3764 | fi | |
3765 | else | |
3766 | ac_cpp_err=yes | |
3767 | fi | |
3768 | if test -z "$ac_cpp_err"; then | |
e2991ea7 AJ |
3769 | : |
3770 | else | |
f5818d2f | 3771 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
3772 | sed 's/^/| /' conftest.$ac_ext >&5 |
3773 | ||
f5818d2f AJ |
3774 | # Broken: fails on valid input. |
3775 | continue | |
e2991ea7 | 3776 | fi |
fc6ffb29 | 3777 | |
f5818d2f AJ |
3778 | rm -f conftest.err conftest.$ac_ext |
3779 | ||
fc6ffb29 | 3780 | # OK, works on sane cases. Now check whether nonexistent headers |
f5818d2f AJ |
3781 | # can be detected and how. |
3782 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
3783 | /* confdefs.h. */ |
3784 | _ACEOF | |
3785 | cat confdefs.h >>conftest.$ac_ext | |
3786 | cat >>conftest.$ac_ext <<_ACEOF | |
3787 | /* end confdefs.h. */ | |
f5818d2f AJ |
3788 | #include <ac_nonexistent.h> |
3789 | _ACEOF | |
0ebeb530 JW |
3790 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3791 | case "(($ac_try" in | |
3792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3793 | *) ac_try_echo=$ac_try;; | |
3794 | esac | |
3795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3796 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 3797 | ac_status=$? |
11af04e3 | 3798 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
3799 | rm -f conftest.er1 |
3800 | cat conftest.err >&5 | |
daa2886c | 3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3802 | (exit $ac_status); } >/dev/null; then |
3803 | if test -s conftest.err; then | |
3804 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 3805 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
3806 | else |
3807 | ac_cpp_err= | |
3808 | fi | |
3809 | else | |
3810 | ac_cpp_err=yes | |
18ad24a7 | 3811 | fi |
f5818d2f AJ |
3812 | if test -z "$ac_cpp_err"; then |
3813 | # Broken: success on invalid input. | |
3814 | continue | |
3815 | else | |
3816 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
3817 | sed 's/^/| /' conftest.$ac_ext >&5 |
3818 | ||
f5818d2f AJ |
3819 | # Passes both tests. |
3820 | ac_preproc_ok=: | |
3821 | break | |
e2991ea7 | 3822 | fi |
fc6ffb29 | 3823 | |
f5818d2f AJ |
3824 | rm -f conftest.err conftest.$ac_ext |
3825 | ||
3826 | done | |
3827 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3828 | rm -f conftest.err conftest.$ac_ext | |
3829 | if $ac_preproc_ok; then | |
3830 | : | |
e2991ea7 | 3831 | else |
e24bcc77 AJ |
3832 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
3833 | See \`config.log' for more details." >&5 | |
3834 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3835 | See \`config.log' for more details." >&2;} | |
f5818d2f | 3836 | { (exit 1); exit 1; }; } |
e2991ea7 | 3837 | fi |
e2991ea7 | 3838 | |
f5818d2f AJ |
3839 | ac_ext=c |
3840 | ac_cpp='$CPP $CPPFLAGS' | |
3841 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3842 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3843 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3844 | ||
daa2886c | 3845 | |
0ebeb530 | 3846 | { echo "$as_me:$LINENO: checking for X" >&5 |
fc6ffb29 | 3847 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
e2991ea7 | 3848 | |
daa2886c | 3849 | |
fc6ffb29 | 3850 | # Check whether --with-x was given. |
d7d4fdf8 | 3851 | if test "${with_x+set}" = set; then |
fc6ffb29 AJ |
3852 | withval=$with_x; |
3853 | fi | |
e2991ea7 | 3854 | |
b817f4fb | 3855 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
e2991ea7 | 3856 | if test "x$with_x" = xno; then |
b817f4fb AJ |
3857 | # The user explicitly disabled X. |
3858 | have_x=disabled | |
e2991ea7 | 3859 | else |
0ebeb530 JW |
3860 | case $x_includes,$x_libraries in #( |
3861 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 | |
3862 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} | |
3863 | { (exit 1); exit 1; }; };; #( | |
3864 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then | |
f5818d2f | 3865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e2991ea7 AJ |
3866 | else |
3867 | # One or both of the vars are not set, and there is no cached value. | |
f5818d2f | 3868 | ac_x_includes=no ac_x_libraries=no |
fc6ffb29 | 3869 | rm -f -r conftest.dir |
f5818d2f AJ |
3870 | if mkdir conftest.dir; then |
3871 | cd conftest.dir | |
daa2886c | 3872 | cat >Imakefile <<'_ACEOF' |
0ebeb530 JW |
3873 | incroot: |
3874 | @echo incroot='${INCROOT}' | |
3875 | usrlibdir: | |
3876 | @echo usrlibdir='${USRLIBDIR}' | |
3877 | libdir: | |
3878 | @echo libdir='${LIBDIR}' | |
daa2886c | 3879 | _ACEOF |
fc6ffb29 | 3880 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
e2991ea7 | 3881 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
0ebeb530 JW |
3882 | for ac_var in incroot usrlibdir libdir; do |
3883 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
3884 | done | |
e2991ea7 AJ |
3885 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
3886 | for ac_extension in a so sl; do | |
0ebeb530 JW |
3887 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
3888 | test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
875927f6 | 3889 | ac_im_usrlibdir=$ac_im_libdir; break |
e2991ea7 AJ |
3890 | fi |
3891 | done | |
da0cfb36 AJ |
3892 | # Screen out bogus values from the imake configuration. They are |
3893 | # bogus both because they are the default anyway, and because | |
3894 | # using them would break gcc on systems where it needs fixed includes. | |
f5818d2f | 3895 | case $ac_im_incroot in |
fc6ffb29 | 3896 | /usr/include) ac_x_includes= ;; |
f5818d2f | 3897 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
e2991ea7 | 3898 | esac |
f5818d2f | 3899 | case $ac_im_usrlibdir in |
e2991ea7 | 3900 | /usr/lib | /lib) ;; |
f5818d2f | 3901 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
e2991ea7 AJ |
3902 | esac |
3903 | fi | |
3904 | cd .. | |
fc6ffb29 | 3905 | rm -f -r conftest.dir |
e2991ea7 AJ |
3906 | fi |
3907 | ||
f5818d2f AJ |
3908 | # Standard set of common directories for X headers. |
3909 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
3910 | ac_x_header_dirs=' | |
3911 | /usr/X11/include | |
3912 | /usr/X11R6/include | |
3913 | /usr/X11R5/include | |
3914 | /usr/X11R4/include | |
3915 | ||
3916 | /usr/include/X11 | |
3917 | /usr/include/X11R6 | |
3918 | /usr/include/X11R5 | |
3919 | /usr/include/X11R4 | |
3920 | ||
3921 | /usr/local/X11/include | |
3922 | /usr/local/X11R6/include | |
3923 | /usr/local/X11R5/include | |
3924 | /usr/local/X11R4/include | |
3925 | ||
3926 | /usr/local/include/X11 | |
3927 | /usr/local/include/X11R6 | |
3928 | /usr/local/include/X11R5 | |
3929 | /usr/local/include/X11R4 | |
3930 | ||
3931 | /usr/X386/include | |
3932 | /usr/x386/include | |
3933 | /usr/XFree86/include/X11 | |
3934 | ||
3935 | /usr/include | |
3936 | /usr/local/include | |
3937 | /usr/unsupported/include | |
3938 | /usr/athena/include | |
3939 | /usr/local/x11r5/include | |
3940 | /usr/lpp/Xamples/include | |
3941 | ||
3942 | /usr/openwin/include | |
3943 | /usr/openwin/share/include' | |
3944 | ||
3945 | if test "$ac_x_includes" = no; then | |
fc6ffb29 | 3946 | # Guess where to find include files, by looking for Xlib.h. |
b817f4fb | 3947 | # First, try using that file with no special directory specified. |
f5818d2f | 3948 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
3949 | /* confdefs.h. */ |
3950 | _ACEOF | |
3951 | cat confdefs.h >>conftest.$ac_ext | |
3952 | cat >>conftest.$ac_ext <<_ACEOF | |
3953 | /* end confdefs.h. */ | |
0ebeb530 | 3954 | #include <X11/Xlib.h> |
f5818d2f | 3955 | _ACEOF |
0ebeb530 JW |
3956 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
3957 | case "(($ac_try" in | |
3958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3959 | *) ac_try_echo=$ac_try;; | |
3960 | esac | |
3961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3962 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 3963 | ac_status=$? |
11af04e3 | 3964 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
3965 | rm -f conftest.er1 |
3966 | cat conftest.err >&5 | |
daa2886c | 3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
3968 | (exit $ac_status); } >/dev/null; then |
3969 | if test -s conftest.err; then | |
3970 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 3971 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
3972 | else |
3973 | ac_cpp_err= | |
3974 | fi | |
3975 | else | |
3976 | ac_cpp_err=yes | |
3977 | fi | |
3978 | if test -z "$ac_cpp_err"; then | |
b817f4fb AJ |
3979 | # We can compile using X headers with no special include directory. |
3980 | ac_x_includes= | |
e2991ea7 | 3981 | else |
f5818d2f | 3982 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
3983 | sed 's/^/| /' conftest.$ac_ext >&5 |
3984 | ||
f5818d2f | 3985 | for ac_dir in $ac_x_header_dirs; do |
d7d3169d | 3986 | if test -r "$ac_dir/X11/Xlib.h"; then |
f5818d2f AJ |
3987 | ac_x_includes=$ac_dir |
3988 | break | |
3989 | fi | |
3990 | done | |
e2991ea7 | 3991 | fi |
fc6ffb29 | 3992 | |
f5818d2f AJ |
3993 | rm -f conftest.err conftest.$ac_ext |
3994 | fi # $ac_x_includes = no | |
b817f4fb | 3995 | |
f5818d2f | 3996 | if test "$ac_x_libraries" = no; then |
b817f4fb | 3997 | # Check for the libraries. |
b817f4fb AJ |
3998 | # See if we find them without any special options. |
3999 | # Don't add to $LIBS permanently. | |
f5818d2f | 4000 | ac_save_LIBS=$LIBS |
d01063e1 | 4001 | LIBS="-lX11 $LIBS" |
f5818d2f | 4002 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
4003 | /* confdefs.h. */ |
4004 | _ACEOF | |
4005 | cat confdefs.h >>conftest.$ac_ext | |
4006 | cat >>conftest.$ac_ext <<_ACEOF | |
4007 | /* end confdefs.h. */ | |
d7d3169d | 4008 | #include <X11/Xlib.h> |
f5818d2f AJ |
4009 | int |
4010 | main () | |
4011 | { | |
d7d3169d | 4012 | XrmInitialize () |
f5818d2f AJ |
4013 | ; |
4014 | return 0; | |
4015 | } | |
4016 | _ACEOF | |
4017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4018 | if { (ac_try="$ac_link" |
4019 | case "(($ac_try" in | |
4020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4021 | *) ac_try_echo=$ac_try;; | |
4022 | esac | |
4023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4024 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4025 | ac_status=$? |
875927f6 AJ |
4026 | grep -v '^ *+' conftest.er1 >conftest.err |
4027 | rm -f conftest.er1 | |
4028 | cat conftest.err >&5 | |
daa2886c | 4029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4030 | (exit $ac_status); } && |
0ebeb530 JW |
4031 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4032 | { (case "(($ac_try" in | |
4033 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4034 | *) ac_try_echo=$ac_try;; | |
4035 | esac | |
4036 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4037 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4038 | ac_status=$? |
4039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4040 | (exit $ac_status); }; } && | |
4041 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4042 | { (case "(($ac_try" in |
4043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4044 | *) ac_try_echo=$ac_try;; | |
4045 | esac | |
4046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4047 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4048 | ac_status=$? |
daa2886c | 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4050 | (exit $ac_status); }; }; then |
4051 | LIBS=$ac_save_LIBS | |
b817f4fb AJ |
4052 | # We can link X programs with no special library path. |
4053 | ac_x_libraries= | |
e2991ea7 | 4054 | else |
f5818d2f | 4055 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
4056 | sed 's/^/| /' conftest.$ac_ext >&5 |
4057 | ||
fc6ffb29 | 4058 | LIBS=$ac_save_LIBS |
f5818d2f | 4059 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
e2991ea7 | 4060 | do |
f5818d2f | 4061 | # Don't even attempt the hair of trying to link an X program! |
e2991ea7 | 4062 | for ac_extension in a so sl; do |
d01063e1 | 4063 | if test -r "$ac_dir/libX11.$ac_extension"; then |
b817f4fb | 4064 | ac_x_libraries=$ac_dir |
e2991ea7 AJ |
4065 | break 2 |
4066 | fi | |
4067 | done | |
4068 | done | |
4069 | fi | |
fc6ffb29 | 4070 | |
0ebeb530 | 4071 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4072 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 4073 | fi # $ac_x_libraries = no |
b817f4fb | 4074 | |
0ebeb530 JW |
4075 | case $ac_x_includes,$ac_x_libraries in #( |
4076 | no,* | *,no | *\'*) | |
4077 | # Didn't find X, or a directory has "'" in its name. | |
4078 | ac_cv_have_x="have_x=no";; #( | |
4079 | *) | |
4080 | # Record where we found X for the cache. | |
4081 | ac_cv_have_x="have_x=yes\ | |
4082 | ac_x_includes='$ac_x_includes'\ | |
4083 | ac_x_libraries='$ac_x_libraries'" | |
4084 | esac | |
e2991ea7 | 4085 | fi |
0ebeb530 JW |
4086 | ;; #( |
4087 | *) have_x=yes;; | |
4088 | esac | |
b817f4fb | 4089 | eval "$ac_cv_have_x" |
e2991ea7 AJ |
4090 | fi # $with_x != no |
4091 | ||
b817f4fb | 4092 | if test "$have_x" != yes; then |
fc6ffb29 AJ |
4093 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
4094 | echo "${ECHO_T}$have_x" >&6; } | |
b817f4fb | 4095 | no_x=yes |
e2991ea7 | 4096 | else |
b817f4fb | 4097 | # If each of the values was on the command line, it overrides each guess. |
e2991ea7 AJ |
4098 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
4099 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
b817f4fb | 4100 | # Update the cache value to reflect the command line values. |
0ebeb530 JW |
4101 | ac_cv_have_x="have_x=yes\ |
4102 | ac_x_includes='$x_includes'\ | |
4103 | ac_x_libraries='$x_libraries'" | |
4104 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
4105 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } | |
e2991ea7 AJ |
4106 | fi |
4107 | ||
b817f4fb | 4108 | if test "$no_x" = yes; then |
ff8331ea | 4109 | # Not all programs may use this symbol, but it does not hurt to define it. |
f5818d2f | 4110 | |
daa2886c | 4111 | cat >>confdefs.h <<\_ACEOF |
da0cfb36 | 4112 | #define X_DISPLAY_MISSING 1 |
daa2886c | 4113 | _ACEOF |
da0cfb36 AJ |
4114 | |
4115 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
ff8331ea AJ |
4116 | else |
4117 | if test -n "$x_includes"; then | |
4118 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
4119 | fi | |
4120 | ||
ff8331ea AJ |
4121 | # It would also be nice to do this for all -L options, not just this one. |
4122 | if test -n "$x_libraries"; then | |
4123 | X_LIBS="$X_LIBS -L$x_libraries" | |
da0cfb36 AJ |
4124 | # For Solaris; some versions of Sun CC require a space after -R and |
4125 | # others require no space. Words are not sufficient . . . . | |
c8278926 | 4126 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
fc6ffb29 | 4127 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
c8278926 AJ |
4128 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
4129 | ac_xsave_c_werror_flag=$ac_c_werror_flag | |
4130 | ac_c_werror_flag=yes | |
4131 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
4132 | /* confdefs.h. */ |
4133 | _ACEOF | |
4134 | cat confdefs.h >>conftest.$ac_ext | |
4135 | cat >>conftest.$ac_ext <<_ACEOF | |
4136 | /* end confdefs.h. */ | |
ff8331ea | 4137 | |
f5818d2f AJ |
4138 | int |
4139 | main () | |
4140 | { | |
da0cfb36 | 4141 | |
f5818d2f AJ |
4142 | ; |
4143 | return 0; | |
4144 | } | |
4145 | _ACEOF | |
4146 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4147 | if { (ac_try="$ac_link" |
4148 | case "(($ac_try" in | |
4149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4150 | *) ac_try_echo=$ac_try;; | |
4151 | esac | |
4152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4153 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4154 | ac_status=$? |
875927f6 AJ |
4155 | grep -v '^ *+' conftest.er1 >conftest.err |
4156 | rm -f conftest.er1 | |
4157 | cat conftest.err >&5 | |
daa2886c | 4158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4159 | (exit $ac_status); } && |
0ebeb530 JW |
4160 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4161 | { (case "(($ac_try" in | |
4162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4163 | *) ac_try_echo=$ac_try;; | |
4164 | esac | |
4165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4166 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4167 | ac_status=$? |
4168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4169 | (exit $ac_status); }; } && | |
4170 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4171 | { (case "(($ac_try" in |
4172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4173 | *) ac_try_echo=$ac_try;; | |
4174 | esac | |
4175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4176 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4177 | ac_status=$? |
daa2886c | 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4179 | (exit $ac_status); }; }; then |
c8278926 AJ |
4180 | { echo "$as_me:$LINENO: result: no" >&5 |
4181 | echo "${ECHO_T}no" >&6; } | |
4182 | X_LIBS="$X_LIBS -R$x_libraries" | |
ff8331ea | 4183 | else |
f5818d2f | 4184 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
4185 | sed 's/^/| /' conftest.$ac_ext >&5 |
4186 | ||
da0cfb36 | 4187 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
c8278926 | 4188 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
4189 | /* confdefs.h. */ |
4190 | _ACEOF | |
4191 | cat confdefs.h >>conftest.$ac_ext | |
4192 | cat >>conftest.$ac_ext <<_ACEOF | |
4193 | /* end confdefs.h. */ | |
da0cfb36 | 4194 | |
f5818d2f AJ |
4195 | int |
4196 | main () | |
4197 | { | |
da0cfb36 | 4198 | |
f5818d2f AJ |
4199 | ; |
4200 | return 0; | |
4201 | } | |
4202 | _ACEOF | |
4203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4204 | if { (ac_try="$ac_link" |
4205 | case "(($ac_try" in | |
4206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4207 | *) ac_try_echo=$ac_try;; | |
4208 | esac | |
4209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4210 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4211 | ac_status=$? |
875927f6 AJ |
4212 | grep -v '^ *+' conftest.er1 >conftest.err |
4213 | rm -f conftest.er1 | |
4214 | cat conftest.err >&5 | |
daa2886c | 4215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4216 | (exit $ac_status); } && |
0ebeb530 JW |
4217 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4218 | { (case "(($ac_try" in | |
4219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4220 | *) ac_try_echo=$ac_try;; | |
4221 | esac | |
4222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4223 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4224 | ac_status=$? |
4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4226 | (exit $ac_status); }; } && | |
4227 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4228 | { (case "(($ac_try" in |
4229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4230 | *) ac_try_echo=$ac_try;; | |
4231 | esac | |
4232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4233 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4234 | ac_status=$? |
daa2886c | 4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4236 | (exit $ac_status); }; }; then |
c8278926 AJ |
4237 | { echo "$as_me:$LINENO: result: yes" >&5 |
4238 | echo "${ECHO_T}yes" >&6; } | |
4239 | X_LIBS="$X_LIBS -R $x_libraries" | |
ff8331ea | 4240 | else |
f5818d2f | 4241 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
4242 | sed 's/^/| /' conftest.$ac_ext >&5 |
4243 | ||
c8278926 AJ |
4244 | { echo "$as_me:$LINENO: result: neither works" >&5 |
4245 | echo "${ECHO_T}neither works" >&6; } | |
ff8331ea | 4246 | fi |
fc6ffb29 | 4247 | |
0ebeb530 | 4248 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4249 | conftest$ac_exeext conftest.$ac_ext |
c8278926 AJ |
4250 | fi |
4251 | ||
4252 | rm -f core conftest.err conftest.$ac_objext \ | |
4253 | conftest$ac_exeext conftest.$ac_ext | |
4254 | ac_c_werror_flag=$ac_xsave_c_werror_flag | |
4255 | LIBS=$ac_xsave_LIBS | |
da0cfb36 | 4256 | fi |
ff8331ea AJ |
4257 | |
4258 | # Check for system-dependent libraries X programs must link with. | |
da0cfb36 AJ |
4259 | # Do this before checking for the system-independent R6 libraries |
4260 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
ff8331ea AJ |
4261 | |
4262 | if test "$ISC" = yes; then | |
4263 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
4264 | else | |
f5818d2f AJ |
4265 | # Martyn Johnson says this is needed for Ultrix, if the X |
4266 | # libraries were built with DECnet support. And Karl Berry says | |
ff8331ea | 4267 | # the Alpha needs dnet_stub (dnet does not exist). |
f5818d2f AJ |
4268 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
4269 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
4270 | /* confdefs.h. */ |
4271 | _ACEOF | |
4272 | cat confdefs.h >>conftest.$ac_ext | |
4273 | cat >>conftest.$ac_ext <<_ACEOF | |
4274 | /* end confdefs.h. */ | |
f5818d2f | 4275 | |
fc6ffb29 AJ |
4276 | /* Override any GCC internal prototype to avoid an error. |
4277 | Use char because int might match the return type of a GCC | |
4278 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4279 | #ifdef __cplusplus |
4280 | extern "C" | |
4281 | #endif | |
f5818d2f AJ |
4282 | char XOpenDisplay (); |
4283 | int | |
4284 | main () | |
4285 | { | |
fc6ffb29 | 4286 | return XOpenDisplay (); |
f5818d2f AJ |
4287 | ; |
4288 | return 0; | |
4289 | } | |
4290 | _ACEOF | |
4291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4292 | if { (ac_try="$ac_link" |
4293 | case "(($ac_try" in | |
4294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4295 | *) ac_try_echo=$ac_try;; | |
4296 | esac | |
4297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4298 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4299 | ac_status=$? |
875927f6 AJ |
4300 | grep -v '^ *+' conftest.er1 >conftest.err |
4301 | rm -f conftest.er1 | |
4302 | cat conftest.err >&5 | |
daa2886c | 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4304 | (exit $ac_status); } && |
0ebeb530 JW |
4305 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4306 | { (case "(($ac_try" in | |
4307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4308 | *) ac_try_echo=$ac_try;; | |
4309 | esac | |
4310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4311 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4312 | ac_status=$? |
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4314 | (exit $ac_status); }; } && | |
4315 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4316 | { (case "(($ac_try" in |
4317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4318 | *) ac_try_echo=$ac_try;; | |
4319 | esac | |
4320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4321 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4322 | ac_status=$? |
daa2886c | 4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4324 | (exit $ac_status); }; }; then |
4325 | : | |
ff8331ea | 4326 | else |
f5818d2f | 4327 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
4328 | sed 's/^/| /' conftest.$ac_ext >&5 |
4329 | ||
fc6ffb29 AJ |
4330 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
4331 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } | |
f5818d2f AJ |
4332 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
4333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4334 | else | |
4335 | ac_check_lib_save_LIBS=$LIBS | |
4336 | LIBS="-ldnet $LIBS" | |
4337 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
4338 | /* confdefs.h. */ |
4339 | _ACEOF | |
4340 | cat confdefs.h >>conftest.$ac_ext | |
4341 | cat >>conftest.$ac_ext <<_ACEOF | |
4342 | /* end confdefs.h. */ | |
ff8331ea | 4343 | |
fc6ffb29 AJ |
4344 | /* Override any GCC internal prototype to avoid an error. |
4345 | Use char because int might match the return type of a GCC | |
4346 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4347 | #ifdef __cplusplus |
4348 | extern "C" | |
4349 | #endif | |
f5818d2f AJ |
4350 | char dnet_ntoa (); |
4351 | int | |
4352 | main () | |
4353 | { | |
fc6ffb29 | 4354 | return dnet_ntoa (); |
f5818d2f AJ |
4355 | ; |
4356 | return 0; | |
4357 | } | |
4358 | _ACEOF | |
4359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4360 | if { (ac_try="$ac_link" |
4361 | case "(($ac_try" in | |
4362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4363 | *) ac_try_echo=$ac_try;; | |
4364 | esac | |
4365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4366 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4367 | ac_status=$? |
875927f6 AJ |
4368 | grep -v '^ *+' conftest.er1 >conftest.err |
4369 | rm -f conftest.er1 | |
4370 | cat conftest.err >&5 | |
daa2886c | 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4372 | (exit $ac_status); } && |
0ebeb530 JW |
4373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4374 | { (case "(($ac_try" in | |
4375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4376 | *) ac_try_echo=$ac_try;; | |
4377 | esac | |
4378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4379 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4380 | ac_status=$? |
4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4382 | (exit $ac_status); }; } && | |
4383 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4384 | { (case "(($ac_try" in |
4385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4386 | *) ac_try_echo=$ac_try;; | |
4387 | esac | |
4388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4389 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4390 | ac_status=$? |
daa2886c | 4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4392 | (exit $ac_status); }; }; then |
4393 | ac_cv_lib_dnet_dnet_ntoa=yes | |
4394 | else | |
4395 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4396 | sed 's/^/| /' conftest.$ac_ext >&5 |
4397 | ||
fc6ffb29 | 4398 | ac_cv_lib_dnet_dnet_ntoa=no |
f5818d2f | 4399 | fi |
fc6ffb29 | 4400 | |
0ebeb530 | 4401 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4402 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
4403 | LIBS=$ac_check_lib_save_LIBS |
4404 | fi | |
fc6ffb29 AJ |
4405 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
4406 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
f5818d2f | 4407 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
ff8331ea | 4408 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
ff8331ea AJ |
4409 | fi |
4410 | ||
59730ae1 | 4411 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
fc6ffb29 AJ |
4412 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
4413 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } | |
f5818d2f AJ |
4414 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
4415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 4416 | else |
f5818d2f | 4417 | ac_check_lib_save_LIBS=$LIBS |
ff8331ea | 4418 | LIBS="-ldnet_stub $LIBS" |
f5818d2f | 4419 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
4420 | /* confdefs.h. */ |
4421 | _ACEOF | |
4422 | cat confdefs.h >>conftest.$ac_ext | |
4423 | cat >>conftest.$ac_ext <<_ACEOF | |
4424 | /* end confdefs.h. */ | |
f5818d2f | 4425 | |
fc6ffb29 AJ |
4426 | /* Override any GCC internal prototype to avoid an error. |
4427 | Use char because int might match the return type of a GCC | |
4428 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4429 | #ifdef __cplusplus |
4430 | extern "C" | |
4431 | #endif | |
f5818d2f AJ |
4432 | char dnet_ntoa (); |
4433 | int | |
4434 | main () | |
4435 | { | |
fc6ffb29 | 4436 | return dnet_ntoa (); |
f5818d2f AJ |
4437 | ; |
4438 | return 0; | |
4439 | } | |
4440 | _ACEOF | |
4441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4442 | if { (ac_try="$ac_link" |
4443 | case "(($ac_try" in | |
4444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4445 | *) ac_try_echo=$ac_try;; | |
4446 | esac | |
4447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4448 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4449 | ac_status=$? |
875927f6 AJ |
4450 | grep -v '^ *+' conftest.er1 >conftest.err |
4451 | rm -f conftest.er1 | |
4452 | cat conftest.err >&5 | |
daa2886c | 4453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4454 | (exit $ac_status); } && |
0ebeb530 JW |
4455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4456 | { (case "(($ac_try" in | |
4457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4458 | *) ac_try_echo=$ac_try;; | |
4459 | esac | |
4460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4461 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4462 | ac_status=$? |
4463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4464 | (exit $ac_status); }; } && | |
4465 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4466 | { (case "(($ac_try" in |
4467 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4468 | *) ac_try_echo=$ac_try;; | |
4469 | esac | |
4470 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4471 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4472 | ac_status=$? |
daa2886c | 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4474 | (exit $ac_status); }; }; then |
4475 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
4476 | else | |
4477 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4478 | sed 's/^/| /' conftest.$ac_ext >&5 |
4479 | ||
fc6ffb29 | 4480 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
f5818d2f | 4481 | fi |
fc6ffb29 | 4482 | |
0ebeb530 | 4483 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4484 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
4485 | LIBS=$ac_check_lib_save_LIBS |
4486 | fi | |
fc6ffb29 AJ |
4487 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
4488 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | |
f5818d2f | 4489 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
ff8331ea | 4490 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
ff8331ea AJ |
4491 | fi |
4492 | ||
4493 | fi | |
f5818d2f | 4494 | fi |
fc6ffb29 | 4495 | |
0ebeb530 | 4496 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4497 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 4498 | LIBS="$ac_xsave_LIBS" |
ff8331ea AJ |
4499 | |
4500 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
4501 | # to get the SysV transport functions. | |
f5818d2f | 4502 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
da0cfb36 AJ |
4503 | # needs -lnsl. |
4504 | # The nsl library prevents programs from opening the X display | |
f5818d2f AJ |
4505 | # on Irix 5.2, according to T.E. Dickey. |
4506 | # The functions gethostbyname, getservbyname, and inet_addr are | |
4507 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
fc6ffb29 AJ |
4508 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
4509 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } | |
f5818d2f AJ |
4510 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4512 | else | |
4513 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
4514 | /* confdefs.h. */ |
4515 | _ACEOF | |
4516 | cat confdefs.h >>conftest.$ac_ext | |
4517 | cat >>conftest.$ac_ext <<_ACEOF | |
4518 | /* end confdefs.h. */ | |
875927f6 AJ |
4519 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
4520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4521 | #define gethostbyname innocuous_gethostbyname | |
4522 | ||
da0cfb36 | 4523 | /* System header to define __stub macros and hopefully few prototypes, |
e24bcc77 AJ |
4524 | which can conflict with char gethostbyname (); below. |
4525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4526 | <limits.h> exists even on freestanding compilers. */ | |
875927f6 | 4527 | |
e24bcc77 AJ |
4528 | #ifdef __STDC__ |
4529 | # include <limits.h> | |
4530 | #else | |
4531 | # include <assert.h> | |
4532 | #endif | |
875927f6 AJ |
4533 | |
4534 | #undef gethostbyname | |
4535 | ||
fc6ffb29 AJ |
4536 | /* Override any GCC internal prototype to avoid an error. |
4537 | Use char because int might match the return type of a GCC | |
4538 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4539 | #ifdef __cplusplus |
4540 | extern "C" | |
4541 | #endif | |
f5818d2f | 4542 | char gethostbyname (); |
da0cfb36 AJ |
4543 | /* The GNU C library defines this for functions which it implements |
4544 | to always fail with ENOSYS. Some functions are actually named | |
4545 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 4546 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
da0cfb36 | 4547 | choke me |
da0cfb36 AJ |
4548 | #endif |
4549 | ||
e24bcc77 AJ |
4550 | int |
4551 | main () | |
4552 | { | |
fc6ffb29 | 4553 | return gethostbyname (); |
f5818d2f AJ |
4554 | ; |
4555 | return 0; | |
4556 | } | |
4557 | _ACEOF | |
4558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4559 | if { (ac_try="$ac_link" |
4560 | case "(($ac_try" in | |
4561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4562 | *) ac_try_echo=$ac_try;; | |
4563 | esac | |
4564 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4565 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4566 | ac_status=$? |
875927f6 AJ |
4567 | grep -v '^ *+' conftest.er1 >conftest.err |
4568 | rm -f conftest.er1 | |
4569 | cat conftest.err >&5 | |
daa2886c | 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4571 | (exit $ac_status); } && |
0ebeb530 JW |
4572 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4573 | { (case "(($ac_try" in | |
4574 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4575 | *) ac_try_echo=$ac_try;; | |
4576 | esac | |
4577 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4578 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4579 | ac_status=$? |
4580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4581 | (exit $ac_status); }; } && | |
4582 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4583 | { (case "(($ac_try" in |
4584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4585 | *) ac_try_echo=$ac_try;; | |
4586 | esac | |
4587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4588 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4589 | ac_status=$? |
daa2886c | 4590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4591 | (exit $ac_status); }; }; then |
4592 | ac_cv_func_gethostbyname=yes | |
4593 | else | |
4594 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4595 | sed 's/^/| /' conftest.$ac_ext >&5 |
4596 | ||
fc6ffb29 | 4597 | ac_cv_func_gethostbyname=no |
f5818d2f | 4598 | fi |
fc6ffb29 | 4599 | |
0ebeb530 | 4600 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4601 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 4602 | fi |
fc6ffb29 AJ |
4603 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
4604 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } | |
da0cfb36 AJ |
4605 | |
4606 | if test $ac_cv_func_gethostbyname = no; then | |
fc6ffb29 AJ |
4607 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
4608 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
f5818d2f AJ |
4609 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
4610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 4611 | else |
f5818d2f | 4612 | ac_check_lib_save_LIBS=$LIBS |
ff8331ea | 4613 | LIBS="-lnsl $LIBS" |
f5818d2f | 4614 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
4615 | /* confdefs.h. */ |
4616 | _ACEOF | |
4617 | cat confdefs.h >>conftest.$ac_ext | |
4618 | cat >>conftest.$ac_ext <<_ACEOF | |
4619 | /* end confdefs.h. */ | |
f5818d2f | 4620 | |
fc6ffb29 AJ |
4621 | /* Override any GCC internal prototype to avoid an error. |
4622 | Use char because int might match the return type of a GCC | |
4623 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4624 | #ifdef __cplusplus |
4625 | extern "C" | |
4626 | #endif | |
f5818d2f AJ |
4627 | char gethostbyname (); |
4628 | int | |
4629 | main () | |
4630 | { | |
fc6ffb29 | 4631 | return gethostbyname (); |
f5818d2f AJ |
4632 | ; |
4633 | return 0; | |
4634 | } | |
4635 | _ACEOF | |
4636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4637 | if { (ac_try="$ac_link" |
4638 | case "(($ac_try" in | |
4639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4640 | *) ac_try_echo=$ac_try;; | |
4641 | esac | |
4642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4643 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4644 | ac_status=$? |
875927f6 AJ |
4645 | grep -v '^ *+' conftest.er1 >conftest.err |
4646 | rm -f conftest.er1 | |
4647 | cat conftest.err >&5 | |
daa2886c | 4648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4649 | (exit $ac_status); } && |
0ebeb530 JW |
4650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4651 | { (case "(($ac_try" in | |
4652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4653 | *) ac_try_echo=$ac_try;; | |
4654 | esac | |
4655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4656 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4657 | ac_status=$? |
4658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4659 | (exit $ac_status); }; } && | |
4660 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4661 | { (case "(($ac_try" in |
4662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4663 | *) ac_try_echo=$ac_try;; | |
4664 | esac | |
4665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4666 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4667 | ac_status=$? |
daa2886c | 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4669 | (exit $ac_status); }; }; then |
4670 | ac_cv_lib_nsl_gethostbyname=yes | |
4671 | else | |
4672 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4673 | sed 's/^/| /' conftest.$ac_ext >&5 |
4674 | ||
fc6ffb29 | 4675 | ac_cv_lib_nsl_gethostbyname=no |
f5818d2f | 4676 | fi |
fc6ffb29 | 4677 | |
0ebeb530 | 4678 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4679 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
4680 | LIBS=$ac_check_lib_save_LIBS |
4681 | fi | |
fc6ffb29 AJ |
4682 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
4683 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
f5818d2f AJ |
4684 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
4685 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
4686 | fi | |
ff8331ea | 4687 | |
f5818d2f | 4688 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
fc6ffb29 AJ |
4689 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
4690 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } | |
f5818d2f AJ |
4691 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
4692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 4693 | else |
f5818d2f AJ |
4694 | ac_check_lib_save_LIBS=$LIBS |
4695 | LIBS="-lbsd $LIBS" | |
4696 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
4697 | /* confdefs.h. */ |
4698 | _ACEOF | |
4699 | cat confdefs.h >>conftest.$ac_ext | |
4700 | cat >>conftest.$ac_ext <<_ACEOF | |
4701 | /* end confdefs.h. */ | |
ff8331ea | 4702 | |
fc6ffb29 AJ |
4703 | /* Override any GCC internal prototype to avoid an error. |
4704 | Use char because int might match the return type of a GCC | |
4705 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4706 | #ifdef __cplusplus |
4707 | extern "C" | |
4708 | #endif | |
f5818d2f AJ |
4709 | char gethostbyname (); |
4710 | int | |
4711 | main () | |
4712 | { | |
fc6ffb29 | 4713 | return gethostbyname (); |
f5818d2f AJ |
4714 | ; |
4715 | return 0; | |
4716 | } | |
4717 | _ACEOF | |
4718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4719 | if { (ac_try="$ac_link" |
4720 | case "(($ac_try" in | |
4721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4722 | *) ac_try_echo=$ac_try;; | |
4723 | esac | |
4724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4725 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4726 | ac_status=$? |
875927f6 AJ |
4727 | grep -v '^ *+' conftest.er1 >conftest.err |
4728 | rm -f conftest.er1 | |
4729 | cat conftest.err >&5 | |
daa2886c | 4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4731 | (exit $ac_status); } && |
0ebeb530 JW |
4732 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4733 | { (case "(($ac_try" in | |
4734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4735 | *) ac_try_echo=$ac_try;; | |
4736 | esac | |
4737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4738 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4739 | ac_status=$? |
4740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4741 | (exit $ac_status); }; } && | |
4742 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4743 | { (case "(($ac_try" in |
4744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4745 | *) ac_try_echo=$ac_try;; | |
4746 | esac | |
4747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4748 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4749 | ac_status=$? |
daa2886c | 4750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4751 | (exit $ac_status); }; }; then |
4752 | ac_cv_lib_bsd_gethostbyname=yes | |
4753 | else | |
4754 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4755 | sed 's/^/| /' conftest.$ac_ext >&5 |
4756 | ||
fc6ffb29 | 4757 | ac_cv_lib_bsd_gethostbyname=no |
f5818d2f | 4758 | fi |
fc6ffb29 | 4759 | |
0ebeb530 | 4760 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4761 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
4762 | LIBS=$ac_check_lib_save_LIBS |
4763 | fi | |
fc6ffb29 AJ |
4764 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
4765 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } | |
f5818d2f AJ |
4766 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
4767 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
ff8331ea AJ |
4768 | fi |
4769 | ||
f5818d2f | 4770 | fi |
da0cfb36 | 4771 | fi |
ff8331ea AJ |
4772 | |
4773 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
da0cfb36 AJ |
4774 | # socket/setsockopt and other routines are undefined under SCO ODT |
4775 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
f5818d2f | 4776 | # on later versions), says Simon Leinen: it contains gethostby* |
11af04e3 | 4777 | # variants that don't use the name server (or something). -lsocket |
f5818d2f AJ |
4778 | # must be given before -lnsl if both are needed. We assume that |
4779 | # if connect needs -lnsl, so does gethostbyname. | |
fc6ffb29 AJ |
4780 | { echo "$as_me:$LINENO: checking for connect" >&5 |
4781 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } | |
f5818d2f AJ |
4782 | if test "${ac_cv_func_connect+set}" = set; then |
4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4784 | else | |
4785 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
4786 | /* confdefs.h. */ |
4787 | _ACEOF | |
4788 | cat confdefs.h >>conftest.$ac_ext | |
4789 | cat >>conftest.$ac_ext <<_ACEOF | |
4790 | /* end confdefs.h. */ | |
875927f6 AJ |
4791 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
4792 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4793 | #define connect innocuous_connect | |
4794 | ||
da0cfb36 | 4795 | /* System header to define __stub macros and hopefully few prototypes, |
e24bcc77 AJ |
4796 | which can conflict with char connect (); below. |
4797 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4798 | <limits.h> exists even on freestanding compilers. */ | |
875927f6 | 4799 | |
e24bcc77 AJ |
4800 | #ifdef __STDC__ |
4801 | # include <limits.h> | |
4802 | #else | |
4803 | # include <assert.h> | |
4804 | #endif | |
875927f6 AJ |
4805 | |
4806 | #undef connect | |
4807 | ||
fc6ffb29 AJ |
4808 | /* Override any GCC internal prototype to avoid an error. |
4809 | Use char because int might match the return type of a GCC | |
4810 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4811 | #ifdef __cplusplus |
4812 | extern "C" | |
4813 | #endif | |
f5818d2f | 4814 | char connect (); |
da0cfb36 AJ |
4815 | /* The GNU C library defines this for functions which it implements |
4816 | to always fail with ENOSYS. Some functions are actually named | |
4817 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 4818 | #if defined __stub_connect || defined __stub___connect |
da0cfb36 | 4819 | choke me |
da0cfb36 AJ |
4820 | #endif |
4821 | ||
e24bcc77 AJ |
4822 | int |
4823 | main () | |
4824 | { | |
fc6ffb29 | 4825 | return connect (); |
f5818d2f AJ |
4826 | ; |
4827 | return 0; | |
4828 | } | |
4829 | _ACEOF | |
4830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4831 | if { (ac_try="$ac_link" |
4832 | case "(($ac_try" in | |
4833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4834 | *) ac_try_echo=$ac_try;; | |
4835 | esac | |
4836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4837 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4838 | ac_status=$? |
875927f6 AJ |
4839 | grep -v '^ *+' conftest.er1 >conftest.err |
4840 | rm -f conftest.er1 | |
4841 | cat conftest.err >&5 | |
daa2886c | 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4843 | (exit $ac_status); } && |
0ebeb530 JW |
4844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4845 | { (case "(($ac_try" in | |
4846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4847 | *) ac_try_echo=$ac_try;; | |
4848 | esac | |
4849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4850 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4851 | ac_status=$? |
4852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4853 | (exit $ac_status); }; } && | |
4854 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4855 | { (case "(($ac_try" in |
4856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4857 | *) ac_try_echo=$ac_try;; | |
4858 | esac | |
4859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4860 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4861 | ac_status=$? |
daa2886c | 4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4863 | (exit $ac_status); }; }; then |
4864 | ac_cv_func_connect=yes | |
4865 | else | |
4866 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4867 | sed 's/^/| /' conftest.$ac_ext >&5 |
4868 | ||
fc6ffb29 | 4869 | ac_cv_func_connect=no |
f5818d2f | 4870 | fi |
fc6ffb29 | 4871 | |
0ebeb530 | 4872 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4873 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 4874 | fi |
fc6ffb29 AJ |
4875 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
4876 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } | |
da0cfb36 AJ |
4877 | |
4878 | if test $ac_cv_func_connect = no; then | |
fc6ffb29 AJ |
4879 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
4880 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | |
f5818d2f AJ |
4881 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
4882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea | 4883 | else |
f5818d2f | 4884 | ac_check_lib_save_LIBS=$LIBS |
da0cfb36 | 4885 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
f5818d2f | 4886 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
4887 | /* confdefs.h. */ |
4888 | _ACEOF | |
4889 | cat confdefs.h >>conftest.$ac_ext | |
4890 | cat >>conftest.$ac_ext <<_ACEOF | |
4891 | /* end confdefs.h. */ | |
f5818d2f | 4892 | |
fc6ffb29 AJ |
4893 | /* Override any GCC internal prototype to avoid an error. |
4894 | Use char because int might match the return type of a GCC | |
4895 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4896 | #ifdef __cplusplus |
4897 | extern "C" | |
4898 | #endif | |
f5818d2f AJ |
4899 | char connect (); |
4900 | int | |
4901 | main () | |
4902 | { | |
fc6ffb29 | 4903 | return connect (); |
f5818d2f AJ |
4904 | ; |
4905 | return 0; | |
4906 | } | |
4907 | _ACEOF | |
4908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
4909 | if { (ac_try="$ac_link" |
4910 | case "(($ac_try" in | |
4911 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4912 | *) ac_try_echo=$ac_try;; | |
4913 | esac | |
4914 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4915 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 4916 | ac_status=$? |
875927f6 AJ |
4917 | grep -v '^ *+' conftest.er1 >conftest.err |
4918 | rm -f conftest.er1 | |
4919 | cat conftest.err >&5 | |
daa2886c | 4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 4921 | (exit $ac_status); } && |
0ebeb530 JW |
4922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4923 | { (case "(($ac_try" in | |
4924 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4925 | *) ac_try_echo=$ac_try;; | |
4926 | esac | |
4927 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4928 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
4929 | ac_status=$? |
4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4931 | (exit $ac_status); }; } && | |
4932 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
4933 | { (case "(($ac_try" in |
4934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4935 | *) ac_try_echo=$ac_try;; | |
4936 | esac | |
4937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4938 | (eval "$ac_try") 2>&5 | |
f5818d2f | 4939 | ac_status=$? |
daa2886c | 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
4941 | (exit $ac_status); }; }; then |
4942 | ac_cv_lib_socket_connect=yes | |
4943 | else | |
4944 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
4945 | sed 's/^/| /' conftest.$ac_ext >&5 |
4946 | ||
fc6ffb29 | 4947 | ac_cv_lib_socket_connect=no |
f5818d2f | 4948 | fi |
fc6ffb29 | 4949 | |
0ebeb530 | 4950 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 4951 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
4952 | LIBS=$ac_check_lib_save_LIBS |
4953 | fi | |
fc6ffb29 AJ |
4954 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
4955 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | |
f5818d2f | 4956 | if test $ac_cv_lib_socket_connect = yes; then |
da0cfb36 | 4957 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
ff8331ea AJ |
4958 | fi |
4959 | ||
da0cfb36 AJ |
4960 | fi |
4961 | ||
f5818d2f | 4962 | # Guillermo Gomez says -lposix is necessary on A/UX. |
fc6ffb29 AJ |
4963 | { echo "$as_me:$LINENO: checking for remove" >&5 |
4964 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } | |
f5818d2f AJ |
4965 | if test "${ac_cv_func_remove+set}" = set; then |
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
da0cfb36 | 4967 | else |
f5818d2f | 4968 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
4969 | /* confdefs.h. */ |
4970 | _ACEOF | |
4971 | cat confdefs.h >>conftest.$ac_ext | |
4972 | cat >>conftest.$ac_ext <<_ACEOF | |
4973 | /* end confdefs.h. */ | |
875927f6 AJ |
4974 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
4975 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4976 | #define remove innocuous_remove | |
4977 | ||
da0cfb36 | 4978 | /* System header to define __stub macros and hopefully few prototypes, |
e24bcc77 AJ |
4979 | which can conflict with char remove (); below. |
4980 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4981 | <limits.h> exists even on freestanding compilers. */ | |
875927f6 | 4982 | |
e24bcc77 AJ |
4983 | #ifdef __STDC__ |
4984 | # include <limits.h> | |
4985 | #else | |
4986 | # include <assert.h> | |
4987 | #endif | |
875927f6 AJ |
4988 | |
4989 | #undef remove | |
4990 | ||
fc6ffb29 AJ |
4991 | /* Override any GCC internal prototype to avoid an error. |
4992 | Use char because int might match the return type of a GCC | |
4993 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
4994 | #ifdef __cplusplus |
4995 | extern "C" | |
4996 | #endif | |
f5818d2f | 4997 | char remove (); |
da0cfb36 AJ |
4998 | /* The GNU C library defines this for functions which it implements |
4999 | to always fail with ENOSYS. Some functions are actually named | |
5000 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 5001 | #if defined __stub_remove || defined __stub___remove |
da0cfb36 | 5002 | choke me |
da0cfb36 AJ |
5003 | #endif |
5004 | ||
e24bcc77 AJ |
5005 | int |
5006 | main () | |
5007 | { | |
fc6ffb29 | 5008 | return remove (); |
f5818d2f AJ |
5009 | ; |
5010 | return 0; | |
5011 | } | |
5012 | _ACEOF | |
5013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5014 | if { (ac_try="$ac_link" |
5015 | case "(($ac_try" in | |
5016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5017 | *) ac_try_echo=$ac_try;; | |
5018 | esac | |
5019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5020 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5021 | ac_status=$? |
875927f6 AJ |
5022 | grep -v '^ *+' conftest.er1 >conftest.err |
5023 | rm -f conftest.er1 | |
5024 | cat conftest.err >&5 | |
daa2886c | 5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5026 | (exit $ac_status); } && |
0ebeb530 JW |
5027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5028 | { (case "(($ac_try" in | |
5029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5030 | *) ac_try_echo=$ac_try;; | |
5031 | esac | |
5032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5033 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5034 | ac_status=$? |
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5036 | (exit $ac_status); }; } && | |
5037 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5038 | { (case "(($ac_try" in |
5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5040 | *) ac_try_echo=$ac_try;; | |
5041 | esac | |
5042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5043 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5044 | ac_status=$? |
daa2886c | 5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5046 | (exit $ac_status); }; }; then |
5047 | ac_cv_func_remove=yes | |
5048 | else | |
5049 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
5051 | ||
fc6ffb29 | 5052 | ac_cv_func_remove=no |
f5818d2f | 5053 | fi |
fc6ffb29 | 5054 | |
0ebeb530 | 5055 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5056 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 5057 | fi |
fc6ffb29 AJ |
5058 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
5059 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } | |
da0cfb36 AJ |
5060 | |
5061 | if test $ac_cv_func_remove = no; then | |
fc6ffb29 AJ |
5062 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
5063 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } | |
f5818d2f AJ |
5064 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
5065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2bfa4c7 | 5066 | else |
f5818d2f | 5067 | ac_check_lib_save_LIBS=$LIBS |
da0cfb36 | 5068 | LIBS="-lposix $LIBS" |
f5818d2f | 5069 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
5070 | /* confdefs.h. */ |
5071 | _ACEOF | |
5072 | cat confdefs.h >>conftest.$ac_ext | |
5073 | cat >>conftest.$ac_ext <<_ACEOF | |
5074 | /* end confdefs.h. */ | |
f5818d2f | 5075 | |
fc6ffb29 AJ |
5076 | /* Override any GCC internal prototype to avoid an error. |
5077 | Use char because int might match the return type of a GCC | |
5078 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
5079 | #ifdef __cplusplus |
5080 | extern "C" | |
5081 | #endif | |
f5818d2f AJ |
5082 | char remove (); |
5083 | int | |
5084 | main () | |
5085 | { | |
fc6ffb29 | 5086 | return remove (); |
f5818d2f AJ |
5087 | ; |
5088 | return 0; | |
5089 | } | |
5090 | _ACEOF | |
5091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5092 | if { (ac_try="$ac_link" |
5093 | case "(($ac_try" in | |
5094 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5095 | *) ac_try_echo=$ac_try;; | |
5096 | esac | |
5097 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5098 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5099 | ac_status=$? |
875927f6 AJ |
5100 | grep -v '^ *+' conftest.er1 >conftest.err |
5101 | rm -f conftest.er1 | |
5102 | cat conftest.err >&5 | |
daa2886c | 5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5104 | (exit $ac_status); } && |
0ebeb530 JW |
5105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5106 | { (case "(($ac_try" in | |
5107 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5108 | *) ac_try_echo=$ac_try;; | |
5109 | esac | |
5110 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5111 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5112 | ac_status=$? |
5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5114 | (exit $ac_status); }; } && | |
5115 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5116 | { (case "(($ac_try" in |
5117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5118 | *) ac_try_echo=$ac_try;; | |
5119 | esac | |
5120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5121 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5122 | ac_status=$? |
daa2886c | 5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5124 | (exit $ac_status); }; }; then |
5125 | ac_cv_lib_posix_remove=yes | |
5126 | else | |
5127 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5128 | sed 's/^/| /' conftest.$ac_ext >&5 |
5129 | ||
fc6ffb29 | 5130 | ac_cv_lib_posix_remove=no |
f5818d2f | 5131 | fi |
fc6ffb29 | 5132 | |
0ebeb530 | 5133 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5134 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
5135 | LIBS=$ac_check_lib_save_LIBS |
5136 | fi | |
fc6ffb29 AJ |
5137 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
5138 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } | |
f5818d2f | 5139 | if test $ac_cv_lib_posix_remove = yes; then |
da0cfb36 | 5140 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
da0cfb36 AJ |
5141 | fi |
5142 | ||
5143 | fi | |
5144 | ||
5145 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
fc6ffb29 AJ |
5146 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
5147 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } | |
f5818d2f AJ |
5148 | if test "${ac_cv_func_shmat+set}" = set; then |
5149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
da0cfb36 | 5150 | else |
f5818d2f | 5151 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
5152 | /* confdefs.h. */ |
5153 | _ACEOF | |
5154 | cat confdefs.h >>conftest.$ac_ext | |
5155 | cat >>conftest.$ac_ext <<_ACEOF | |
5156 | /* end confdefs.h. */ | |
875927f6 AJ |
5157 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
5158 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5159 | #define shmat innocuous_shmat | |
5160 | ||
da0cfb36 | 5161 | /* System header to define __stub macros and hopefully few prototypes, |
e24bcc77 AJ |
5162 | which can conflict with char shmat (); below. |
5163 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5164 | <limits.h> exists even on freestanding compilers. */ | |
875927f6 | 5165 | |
e24bcc77 AJ |
5166 | #ifdef __STDC__ |
5167 | # include <limits.h> | |
5168 | #else | |
5169 | # include <assert.h> | |
5170 | #endif | |
875927f6 AJ |
5171 | |
5172 | #undef shmat | |
5173 | ||
fc6ffb29 AJ |
5174 | /* Override any GCC internal prototype to avoid an error. |
5175 | Use char because int might match the return type of a GCC | |
5176 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
5177 | #ifdef __cplusplus |
5178 | extern "C" | |
5179 | #endif | |
f5818d2f | 5180 | char shmat (); |
da0cfb36 AJ |
5181 | /* The GNU C library defines this for functions which it implements |
5182 | to always fail with ENOSYS. Some functions are actually named | |
5183 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 5184 | #if defined __stub_shmat || defined __stub___shmat |
da0cfb36 | 5185 | choke me |
da0cfb36 AJ |
5186 | #endif |
5187 | ||
e24bcc77 AJ |
5188 | int |
5189 | main () | |
5190 | { | |
fc6ffb29 | 5191 | return shmat (); |
f5818d2f AJ |
5192 | ; |
5193 | return 0; | |
5194 | } | |
5195 | _ACEOF | |
5196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5197 | if { (ac_try="$ac_link" |
5198 | case "(($ac_try" in | |
5199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5200 | *) ac_try_echo=$ac_try;; | |
5201 | esac | |
5202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5203 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5204 | ac_status=$? |
875927f6 AJ |
5205 | grep -v '^ *+' conftest.er1 >conftest.err |
5206 | rm -f conftest.er1 | |
5207 | cat conftest.err >&5 | |
daa2886c | 5208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5209 | (exit $ac_status); } && |
0ebeb530 JW |
5210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5211 | { (case "(($ac_try" in | |
5212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5213 | *) ac_try_echo=$ac_try;; | |
5214 | esac | |
5215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5216 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5217 | ac_status=$? |
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5219 | (exit $ac_status); }; } && | |
5220 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5221 | { (case "(($ac_try" in |
5222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5223 | *) ac_try_echo=$ac_try;; | |
5224 | esac | |
5225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5226 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5227 | ac_status=$? |
daa2886c | 5228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5229 | (exit $ac_status); }; }; then |
5230 | ac_cv_func_shmat=yes | |
5231 | else | |
5232 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5233 | sed 's/^/| /' conftest.$ac_ext >&5 |
5234 | ||
fc6ffb29 | 5235 | ac_cv_func_shmat=no |
f5818d2f | 5236 | fi |
fc6ffb29 | 5237 | |
0ebeb530 | 5238 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5239 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 5240 | fi |
fc6ffb29 AJ |
5241 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
5242 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } | |
da0cfb36 AJ |
5243 | |
5244 | if test $ac_cv_func_shmat = no; then | |
fc6ffb29 AJ |
5245 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
5246 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } | |
f5818d2f AJ |
5247 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
5248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
da0cfb36 | 5249 | else |
f5818d2f | 5250 | ac_check_lib_save_LIBS=$LIBS |
da0cfb36 | 5251 | LIBS="-lipc $LIBS" |
f5818d2f | 5252 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
5253 | /* confdefs.h. */ |
5254 | _ACEOF | |
5255 | cat confdefs.h >>conftest.$ac_ext | |
5256 | cat >>conftest.$ac_ext <<_ACEOF | |
5257 | /* end confdefs.h. */ | |
f5818d2f | 5258 | |
fc6ffb29 AJ |
5259 | /* Override any GCC internal prototype to avoid an error. |
5260 | Use char because int might match the return type of a GCC | |
5261 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
5262 | #ifdef __cplusplus |
5263 | extern "C" | |
5264 | #endif | |
f5818d2f AJ |
5265 | char shmat (); |
5266 | int | |
5267 | main () | |
5268 | { | |
fc6ffb29 | 5269 | return shmat (); |
f5818d2f AJ |
5270 | ; |
5271 | return 0; | |
5272 | } | |
5273 | _ACEOF | |
5274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5275 | if { (ac_try="$ac_link" |
5276 | case "(($ac_try" in | |
5277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5278 | *) ac_try_echo=$ac_try;; | |
5279 | esac | |
5280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5281 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5282 | ac_status=$? |
875927f6 AJ |
5283 | grep -v '^ *+' conftest.er1 >conftest.err |
5284 | rm -f conftest.er1 | |
5285 | cat conftest.err >&5 | |
daa2886c | 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5287 | (exit $ac_status); } && |
0ebeb530 JW |
5288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5289 | { (case "(($ac_try" in | |
5290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5291 | *) ac_try_echo=$ac_try;; | |
5292 | esac | |
5293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5294 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5295 | ac_status=$? |
5296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5297 | (exit $ac_status); }; } && | |
5298 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5299 | { (case "(($ac_try" in |
5300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5301 | *) ac_try_echo=$ac_try;; | |
5302 | esac | |
5303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5304 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5305 | ac_status=$? |
daa2886c | 5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5307 | (exit $ac_status); }; }; then |
5308 | ac_cv_lib_ipc_shmat=yes | |
5309 | else | |
5310 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5311 | sed 's/^/| /' conftest.$ac_ext >&5 |
5312 | ||
fc6ffb29 | 5313 | ac_cv_lib_ipc_shmat=no |
f5818d2f | 5314 | fi |
fc6ffb29 | 5315 | |
0ebeb530 | 5316 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5317 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
5318 | LIBS=$ac_check_lib_save_LIBS |
5319 | fi | |
fc6ffb29 AJ |
5320 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
5321 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } | |
f5818d2f | 5322 | if test $ac_cv_lib_ipc_shmat = yes; then |
da0cfb36 | 5323 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
e2bfa4c7 AJ |
5324 | fi |
5325 | ||
ff8331ea AJ |
5326 | fi |
5327 | fi | |
da0cfb36 AJ |
5328 | |
5329 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
f5818d2f | 5330 | ac_save_LDFLAGS=$LDFLAGS |
da0cfb36 AJ |
5331 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
5332 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
5333 | # check for ICE first), but we must link in the order -lSM -lICE or | |
5334 | # we get undefined symbols. So assume we have SM if we have ICE. | |
5335 | # These have to be linked with before -lX11, unlike the other | |
5336 | # libraries we check for below, so use a different variable. | |
f5818d2f | 5337 | # John Interrante, Karl Berry |
fc6ffb29 AJ |
5338 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
5339 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } | |
f5818d2f AJ |
5340 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
5341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5342 | else | |
5343 | ac_check_lib_save_LIBS=$LIBS | |
18ad24a7 | 5344 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
f5818d2f | 5345 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
5346 | /* confdefs.h. */ |
5347 | _ACEOF | |
5348 | cat confdefs.h >>conftest.$ac_ext | |
5349 | cat >>conftest.$ac_ext <<_ACEOF | |
5350 | /* end confdefs.h. */ | |
f5818d2f | 5351 | |
fc6ffb29 AJ |
5352 | /* Override any GCC internal prototype to avoid an error. |
5353 | Use char because int might match the return type of a GCC | |
5354 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
5355 | #ifdef __cplusplus |
5356 | extern "C" | |
5357 | #endif | |
f5818d2f AJ |
5358 | char IceConnectionNumber (); |
5359 | int | |
5360 | main () | |
5361 | { | |
fc6ffb29 | 5362 | return IceConnectionNumber (); |
f5818d2f AJ |
5363 | ; |
5364 | return 0; | |
5365 | } | |
5366 | _ACEOF | |
5367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5368 | if { (ac_try="$ac_link" |
5369 | case "(($ac_try" in | |
5370 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5371 | *) ac_try_echo=$ac_try;; | |
5372 | esac | |
5373 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5374 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5375 | ac_status=$? |
875927f6 AJ |
5376 | grep -v '^ *+' conftest.er1 >conftest.err |
5377 | rm -f conftest.er1 | |
5378 | cat conftest.err >&5 | |
daa2886c | 5379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5380 | (exit $ac_status); } && |
0ebeb530 JW |
5381 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5382 | { (case "(($ac_try" in | |
5383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5384 | *) ac_try_echo=$ac_try;; | |
5385 | esac | |
5386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5387 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5388 | ac_status=$? |
5389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5390 | (exit $ac_status); }; } && | |
5391 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5392 | { (case "(($ac_try" in |
5393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5394 | *) ac_try_echo=$ac_try;; | |
5395 | esac | |
5396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5397 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5398 | ac_status=$? |
daa2886c | 5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5400 | (exit $ac_status); }; }; then |
5401 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
5402 | else | |
5403 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5404 | sed 's/^/| /' conftest.$ac_ext >&5 |
5405 | ||
fc6ffb29 | 5406 | ac_cv_lib_ICE_IceConnectionNumber=no |
f5818d2f | 5407 | fi |
fc6ffb29 | 5408 | |
0ebeb530 | 5409 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5410 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
5411 | LIBS=$ac_check_lib_save_LIBS |
5412 | fi | |
fc6ffb29 AJ |
5413 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
5414 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | |
f5818d2f | 5415 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
da0cfb36 | 5416 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
da0cfb36 AJ |
5417 | fi |
5418 | ||
f5818d2f | 5419 | LDFLAGS=$ac_save_LDFLAGS |
da0cfb36 | 5420 | |
ff8331ea AJ |
5421 | fi |
5422 | ||
f5818d2f AJ |
5423 | for ac_prog in flex lex |
5424 | do | |
5425 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5426 | set dummy $ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
5427 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
5429 | if test "${ac_cv_prog_LEX+set}" = set; then |
5430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 AJ |
5431 | else |
5432 | if test -n "$LEX"; then | |
5433 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | |
5434 | else | |
daa2886c AJ |
5435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5436 | for as_dir in $PATH | |
5437 | do | |
5438 | IFS=$as_save_IFS | |
5439 | test -z "$as_dir" && as_dir=. | |
5440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 5441 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
5442 | ac_cv_prog_LEX="$ac_prog" |
5443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5444 | break 2 | |
5445 | fi | |
5446 | done | |
f5818d2f | 5447 | done |
fc6ffb29 | 5448 | IFS=$as_save_IFS |
f5818d2f | 5449 | |
e2991ea7 AJ |
5450 | fi |
5451 | fi | |
f5818d2f | 5452 | LEX=$ac_cv_prog_LEX |
e2991ea7 | 5453 | if test -n "$LEX"; then |
fc6ffb29 AJ |
5454 | { echo "$as_me:$LINENO: result: $LEX" >&5 |
5455 | echo "${ECHO_T}$LEX" >&6; } | |
e2991ea7 | 5456 | else |
fc6ffb29 AJ |
5457 | { echo "$as_me:$LINENO: result: no" >&5 |
5458 | echo "${ECHO_T}no" >&6; } | |
e2991ea7 AJ |
5459 | fi |
5460 | ||
fc6ffb29 | 5461 | |
f5818d2f AJ |
5462 | test -n "$LEX" && break |
5463 | done | |
5464 | test -n "$LEX" || LEX=":" | |
5465 | ||
e2991ea7 AJ |
5466 | if test -z "$LEXLIB" |
5467 | then | |
fc6ffb29 AJ |
5468 | { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
5469 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; } | |
f5818d2f AJ |
5470 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
5471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5472 | else | |
5473 | ac_check_lib_save_LIBS=$LIBS | |
5474 | LIBS="-lfl $LIBS" | |
5475 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
5476 | /* confdefs.h. */ |
5477 | _ACEOF | |
5478 | cat confdefs.h >>conftest.$ac_ext | |
5479 | cat >>conftest.$ac_ext <<_ACEOF | |
5480 | /* end confdefs.h. */ | |
f5818d2f | 5481 | |
fc6ffb29 AJ |
5482 | /* Override any GCC internal prototype to avoid an error. |
5483 | Use char because int might match the return type of a GCC | |
5484 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
5485 | #ifdef __cplusplus |
5486 | extern "C" | |
5487 | #endif | |
f5818d2f AJ |
5488 | char yywrap (); |
5489 | int | |
5490 | main () | |
5491 | { | |
fc6ffb29 | 5492 | return yywrap (); |
f5818d2f AJ |
5493 | ; |
5494 | return 0; | |
5495 | } | |
5496 | _ACEOF | |
5497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5498 | if { (ac_try="$ac_link" |
5499 | case "(($ac_try" in | |
5500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5501 | *) ac_try_echo=$ac_try;; | |
5502 | esac | |
5503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5504 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5505 | ac_status=$? |
875927f6 AJ |
5506 | grep -v '^ *+' conftest.er1 >conftest.err |
5507 | rm -f conftest.er1 | |
5508 | cat conftest.err >&5 | |
daa2886c | 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5510 | (exit $ac_status); } && |
0ebeb530 JW |
5511 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5512 | { (case "(($ac_try" in | |
5513 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5514 | *) ac_try_echo=$ac_try;; | |
5515 | esac | |
5516 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5517 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5518 | ac_status=$? |
5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5520 | (exit $ac_status); }; } && | |
5521 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5522 | { (case "(($ac_try" in |
5523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5524 | *) ac_try_echo=$ac_try;; | |
5525 | esac | |
5526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5527 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5528 | ac_status=$? |
daa2886c | 5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5530 | (exit $ac_status); }; }; then |
5531 | ac_cv_lib_fl_yywrap=yes | |
5532 | else | |
5533 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5534 | sed 's/^/| /' conftest.$ac_ext >&5 |
5535 | ||
fc6ffb29 | 5536 | ac_cv_lib_fl_yywrap=no |
f5818d2f | 5537 | fi |
fc6ffb29 | 5538 | |
0ebeb530 | 5539 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5540 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
5541 | LIBS=$ac_check_lib_save_LIBS |
5542 | fi | |
fc6ffb29 AJ |
5543 | { echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
5544 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; } | |
f5818d2f AJ |
5545 | if test $ac_cv_lib_fl_yywrap = yes; then |
5546 | LEXLIB="-lfl" | |
5547 | else | |
fc6ffb29 AJ |
5548 | { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
5549 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; } | |
f5818d2f AJ |
5550 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
5551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5552 | else | |
5553 | ac_check_lib_save_LIBS=$LIBS | |
5554 | LIBS="-ll $LIBS" | |
5555 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
5556 | /* confdefs.h. */ |
5557 | _ACEOF | |
5558 | cat confdefs.h >>conftest.$ac_ext | |
5559 | cat >>conftest.$ac_ext <<_ACEOF | |
5560 | /* end confdefs.h. */ | |
e2991ea7 | 5561 | |
fc6ffb29 AJ |
5562 | /* Override any GCC internal prototype to avoid an error. |
5563 | Use char because int might match the return type of a GCC | |
5564 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
5565 | #ifdef __cplusplus |
5566 | extern "C" | |
5567 | #endif | |
f5818d2f AJ |
5568 | char yywrap (); |
5569 | int | |
5570 | main () | |
5571 | { | |
fc6ffb29 | 5572 | return yywrap (); |
f5818d2f AJ |
5573 | ; |
5574 | return 0; | |
5575 | } | |
5576 | _ACEOF | |
5577 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5578 | if { (ac_try="$ac_link" |
5579 | case "(($ac_try" in | |
5580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5581 | *) ac_try_echo=$ac_try;; | |
5582 | esac | |
5583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5584 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5585 | ac_status=$? |
875927f6 AJ |
5586 | grep -v '^ *+' conftest.er1 >conftest.err |
5587 | rm -f conftest.er1 | |
5588 | cat conftest.err >&5 | |
daa2886c | 5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5590 | (exit $ac_status); } && |
0ebeb530 JW |
5591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5592 | { (case "(($ac_try" in | |
5593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5594 | *) ac_try_echo=$ac_try;; | |
5595 | esac | |
5596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5597 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5598 | ac_status=$? |
5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5600 | (exit $ac_status); }; } && | |
5601 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5602 | { (case "(($ac_try" in |
5603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5604 | *) ac_try_echo=$ac_try;; | |
5605 | esac | |
5606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5607 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5608 | ac_status=$? |
daa2886c | 5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5610 | (exit $ac_status); }; }; then |
5611 | ac_cv_lib_l_yywrap=yes | |
e2991ea7 | 5612 | else |
f5818d2f | 5613 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
5614 | sed 's/^/| /' conftest.$ac_ext >&5 |
5615 | ||
fc6ffb29 | 5616 | ac_cv_lib_l_yywrap=no |
f5818d2f | 5617 | fi |
fc6ffb29 | 5618 | |
0ebeb530 | 5619 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5620 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
5621 | LIBS=$ac_check_lib_save_LIBS |
5622 | fi | |
fc6ffb29 AJ |
5623 | { echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
5624 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; } | |
f5818d2f AJ |
5625 | if test $ac_cv_lib_l_yywrap = yes; then |
5626 | LEXLIB="-ll" | |
5627 | fi | |
5628 | ||
e2991ea7 | 5629 | fi |
e2991ea7 AJ |
5630 | |
5631 | fi | |
f5818d2f AJ |
5632 | |
5633 | if test "x$LEX" != "x:"; then | |
fc6ffb29 AJ |
5634 | { echo "$as_me:$LINENO: checking lex output file root" >&5 |
5635 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | |
f5818d2f AJ |
5636 | if test "${ac_cv_prog_lex_root+set}" = set; then |
5637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5638 | else | |
5639 | # The minimal lex program is just a single line: %%. But some broken lexes | |
5640 | # (Solaris, I think it was) want two %% lines, so accommodate them. | |
daa2886c AJ |
5641 | cat >conftest.l <<_ACEOF |
5642 | %% | |
5643 | %% | |
5644 | _ACEOF | |
0ebeb530 JW |
5645 | { (ac_try="$LEX conftest.l" |
5646 | case "(($ac_try" in | |
5647 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5648 | *) ac_try_echo=$ac_try;; | |
5649 | esac | |
5650 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5651 | (eval "$LEX conftest.l") 2>&5 | |
daa2886c AJ |
5652 | ac_status=$? |
5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5654 | (exit $ac_status); } | |
f5818d2f AJ |
5655 | if test -f lex.yy.c; then |
5656 | ac_cv_prog_lex_root=lex.yy | |
5657 | elif test -f lexyy.c; then | |
5658 | ac_cv_prog_lex_root=lexyy | |
5659 | else | |
daa2886c | 5660 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
f5818d2f AJ |
5661 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
5662 | { (exit 1); exit 1; }; } | |
5663 | fi | |
5664 | fi | |
fc6ffb29 AJ |
5665 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
5666 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | |
daa2886c | 5667 | rm -f conftest.l |
f5818d2f AJ |
5668 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
5669 | ||
fc6ffb29 AJ |
5670 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
5671 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | |
f5818d2f AJ |
5672 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
5673 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e2991ea7 | 5674 | else |
f5818d2f AJ |
5675 | # POSIX says lex can declare yytext either as a pointer or an array; the |
5676 | # default is implementation-dependent. Figure out which it is, since | |
5677 | # not all implementations provide the %pointer and %array declarations. | |
5678 | ac_cv_prog_lex_yytext_pointer=no | |
5679 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c | |
5680 | ac_save_LIBS=$LIBS | |
5681 | LIBS="$LIBS $LEXLIB" | |
5682 | cat >conftest.$ac_ext <<_ACEOF | |
5683 | `cat $LEX_OUTPUT_ROOT.c` | |
5684 | _ACEOF | |
5685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
5686 | if { (ac_try="$ac_link" |
5687 | case "(($ac_try" in | |
5688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5689 | *) ac_try_echo=$ac_try;; | |
5690 | esac | |
5691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5692 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 5693 | ac_status=$? |
875927f6 AJ |
5694 | grep -v '^ *+' conftest.er1 >conftest.err |
5695 | rm -f conftest.er1 | |
5696 | cat conftest.err >&5 | |
daa2886c | 5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 5698 | (exit $ac_status); } && |
0ebeb530 JW |
5699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5700 | { (case "(($ac_try" in | |
5701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5702 | *) ac_try_echo=$ac_try;; | |
5703 | esac | |
5704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5705 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
5706 | ac_status=$? |
5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5708 | (exit $ac_status); }; } && | |
5709 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
5710 | { (case "(($ac_try" in |
5711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5712 | *) ac_try_echo=$ac_try;; | |
5713 | esac | |
5714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5715 | (eval "$ac_try") 2>&5 | |
f5818d2f | 5716 | ac_status=$? |
daa2886c | 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
5718 | (exit $ac_status); }; }; then |
5719 | ac_cv_prog_lex_yytext_pointer=yes | |
5720 | else | |
5721 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
5723 | ||
fc6ffb29 | 5724 | |
f5818d2f | 5725 | fi |
fc6ffb29 | 5726 | |
0ebeb530 | 5727 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 5728 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
5729 | LIBS=$ac_save_LIBS |
5730 | rm -f "${LEX_OUTPUT_ROOT}.c" | |
5731 | ||
e2991ea7 | 5732 | fi |
fc6ffb29 AJ |
5733 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
5734 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | |
f5818d2f AJ |
5735 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
5736 | ||
daa2886c | 5737 | cat >>confdefs.h <<\_ACEOF |
f5818d2f | 5738 | #define YYTEXT_POINTER 1 |
daa2886c | 5739 | _ACEOF |
e2991ea7 AJ |
5740 | |
5741 | fi | |
5742 | ||
f5818d2f | 5743 | fi |
5c5a6217 | 5744 | |
c068f670 | 5745 | for ac_prog in $LEX flex lex |
5c5a6217 | 5746 | do |
f5818d2f | 5747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5c5a6217 | 5748 | set dummy $ac_prog; ac_word=$2 |
fc6ffb29 AJ |
5749 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c068f670 | 5751 | if test "${ac_cv_prog_XLEX+set}" = set; then |
f5818d2f | 5752 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5c5a6217 | 5753 | else |
c068f670 MM |
5754 | if test -n "$XLEX"; then |
5755 | ac_cv_prog_XLEX="$XLEX" # Let the user override the test. | |
5c5a6217 | 5756 | else |
daa2886c AJ |
5757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5758 | for as_dir in $PATH | |
5759 | do | |
5760 | IFS=$as_save_IFS | |
5761 | test -z "$as_dir" && as_dir=. | |
5762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 5763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
c068f670 | 5764 | ac_cv_prog_XLEX="$ac_prog" |
daa2886c AJ |
5765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5766 | break 2 | |
5767 | fi | |
5768 | done | |
f5818d2f | 5769 | done |
fc6ffb29 | 5770 | IFS=$as_save_IFS |
f5818d2f | 5771 | |
5c5a6217 MM |
5772 | fi |
5773 | fi | |
c068f670 MM |
5774 | XLEX=$ac_cv_prog_XLEX |
5775 | if test -n "$XLEX"; then | |
fc6ffb29 AJ |
5776 | { echo "$as_me:$LINENO: result: $XLEX" >&5 |
5777 | echo "${ECHO_T}$XLEX" >&6; } | |
5c5a6217 | 5778 | else |
fc6ffb29 AJ |
5779 | { echo "$as_me:$LINENO: result: no" >&5 |
5780 | echo "${ECHO_T}no" >&6; } | |
5c5a6217 MM |
5781 | fi |
5782 | ||
fc6ffb29 | 5783 | |
c068f670 | 5784 | test -n "$XLEX" && break |
5c5a6217 | 5785 | done |
c068f670 | 5786 | test -n "$XLEX" || XLEX="none" |
5c5a6217 | 5787 | |
c068f670 | 5788 | if test "$XLEX" = "none" |
5c5a6217 | 5789 | then |
c068f670 MM |
5790 | { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5 |
5791 | echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;} | |
f5818d2f | 5792 | { (exit 1); exit 1; }; } |
5c5a6217 | 5793 | fi |
c068f670 MM |
5794 | |
5795 | for ac_prog in bison | |
b53bb419 | 5796 | do |
f5818d2f | 5797 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
b53bb419 | 5798 | set dummy $ac_prog; ac_word=$2 |
fc6ffb29 AJ |
5799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
c068f670 | 5801 | if test "${ac_cv_prog_BISON+set}" = set; then |
f5818d2f | 5802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b53bb419 | 5803 | else |
c068f670 MM |
5804 | if test -n "$BISON"; then |
5805 | ac_cv_prog_BISON="$BISON" # Let the user override the test. | |
b53bb419 | 5806 | else |
daa2886c AJ |
5807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5808 | for as_dir in $PATH | |
5809 | do | |
5810 | IFS=$as_save_IFS | |
5811 | test -z "$as_dir" && as_dir=. | |
5812 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 5813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
c068f670 | 5814 | ac_cv_prog_BISON="$ac_prog" |
daa2886c AJ |
5815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5816 | break 2 | |
5817 | fi | |
5818 | done | |
f5818d2f | 5819 | done |
fc6ffb29 | 5820 | IFS=$as_save_IFS |
f5818d2f | 5821 | |
b53bb419 MM |
5822 | fi |
5823 | fi | |
c068f670 MM |
5824 | BISON=$ac_cv_prog_BISON |
5825 | if test -n "$BISON"; then | |
fc6ffb29 AJ |
5826 | { echo "$as_me:$LINENO: result: $BISON" >&5 |
5827 | echo "${ECHO_T}$BISON" >&6; } | |
b53bb419 | 5828 | else |
fc6ffb29 AJ |
5829 | { echo "$as_me:$LINENO: result: no" >&5 |
5830 | echo "${ECHO_T}no" >&6; } | |
b53bb419 MM |
5831 | fi |
5832 | ||
fc6ffb29 | 5833 | |
c068f670 | 5834 | test -n "$BISON" && break |
b53bb419 | 5835 | done |
c068f670 | 5836 | test -n "$BISON" || BISON="none" |
b53bb419 | 5837 | |
c068f670 | 5838 | if test "$BISON" = "none" |
b53bb419 | 5839 | then |
c068f670 MM |
5840 | { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5 |
5841 | echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;} | |
f5818d2f AJ |
5842 | { (exit 1); exit 1; }; } |
5843 | fi | |
fc01b729 | 5844 | |
1d4db787 | 5845 | if test -n "$ac_tool_prefix"; then |
c80c290e AJ |
5846 | for ac_prog in gas as |
5847 | do | |
5848 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5849 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
5850 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5851 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1d4db787 MM |
5852 | if test "${ac_cv_prog_AS+set}" = set; then |
5853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5854 | else | |
5855 | if test -n "$AS"; then | |
5856 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
5857 | else | |
5858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5859 | for as_dir in $PATH | |
5860 | do | |
5861 | IFS=$as_save_IFS | |
5862 | test -z "$as_dir" && as_dir=. | |
5863 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 5864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
c80c290e | 5865 | ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
1d4db787 MM |
5866 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5867 | break 2 | |
5868 | fi | |
5869 | done | |
5870 | done | |
fc6ffb29 | 5871 | IFS=$as_save_IFS |
1d4db787 MM |
5872 | |
5873 | fi | |
5874 | fi | |
5875 | AS=$ac_cv_prog_AS | |
5876 | if test -n "$AS"; then | |
fc6ffb29 AJ |
5877 | { echo "$as_me:$LINENO: result: $AS" >&5 |
5878 | echo "${ECHO_T}$AS" >&6; } | |
1d4db787 | 5879 | else |
fc6ffb29 AJ |
5880 | { echo "$as_me:$LINENO: result: no" >&5 |
5881 | echo "${ECHO_T}no" >&6; } | |
1d4db787 MM |
5882 | fi |
5883 | ||
fc6ffb29 | 5884 | |
c80c290e AJ |
5885 | test -n "$AS" && break |
5886 | done | |
1d4db787 | 5887 | fi |
c80c290e | 5888 | if test -z "$AS"; then |
1d4db787 | 5889 | ac_ct_AS=$AS |
c80c290e AJ |
5890 | for ac_prog in gas as |
5891 | do | |
5892 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5893 | set dummy $ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
5894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
1d4db787 MM |
5896 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then |
5897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5898 | else | |
5899 | if test -n "$ac_ct_AS"; then | |
5900 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
5901 | else | |
5902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5903 | for as_dir in $PATH | |
5904 | do | |
5905 | IFS=$as_save_IFS | |
5906 | test -z "$as_dir" && as_dir=. | |
5907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 5908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
c80c290e | 5909 | ac_cv_prog_ac_ct_AS="$ac_prog" |
1d4db787 MM |
5910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5911 | break 2 | |
5912 | fi | |
5913 | done | |
5914 | done | |
fc6ffb29 | 5915 | IFS=$as_save_IFS |
1d4db787 | 5916 | |
1d4db787 MM |
5917 | fi |
5918 | fi | |
5919 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
5920 | if test -n "$ac_ct_AS"; then | |
fc6ffb29 AJ |
5921 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 |
5922 | echo "${ECHO_T}$ac_ct_AS" >&6; } | |
1d4db787 | 5923 | else |
fc6ffb29 AJ |
5924 | { echo "$as_me:$LINENO: result: no" >&5 |
5925 | echo "${ECHO_T}no" >&6; } | |
1d4db787 MM |
5926 | fi |
5927 | ||
fc6ffb29 | 5928 | |
c80c290e AJ |
5929 | test -n "$ac_ct_AS" && break |
5930 | done | |
c80c290e | 5931 | |
fc6ffb29 AJ |
5932 | if test "x$ac_ct_AS" = x; then |
5933 | AS="as" | |
5934 | else | |
5935 | case $cross_compiling:$ac_tool_warned in | |
5936 | yes:) | |
5937 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
5938 | whose name does not start with the host triplet. If you think this | |
5939 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
5940 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
5941 | whose name does not start with the host triplet. If you think this | |
5942 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
5943 | ac_tool_warned=yes ;; | |
5944 | esac | |
5945 | AS=$ac_ct_AS | |
5946 | fi | |
1d4db787 MM |
5947 | fi |
5948 | ||
eb5f89c5 AJ |
5949 | if test -n "$ac_tool_prefix"; then |
5950 | # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. | |
5951 | set dummy ${ac_tool_prefix}ld; ac_word=$2 | |
fc6ffb29 AJ |
5952 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
eb5f89c5 AJ |
5954 | if test "${ac_cv_prog_LD+set}" = set; then |
5955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5956 | else | |
5957 | if test -n "$LD"; then | |
5958 | ac_cv_prog_LD="$LD" # Let the user override the test. | |
5959 | else | |
5960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5961 | for as_dir in $PATH | |
5962 | do | |
5963 | IFS=$as_save_IFS | |
5964 | test -z "$as_dir" && as_dir=. | |
5965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 5966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
eb5f89c5 AJ |
5967 | ac_cv_prog_LD="${ac_tool_prefix}ld" |
5968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5969 | break 2 | |
5970 | fi | |
5971 | done | |
5972 | done | |
fc6ffb29 | 5973 | IFS=$as_save_IFS |
eb5f89c5 AJ |
5974 | |
5975 | fi | |
5976 | fi | |
5977 | LD=$ac_cv_prog_LD | |
5978 | if test -n "$LD"; then | |
fc6ffb29 AJ |
5979 | { echo "$as_me:$LINENO: result: $LD" >&5 |
5980 | echo "${ECHO_T}$LD" >&6; } | |
eb5f89c5 | 5981 | else |
fc6ffb29 AJ |
5982 | { echo "$as_me:$LINENO: result: no" >&5 |
5983 | echo "${ECHO_T}no" >&6; } | |
eb5f89c5 AJ |
5984 | fi |
5985 | ||
fc6ffb29 | 5986 | |
eb5f89c5 AJ |
5987 | fi |
5988 | if test -z "$ac_cv_prog_LD"; then | |
5989 | ac_ct_LD=$LD | |
5990 | # Extract the first word of "ld", so it can be a program name with args. | |
5991 | set dummy ld; ac_word=$2 | |
fc6ffb29 AJ |
5992 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5993 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
eb5f89c5 AJ |
5994 | if test "${ac_cv_prog_ac_ct_LD+set}" = set; then |
5995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5996 | else | |
5997 | if test -n "$ac_ct_LD"; then | |
5998 | ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. | |
5999 | else | |
6000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6001 | for as_dir in $PATH | |
6002 | do | |
6003 | IFS=$as_save_IFS | |
6004 | test -z "$as_dir" && as_dir=. | |
6005 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
eb5f89c5 AJ |
6007 | ac_cv_prog_ac_ct_LD="ld" |
6008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6009 | break 2 | |
6010 | fi | |
6011 | done | |
6012 | done | |
fc6ffb29 | 6013 | IFS=$as_save_IFS |
eb5f89c5 | 6014 | |
eb5f89c5 AJ |
6015 | fi |
6016 | fi | |
6017 | ac_ct_LD=$ac_cv_prog_ac_ct_LD | |
6018 | if test -n "$ac_ct_LD"; then | |
fc6ffb29 AJ |
6019 | { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5 |
6020 | echo "${ECHO_T}$ac_ct_LD" >&6; } | |
eb5f89c5 | 6021 | else |
fc6ffb29 AJ |
6022 | { echo "$as_me:$LINENO: result: no" >&5 |
6023 | echo "${ECHO_T}no" >&6; } | |
eb5f89c5 AJ |
6024 | fi |
6025 | ||
fc6ffb29 AJ |
6026 | if test "x$ac_ct_LD" = x; then |
6027 | LD="ld" | |
6028 | else | |
6029 | case $cross_compiling:$ac_tool_warned in | |
6030 | yes:) | |
6031 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6032 | whose name does not start with the host triplet. If you think this | |
6033 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6034 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6035 | whose name does not start with the host triplet. If you think this | |
6036 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6037 | ac_tool_warned=yes ;; | |
6038 | esac | |
6039 | LD=$ac_ct_LD | |
6040 | fi | |
eb5f89c5 AJ |
6041 | else |
6042 | LD="$ac_cv_prog_LD" | |
6043 | fi | |
6044 | ||
fc01b729 AJ |
6045 | if test -n "$ac_tool_prefix"; then |
6046 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6047 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
fc6ffb29 AJ |
6048 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc01b729 AJ |
6050 | if test "${ac_cv_prog_AR+set}" = set; then |
6051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6052 | else | |
6053 | if test -n "$AR"; then | |
6054 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6055 | else | |
6056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6057 | for as_dir in $PATH | |
6058 | do | |
6059 | IFS=$as_save_IFS | |
6060 | test -z "$as_dir" && as_dir=. | |
6061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6062 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc01b729 AJ |
6063 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6065 | break 2 | |
6066 | fi | |
6067 | done | |
6068 | done | |
fc6ffb29 | 6069 | IFS=$as_save_IFS |
fc01b729 AJ |
6070 | |
6071 | fi | |
6072 | fi | |
6073 | AR=$ac_cv_prog_AR | |
6074 | if test -n "$AR"; then | |
fc6ffb29 AJ |
6075 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6076 | echo "${ECHO_T}$AR" >&6; } | |
fc01b729 | 6077 | else |
fc6ffb29 AJ |
6078 | { echo "$as_me:$LINENO: result: no" >&5 |
6079 | echo "${ECHO_T}no" >&6; } | |
fc01b729 AJ |
6080 | fi |
6081 | ||
fc6ffb29 | 6082 | |
fc01b729 AJ |
6083 | fi |
6084 | if test -z "$ac_cv_prog_AR"; then | |
6085 | ac_ct_AR=$AR | |
6086 | # Extract the first word of "ar", so it can be a program name with args. | |
6087 | set dummy ar; ac_word=$2 | |
fc6ffb29 AJ |
6088 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc01b729 AJ |
6090 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6092 | else | |
6093 | if test -n "$ac_ct_AR"; then | |
6094 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6095 | else | |
6096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6097 | for as_dir in $PATH | |
6098 | do | |
6099 | IFS=$as_save_IFS | |
6100 | test -z "$as_dir" && as_dir=. | |
6101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc01b729 AJ |
6103 | ac_cv_prog_ac_ct_AR="ar" |
6104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6105 | break 2 | |
6106 | fi | |
6107 | done | |
6108 | done | |
fc6ffb29 | 6109 | IFS=$as_save_IFS |
fc01b729 | 6110 | |
fc01b729 AJ |
6111 | fi |
6112 | fi | |
6113 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6114 | if test -n "$ac_ct_AR"; then | |
fc6ffb29 AJ |
6115 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6116 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
fc01b729 | 6117 | else |
fc6ffb29 AJ |
6118 | { echo "$as_me:$LINENO: result: no" >&5 |
6119 | echo "${ECHO_T}no" >&6; } | |
fc01b729 AJ |
6120 | fi |
6121 | ||
fc6ffb29 AJ |
6122 | if test "x$ac_ct_AR" = x; then |
6123 | AR="ar" | |
6124 | else | |
6125 | case $cross_compiling:$ac_tool_warned in | |
6126 | yes:) | |
6127 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6128 | whose name does not start with the host triplet. If you think this | |
6129 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6130 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6131 | whose name does not start with the host triplet. If you think this | |
6132 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6133 | ac_tool_warned=yes ;; | |
6134 | esac | |
6135 | AR=$ac_ct_AR | |
6136 | fi | |
fc01b729 AJ |
6137 | else |
6138 | AR="$ac_cv_prog_AR" | |
6139 | fi | |
6140 | ||
f5818d2f AJ |
6141 | if test -n "$ac_tool_prefix"; then |
6142 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6143 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
fc6ffb29 AJ |
6144 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6145 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
6146 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6147 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff8331ea AJ |
6148 | else |
6149 | if test -n "$RANLIB"; then | |
6150 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6151 | else | |
daa2886c AJ |
6152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6153 | for as_dir in $PATH | |
6154 | do | |
6155 | IFS=$as_save_IFS | |
6156 | test -z "$as_dir" && as_dir=. | |
6157 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
6159 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6160 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6161 | break 2 | |
6162 | fi | |
6163 | done | |
f5818d2f | 6164 | done |
fc6ffb29 | 6165 | IFS=$as_save_IFS |
f5818d2f | 6166 | |
e2991ea7 | 6167 | fi |
e2991ea7 | 6168 | fi |
f5818d2f | 6169 | RANLIB=$ac_cv_prog_RANLIB |
ff8331ea | 6170 | if test -n "$RANLIB"; then |
fc6ffb29 AJ |
6171 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6172 | echo "${ECHO_T}$RANLIB" >&6; } | |
f5818d2f | 6173 | else |
fc6ffb29 AJ |
6174 | { echo "$as_me:$LINENO: result: no" >&5 |
6175 | echo "${ECHO_T}no" >&6; } | |
f5818d2f AJ |
6176 | fi |
6177 | ||
fc6ffb29 | 6178 | |
f5818d2f AJ |
6179 | fi |
6180 | if test -z "$ac_cv_prog_RANLIB"; then | |
6181 | ac_ct_RANLIB=$RANLIB | |
6182 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6183 | set dummy ranlib; ac_word=$2 | |
fc6ffb29 AJ |
6184 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
6186 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6188 | else | |
6189 | if test -n "$ac_ct_RANLIB"; then | |
6190 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6191 | else | |
daa2886c AJ |
6192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6193 | for as_dir in $PATH | |
6194 | do | |
6195 | IFS=$as_save_IFS | |
6196 | test -z "$as_dir" && as_dir=. | |
6197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6198 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
6199 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6201 | break 2 | |
6202 | fi | |
6203 | done | |
f5818d2f | 6204 | done |
fc6ffb29 | 6205 | IFS=$as_save_IFS |
f5818d2f | 6206 | |
f5818d2f AJ |
6207 | fi |
6208 | fi | |
6209 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6210 | if test -n "$ac_ct_RANLIB"; then | |
fc6ffb29 AJ |
6211 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6212 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
f5818d2f | 6213 | else |
fc6ffb29 AJ |
6214 | { echo "$as_me:$LINENO: result: no" >&5 |
6215 | echo "${ECHO_T}no" >&6; } | |
f5818d2f AJ |
6216 | fi |
6217 | ||
fc6ffb29 AJ |
6218 | if test "x$ac_ct_RANLIB" = x; then |
6219 | RANLIB=":" | |
6220 | else | |
6221 | case $cross_compiling:$ac_tool_warned in | |
6222 | yes:) | |
6223 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6224 | whose name does not start with the host triplet. If you think this | |
6225 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6226 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6227 | whose name does not start with the host triplet. If you think this | |
6228 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6229 | ac_tool_warned=yes ;; | |
6230 | esac | |
6231 | RANLIB=$ac_ct_RANLIB | |
6232 | fi | |
ff8331ea | 6233 | else |
f5818d2f | 6234 | RANLIB="$ac_cv_prog_RANLIB" |
ff8331ea | 6235 | fi |
e2991ea7 | 6236 | |
fc01b729 AJ |
6237 | if test -n "$ac_tool_prefix"; then |
6238 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6239 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
fc6ffb29 AJ |
6240 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc01b729 AJ |
6242 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6244 | else | |
6245 | if test -n "$STRIP"; then | |
6246 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6247 | else | |
6248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6249 | for as_dir in $PATH | |
6250 | do | |
6251 | IFS=$as_save_IFS | |
6252 | test -z "$as_dir" && as_dir=. | |
6253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6254 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc01b729 AJ |
6255 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6257 | break 2 | |
6258 | fi | |
6259 | done | |
6260 | done | |
fc6ffb29 | 6261 | IFS=$as_save_IFS |
fc01b729 AJ |
6262 | |
6263 | fi | |
6264 | fi | |
6265 | STRIP=$ac_cv_prog_STRIP | |
6266 | if test -n "$STRIP"; then | |
fc6ffb29 AJ |
6267 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6268 | echo "${ECHO_T}$STRIP" >&6; } | |
fc01b729 | 6269 | else |
fc6ffb29 AJ |
6270 | { echo "$as_me:$LINENO: result: no" >&5 |
6271 | echo "${ECHO_T}no" >&6; } | |
fc01b729 AJ |
6272 | fi |
6273 | ||
fc6ffb29 | 6274 | |
fc01b729 AJ |
6275 | fi |
6276 | if test -z "$ac_cv_prog_STRIP"; then | |
6277 | ac_ct_STRIP=$STRIP | |
6278 | # Extract the first word of "strip", so it can be a program name with args. | |
6279 | set dummy strip; ac_word=$2 | |
fc6ffb29 AJ |
6280 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6281 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc01b729 AJ |
6282 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6284 | else | |
6285 | if test -n "$ac_ct_STRIP"; then | |
6286 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6287 | else | |
6288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6289 | for as_dir in $PATH | |
6290 | do | |
6291 | IFS=$as_save_IFS | |
6292 | test -z "$as_dir" && as_dir=. | |
6293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6294 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc01b729 AJ |
6295 | ac_cv_prog_ac_ct_STRIP="strip" |
6296 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6297 | break 2 | |
6298 | fi | |
6299 | done | |
6300 | done | |
fc6ffb29 | 6301 | IFS=$as_save_IFS |
fc01b729 | 6302 | |
fc01b729 AJ |
6303 | fi |
6304 | fi | |
6305 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6306 | if test -n "$ac_ct_STRIP"; then | |
fc6ffb29 AJ |
6307 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6308 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
fc01b729 | 6309 | else |
fc6ffb29 AJ |
6310 | { echo "$as_me:$LINENO: result: no" >&5 |
6311 | echo "${ECHO_T}no" >&6; } | |
fc01b729 AJ |
6312 | fi |
6313 | ||
fc6ffb29 AJ |
6314 | if test "x$ac_ct_STRIP" = x; then |
6315 | STRIP="strip" | |
6316 | else | |
6317 | case $cross_compiling:$ac_tool_warned in | |
6318 | yes:) | |
6319 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6320 | whose name does not start with the host triplet. If you think this | |
6321 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6322 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6323 | whose name does not start with the host triplet. If you think this | |
6324 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6325 | ac_tool_warned=yes ;; | |
6326 | esac | |
6327 | STRIP=$ac_ct_STRIP | |
6328 | fi | |
fc01b729 AJ |
6329 | else |
6330 | STRIP="$ac_cv_prog_STRIP" | |
6331 | fi | |
6332 | ||
6333 | if test -n "$ac_tool_prefix"; then | |
6334 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
6335 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
fc6ffb29 AJ |
6336 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6337 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc01b729 AJ |
6338 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
6339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6340 | else | |
6341 | if test -n "$WINDRES"; then | |
6342 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
6343 | else | |
6344 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6345 | for as_dir in $PATH | |
6346 | do | |
6347 | IFS=$as_save_IFS | |
6348 | test -z "$as_dir" && as_dir=. | |
6349 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6350 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc01b729 AJ |
6351 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
6352 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6353 | break 2 | |
6354 | fi | |
6355 | done | |
6356 | done | |
fc6ffb29 | 6357 | IFS=$as_save_IFS |
fc01b729 AJ |
6358 | |
6359 | fi | |
6360 | fi | |
6361 | WINDRES=$ac_cv_prog_WINDRES | |
6362 | if test -n "$WINDRES"; then | |
fc6ffb29 AJ |
6363 | { echo "$as_me:$LINENO: result: $WINDRES" >&5 |
6364 | echo "${ECHO_T}$WINDRES" >&6; } | |
fc01b729 | 6365 | else |
fc6ffb29 AJ |
6366 | { echo "$as_me:$LINENO: result: no" >&5 |
6367 | echo "${ECHO_T}no" >&6; } | |
fc01b729 AJ |
6368 | fi |
6369 | ||
fc6ffb29 | 6370 | |
fc01b729 AJ |
6371 | fi |
6372 | if test -z "$ac_cv_prog_WINDRES"; then | |
6373 | ac_ct_WINDRES=$WINDRES | |
6374 | # Extract the first word of "windres", so it can be a program name with args. | |
6375 | set dummy windres; ac_word=$2 | |
fc6ffb29 AJ |
6376 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6377 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
fc01b729 AJ |
6378 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
6379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6380 | else | |
6381 | if test -n "$ac_ct_WINDRES"; then | |
6382 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
6383 | else | |
6384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6385 | for as_dir in $PATH | |
6386 | do | |
6387 | IFS=$as_save_IFS | |
6388 | test -z "$as_dir" && as_dir=. | |
6389 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
fc01b729 AJ |
6391 | ac_cv_prog_ac_ct_WINDRES="windres" |
6392 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6393 | break 2 | |
6394 | fi | |
6395 | done | |
6396 | done | |
fc6ffb29 | 6397 | IFS=$as_save_IFS |
fc01b729 | 6398 | |
fc01b729 AJ |
6399 | fi |
6400 | fi | |
6401 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
6402 | if test -n "$ac_ct_WINDRES"; then | |
fc6ffb29 AJ |
6403 | { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
6404 | echo "${ECHO_T}$ac_ct_WINDRES" >&6; } | |
fc01b729 | 6405 | else |
fc6ffb29 AJ |
6406 | { echo "$as_me:$LINENO: result: no" >&5 |
6407 | echo "${ECHO_T}no" >&6; } | |
fc01b729 AJ |
6408 | fi |
6409 | ||
fc6ffb29 AJ |
6410 | if test "x$ac_ct_WINDRES" = x; then |
6411 | WINDRES="false" | |
6412 | else | |
6413 | case $cross_compiling:$ac_tool_warned in | |
6414 | yes:) | |
6415 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
6416 | whose name does not start with the host triplet. If you think this | |
6417 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
6418 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
6419 | whose name does not start with the host triplet. If you think this | |
6420 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
6421 | ac_tool_warned=yes ;; | |
6422 | esac | |
6423 | WINDRES=$ac_ct_WINDRES | |
6424 | fi | |
fc01b729 AJ |
6425 | else |
6426 | WINDRES="$ac_cv_prog_WINDRES" | |
6427 | fi | |
6428 | ||
fc6ffb29 AJ |
6429 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
6430 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
f5818d2f AJ |
6431 | LN_S=$as_ln_s |
6432 | if test "$LN_S" = "ln -s"; then | |
fc6ffb29 AJ |
6433 | { echo "$as_me:$LINENO: result: yes" >&5 |
6434 | echo "${ECHO_T}yes" >&6; } | |
641ee76a | 6435 | else |
fc6ffb29 AJ |
6436 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
6437 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
641ee76a AJ |
6438 | fi |
6439 | ||
fc6ffb29 AJ |
6440 | { echo "$as_me:$LINENO: checking whether ln works" >&5 |
6441 | echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; } | |
df234a9f AJ |
6442 | rm -f conf$$ conf$$.file |
6443 | echo >conf$$.file | |
6444 | if ln conf$$.file conf$$ 2>/dev/null; then | |
6445 | LN=ln | |
6446 | ||
fc6ffb29 AJ |
6447 | { echo "$as_me:$LINENO: result: yes" >&5 |
6448 | echo "${ECHO_T}yes" >&6; } | |
df234a9f AJ |
6449 | else |
6450 | LN="cp -p" | |
6451 | ||
fc6ffb29 AJ |
6452 | { echo "$as_me:$LINENO: result: no, using $LN" >&5 |
6453 | echo "${ECHO_T}no, using $LN" >&6; } | |
df234a9f AJ |
6454 | fi |
6455 | rm -f conf$$ conf$$.file | |
fc6ffb29 AJ |
6456 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
6457 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
6458 | if test "${ac_cv_path_GREP+set}" = set; then | |
6459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6460 | else | |
6461 | # Extract the first word of "grep ggrep" to use in msg output | |
6462 | if test -z "$GREP"; then | |
6463 | set dummy grep ggrep; ac_prog_name=$2 | |
6464 | if test "${ac_cv_path_GREP+set}" = set; then | |
6465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6466 | else | |
6467 | ac_path_GREP_found=false | |
6468 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6470 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6471 | do | |
6472 | IFS=$as_save_IFS | |
6473 | test -z "$as_dir" && as_dir=. | |
6474 | for ac_prog in grep ggrep; do | |
6475 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6476 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
6477 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue | |
6478 | # Check for GNU ac_path_GREP and select it if it is found. | |
6479 | # Check for GNU $ac_path_GREP | |
6480 | case `"$ac_path_GREP" --version 2>&1` in | |
6481 | *GNU*) | |
6482 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
6483 | *) | |
6484 | ac_count=0 | |
6485 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
6486 | while : | |
6487 | do | |
6488 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6489 | mv "conftest.tmp" "conftest.in" | |
6490 | cp "conftest.in" "conftest.nl" | |
6491 | echo 'GREP' >> "conftest.nl" | |
6492 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6493 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6494 | ac_count=`expr $ac_count + 1` | |
6495 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
6496 | # Best one so far, save it but keep looking for a better one | |
6497 | ac_cv_path_GREP="$ac_path_GREP" | |
6498 | ac_path_GREP_max=$ac_count | |
6499 | fi | |
6500 | # 10*(2^10) chars as input seems more than enough | |
6501 | test $ac_count -gt 10 && break | |
6502 | done | |
0ebeb530 | 6503 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
fc6ffb29 AJ |
6504 | esac |
6505 | ||
6506 | ||
6507 | $ac_path_GREP_found && break 3 | |
6508 | done | |
6509 | done | |
6510 | ||
6511 | done | |
6512 | IFS=$as_save_IFS | |
6513 | ||
6514 | ||
6515 | fi | |
6516 | ||
6517 | GREP="$ac_cv_path_GREP" | |
6518 | if test -z "$GREP"; then | |
6519 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
6520 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
6521 | { (exit 1); exit 1; }; } | |
6522 | fi | |
6523 | ||
6524 | else | |
6525 | ac_cv_path_GREP=$GREP | |
6526 | fi | |
6527 | ||
6528 | ||
6529 | fi | |
6530 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
6531 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
6532 | GREP="$ac_cv_path_GREP" | |
6533 | ||
6534 | ||
6535 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
6536 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
6537 | if test "${ac_cv_path_EGREP+set}" = set; then | |
6538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6539 | else | |
6540 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
6541 | then ac_cv_path_EGREP="$GREP -E" | |
6542 | else | |
6543 | # Extract the first word of "egrep" to use in msg output | |
6544 | if test -z "$EGREP"; then | |
6545 | set dummy egrep; ac_prog_name=$2 | |
6546 | if test "${ac_cv_path_EGREP+set}" = set; then | |
c626491b AJ |
6547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6548 | else | |
fc6ffb29 AJ |
6549 | ac_path_EGREP_found=false |
6550 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6551 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6552 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6553 | do | |
6554 | IFS=$as_save_IFS | |
6555 | test -z "$as_dir" && as_dir=. | |
6556 | for ac_prog in egrep; do | |
6557 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6558 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6559 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue | |
6560 | # Check for GNU ac_path_EGREP and select it if it is found. | |
6561 | # Check for GNU $ac_path_EGREP | |
6562 | case `"$ac_path_EGREP" --version 2>&1` in | |
6563 | *GNU*) | |
6564 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
6565 | *) | |
6566 | ac_count=0 | |
6567 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
6568 | while : | |
6569 | do | |
6570 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6571 | mv "conftest.tmp" "conftest.in" | |
6572 | cp "conftest.in" "conftest.nl" | |
6573 | echo 'EGREP' >> "conftest.nl" | |
6574 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6575 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6576 | ac_count=`expr $ac_count + 1` | |
6577 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
6578 | # Best one so far, save it but keep looking for a better one | |
6579 | ac_cv_path_EGREP="$ac_path_EGREP" | |
6580 | ac_path_EGREP_max=$ac_count | |
c626491b | 6581 | fi |
fc6ffb29 AJ |
6582 | # 10*(2^10) chars as input seems more than enough |
6583 | test $ac_count -gt 10 && break | |
6584 | done | |
0ebeb530 | 6585 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
fc6ffb29 AJ |
6586 | esac |
6587 | ||
6588 | ||
6589 | $ac_path_EGREP_found && break 3 | |
6590 | done | |
6591 | done | |
6592 | ||
6593 | done | |
6594 | IFS=$as_save_IFS | |
6595 | ||
6596 | ||
6597 | fi | |
6598 | ||
6599 | EGREP="$ac_cv_path_EGREP" | |
6600 | if test -z "$EGREP"; then | |
6601 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
6602 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
6603 | { (exit 1); exit 1; }; } | |
6604 | fi | |
6605 | ||
6606 | else | |
6607 | ac_cv_path_EGREP=$EGREP | |
6608 | fi | |
6609 | ||
6610 | ||
6611 | fi | |
c626491b | 6612 | fi |
fc6ffb29 AJ |
6613 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
6614 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
6615 | EGREP="$ac_cv_path_EGREP" | |
c626491b AJ |
6616 | |
6617 | ||
ffe6b767 JJ |
6618 | # Extract the first word of "ldconfig", so it can be a program name with args. |
6619 | set dummy ldconfig; ac_word=$2 | |
fc6ffb29 AJ |
6620 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6621 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
6622 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
6623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ffe6b767 | 6624 | else |
f5818d2f AJ |
6625 | case $LDCONFIG in |
6626 | [\\/]* | ?:[\\/]*) | |
ffe6b767 JJ |
6627 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
6628 | ;; | |
6629 | *) | |
daa2886c | 6630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
91372b39 | 6631 | for as_dir in /sbin /usr/sbin $PATH |
daa2886c AJ |
6632 | do |
6633 | IFS=$as_save_IFS | |
6634 | test -z "$as_dir" && as_dir=. | |
6635 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6636 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
6637 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
6638 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6639 | break 2 | |
6640 | fi | |
6641 | done | |
f5818d2f | 6642 | done |
fc6ffb29 | 6643 | IFS=$as_save_IFS |
f5818d2f | 6644 | |
318f4cef | 6645 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
ffe6b767 JJ |
6646 | ;; |
6647 | esac | |
6648 | fi | |
f5818d2f | 6649 | LDCONFIG=$ac_cv_path_LDCONFIG |
f5818d2f | 6650 | if test -n "$LDCONFIG"; then |
fc6ffb29 AJ |
6651 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
6652 | echo "${ECHO_T}$LDCONFIG" >&6; } | |
d48ca948 | 6653 | else |
fc6ffb29 AJ |
6654 | { echo "$as_me:$LINENO: result: no" >&5 |
6655 | echo "${ECHO_T}no" >&6; } | |
d48ca948 HT |
6656 | fi |
6657 | ||
fc6ffb29 | 6658 | |
e24bcc77 AJ |
6659 | # Find a good install program. We prefer a C program (faster), |
6660 | # so one script is as good as another. But avoid the broken or | |
6661 | # incompatible versions: | |
6662 | # SysV /etc/install, /usr/sbin/install | |
6663 | # SunOS /usr/etc/install | |
6664 | # IRIX /sbin/install | |
6665 | # AIX /bin/install | |
6666 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6667 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6668 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6669 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
875927f6 | 6670 | # OS/2's system install, which has a completely different semantic |
e24bcc77 | 6671 | # ./install, which can be erroneously created by make from ./install.sh. |
fc6ffb29 AJ |
6672 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
6673 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
e24bcc77 AJ |
6674 | if test -z "$INSTALL"; then |
6675 | if test "${ac_cv_path_install+set}" = set; then | |
6676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6677 | else | |
6678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6679 | for as_dir in $PATH | |
6680 | do | |
6681 | IFS=$as_save_IFS | |
6682 | test -z "$as_dir" && as_dir=. | |
6683 | # Account for people who put trailing slashes in PATH elements. | |
6684 | case $as_dir/ in | |
6685 | ./ | .// | /cC/* | \ | |
6686 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
875927f6 | 6687 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
e24bcc77 AJ |
6688 | /usr/ucb/* ) ;; |
6689 | *) | |
6690 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6691 | # Don't use installbsd from OSF since it installs stuff as root | |
6692 | # by default. | |
6693 | for ac_prog in ginstall scoinst install; do | |
6694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6695 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
875927f6 AJ |
6696 | if test $ac_prog = install && |
6697 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6698 | # AIX install. It has an incompatible calling convention. | |
6699 | : | |
6700 | elif test $ac_prog = install && | |
6701 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6702 | # program-specific install script used by HP pwplus--don't use. | |
6703 | : | |
6704 | else | |
6705 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6706 | break 3 | |
6707 | fi | |
6708 | fi | |
e24bcc77 AJ |
6709 | done |
6710 | done | |
6711 | ;; | |
6712 | esac | |
6713 | done | |
fc6ffb29 | 6714 | IFS=$as_save_IFS |
e24bcc77 AJ |
6715 | |
6716 | ||
6717 | fi | |
6718 | if test "${ac_cv_path_install+set}" = set; then | |
6719 | INSTALL=$ac_cv_path_install | |
6720 | else | |
fc6ffb29 AJ |
6721 | # As a last resort, use the slow shell script. Don't cache a |
6722 | # value for INSTALL within a source directory, because that will | |
e24bcc77 | 6723 | # break other packages using the cache if that directory is |
fc6ffb29 | 6724 | # removed, or if the value is a relative name. |
e24bcc77 AJ |
6725 | INSTALL=$ac_install_sh |
6726 | fi | |
6727 | fi | |
fc6ffb29 AJ |
6728 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
6729 | echo "${ECHO_T}$INSTALL" >&6; } | |
e24bcc77 AJ |
6730 | |
6731 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6732 | # It thinks the first close brace ends the variable substitution. | |
6733 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6734 | ||
6735 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
6736 | ||
6737 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6738 | ||
6739 | case "$INSTALL" in | |
8418d8f3 | 6740 | [\\/$]* | ?:[\\/]* ) ;; |
e24bcc77 AJ |
6741 | *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;; |
6742 | esac | |
daa2886c | 6743 | |
a9be64e2 PS |
6744 | for ac_prog in lclint lint |
6745 | do | |
f5818d2f | 6746 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a9be64e2 | 6747 | set dummy $ac_prog; ac_word=$2 |
fc6ffb29 AJ |
6748 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
f5818d2f AJ |
6750 | if test "${ac_cv_prog_LINT+set}" = set; then |
6751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a9be64e2 PS |
6752 | else |
6753 | if test -n "$LINT"; then | |
6754 | ac_cv_prog_LINT="$LINT" # Let the user override the test. | |
6755 | else | |
daa2886c AJ |
6756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6757 | for as_dir in $PATH | |
6758 | do | |
6759 | IFS=$as_save_IFS | |
6760 | test -z "$as_dir" && as_dir=. | |
6761 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6762 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
daa2886c AJ |
6763 | ac_cv_prog_LINT="$ac_prog" |
6764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6765 | break 2 | |
6766 | fi | |
6767 | done | |
f5818d2f | 6768 | done |
fc6ffb29 | 6769 | IFS=$as_save_IFS |
f5818d2f | 6770 | |
a9be64e2 PS |
6771 | fi |
6772 | fi | |
f5818d2f | 6773 | LINT=$ac_cv_prog_LINT |
a9be64e2 | 6774 | if test -n "$LINT"; then |
fc6ffb29 AJ |
6775 | { echo "$as_me:$LINENO: result: $LINT" >&5 |
6776 | echo "${ECHO_T}$LINT" >&6; } | |
a9be64e2 | 6777 | else |
fc6ffb29 AJ |
6778 | { echo "$as_me:$LINENO: result: no" >&5 |
6779 | echo "${ECHO_T}no" >&6; } | |
a9be64e2 PS |
6780 | fi |
6781 | ||
fc6ffb29 | 6782 | |
f5818d2f | 6783 | test -n "$LINT" && break |
a9be64e2 PS |
6784 | done |
6785 | ||
6786 | if test "$LINT" = "lint" | |
6787 | then | |
6788 | LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4" | |
6789 | fi | |
6790 | ||
daa2886c AJ |
6791 | |
6792 | ||
00acb5f7 HD |
6793 | for ac_prog in fontforge |
6794 | do | |
6795 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6796 | set dummy $ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
6797 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6798 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
00acb5f7 HD |
6799 | if test "${ac_cv_prog_FONTFORGE+set}" = set; then |
6800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6801 | else | |
6802 | if test -n "$FONTFORGE"; then | |
6803 | ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test. | |
6804 | else | |
6805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6806 | for as_dir in $PATH | |
6807 | do | |
6808 | IFS=$as_save_IFS | |
6809 | test -z "$as_dir" && as_dir=. | |
6810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
00acb5f7 HD |
6812 | ac_cv_prog_FONTFORGE="$ac_prog" |
6813 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6814 | break 2 | |
6815 | fi | |
6816 | done | |
6817 | done | |
fc6ffb29 | 6818 | IFS=$as_save_IFS |
00acb5f7 HD |
6819 | |
6820 | fi | |
6821 | fi | |
6822 | FONTFORGE=$ac_cv_prog_FONTFORGE | |
6823 | if test -n "$FONTFORGE"; then | |
fc6ffb29 AJ |
6824 | { echo "$as_me:$LINENO: result: $FONTFORGE" >&5 |
6825 | echo "${ECHO_T}$FONTFORGE" >&6; } | |
00acb5f7 | 6826 | else |
fc6ffb29 AJ |
6827 | { echo "$as_me:$LINENO: result: no" >&5 |
6828 | echo "${ECHO_T}no" >&6; } | |
00acb5f7 HD |
6829 | fi |
6830 | ||
fc6ffb29 | 6831 | |
00acb5f7 HD |
6832 | test -n "$FONTFORGE" && break |
6833 | done | |
6834 | test -n "$FONTFORGE" || FONTFORGE="false" | |
b817a3c5 | 6835 | |
90c75bdd MM |
6836 | for ac_prog in pkg-config |
6837 | do | |
6838 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6839 | set dummy $ac_prog; ac_word=$2 | |
fc6ffb29 AJ |
6840 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
90c75bdd MM |
6842 | if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then |
6843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6844 | else | |
6845 | if test -n "$PKG_CONFIG"; then | |
6846 | ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. | |
6847 | else | |
6848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6849 | for as_dir in $PATH | |
6850 | do | |
6851 | IFS=$as_save_IFS | |
6852 | test -z "$as_dir" && as_dir=. | |
6853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
90c75bdd MM |
6855 | ac_cv_prog_PKG_CONFIG="$ac_prog" |
6856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6857 | break 2 | |
6858 | fi | |
6859 | done | |
6860 | done | |
fc6ffb29 | 6861 | IFS=$as_save_IFS |
90c75bdd MM |
6862 | |
6863 | fi | |
6864 | fi | |
6865 | PKG_CONFIG=$ac_cv_prog_PKG_CONFIG | |
6866 | if test -n "$PKG_CONFIG"; then | |
fc6ffb29 AJ |
6867 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
6868 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | |
90c75bdd | 6869 | else |
fc6ffb29 AJ |
6870 | { echo "$as_me:$LINENO: result: no" >&5 |
6871 | echo "${ECHO_T}no" >&6; } | |
90c75bdd MM |
6872 | fi |
6873 | ||
fc6ffb29 | 6874 | |
90c75bdd MM |
6875 | test -n "$PKG_CONFIG" && break |
6876 | done | |
6877 | test -n "$PKG_CONFIG" || PKG_CONFIG="false" | |
6878 | ||
b817a3c5 | 6879 | |
adbb0988 AJ |
6880 | case $host_cpu in |
6881 | *i[3456789]86*) | |
3d08f5d9 AJ |
6882 | # Extract the first word of "prelink", so it can be a program name with args. |
6883 | set dummy prelink; ac_word=$2 | |
fc6ffb29 AJ |
6884 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6885 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3d08f5d9 | 6886 | if test "${ac_cv_path_PRELINK+set}" = set; then |
adbb0988 AJ |
6887 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6888 | else | |
3d08f5d9 AJ |
6889 | case $PRELINK in |
6890 | [\\/]* | ?:[\\/]*) | |
6891 | ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path. | |
6892 | ;; | |
6893 | *) | |
6894 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
adbb0988 AJ |
6895 | for as_dir in /sbin /usr/sbin $PATH |
6896 | do | |
6897 | IFS=$as_save_IFS | |
6898 | test -z "$as_dir" && as_dir=. | |
6899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 6900 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
3d08f5d9 | 6901 | ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext" |
adbb0988 AJ |
6902 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6903 | break 2 | |
6904 | fi | |
6905 | done | |
6906 | done | |
fc6ffb29 | 6907 | IFS=$as_save_IFS |
adbb0988 | 6908 | |
3d08f5d9 AJ |
6909 | test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false" |
6910 | ;; | |
6911 | esac | |
adbb0988 | 6912 | fi |
3d08f5d9 | 6913 | PRELINK=$ac_cv_path_PRELINK |
adbb0988 | 6914 | if test -n "$PRELINK"; then |
fc6ffb29 AJ |
6915 | { echo "$as_me:$LINENO: result: $PRELINK" >&5 |
6916 | echo "${ECHO_T}$PRELINK" >&6; } | |
adbb0988 | 6917 | else |
fc6ffb29 AJ |
6918 | { echo "$as_me:$LINENO: result: no" >&5 |
6919 | echo "${ECHO_T}no" >&6; } | |
adbb0988 AJ |
6920 | fi |
6921 | ||
fc6ffb29 | 6922 | |
adbb0988 AJ |
6923 | ;; |
6924 | esac | |
6925 | ||
daa2886c AJ |
6926 | |
6927 | ||
fc6ffb29 AJ |
6928 | { echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5 |
6929 | echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; } | |
f5818d2f AJ |
6930 | if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then |
6931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
902da699 | 6932 | else |
f5818d2f | 6933 | ac_check_lib_save_LIBS=$LIBS |
902da699 | 6934 | LIBS="-li386 $LIBS" |
f5818d2f | 6935 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
6936 | /* confdefs.h. */ |
6937 | _ACEOF | |
6938 | cat confdefs.h >>conftest.$ac_ext | |
6939 | cat >>conftest.$ac_ext <<_ACEOF | |
6940 | /* end confdefs.h. */ | |
f5818d2f | 6941 | |
fc6ffb29 AJ |
6942 | /* Override any GCC internal prototype to avoid an error. |
6943 | Use char because int might match the return type of a GCC | |
6944 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
6945 | #ifdef __cplusplus |
6946 | extern "C" | |
6947 | #endif | |
f5818d2f AJ |
6948 | char i386_set_ldt (); |
6949 | int | |
6950 | main () | |
6951 | { | |
fc6ffb29 | 6952 | return i386_set_ldt (); |
f5818d2f AJ |
6953 | ; |
6954 | return 0; | |
6955 | } | |
6956 | _ACEOF | |
6957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
6958 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
f5818d2f | 6965 | ac_status=$? |
875927f6 AJ |
6966 | grep -v '^ *+' conftest.er1 >conftest.err |
6967 | rm -f conftest.er1 | |
6968 | cat conftest.err >&5 | |
daa2886c | 6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 6970 | (exit $ac_status); } && |
0ebeb530 JW |
6971 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6972 | { (case "(($ac_try" in | |
6973 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6974 | *) ac_try_echo=$ac_try;; | |
6975 | esac | |
6976 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6977 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
6978 | ac_status=$? |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6980 | (exit $ac_status); }; } && | |
6981 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
6982 | { (case "(($ac_try" in |
6983 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6984 | *) ac_try_echo=$ac_try;; | |
6985 | esac | |
6986 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6987 | (eval "$ac_try") 2>&5 | |
f5818d2f | 6988 | ac_status=$? |
daa2886c | 6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
6990 | (exit $ac_status); }; }; then |
6991 | ac_cv_lib_i386_i386_set_ldt=yes | |
6992 | else | |
6993 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
6994 | sed 's/^/| /' conftest.$ac_ext >&5 |
6995 | ||
fc6ffb29 | 6996 | ac_cv_lib_i386_i386_set_ldt=no |
f5818d2f | 6997 | fi |
fc6ffb29 | 6998 | |
0ebeb530 | 6999 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 7000 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
7001 | LIBS=$ac_check_lib_save_LIBS |
7002 | fi | |
fc6ffb29 AJ |
7003 | { echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5 |
7004 | echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; } | |
f5818d2f | 7005 | if test $ac_cv_lib_i386_i386_set_ldt = yes; then |
daa2886c | 7006 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7007 | #define HAVE_LIBI386 1 |
daa2886c | 7008 | _ACEOF |
02e90087 AJ |
7009 | |
7010 | LIBS="-li386 $LIBS" | |
7011 | ||
02e90087 AJ |
7012 | fi |
7013 | ||
daa2886c | 7014 | |
fc6ffb29 AJ |
7015 | { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 |
7016 | echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; } | |
f5818d2f AJ |
7017 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then |
7018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ecc7669d | 7019 | else |
f5818d2f | 7020 | ac_check_lib_save_LIBS=$LIBS |
ecc7669d | 7021 | LIBS="-lossaudio $LIBS" |
f5818d2f | 7022 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7023 | /* confdefs.h. */ |
7024 | _ACEOF | |
7025 | cat confdefs.h >>conftest.$ac_ext | |
7026 | cat >>conftest.$ac_ext <<_ACEOF | |
7027 | /* end confdefs.h. */ | |
f5818d2f | 7028 | |
fc6ffb29 AJ |
7029 | /* Override any GCC internal prototype to avoid an error. |
7030 | Use char because int might match the return type of a GCC | |
7031 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
7032 | #ifdef __cplusplus |
7033 | extern "C" | |
7034 | #endif | |
f5818d2f AJ |
7035 | char _oss_ioctl (); |
7036 | int | |
7037 | main () | |
7038 | { | |
fc6ffb29 | 7039 | return _oss_ioctl (); |
f5818d2f AJ |
7040 | ; |
7041 | return 0; | |
7042 | } | |
7043 | _ACEOF | |
7044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
7045 | if { (ac_try="$ac_link" |
7046 | case "(($ac_try" in | |
7047 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7048 | *) ac_try_echo=$ac_try;; | |
7049 | esac | |
7050 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7051 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 7052 | ac_status=$? |
875927f6 AJ |
7053 | grep -v '^ *+' conftest.er1 >conftest.err |
7054 | rm -f conftest.er1 | |
7055 | cat conftest.err >&5 | |
daa2886c | 7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7057 | (exit $ac_status); } && |
0ebeb530 JW |
7058 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7059 | { (case "(($ac_try" in | |
7060 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7061 | *) ac_try_echo=$ac_try;; | |
7062 | esac | |
7063 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7064 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
7065 | ac_status=$? |
7066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7067 | (exit $ac_status); }; } && | |
7068 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
7069 | { (case "(($ac_try" in |
7070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7071 | *) ac_try_echo=$ac_try;; | |
7072 | esac | |
7073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7074 | (eval "$ac_try") 2>&5 | |
f5818d2f | 7075 | ac_status=$? |
daa2886c | 7076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7077 | (exit $ac_status); }; }; then |
7078 | ac_cv_lib_ossaudio__oss_ioctl=yes | |
7079 | else | |
7080 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7081 | sed 's/^/| /' conftest.$ac_ext >&5 |
7082 | ||
fc6ffb29 | 7083 | ac_cv_lib_ossaudio__oss_ioctl=no |
f5818d2f | 7084 | fi |
fc6ffb29 | 7085 | |
0ebeb530 | 7086 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 7087 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
7088 | LIBS=$ac_check_lib_save_LIBS |
7089 | fi | |
fc6ffb29 AJ |
7090 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
7091 | echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; } | |
f5818d2f | 7092 | if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then |
daa2886c | 7093 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7094 | #define HAVE_LIBOSSAUDIO 1 |
daa2886c | 7095 | _ACEOF |
ecc7669d TV |
7096 | |
7097 | LIBS="-lossaudio $LIBS" | |
7098 | ||
ecc7669d TV |
7099 | fi |
7100 | ||
daa2886c | 7101 | |
e533e972 AJ |
7102 | { echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
7103 | echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; } | |
7104 | if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then | |
f5818d2f AJ |
7105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7106 | else | |
e533e972 AJ |
7107 | ac_check_lib_save_LIBS=$LIBS |
7108 | LIBS="-lxpg4 $LIBS" | |
7109 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
7110 | /* confdefs.h. */ |
7111 | _ACEOF | |
7112 | cat confdefs.h >>conftest.$ac_ext | |
7113 | cat >>conftest.$ac_ext <<_ACEOF | |
7114 | /* end confdefs.h. */ | |
875927f6 | 7115 | |
fc6ffb29 AJ |
7116 | /* Override any GCC internal prototype to avoid an error. |
7117 | Use char because int might match the return type of a GCC | |
7118 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
7119 | #ifdef __cplusplus |
7120 | extern "C" | |
7121 | #endif | |
e533e972 | 7122 | char _xpg4_setrunelocale (); |
e24bcc77 AJ |
7123 | int |
7124 | main () | |
7125 | { | |
e533e972 | 7126 | return _xpg4_setrunelocale (); |
f5818d2f AJ |
7127 | ; |
7128 | return 0; | |
7129 | } | |
7130 | _ACEOF | |
7131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
7132 | if { (ac_try="$ac_link" |
7133 | case "(($ac_try" in | |
7134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7135 | *) ac_try_echo=$ac_try;; | |
7136 | esac | |
7137 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7138 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 7139 | ac_status=$? |
875927f6 AJ |
7140 | grep -v '^ *+' conftest.er1 >conftest.err |
7141 | rm -f conftest.er1 | |
7142 | cat conftest.err >&5 | |
daa2886c | 7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7144 | (exit $ac_status); } && |
0ebeb530 JW |
7145 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7146 | { (case "(($ac_try" in | |
7147 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7148 | *) ac_try_echo=$ac_try;; | |
7149 | esac | |
7150 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7151 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
7152 | ac_status=$? |
7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7154 | (exit $ac_status); }; } && | |
7155 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
7156 | { (case "(($ac_try" in |
7157 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7158 | *) ac_try_echo=$ac_try;; | |
7159 | esac | |
7160 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7161 | (eval "$ac_try") 2>&5 | |
f5818d2f | 7162 | ac_status=$? |
daa2886c | 7163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7164 | (exit $ac_status); }; }; then |
e533e972 | 7165 | ac_cv_lib_xpg4__xpg4_setrunelocale=yes |
f5818d2f AJ |
7166 | else |
7167 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7168 | sed 's/^/| /' conftest.$ac_ext >&5 |
7169 | ||
e533e972 | 7170 | ac_cv_lib_xpg4__xpg4_setrunelocale=no |
f5818d2f | 7171 | fi |
fc6ffb29 | 7172 | |
0ebeb530 | 7173 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 7174 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 7175 | LIBS=$ac_check_lib_save_LIBS |
f5818d2f | 7176 | fi |
e533e972 AJ |
7177 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 |
7178 | echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } | |
7179 | if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then | |
daa2886c | 7180 | cat >>confdefs.h <<_ACEOF |
e533e972 | 7181 | #define HAVE_LIBXPG4 1 |
daa2886c | 7182 | _ACEOF |
f5818d2f | 7183 | |
e533e972 | 7184 | LIBS="-lxpg4 $LIBS" |
f5818d2f | 7185 | |
e533e972 AJ |
7186 | fi |
7187 | ||
7188 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 | |
7189 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } | |
7190 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then | |
f5818d2f AJ |
7191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7192 | else | |
7193 | ac_check_lib_save_LIBS=$LIBS | |
e533e972 | 7194 | LIBS="-lpthread $LIBS" |
f5818d2f | 7195 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7196 | /* confdefs.h. */ |
7197 | _ACEOF | |
7198 | cat confdefs.h >>conftest.$ac_ext | |
7199 | cat >>conftest.$ac_ext <<_ACEOF | |
7200 | /* end confdefs.h. */ | |
f5818d2f | 7201 | |
fc6ffb29 AJ |
7202 | /* Override any GCC internal prototype to avoid an error. |
7203 | Use char because int might match the return type of a GCC | |
7204 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
7205 | #ifdef __cplusplus |
7206 | extern "C" | |
7207 | #endif | |
e533e972 | 7208 | char pthread_create (); |
f5818d2f AJ |
7209 | int |
7210 | main () | |
7211 | { | |
e533e972 | 7212 | return pthread_create (); |
f5818d2f AJ |
7213 | ; |
7214 | return 0; | |
7215 | } | |
7216 | _ACEOF | |
7217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
7218 | if { (ac_try="$ac_link" |
7219 | case "(($ac_try" in | |
7220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7221 | *) ac_try_echo=$ac_try;; | |
7222 | esac | |
7223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7224 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 7225 | ac_status=$? |
875927f6 AJ |
7226 | grep -v '^ *+' conftest.er1 >conftest.err |
7227 | rm -f conftest.er1 | |
7228 | cat conftest.err >&5 | |
daa2886c | 7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7230 | (exit $ac_status); } && |
0ebeb530 JW |
7231 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7232 | { (case "(($ac_try" in | |
7233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7234 | *) ac_try_echo=$ac_try;; | |
7235 | esac | |
7236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7237 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
7238 | ac_status=$? |
7239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7240 | (exit $ac_status); }; } && | |
7241 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
7242 | { (case "(($ac_try" in |
7243 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7244 | *) ac_try_echo=$ac_try;; | |
7245 | esac | |
7246 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7247 | (eval "$ac_try") 2>&5 | |
f5818d2f | 7248 | ac_status=$? |
daa2886c | 7249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7250 | (exit $ac_status); }; }; then |
e533e972 | 7251 | ac_cv_lib_pthread_pthread_create=yes |
f5818d2f AJ |
7252 | else |
7253 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7254 | sed 's/^/| /' conftest.$ac_ext >&5 |
7255 | ||
e533e972 | 7256 | ac_cv_lib_pthread_pthread_create=no |
f5818d2f | 7257 | fi |
fc6ffb29 | 7258 | |
0ebeb530 | 7259 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 7260 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
7261 | LIBS=$ac_check_lib_save_LIBS |
7262 | fi | |
e533e972 AJ |
7263 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
7264 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } | |
7265 | if test $ac_cv_lib_pthread_pthread_create = yes; then | |
7266 | LIBPTHREAD="-lpthread" | |
2e8e2334 | 7267 | |
ea584724 PS |
7268 | fi |
7269 | ||
f070fda2 | 7270 | |
e533e972 AJ |
7271 | XLIB="" |
7272 | ||
7273 | XFILES="" | |
daa2886c | 7274 | |
e533e972 AJ |
7275 | OPENGLFILES="" |
7276 | ||
7277 | GLU32FILES="" | |
7278 | ||
7279 | OPENGL_LIBS="" | |
7280 | ||
7281 | ||
7282 | ||
7283 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
7284 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7285 | if test "${ac_cv_header_stdc+set}" = set; then | |
f5818d2f AJ |
7286 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7287 | else | |
7288 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
7289 | /* confdefs.h. */ |
7290 | _ACEOF | |
7291 | cat confdefs.h >>conftest.$ac_ext | |
7292 | cat >>conftest.$ac_ext <<_ACEOF | |
7293 | /* end confdefs.h. */ | |
e533e972 AJ |
7294 | #include <stdlib.h> |
7295 | #include <stdarg.h> | |
7296 | #include <string.h> | |
7297 | #include <float.h> | |
715a55e7 | 7298 | |
e24bcc77 AJ |
7299 | int |
7300 | main () | |
7301 | { | |
e533e972 | 7302 | |
f5818d2f AJ |
7303 | ; |
7304 | return 0; | |
7305 | } | |
7306 | _ACEOF | |
e533e972 AJ |
7307 | rm -f conftest.$ac_objext |
7308 | if { (ac_try="$ac_compile" | |
0ebeb530 JW |
7309 | case "(($ac_try" in |
7310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7311 | *) ac_try_echo=$ac_try;; | |
7312 | esac | |
7313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
e533e972 | 7314 | (eval "$ac_compile") 2>conftest.er1 |
f5818d2f | 7315 | ac_status=$? |
875927f6 AJ |
7316 | grep -v '^ *+' conftest.er1 >conftest.err |
7317 | rm -f conftest.er1 | |
7318 | cat conftest.err >&5 | |
daa2886c | 7319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7320 | (exit $ac_status); } && |
0ebeb530 JW |
7321 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7322 | { (case "(($ac_try" in | |
7323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7324 | *) ac_try_echo=$ac_try;; | |
7325 | esac | |
7326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7327 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
7328 | ac_status=$? |
7329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7330 | (exit $ac_status); }; } && | |
e533e972 | 7331 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
7332 | { (case "(($ac_try" in |
7333 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7334 | *) ac_try_echo=$ac_try;; | |
7335 | esac | |
7336 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7337 | (eval "$ac_try") 2>&5 | |
f5818d2f | 7338 | ac_status=$? |
daa2886c | 7339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7340 | (exit $ac_status); }; }; then |
e533e972 | 7341 | ac_cv_header_stdc=yes |
f5818d2f AJ |
7342 | else |
7343 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7344 | sed 's/^/| /' conftest.$ac_ext >&5 |
7345 | ||
e533e972 | 7346 | ac_cv_header_stdc=no |
f5818d2f | 7347 | fi |
fc6ffb29 | 7348 | |
e533e972 AJ |
7349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7350 | ||
7351 | if test $ac_cv_header_stdc = yes; then | |
7352 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7353 | cat >conftest.$ac_ext <<_ACEOF | |
7354 | /* confdefs.h. */ | |
7355 | _ACEOF | |
7356 | cat confdefs.h >>conftest.$ac_ext | |
7357 | cat >>conftest.$ac_ext <<_ACEOF | |
7358 | /* end confdefs.h. */ | |
7359 | #include <string.h> | |
7360 | ||
7361 | _ACEOF | |
7362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7363 | $EGREP "memchr" >/dev/null 2>&1; then | |
7364 | : | |
7365 | else | |
7366 | ac_cv_header_stdc=no | |
f5818d2f | 7367 | fi |
e533e972 AJ |
7368 | rm -f conftest* |
7369 | ||
7370 | fi | |
7371 | ||
7372 | if test $ac_cv_header_stdc = yes; then | |
7373 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7374 | cat >conftest.$ac_ext <<_ACEOF | |
7375 | /* confdefs.h. */ | |
daa2886c | 7376 | _ACEOF |
e533e972 AJ |
7377 | cat confdefs.h >>conftest.$ac_ext |
7378 | cat >>conftest.$ac_ext <<_ACEOF | |
7379 | /* end confdefs.h. */ | |
7380 | #include <stdlib.h> | |
f5818d2f | 7381 | |
e533e972 AJ |
7382 | _ACEOF |
7383 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7384 | $EGREP "free" >/dev/null 2>&1; then | |
7385 | : | |
f5818d2f | 7386 | else |
e533e972 AJ |
7387 | ac_cv_header_stdc=no |
7388 | fi | |
7389 | rm -f conftest* | |
f5818d2f | 7390 | |
e533e972 AJ |
7391 | fi |
7392 | ||
7393 | if test $ac_cv_header_stdc = yes; then | |
7394 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7395 | if test "$cross_compiling" = yes; then | |
7396 | : | |
f5818d2f | 7397 | else |
e533e972 | 7398 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7399 | /* confdefs.h. */ |
7400 | _ACEOF | |
7401 | cat confdefs.h >>conftest.$ac_ext | |
7402 | cat >>conftest.$ac_ext <<_ACEOF | |
7403 | /* end confdefs.h. */ | |
e533e972 AJ |
7404 | #include <ctype.h> |
7405 | #include <stdlib.h> | |
7406 | #if ((' ' & 0x0FF) == 0x020) | |
7407 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7408 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7409 | #else | |
7410 | # define ISLOWER(c) \ | |
7411 | (('a' <= (c) && (c) <= 'i') \ | |
7412 | || ('j' <= (c) && (c) <= 'r') \ | |
7413 | || ('s' <= (c) && (c) <= 'z')) | |
7414 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
f5818d2f | 7415 | #endif |
e533e972 AJ |
7416 | |
7417 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
f5818d2f AJ |
7418 | int |
7419 | main () | |
7420 | { | |
e533e972 AJ |
7421 | int i; |
7422 | for (i = 0; i < 256; i++) | |
7423 | if (XOR (islower (i), ISLOWER (i)) | |
7424 | || toupper (i) != TOUPPER (i)) | |
7425 | return 2; | |
f5818d2f AJ |
7426 | return 0; |
7427 | } | |
7428 | _ACEOF | |
e533e972 | 7429 | rm -f conftest$ac_exeext |
0ebeb530 JW |
7430 | if { (ac_try="$ac_link" |
7431 | case "(($ac_try" in | |
7432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7433 | *) ac_try_echo=$ac_try;; | |
7434 | esac | |
7435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
e533e972 | 7436 | (eval "$ac_link") 2>&5 |
f5818d2f | 7437 | ac_status=$? |
daa2886c | 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
e533e972 | 7439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
0ebeb530 JW |
7440 | { (case "(($ac_try" in |
7441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7442 | *) ac_try_echo=$ac_try;; | |
7443 | esac | |
7444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7445 | (eval "$ac_try") 2>&5 | |
f5818d2f | 7446 | ac_status=$? |
daa2886c | 7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7448 | (exit $ac_status); }; }; then |
e533e972 | 7449 | : |
f5818d2f | 7450 | else |
e533e972 AJ |
7451 | echo "$as_me: program exited with status $ac_status" >&5 |
7452 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7453 | sed 's/^/| /' conftest.$ac_ext >&5 |
7454 | ||
e533e972 AJ |
7455 | ( exit $ac_status ) |
7456 | ac_cv_header_stdc=no | |
f5818d2f | 7457 | fi |
e533e972 | 7458 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 7459 | fi |
715a55e7 | 7460 | |
715a55e7 | 7461 | |
715a55e7 | 7462 | fi |
ea584724 | 7463 | fi |
e533e972 AJ |
7464 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7465 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
7466 | if test $ac_cv_header_stdc = yes; then | |
daa2886c | 7467 | |
e533e972 AJ |
7468 | cat >>confdefs.h <<\_ACEOF |
7469 | #define STDC_HEADERS 1 | |
e24bcc77 | 7470 | _ACEOF |
875927f6 | 7471 | |
e533e972 | 7472 | fi |
875927f6 | 7473 | |
e533e972 | 7474 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
875927f6 | 7475 | |
875927f6 | 7476 | |
c555274d | 7477 | |
e24bcc77 | 7478 | |
fc6ffb29 | 7479 | |
c555274d | 7480 | |
c555274d | 7481 | |
e533e972 AJ |
7482 | |
7483 | ||
7484 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7485 | inttypes.h stdint.h unistd.h | |
7486 | do | |
7487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7488 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7490 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f | 7491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d30dfd24 | 7492 | else |
e533e972 | 7493 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7494 | /* confdefs.h. */ |
7495 | _ACEOF | |
7496 | cat confdefs.h >>conftest.$ac_ext | |
7497 | cat >>conftest.$ac_ext <<_ACEOF | |
7498 | /* end confdefs.h. */ | |
e533e972 | 7499 | $ac_includes_default |
f5818d2f | 7500 | |
e533e972 | 7501 | #include <$ac_header> |
f5818d2f | 7502 | _ACEOF |
e533e972 AJ |
7503 | rm -f conftest.$ac_objext |
7504 | if { (ac_try="$ac_compile" | |
0ebeb530 JW |
7505 | case "(($ac_try" in |
7506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7507 | *) ac_try_echo=$ac_try;; | |
7508 | esac | |
7509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
e533e972 | 7510 | (eval "$ac_compile") 2>conftest.er1 |
f5818d2f | 7511 | ac_status=$? |
875927f6 AJ |
7512 | grep -v '^ *+' conftest.er1 >conftest.err |
7513 | rm -f conftest.er1 | |
7514 | cat conftest.err >&5 | |
daa2886c | 7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7516 | (exit $ac_status); } && |
0ebeb530 JW |
7517 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7518 | { (case "(($ac_try" in | |
7519 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7520 | *) ac_try_echo=$ac_try;; | |
7521 | esac | |
7522 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7523 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
7524 | ac_status=$? |
7525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7526 | (exit $ac_status); }; } && | |
e533e972 | 7527 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
7528 | { (case "(($ac_try" in |
7529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7530 | *) ac_try_echo=$ac_try;; | |
7531 | esac | |
7532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7533 | (eval "$ac_try") 2>&5 | |
f5818d2f | 7534 | ac_status=$? |
daa2886c | 7535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 7536 | (exit $ac_status); }; }; then |
e533e972 | 7537 | eval "$as_ac_Header=yes" |
3b943bca FG |
7538 | else |
7539 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7540 | sed 's/^/| /' conftest.$ac_ext >&5 |
7541 | ||
e533e972 | 7542 | eval "$as_ac_Header=no" |
3b943bca | 7543 | fi |
fc6ffb29 | 7544 | |
e533e972 | 7545 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3b943bca | 7546 | fi |
e533e972 AJ |
7547 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7548 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7549 | echo "${ECHO_T}$ac_res" >&6; } | |
7550 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
daa2886c | 7551 | cat >>confdefs.h <<_ACEOF |
e533e972 | 7552 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
728bedcf MM |
7553 | _ACEOF |
7554 | ||
728bedcf MM |
7555 | fi |
7556 | ||
7557 | done | |
7558 | ||
7559 | ||
daa2886c | 7560 | |
7ff12568 RK |
7561 | |
7562 | ||
7563 | ||
7564 | ||
7565 | ||
7566 | ||
7567 | ||
7568 | ||
7569 | ||
7570 | ||
7571 | ||
7572 | ||
7573 | ||
7574 | ||
7575 | ||
7576 | ||
7577 | ||
7578 | ||
7579 | ||
7580 | ||
7581 | ||
7582 | ||
7583 | ||
7584 | ||
7585 | ||
7586 | ||
7587 | ||
7588 | ||
7589 | ||
7590 | ||
7591 | ||
7592 | ||
7593 | ||
7594 | ||
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | ||
7604 | ||
7605 | ||
7606 | ||
7607 | ||
7608 | ||
7609 | ||
7610 | ||
7611 | ||
7612 | ||
7613 | ||
7614 | ||
7615 | ||
7616 | ||
7617 | ||
7618 | ||
7619 | ||
7620 | ||
7621 | ||
7622 | ||
7623 | ||
7624 | ||
7625 | ||
7626 | ||
7627 | ||
7628 | ||
7ff12568 RK |
7629 | |
7630 | ||
7631 | ||
7632 | ||
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
73482144 AJ |
7639 | |
7640 | ||
7641 | ||
7642 | ||
7643 | ||
7644 | ||
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7ff12568 | 7649 | |
a2bbacb0 | 7650 | |
57279184 | 7651 | |
64c07786 EM |
7652 | |
7653 | ||
888eaae7 | 7654 | |
ea524def HL |
7655 | |
7656 | ||
0f6c0394 | 7657 | |
ebe0484d | 7658 | |
1e5153cf | 7659 | |
0cd0626d | 7660 | |
144a5353 EM |
7661 | |
7662 | ||
9603ee07 | 7663 | |
7ff12568 RK |
7664 | |
7665 | ||
7666 | for ac_header in \ | |
144a5353 EM |
7667 | AudioUnit/AudioUnit.h \ |
7668 | CoreAudio/CoreAudio.h \ | |
0f6c0394 | 7669 | IOKit/IOKitLib.h \ |
73482144 | 7670 | alsa/asoundlib.h \ |
7ff12568 RK |
7671 | arpa/inet.h \ |
7672 | arpa/nameser.h \ | |
888eaae7 | 7673 | asm/types.h \ |
73482144 | 7674 | capi20.h \ |
7ff12568 | 7675 | cups/cups.h \ |
73482144 | 7676 | curses.h \ |
7ff12568 | 7677 | direct.h \ |
73482144 | 7678 | dlfcn.h \ |
7ff12568 RK |
7679 | elf.h \ |
7680 | float.h \ | |
7681 | fontconfig/fontconfig.h \ | |
7682 | getopt.h \ | |
7ff12568 RK |
7683 | ieeefp.h \ |
7684 | io.h \ | |
7685 | jack/jack.h \ | |
7686 | jpeglib.h \ | |
ea524def | 7687 | lber.h \ |
7ff12568 | 7688 | lcms.h \ |
73482144 | 7689 | lcms/lcms.h \ |
ea524def | 7690 | ldap.h \ |
73482144 | 7691 | libaudioio.h \ |
7ff12568 RK |
7692 | link.h \ |
7693 | linux/cdrom.h \ | |
7694 | linux/compiler.h \ | |
7695 | linux/hdreg.h \ | |
7696 | linux/input.h \ | |
7697 | linux/ioctl.h \ | |
7698 | linux/joystick.h \ | |
7699 | linux/major.h \ | |
7700 | linux/param.h \ | |
7701 | linux/serial.h \ | |
7702 | linux/ucdrom.h \ | |
64c07786 | 7703 | mach/machine.h \ |
7ff12568 | 7704 | machine/cpu.h \ |
64c07786 | 7705 | machine/limits.h \ |
73482144 | 7706 | machine/soundcard.h \ |
7ff12568 | 7707 | mntent.h \ |
73482144 | 7708 | ncurses.h \ |
7ff12568 RK |
7709 | netdb.h \ |
7710 | netinet/in.h \ | |
7711 | netinet/in_systm.h \ | |
7712 | netinet/tcp.h \ | |
7713 | netinet/tcp_fsm.h \ | |
1e5153cf | 7714 | openssl/err.h \ |
7ff12568 | 7715 | openssl/ssl.h \ |
57279184 | 7716 | poll.h \ |
7ff12568 RK |
7717 | process.h \ |
7718 | pthread.h \ | |
7ff12568 RK |
7719 | pwd.h \ |
7720 | regex.h \ | |
7721 | sched.h \ | |
7ff12568 RK |
7722 | scsi/scsi.h \ |
7723 | scsi/scsi_ioctl.h \ | |
73482144 AJ |
7724 | scsi/sg.h \ |
7725 | soundcard.h \ | |
7ff12568 RK |
7726 | stdint.h \ |
7727 | strings.h \ | |
73482144 | 7728 | sys/asoundlib.h \ |
7ff12568 RK |
7729 | sys/cdio.h \ |
7730 | sys/elf32.h \ | |
7ff12568 | 7731 | sys/epoll.h \ |
73482144 | 7732 | sys/errno.h \ |
c8278926 | 7733 | sys/event.h \ |
7ff12568 | 7734 | sys/exec_elf.h \ |
7ff12568 | 7735 | sys/filio.h \ |
7ff12568 RK |
7736 | sys/ioctl.h \ |
7737 | sys/ipc.h \ | |
ebe0484d | 7738 | sys/limits.h \ |
7ff12568 RK |
7739 | sys/link.h \ |
7740 | sys/lwp.h \ | |
7741 | sys/mman.h \ | |
7742 | sys/modem.h \ | |
7743 | sys/msg.h \ | |
0844b702 | 7744 | sys/mtio.h \ |
7ff12568 RK |
7745 | sys/param.h \ |
7746 | sys/poll.h \ | |
9603ee07 | 7747 | sys/prctl.h \ |
7ff12568 RK |
7748 | sys/ptrace.h \ |
7749 | sys/reg.h \ | |
0cd0626d | 7750 | sys/resource.h \ |
7ff12568 RK |
7751 | sys/scsiio.h \ |
7752 | sys/shm.h \ | |
7753 | sys/signal.h \ | |
7754 | sys/socket.h \ | |
7755 | sys/sockio.h \ | |
73482144 | 7756 | sys/soundcard.h \ |
7ff12568 RK |
7757 | sys/statvfs.h \ |
7758 | sys/strtio.h \ | |
7759 | sys/syscall.h \ | |
7760 | sys/sysctl.h \ | |
7761 | sys/time.h \ | |
7762 | sys/times.h \ | |
7763 | sys/uio.h \ | |
7764 | sys/un.h \ | |
7ff12568 RK |
7765 | sys/vm86.h \ |
7766 | sys/wait.h \ | |
7767 | syscall.h \ | |
7768 | termios.h \ | |
73482144 | 7769 | unicode/ubidi.h \ |
7ff12568 RK |
7770 | unistd.h \ |
7771 | utime.h \ | |
7772 | valgrind/memcheck.h | |
7773 | ||
24110288 | 7774 | do |
f5818d2f | 7775 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
fc6ffb29 AJ |
7776 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
7777 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f | 7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
daa2886c | 7781 | fi |
fc6ffb29 AJ |
7782 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7783 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7784 | echo "${ECHO_T}$ac_res" >&6; } | |
f5818d2f | 7785 | else |
daa2886c | 7786 | # Is the header compilable? |
fc6ffb29 AJ |
7787 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7788 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
daa2886c | 7789 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7790 | /* confdefs.h. */ |
7791 | _ACEOF | |
7792 | cat confdefs.h >>conftest.$ac_ext | |
7793 | cat >>conftest.$ac_ext <<_ACEOF | |
7794 | /* end confdefs.h. */ | |
daa2886c | 7795 | $ac_includes_default |
f5818d2f AJ |
7796 | #include <$ac_header> |
7797 | _ACEOF | |
daa2886c | 7798 | rm -f conftest.$ac_objext |
0ebeb530 JW |
7799 | if { (ac_try="$ac_compile" |
7800 | case "(($ac_try" in | |
7801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7802 | *) ac_try_echo=$ac_try;; | |
7803 | esac | |
7804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7805 | (eval "$ac_compile") 2>conftest.er1 | |
daa2886c | 7806 | ac_status=$? |
875927f6 AJ |
7807 | grep -v '^ *+' conftest.er1 >conftest.err |
7808 | rm -f conftest.er1 | |
7809 | cat conftest.err >&5 | |
daa2886c AJ |
7810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7811 | (exit $ac_status); } && | |
0ebeb530 JW |
7812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7813 | { (case "(($ac_try" in | |
7814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7815 | *) ac_try_echo=$ac_try;; | |
7816 | esac | |
7817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7818 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
7819 | ac_status=$? |
7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7821 | (exit $ac_status); }; } && | |
7822 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
7823 | { (case "(($ac_try" in |
7824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7825 | *) ac_try_echo=$ac_try;; | |
7826 | esac | |
7827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7828 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
7829 | ac_status=$? |
7830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7831 | (exit $ac_status); }; }; then | |
7832 | ac_header_compiler=yes | |
7833 | else | |
7834 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7835 | sed 's/^/| /' conftest.$ac_ext >&5 |
7836 | ||
fc6ffb29 | 7837 | ac_header_compiler=no |
daa2886c | 7838 | fi |
fc6ffb29 | 7839 | |
0ebeb530 | 7840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
7841 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7842 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
daa2886c AJ |
7843 | |
7844 | # Is the header present? | |
fc6ffb29 AJ |
7845 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7846 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
daa2886c | 7847 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7848 | /* confdefs.h. */ |
7849 | _ACEOF | |
7850 | cat confdefs.h >>conftest.$ac_ext | |
7851 | cat >>conftest.$ac_ext <<_ACEOF | |
7852 | /* end confdefs.h. */ | |
daa2886c AJ |
7853 | #include <$ac_header> |
7854 | _ACEOF | |
0ebeb530 JW |
7855 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
7856 | case "(($ac_try" in | |
7857 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7858 | *) ac_try_echo=$ac_try;; | |
7859 | esac | |
7860 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7861 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 7862 | ac_status=$? |
11af04e3 | 7863 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
7864 | rm -f conftest.er1 |
7865 | cat conftest.err >&5 | |
daa2886c | 7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
7867 | (exit $ac_status); } >/dev/null; then |
7868 | if test -s conftest.err; then | |
7869 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 7870 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
7871 | else |
7872 | ac_cpp_err= | |
7873 | fi | |
7874 | else | |
7875 | ac_cpp_err=yes | |
7876 | fi | |
7877 | if test -z "$ac_cpp_err"; then | |
daa2886c | 7878 | ac_header_preproc=yes |
f5818d2f AJ |
7879 | else |
7880 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
7881 | sed 's/^/| /' conftest.$ac_ext >&5 |
7882 | ||
daa2886c | 7883 | ac_header_preproc=no |
24110288 | 7884 | fi |
fc6ffb29 | 7885 | |
f5818d2f | 7886 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
7887 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7888 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
daa2886c AJ |
7889 | |
7890 | # So? What about this header? | |
875927f6 AJ |
7891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
7892 | yes:no: ) | |
daa2886c AJ |
7893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
7894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
875927f6 AJ |
7895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
7896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7897 | ac_header_preproc=yes | |
e24bcc77 | 7898 | ;; |
875927f6 | 7899 | no:yes:* ) |
daa2886c AJ |
7900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
7901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
875927f6 AJ |
7902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
7903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
daa2886c | 7908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
e24bcc77 | 7909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
875927f6 AJ |
7910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
7911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
fc6ffb29 | 7912 | ( cat <<\_ASBOX |
e24bcc77 | 7913 | ## ------------------------------------ ## |
875927f6 | 7914 | ## Report this to wine-devel@winehq.org ## |
e24bcc77 AJ |
7915 | ## ------------------------------------ ## |
7916 | _ASBOX | |
fc6ffb29 | 7917 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
e24bcc77 | 7918 | ;; |
daa2886c | 7919 | esac |
fc6ffb29 AJ |
7920 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7922 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
daa2886c AJ |
7923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7924 | else | |
875927f6 | 7925 | eval "$as_ac_Header=\$ac_header_preproc" |
24110288 | 7926 | fi |
fc6ffb29 AJ |
7927 | ac_res=`eval echo '${'$as_ac_Header'}'` |
7928 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7929 | echo "${ECHO_T}$ac_res" >&6; } | |
daa2886c AJ |
7930 | |
7931 | fi | |
f5818d2f | 7932 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 7933 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 7934 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c AJ |
7935 | _ACEOF |
7936 | ||
7ff12568 | 7937 | fi |
f5818d2f | 7938 | |
7ff12568 | 7939 | done |
255b486c | 7940 | |
fc6ffb29 AJ |
7941 | { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
7942 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; } | |
7ff12568 | 7943 | if test "${ac_cv_header_stat_broken+set}" = set; then |
f5818d2f AJ |
7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7945 | else | |
044b5c41 | 7946 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
7947 | /* confdefs.h. */ |
7948 | _ACEOF | |
7949 | cat confdefs.h >>conftest.$ac_ext | |
7950 | cat >>conftest.$ac_ext <<_ACEOF | |
7951 | /* end confdefs.h. */ | |
7ff12568 RK |
7952 | #include <sys/types.h> |
7953 | #include <sys/stat.h> | |
044b5c41 | 7954 | |
fc6ffb29 | 7955 | #if defined S_ISBLK && defined S_IFDIR |
7ff12568 RK |
7956 | # if S_ISBLK (S_IFDIR) |
7957 | You lose. | |
7958 | # endif | |
7959 | #endif | |
255b486c | 7960 | |
fc6ffb29 | 7961 | #if defined S_ISBLK && defined S_IFCHR |
7ff12568 RK |
7962 | # if S_ISBLK (S_IFCHR) |
7963 | You lose. | |
7964 | # endif | |
7965 | #endif | |
255b486c | 7966 | |
fc6ffb29 | 7967 | #if defined S_ISLNK && defined S_IFREG |
7ff12568 RK |
7968 | # if S_ISLNK (S_IFREG) |
7969 | You lose. | |
7970 | # endif | |
7971 | #endif | |
f5818d2f | 7972 | |
fc6ffb29 | 7973 | #if defined S_ISSOCK && defined S_IFREG |
7ff12568 RK |
7974 | # if S_ISSOCK (S_IFREG) |
7975 | You lose. | |
7976 | # endif | |
f5818d2f | 7977 | #endif |
7ff12568 | 7978 | |
f5818d2f | 7979 | _ACEOF |
7ff12568 RK |
7980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
7981 | $EGREP "You lose" >/dev/null 2>&1; then | |
7982 | ac_cv_header_stat_broken=yes | |
f5818d2f | 7983 | else |
7ff12568 | 7984 | ac_cv_header_stat_broken=no |
f5818d2f | 7985 | fi |
7ff12568 RK |
7986 | rm -f conftest* |
7987 | ||
f5818d2f | 7988 | fi |
fc6ffb29 AJ |
7989 | { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
7990 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; } | |
7ff12568 | 7991 | if test $ac_cv_header_stat_broken = yes; then |
f5818d2f | 7992 | |
daa2886c | 7993 | cat >>confdefs.h <<\_ACEOF |
7ff12568 | 7994 | #define STAT_MACROS_BROKEN 1 |
daa2886c | 7995 | _ACEOF |
c90fb25c | 7996 | |
c90fb25c OK |
7997 | fi |
7998 | ||
daa2886c | 7999 | |
7ff12568 | 8000 | |
2d6d4e96 HL |
8001 | |
8002 | ||
8003 | ||
8004 | ||
8005 | for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h | |
b079add3 AJ |
8006 | do |
8007 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8008 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8009 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8010 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
b079add3 AJ |
8011 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8012 | else | |
8013 | cat >conftest.$ac_ext <<_ACEOF | |
8014 | /* confdefs.h. */ | |
8015 | _ACEOF | |
8016 | cat confdefs.h >>conftest.$ac_ext | |
8017 | cat >>conftest.$ac_ext <<_ACEOF | |
8018 | /* end confdefs.h. */ | |
2d6d4e96 HL |
8019 | #include <sys/types.h> |
8020 | #if HAVE_SYS_PARAM_H | |
8021 | # include <sys/param.h> | |
8022 | #endif | |
b079add3 AJ |
8023 | |
8024 | #include <$ac_header> | |
8025 | _ACEOF | |
8026 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
8027 | if { (ac_try="$ac_compile" |
8028 | case "(($ac_try" in | |
8029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8030 | *) ac_try_echo=$ac_try;; | |
8031 | esac | |
8032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8033 | (eval "$ac_compile") 2>conftest.er1 | |
b079add3 AJ |
8034 | ac_status=$? |
8035 | grep -v '^ *+' conftest.er1 >conftest.err | |
8036 | rm -f conftest.er1 | |
8037 | cat conftest.err >&5 | |
8038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8039 | (exit $ac_status); } && | |
0ebeb530 JW |
8040 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8041 | { (case "(($ac_try" in | |
8042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8043 | *) ac_try_echo=$ac_try;; | |
8044 | esac | |
8045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8046 | (eval "$ac_try") 2>&5 | |
b079add3 AJ |
8047 | ac_status=$? |
8048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8049 | (exit $ac_status); }; } && | |
8050 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
8051 | { (case "(($ac_try" in |
8052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8053 | *) ac_try_echo=$ac_try;; | |
8054 | esac | |
8055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8056 | (eval "$ac_try") 2>&5 | |
b079add3 AJ |
8057 | ac_status=$? |
8058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8059 | (exit $ac_status); }; }; then | |
8060 | eval "$as_ac_Header=yes" | |
8061 | else | |
8062 | echo "$as_me: failed program was:" >&5 | |
8063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8064 | ||
fc6ffb29 | 8065 | eval "$as_ac_Header=no" |
b079add3 | 8066 | fi |
fc6ffb29 | 8067 | |
0ebeb530 | 8068 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b079add3 | 8069 | fi |
fc6ffb29 AJ |
8070 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8071 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8072 | echo "${ECHO_T}$ac_res" >&6; } | |
b079add3 AJ |
8073 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8074 | cat >>confdefs.h <<_ACEOF | |
8075 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8076 | _ACEOF | |
8077 | ||
8078 | fi | |
8079 | ||
8080 | done | |
8081 | ||
8082 | ||
8083 | ||
7ff12568 RK |
8084 | |
8085 | ||
8086 | ||
8087 | ||
8088 | ||
2d6d4e96 | 8089 | for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h |
7ff12568 RK |
8090 | do |
8091 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8092 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8093 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8094 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7ff12568 RK |
8095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8096 | else | |
8097 | cat >conftest.$ac_ext <<_ACEOF | |
8098 | /* confdefs.h. */ | |
8099 | _ACEOF | |
8100 | cat confdefs.h >>conftest.$ac_ext | |
8101 | cat >>conftest.$ac_ext <<_ACEOF | |
8102 | /* end confdefs.h. */ | |
2d6d4e96 HL |
8103 | #include <sys/types.h> |
8104 | #if HAVE_SYS_SOCKET_H | |
8105 | # include <sys/socket.h> | |
8106 | #endif | |
7ff12568 RK |
8107 | |
8108 | #include <$ac_header> | |
8109 | _ACEOF | |
8110 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
8111 | if { (ac_try="$ac_compile" |
8112 | case "(($ac_try" in | |
8113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8114 | *) ac_try_echo=$ac_try;; | |
8115 | esac | |
8116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8117 | (eval "$ac_compile") 2>conftest.er1 | |
7ff12568 RK |
8118 | ac_status=$? |
8119 | grep -v '^ *+' conftest.er1 >conftest.err | |
8120 | rm -f conftest.er1 | |
8121 | cat conftest.err >&5 | |
8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8123 | (exit $ac_status); } && | |
0ebeb530 JW |
8124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8125 | { (case "(($ac_try" in | |
8126 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8127 | *) ac_try_echo=$ac_try;; | |
8128 | esac | |
8129 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8130 | (eval "$ac_try") 2>&5 | |
7ff12568 RK |
8131 | ac_status=$? |
8132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8133 | (exit $ac_status); }; } && | |
8134 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
8135 | { (case "(($ac_try" in |
8136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8137 | *) ac_try_echo=$ac_try;; | |
8138 | esac | |
8139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8140 | (eval "$ac_try") 2>&5 | |
7ff12568 RK |
8141 | ac_status=$? |
8142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8143 | (exit $ac_status); }; }; then | |
8144 | eval "$as_ac_Header=yes" | |
8145 | else | |
8146 | echo "$as_me: failed program was:" >&5 | |
8147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8148 | ||
fc6ffb29 | 8149 | eval "$as_ac_Header=no" |
7ff12568 | 8150 | fi |
fc6ffb29 | 8151 | |
0ebeb530 | 8152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7ff12568 | 8153 | fi |
fc6ffb29 AJ |
8154 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8155 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8156 | echo "${ECHO_T}$ac_res" >&6; } | |
7ff12568 RK |
8157 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8158 | cat >>confdefs.h <<_ACEOF | |
8159 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
daa2886c | 8160 | _ACEOF |
5b6879c5 | 8161 | |
5b6879c5 FJ |
8162 | fi |
8163 | ||
7ff12568 | 8164 | done |
daa2886c | 8165 | |
7ff12568 | 8166 | |
2d6d4e96 | 8167 | |
faf05dfd FG |
8168 | for ac_header in linux/ipx.h |
8169 | do | |
8170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8171 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8172 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8173 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8175 | else | |
8176 | cat >conftest.$ac_ext <<_ACEOF | |
8177 | /* confdefs.h. */ | |
8178 | _ACEOF | |
8179 | cat confdefs.h >>conftest.$ac_ext | |
8180 | cat >>conftest.$ac_ext <<_ACEOF | |
8181 | /* end confdefs.h. */ | |
8182 | #include <sys/types.h> | |
8183 | #ifdef HAVE_ASM_TYPES_H | |
8184 | # include <asm/types.h> | |
8185 | #endif | |
8186 | #if HAVE_SYS_SOCKET_H | |
8187 | # include <sys/socket.h> | |
8188 | #endif | |
8189 | ||
8190 | #include <$ac_header> | |
8191 | _ACEOF | |
8192 | rm -f conftest.$ac_objext | |
8193 | if { (ac_try="$ac_compile" | |
8194 | case "(($ac_try" in | |
8195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8196 | *) ac_try_echo=$ac_try;; | |
8197 | esac | |
8198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8199 | (eval "$ac_compile") 2>conftest.er1 | |
8200 | ac_status=$? | |
8201 | grep -v '^ *+' conftest.er1 >conftest.err | |
8202 | rm -f conftest.er1 | |
8203 | cat conftest.err >&5 | |
8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8205 | (exit $ac_status); } && | |
8206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8207 | { (case "(($ac_try" in | |
8208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8209 | *) ac_try_echo=$ac_try;; | |
8210 | esac | |
8211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8212 | (eval "$ac_try") 2>&5 | |
8213 | ac_status=$? | |
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8215 | (exit $ac_status); }; } && | |
8216 | { ac_try='test -s conftest.$ac_objext' | |
8217 | { (case "(($ac_try" in | |
8218 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8219 | *) ac_try_echo=$ac_try;; | |
8220 | esac | |
8221 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8222 | (eval "$ac_try") 2>&5 | |
8223 | ac_status=$? | |
8224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8225 | (exit $ac_status); }; }; then | |
8226 | eval "$as_ac_Header=yes" | |
8227 | else | |
8228 | echo "$as_me: failed program was:" >&5 | |
8229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8230 | ||
8231 | eval "$as_ac_Header=no" | |
8232 | fi | |
8233 | ||
8234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8235 | fi | |
8236 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
8237 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8238 | echo "${ECHO_T}$ac_res" >&6; } | |
8239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8240 | cat >>confdefs.h <<_ACEOF | |
8241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8242 | _ACEOF | |
8243 | ||
8244 | fi | |
8245 | ||
8246 | done | |
8247 | ||
8248 | ||
8249 | ||
2d6d4e96 HL |
8250 | for ac_header in resolv.h |
8251 | do | |
8252 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8253 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8255 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f | 8256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d94475bd | 8257 | else |
2d6d4e96 | 8258 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
8259 | /* confdefs.h. */ |
8260 | _ACEOF | |
8261 | cat confdefs.h >>conftest.$ac_ext | |
8262 | cat >>conftest.$ac_ext <<_ACEOF | |
8263 | /* end confdefs.h. */ | |
2d6d4e96 HL |
8264 | #include <sys/types.h> |
8265 | #if HAVE_SYS_SOCKET_H | |
8266 | # include <sys/socket.h> | |
8267 | #endif | |
8268 | #if HAVE_NETINET_IN_H | |
8269 | # include <netinet/in.h> | |
8270 | #endif | |
8271 | #if HAVE_ARPA_NAMESER_H | |
8272 | # include <arpa/nameser.h> | |
8273 | #endif | |
f5818d2f | 8274 | |
2d6d4e96 | 8275 | #include <$ac_header> |
f5818d2f | 8276 | _ACEOF |
2d6d4e96 | 8277 | rm -f conftest.$ac_objext |
0ebeb530 JW |
8278 | if { (ac_try="$ac_compile" |
8279 | case "(($ac_try" in | |
8280 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8281 | *) ac_try_echo=$ac_try;; | |
8282 | esac | |
8283 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8284 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 8285 | ac_status=$? |
875927f6 AJ |
8286 | grep -v '^ *+' conftest.er1 >conftest.err |
8287 | rm -f conftest.er1 | |
8288 | cat conftest.err >&5 | |
daa2886c | 8289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8290 | (exit $ac_status); } && |
0ebeb530 JW |
8291 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8292 | { (case "(($ac_try" in | |
8293 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8294 | *) ac_try_echo=$ac_try;; | |
8295 | esac | |
8296 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8297 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
8298 | ac_status=$? |
8299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8300 | (exit $ac_status); }; } && | |
2d6d4e96 | 8301 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
8302 | { (case "(($ac_try" in |
8303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8304 | *) ac_try_echo=$ac_try;; | |
8305 | esac | |
8306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8307 | (eval "$ac_try") 2>&5 | |
f5818d2f | 8308 | ac_status=$? |
daa2886c | 8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8310 | (exit $ac_status); }; }; then |
2d6d4e96 | 8311 | eval "$as_ac_Header=yes" |
f5818d2f AJ |
8312 | else |
8313 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
8314 | sed 's/^/| /' conftest.$ac_ext >&5 |
8315 | ||
fc6ffb29 | 8316 | eval "$as_ac_Header=no" |
f5818d2f | 8317 | fi |
fc6ffb29 | 8318 | |
0ebeb530 | 8319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 8320 | fi |
fc6ffb29 AJ |
8321 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8322 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8323 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
8324 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8325 | cat >>confdefs.h <<_ACEOF | |
8326 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
daa2886c | 8327 | _ACEOF |
10ad97c8 | 8328 | |
7ff12568 | 8329 | fi |
f5818d2f | 8330 | |
2d6d4e96 | 8331 | done |
7ff12568 | 8332 | |
2d6d4e96 HL |
8333 | |
8334 | ||
8335 | for ac_header in ucontext.h | |
8336 | do | |
8337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8338 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8339 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8340 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f | 8341 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
02e90087 | 8342 | else |
2d6d4e96 | 8343 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
8344 | /* confdefs.h. */ |
8345 | _ACEOF | |
8346 | cat confdefs.h >>conftest.$ac_ext | |
8347 | cat >>conftest.$ac_ext <<_ACEOF | |
8348 | /* end confdefs.h. */ | |
2d6d4e96 | 8349 | #include <signal.h> |
f5818d2f | 8350 | |
4ff90b47 GP |
8351 | #include <$ac_header> |
8352 | _ACEOF | |
8353 | rm -f conftest.$ac_objext | |
8354 | if { (ac_try="$ac_compile" | |
8355 | case "(($ac_try" in | |
8356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8357 | *) ac_try_echo=$ac_try;; | |
8358 | esac | |
8359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8360 | (eval "$ac_compile") 2>conftest.er1 | |
8361 | ac_status=$? | |
8362 | grep -v '^ *+' conftest.er1 >conftest.err | |
8363 | rm -f conftest.er1 | |
8364 | cat conftest.err >&5 | |
8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8366 | (exit $ac_status); } && | |
8367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
8368 | { (case "(($ac_try" in | |
8369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8370 | *) ac_try_echo=$ac_try;; | |
8371 | esac | |
8372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8373 | (eval "$ac_try") 2>&5 | |
8374 | ac_status=$? | |
8375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8376 | (exit $ac_status); }; } && | |
8377 | { ac_try='test -s conftest.$ac_objext' | |
8378 | { (case "(($ac_try" in | |
8379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8380 | *) ac_try_echo=$ac_try;; | |
8381 | esac | |
8382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8383 | (eval "$ac_try") 2>&5 | |
8384 | ac_status=$? | |
8385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8386 | (exit $ac_status); }; }; then | |
8387 | eval "$as_ac_Header=yes" | |
8388 | else | |
8389 | echo "$as_me: failed program was:" >&5 | |
8390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8391 | ||
8392 | eval "$as_ac_Header=no" | |
8393 | fi | |
8394 | ||
8395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8396 | fi | |
8397 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
8398 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8399 | echo "${ECHO_T}$ac_res" >&6; } | |
8400 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8401 | cat >>confdefs.h <<_ACEOF | |
8402 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8403 | _ACEOF | |
8404 | ||
8405 | fi | |
8406 | ||
8407 | done | |
8408 | ||
8409 | ||
8410 | ||
8411 | for ac_header in pthread_np.h | |
8412 | do | |
8413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8414 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8416 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
8417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8418 | else | |
8419 | cat >conftest.$ac_ext <<_ACEOF | |
8420 | /* confdefs.h. */ | |
8421 | _ACEOF | |
8422 | cat confdefs.h >>conftest.$ac_ext | |
8423 | cat >>conftest.$ac_ext <<_ACEOF | |
8424 | /* end confdefs.h. */ | |
8425 | #ifdef HAVE_PTHREAD_H | |
8426 | #include <pthread.h> | |
8427 | #endif | |
8428 | ||
2d6d4e96 | 8429 | #include <$ac_header> |
f5818d2f | 8430 | _ACEOF |
2d6d4e96 | 8431 | rm -f conftest.$ac_objext |
0ebeb530 JW |
8432 | if { (ac_try="$ac_compile" |
8433 | case "(($ac_try" in | |
8434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8435 | *) ac_try_echo=$ac_try;; | |
8436 | esac | |
8437 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8438 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 8439 | ac_status=$? |
875927f6 AJ |
8440 | grep -v '^ *+' conftest.er1 >conftest.err |
8441 | rm -f conftest.er1 | |
8442 | cat conftest.err >&5 | |
daa2886c | 8443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8444 | (exit $ac_status); } && |
0ebeb530 JW |
8445 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8446 | { (case "(($ac_try" in | |
8447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8448 | *) ac_try_echo=$ac_try;; | |
8449 | esac | |
8450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8451 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
8452 | ac_status=$? |
8453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8454 | (exit $ac_status); }; } && | |
2d6d4e96 | 8455 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
8456 | { (case "(($ac_try" in |
8457 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8458 | *) ac_try_echo=$ac_try;; | |
8459 | esac | |
8460 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8461 | (eval "$ac_try") 2>&5 | |
f5818d2f | 8462 | ac_status=$? |
daa2886c | 8463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8464 | (exit $ac_status); }; }; then |
2d6d4e96 | 8465 | eval "$as_ac_Header=yes" |
f5818d2f AJ |
8466 | else |
8467 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
8468 | sed 's/^/| /' conftest.$ac_ext >&5 |
8469 | ||
fc6ffb29 | 8470 | eval "$as_ac_Header=no" |
f5818d2f | 8471 | fi |
fc6ffb29 | 8472 | |
0ebeb530 | 8473 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 8474 | fi |
fc6ffb29 AJ |
8475 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8476 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8477 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
8478 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8479 | cat >>confdefs.h <<_ACEOF | |
8480 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
daa2886c | 8481 | _ACEOF |
10ad97c8 | 8482 | |
f2b77ccb JS |
8483 | fi |
8484 | ||
2d6d4e96 | 8485 | done |
daa2886c | 8486 | |
2d6d4e96 HL |
8487 | |
8488 | ||
faf05dfd | 8489 | for ac_header in linux/videodev.h |
2d6d4e96 HL |
8490 | do |
8491 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8492 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8493 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8494 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f | 8495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
399931a2 | 8496 | else |
2d6d4e96 | 8497 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
8498 | /* confdefs.h. */ |
8499 | _ACEOF | |
8500 | cat confdefs.h >>conftest.$ac_ext | |
8501 | cat >>conftest.$ac_ext <<_ACEOF | |
8502 | /* end confdefs.h. */ | |
2d6d4e96 HL |
8503 | #ifdef HAVE_SYS_TIME_H |
8504 | #include <sys/time.h> | |
f5818d2f | 8505 | #endif |
2d6d4e96 HL |
8506 | #include <sys/types.h> |
8507 | #ifdef HAVE_ASM_TYPES_H | |
8508 | #include <asm/types.h> | |
8509 | #endif | |
8510 | ||
8511 | #include <$ac_header> | |
f5818d2f | 8512 | _ACEOF |
2d6d4e96 | 8513 | rm -f conftest.$ac_objext |
0ebeb530 JW |
8514 | if { (ac_try="$ac_compile" |
8515 | case "(($ac_try" in | |
8516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8517 | *) ac_try_echo=$ac_try;; | |
8518 | esac | |
8519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8520 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 8521 | ac_status=$? |
875927f6 AJ |
8522 | grep -v '^ *+' conftest.er1 >conftest.err |
8523 | rm -f conftest.er1 | |
8524 | cat conftest.err >&5 | |
daa2886c | 8525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8526 | (exit $ac_status); } && |
0ebeb530 JW |
8527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8528 | { (case "(($ac_try" in | |
8529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8530 | *) ac_try_echo=$ac_try;; | |
8531 | esac | |
8532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8533 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
8534 | ac_status=$? |
8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8536 | (exit $ac_status); }; } && | |
2d6d4e96 | 8537 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
8538 | { (case "(($ac_try" in |
8539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8540 | *) ac_try_echo=$ac_try;; | |
8541 | esac | |
8542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8543 | (eval "$ac_try") 2>&5 | |
f5818d2f | 8544 | ac_status=$? |
daa2886c | 8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 8546 | (exit $ac_status); }; }; then |
2d6d4e96 | 8547 | eval "$as_ac_Header=yes" |
f5818d2f AJ |
8548 | else |
8549 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
8550 | sed 's/^/| /' conftest.$ac_ext >&5 |
8551 | ||
fc6ffb29 | 8552 | eval "$as_ac_Header=no" |
f5818d2f | 8553 | fi |
fc6ffb29 | 8554 | |
0ebeb530 | 8555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 8556 | fi |
fc6ffb29 AJ |
8557 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8558 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8559 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
8560 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8561 | cat >>confdefs.h <<_ACEOF | |
8562 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
daa2886c | 8563 | _ACEOF |
f2b77ccb | 8564 | |
399931a2 SC |
8565 | fi |
8566 | ||
2d6d4e96 | 8567 | done |
daa2886c | 8568 | |
2d6d4e96 HL |
8569 | |
8570 | ||
8571 | for ac_header in linux/capi.h | |
8572 | do | |
8573 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8574 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8576 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d6d4e96 HL |
8577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8578 | else | |
8579 | cat >conftest.$ac_ext <<_ACEOF | |
8580 | /* confdefs.h. */ | |
8581 | _ACEOF | |
8f174bc6 AP |
8582 | cat confdefs.h >>conftest.$ac_ext |
8583 | cat >>conftest.$ac_ext <<_ACEOF | |
8584 | /* end confdefs.h. */ | |
2d6d4e96 | 8585 | #define __user |
7ff12568 | 8586 | |
2d6d4e96 | 8587 | #include <$ac_header> |
8f174bc6 | 8588 | _ACEOF |
2d6d4e96 | 8589 | rm -f conftest.$ac_objext |
0ebeb530 JW |
8590 | if { (ac_try="$ac_compile" |
8591 | case "(($ac_try" in | |
8592 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8593 | *) ac_try_echo=$ac_try;; | |
8594 | esac | |
8595 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8596 | (eval "$ac_compile") 2>conftest.er1 | |
8f174bc6 | 8597 | ac_status=$? |
875927f6 AJ |
8598 | grep -v '^ *+' conftest.er1 >conftest.err |
8599 | rm -f conftest.er1 | |
8600 | cat conftest.err >&5 | |
8f174bc6 AP |
8601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8602 | (exit $ac_status); } && | |
0ebeb530 JW |
8603 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8604 | { (case "(($ac_try" in | |
8605 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8606 | *) ac_try_echo=$ac_try;; | |
8607 | esac | |
8608 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8609 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
8610 | ac_status=$? |
8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8612 | (exit $ac_status); }; } && | |
2d6d4e96 | 8613 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
8614 | { (case "(($ac_try" in |
8615 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8616 | *) ac_try_echo=$ac_try;; | |
8617 | esac | |
8618 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8619 | (eval "$ac_try") 2>&5 | |
8f174bc6 AP |
8620 | ac_status=$? |
8621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8622 | (exit $ac_status); }; }; then | |
2d6d4e96 | 8623 | eval "$as_ac_Header=yes" |
7ff12568 RK |
8624 | else |
8625 | echo "$as_me: failed program was:" >&5 | |
8626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8627 | ||
fc6ffb29 | 8628 | eval "$as_ac_Header=no" |
7ff12568 | 8629 | fi |
fc6ffb29 | 8630 | |
0ebeb530 | 8631 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7ff12568 | 8632 | fi |
fc6ffb29 AJ |
8633 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8634 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8635 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
8636 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8637 | cat >>confdefs.h <<_ACEOF | |
8638 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8639 | _ACEOF | |
7ff12568 | 8640 | |
2d6d4e96 HL |
8641 | fi |
8642 | ||
8643 | done | |
8644 | ||
8645 | ||
8646 | ||
8647 | if test "$have_x" = "yes" | |
8648 | then | |
8649 | XLIB="-lXext -lX11" | |
8650 | ac_save_CPPFLAGS="$CPPFLAGS" | |
8651 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" | |
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | ||
7d00b050 | 8662 | |
2d6d4e96 HL |
8663 | for ac_header in X11/Xlib.h \ |
8664 | X11/XKBlib.h \ | |
8665 | X11/Xutil.h \ | |
8666 | X11/extensions/shape.h \ | |
8667 | X11/extensions/XInput.h \ | |
8668 | X11/extensions/XShm.h \ | |
7d00b050 | 8669 | X11/extensions/Xinerama.h \ |
2d6d4e96 HL |
8670 | X11/extensions/Xrandr.h \ |
8671 | X11/extensions/Xrender.h \ | |
2d6d4e96 HL |
8672 | X11/extensions/xf86vmode.h |
8673 | do | |
8674 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
8675 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8676 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
8677 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d6d4e96 HL |
8678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8679 | else | |
8680 | cat >conftest.$ac_ext <<_ACEOF | |
8681 | /* confdefs.h. */ | |
7ff12568 | 8682 | _ACEOF |
2d6d4e96 HL |
8683 | cat confdefs.h >>conftest.$ac_ext |
8684 | cat >>conftest.$ac_ext <<_ACEOF | |
8685 | /* end confdefs.h. */ | |
8686 | #ifdef HAVE_X11_XLIB_H | |
8687 | # include <X11/Xlib.h> | |
8688 | #endif | |
8689 | #ifdef HAVE_X11_XUTIL_H | |
8690 | # include <X11/Xutil.h> | |
8691 | #endif | |
7ff12568 | 8692 | |
2d6d4e96 HL |
8693 | #include <$ac_header> |
8694 | _ACEOF | |
8695 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
8696 | if { (ac_try="$ac_compile" |
8697 | case "(($ac_try" in | |
8698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8699 | *) ac_try_echo=$ac_try;; | |
8700 | esac | |
8701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8702 | (eval "$ac_compile") 2>conftest.er1 | |
2d6d4e96 HL |
8703 | ac_status=$? |
8704 | grep -v '^ *+' conftest.er1 >conftest.err | |
8705 | rm -f conftest.er1 | |
8706 | cat conftest.err >&5 | |
8707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8708 | (exit $ac_status); } && | |
0ebeb530 JW |
8709 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8710 | { (case "(($ac_try" in | |
8711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8712 | *) ac_try_echo=$ac_try;; | |
8713 | esac | |
8714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8715 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
8716 | ac_status=$? |
8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8718 | (exit $ac_status); }; } && | |
8719 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
8720 | { (case "(($ac_try" in |
8721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8722 | *) ac_try_echo=$ac_try;; | |
8723 | esac | |
8724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8725 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
8726 | ac_status=$? |
8727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8728 | (exit $ac_status); }; }; then | |
8729 | eval "$as_ac_Header=yes" | |
8730 | else | |
8731 | echo "$as_me: failed program was:" >&5 | |
8732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7ff12568 | 8733 | |
fc6ffb29 | 8734 | eval "$as_ac_Header=no" |
2d6d4e96 | 8735 | fi |
fc6ffb29 | 8736 | |
0ebeb530 | 8737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7ff12568 | 8738 | fi |
fc6ffb29 AJ |
8739 | ac_res=`eval echo '${'$as_ac_Header'}'` |
8740 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
8741 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
8742 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8743 | cat >>confdefs.h <<_ACEOF | |
8744 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8745 | _ACEOF | |
7ff12568 | 8746 | |
2d6d4e96 | 8747 | fi |
7ff12568 | 8748 | |
2d6d4e96 HL |
8749 | done |
8750 | ||
8751 | ||
8752 | if test "$ac_cv_header_X11_XKBlib_h" = "yes" | |
7ff12568 | 8753 | then |
fc6ffb29 AJ |
8754 | { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5 |
8755 | echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; } | |
2d6d4e96 | 8756 | if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then |
7ff12568 RK |
8757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8758 | else | |
8759 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 8760 | LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
7ff12568 RK |
8761 | cat >conftest.$ac_ext <<_ACEOF |
8762 | /* confdefs.h. */ | |
8763 | _ACEOF | |
8764 | cat confdefs.h >>conftest.$ac_ext | |
8765 | cat >>conftest.$ac_ext <<_ACEOF | |
8766 | /* end confdefs.h. */ | |
8767 | ||
fc6ffb29 AJ |
8768 | /* Override any GCC internal prototype to avoid an error. |
8769 | Use char because int might match the return type of a GCC | |
8770 | builtin and then its argument prototype would still apply. */ | |
7ff12568 RK |
8771 | #ifdef __cplusplus |
8772 | extern "C" | |
8773 | #endif | |
2d6d4e96 | 8774 | char XkbQueryExtension (); |
7ff12568 RK |
8775 | int |
8776 | main () | |
8777 | { | |
fc6ffb29 | 8778 | return XkbQueryExtension (); |
7ff12568 RK |
8779 | ; |
8780 | return 0; | |
8781 | } | |
8782 | _ACEOF | |
8783 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
8784 | if { (ac_try="$ac_link" |
8785 | case "(($ac_try" in | |
8786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8787 | *) ac_try_echo=$ac_try;; | |
8788 | esac | |
8789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8790 | (eval "$ac_link") 2>conftest.er1 | |
7ff12568 RK |
8791 | ac_status=$? |
8792 | grep -v '^ *+' conftest.er1 >conftest.err | |
8793 | rm -f conftest.er1 | |
8794 | cat conftest.err >&5 | |
8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8796 | (exit $ac_status); } && | |
0ebeb530 JW |
8797 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8798 | { (case "(($ac_try" in | |
8799 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8800 | *) ac_try_echo=$ac_try;; | |
8801 | esac | |
8802 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8803 | (eval "$ac_try") 2>&5 | |
7ff12568 RK |
8804 | ac_status=$? |
8805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8806 | (exit $ac_status); }; } && | |
8807 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
8808 | { (case "(($ac_try" in |
8809 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8810 | *) ac_try_echo=$ac_try;; | |
8811 | esac | |
8812 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8813 | (eval "$ac_try") 2>&5 | |
7ff12568 RK |
8814 | ac_status=$? |
8815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8816 | (exit $ac_status); }; }; then | |
2d6d4e96 | 8817 | ac_cv_lib_X11_XkbQueryExtension=yes |
7ff12568 RK |
8818 | else |
8819 | echo "$as_me: failed program was:" >&5 | |
8820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8821 | ||
fc6ffb29 | 8822 | ac_cv_lib_X11_XkbQueryExtension=no |
7ff12568 | 8823 | fi |
fc6ffb29 | 8824 | |
0ebeb530 | 8825 | rm -f core conftest.err conftest.$ac_objext \ |
7ff12568 RK |
8826 | conftest$ac_exeext conftest.$ac_ext |
8827 | LIBS=$ac_check_lib_save_LIBS | |
8828 | fi | |
fc6ffb29 AJ |
8829 | { echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5 |
8830 | echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; } | |
2d6d4e96 | 8831 | if test $ac_cv_lib_X11_XkbQueryExtension = yes; then |
7ff12568 RK |
8832 | |
8833 | cat >>confdefs.h <<\_ACEOF | |
2d6d4e96 | 8834 | #define HAVE_XKB 1 |
7ff12568 RK |
8835 | _ACEOF |
8836 | ||
7ff12568 RK |
8837 | fi |
8838 | ||
8839 | fi | |
8840 | ||
2d6d4e96 | 8841 | if test "$ac_cv_header_X11_extensions_XShm_h" = "yes" |
7ff12568 | 8842 | then |
fc6ffb29 AJ |
8843 | { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5 |
8844 | echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; } | |
2d6d4e96 HL |
8845 | if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then |
8846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8847 | else | |
8848 | ac_check_lib_save_LIBS=$LIBS | |
8849 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
8850 | cat >conftest.$ac_ext <<_ACEOF | |
7ff12568 RK |
8851 | /* confdefs.h. */ |
8852 | _ACEOF | |
8853 | cat confdefs.h >>conftest.$ac_ext | |
8854 | cat >>conftest.$ac_ext <<_ACEOF | |
8855 | /* end confdefs.h. */ | |
2d6d4e96 | 8856 | |
fc6ffb29 AJ |
8857 | /* Override any GCC internal prototype to avoid an error. |
8858 | Use char because int might match the return type of a GCC | |
8859 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
8860 | #ifdef __cplusplus |
8861 | extern "C" | |
8862 | #endif | |
2d6d4e96 | 8863 | char XShmQueryExtension (); |
7ff12568 RK |
8864 | int |
8865 | main () | |
8866 | { | |
fc6ffb29 | 8867 | return XShmQueryExtension (); |
7ff12568 RK |
8868 | ; |
8869 | return 0; | |
8870 | } | |
8871 | _ACEOF | |
2d6d4e96 | 8872 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
8873 | if { (ac_try="$ac_link" |
8874 | case "(($ac_try" in | |
8875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8876 | *) ac_try_echo=$ac_try;; | |
8877 | esac | |
8878 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8879 | (eval "$ac_link") 2>conftest.er1 | |
7ff12568 RK |
8880 | ac_status=$? |
8881 | grep -v '^ *+' conftest.er1 >conftest.err | |
8882 | rm -f conftest.er1 | |
8883 | cat conftest.err >&5 | |
8884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8885 | (exit $ac_status); } && | |
0ebeb530 JW |
8886 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8887 | { (case "(($ac_try" in | |
8888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8889 | *) ac_try_echo=$ac_try;; | |
8890 | esac | |
8891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8892 | (eval "$ac_try") 2>&5 | |
7ff12568 RK |
8893 | ac_status=$? |
8894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8895 | (exit $ac_status); }; } && | |
2d6d4e96 | 8896 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
8897 | { (case "(($ac_try" in |
8898 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8899 | *) ac_try_echo=$ac_try;; | |
8900 | esac | |
8901 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8902 | (eval "$ac_try") 2>&5 | |
7ff12568 RK |
8903 | ac_status=$? |
8904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8905 | (exit $ac_status); }; }; then | |
2d6d4e96 | 8906 | ac_cv_lib_Xext_XShmQueryExtension=yes |
c7c9f939 MM |
8907 | else |
8908 | echo "$as_me: failed program was:" >&5 | |
8909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8f174bc6 | 8910 | |
fc6ffb29 | 8911 | ac_cv_lib_Xext_XShmQueryExtension=no |
8f174bc6 | 8912 | fi |
fc6ffb29 | 8913 | |
0ebeb530 | 8914 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
8915 | conftest$ac_exeext conftest.$ac_ext |
8916 | LIBS=$ac_check_lib_save_LIBS | |
8917 | fi | |
fc6ffb29 AJ |
8918 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 |
8919 | echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; } | |
2d6d4e96 HL |
8920 | if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then |
8921 | ||
8922 | cat >>confdefs.h <<\_ACEOF | |
8923 | #define HAVE_LIBXXSHM 1 | |
8924 | _ACEOF | |
8925 | ||
8926 | fi | |
8927 | ||
92ec21bd KK |
8928 | fi |
8929 | ||
2d6d4e96 | 8930 | if test "$ac_cv_header_X11_extensions_shape_h" = "yes" |
92ec21bd | 8931 | then |
fc6ffb29 AJ |
8932 | { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
8933 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; } | |
2d6d4e96 | 8934 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then |
92ec21bd KK |
8935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8936 | else | |
8937 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 8938 | LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
92ec21bd KK |
8939 | cat >conftest.$ac_ext <<_ACEOF |
8940 | /* confdefs.h. */ | |
8941 | _ACEOF | |
8942 | cat confdefs.h >>conftest.$ac_ext | |
8943 | cat >>conftest.$ac_ext <<_ACEOF | |
8944 | /* end confdefs.h. */ | |
8945 | ||
fc6ffb29 AJ |
8946 | /* Override any GCC internal prototype to avoid an error. |
8947 | Use char because int might match the return type of a GCC | |
8948 | builtin and then its argument prototype would still apply. */ | |
92ec21bd KK |
8949 | #ifdef __cplusplus |
8950 | extern "C" | |
8951 | #endif | |
2d6d4e96 | 8952 | char XShapeQueryExtension (); |
92ec21bd KK |
8953 | int |
8954 | main () | |
8955 | { | |
fc6ffb29 | 8956 | return XShapeQueryExtension (); |
92ec21bd KK |
8957 | ; |
8958 | return 0; | |
8959 | } | |
8960 | _ACEOF | |
8961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
8962 | if { (ac_try="$ac_link" |
8963 | case "(($ac_try" in | |
8964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8965 | *) ac_try_echo=$ac_try;; | |
8966 | esac | |
8967 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8968 | (eval "$ac_link") 2>conftest.er1 | |
92ec21bd KK |
8969 | ac_status=$? |
8970 | grep -v '^ *+' conftest.er1 >conftest.err | |
8971 | rm -f conftest.er1 | |
8972 | cat conftest.err >&5 | |
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8974 | (exit $ac_status); } && | |
0ebeb530 JW |
8975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8976 | { (case "(($ac_try" in | |
8977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8978 | *) ac_try_echo=$ac_try;; | |
8979 | esac | |
8980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8981 | (eval "$ac_try") 2>&5 | |
92ec21bd KK |
8982 | ac_status=$? |
8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8984 | (exit $ac_status); }; } && | |
8985 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
8986 | { (case "(($ac_try" in |
8987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8988 | *) ac_try_echo=$ac_try;; | |
8989 | esac | |
8990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8991 | (eval "$ac_try") 2>&5 | |
92ec21bd KK |
8992 | ac_status=$? |
8993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8994 | (exit $ac_status); }; }; then | |
2d6d4e96 | 8995 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
92ec21bd KK |
8996 | else |
8997 | echo "$as_me: failed program was:" >&5 | |
8998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8999 | ||
fc6ffb29 | 9000 | ac_cv_lib_Xext_XShapeQueryExtension=no |
92ec21bd | 9001 | fi |
fc6ffb29 | 9002 | |
0ebeb530 | 9003 | rm -f core conftest.err conftest.$ac_objext \ |
92ec21bd KK |
9004 | conftest$ac_exeext conftest.$ac_ext |
9005 | LIBS=$ac_check_lib_save_LIBS | |
9006 | fi | |
fc6ffb29 AJ |
9007 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
9008 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } | |
2d6d4e96 | 9009 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then |
92ec21bd KK |
9010 | |
9011 | cat >>confdefs.h <<\_ACEOF | |
2d6d4e96 | 9012 | #define HAVE_LIBXSHAPE 1 |
92ec21bd KK |
9013 | _ACEOF |
9014 | ||
f5818d2f | 9015 | fi |
5c085704 | 9016 | |
2d6d4e96 HL |
9017 | fi |
9018 | ||
9019 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" | |
9020 | then | |
fc6ffb29 AJ |
9021 | { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5 |
9022 | echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; } | |
2d6d4e96 | 9023 | if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then |
f5818d2f | 9024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ff00774 | 9025 | else |
f5818d2f | 9026 | ac_check_lib_save_LIBS=$LIBS |
2d6d4e96 | 9027 | LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
f5818d2f | 9028 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
9029 | /* confdefs.h. */ |
9030 | _ACEOF | |
9031 | cat confdefs.h >>conftest.$ac_ext | |
9032 | cat >>conftest.$ac_ext <<_ACEOF | |
9033 | /* end confdefs.h. */ | |
f5818d2f | 9034 | |
fc6ffb29 AJ |
9035 | /* Override any GCC internal prototype to avoid an error. |
9036 | Use char because int might match the return type of a GCC | |
9037 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
9038 | #ifdef __cplusplus |
9039 | extern "C" | |
9040 | #endif | |
2d6d4e96 | 9041 | char XF86VidModeQueryExtension (); |
f5818d2f AJ |
9042 | int |
9043 | main () | |
9044 | { | |
fc6ffb29 | 9045 | return XF86VidModeQueryExtension (); |
f5818d2f AJ |
9046 | ; |
9047 | return 0; | |
9048 | } | |
9049 | _ACEOF | |
9050 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
9051 | if { (ac_try="$ac_link" |
9052 | case "(($ac_try" in | |
9053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9054 | *) ac_try_echo=$ac_try;; | |
9055 | esac | |
9056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9057 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 9058 | ac_status=$? |
875927f6 AJ |
9059 | grep -v '^ *+' conftest.er1 >conftest.err |
9060 | rm -f conftest.er1 | |
9061 | cat conftest.err >&5 | |
daa2886c | 9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9063 | (exit $ac_status); } && |
0ebeb530 JW |
9064 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9065 | { (case "(($ac_try" in | |
9066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9067 | *) ac_try_echo=$ac_try;; | |
9068 | esac | |
9069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9070 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
9071 | ac_status=$? |
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9073 | (exit $ac_status); }; } && | |
9074 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
9075 | { (case "(($ac_try" in |
9076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9077 | *) ac_try_echo=$ac_try;; | |
9078 | esac | |
9079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9080 | (eval "$ac_try") 2>&5 | |
f5818d2f | 9081 | ac_status=$? |
daa2886c | 9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9083 | (exit $ac_status); }; }; then |
2d6d4e96 | 9084 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes |
f5818d2f AJ |
9085 | else |
9086 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
9087 | sed 's/^/| /' conftest.$ac_ext >&5 |
9088 | ||
fc6ffb29 | 9089 | ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no |
f5818d2f | 9090 | fi |
fc6ffb29 | 9091 | |
0ebeb530 | 9092 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 9093 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
9094 | LIBS=$ac_check_lib_save_LIBS |
9095 | fi | |
fc6ffb29 AJ |
9096 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5 |
9097 | echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; } | |
2d6d4e96 | 9098 | if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then |
f5818d2f | 9099 | |
daa2886c | 9100 | cat >>confdefs.h <<\_ACEOF |
2d6d4e96 | 9101 | #define HAVE_LIBXXF86VM 1 |
daa2886c | 9102 | _ACEOF |
6bb6d4c2 | 9103 | |
2d6d4e96 | 9104 | X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm" |
5a2da4ee | 9105 | |
2d6d4e96 HL |
9106 | fi |
9107 | ||
9108 | fi | |
9109 | ||
9110 | if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" | |
9111 | then | |
9112 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
9113 | /* confdefs.h. */ |
9114 | _ACEOF | |
9115 | cat confdefs.h >>conftest.$ac_ext | |
9116 | cat >>conftest.$ac_ext <<_ACEOF | |
9117 | /* end confdefs.h. */ | |
2d6d4e96 HL |
9118 | #include <X11/Xlib.h> |
9119 | #include <X11/extensions/Xrandr.h> | |
f5818d2f AJ |
9120 | int |
9121 | main () | |
9122 | { | |
2d6d4e96 | 9123 | static typeof(XRRSetScreenConfigAndRate) * func; |
f5818d2f AJ |
9124 | ; |
9125 | return 0; | |
9126 | } | |
9127 | _ACEOF | |
2d6d4e96 | 9128 | rm -f conftest.$ac_objext |
0ebeb530 JW |
9129 | if { (ac_try="$ac_compile" |
9130 | case "(($ac_try" in | |
9131 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9132 | *) ac_try_echo=$ac_try;; | |
9133 | esac | |
9134 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9135 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 9136 | ac_status=$? |
875927f6 AJ |
9137 | grep -v '^ *+' conftest.er1 >conftest.err |
9138 | rm -f conftest.er1 | |
9139 | cat conftest.err >&5 | |
daa2886c | 9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9141 | (exit $ac_status); } && |
0ebeb530 JW |
9142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9143 | { (case "(($ac_try" in | |
9144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9145 | *) ac_try_echo=$ac_try;; | |
9146 | esac | |
9147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9148 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
9149 | ac_status=$? |
9150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9151 | (exit $ac_status); }; } && | |
2d6d4e96 | 9152 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
9153 | { (case "(($ac_try" in |
9154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9155 | *) ac_try_echo=$ac_try;; | |
9156 | esac | |
9157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9158 | (eval "$ac_try") 2>&5 | |
f5818d2f | 9159 | ac_status=$? |
daa2886c | 9160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 9161 | (exit $ac_status); }; }; then |
2d6d4e96 HL |
9162 | |
9163 | cat >>confdefs.h <<\_ACEOF | |
9164 | #define HAVE_LIBXRANDR 1 | |
9165 | _ACEOF | |
9166 | ||
f5818d2f AJ |
9167 | else |
9168 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
9169 | sed 's/^/| /' conftest.$ac_ext >&5 |
9170 | ||
fc6ffb29 | 9171 | |
b63ab445 | 9172 | fi |
fc6ffb29 | 9173 | |
0ebeb530 | 9174 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2d6d4e96 | 9175 | fi |
b63ab445 | 9176 | |
2d6d4e96 HL |
9177 | if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" |
9178 | then | |
fc6ffb29 AJ |
9179 | { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5 |
9180 | echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; } | |
2d6d4e96 | 9181 | if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then |
ef799c46 JC |
9182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9183 | else | |
9184 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 9185 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
ef799c46 | 9186 | cat >conftest.$ac_ext <<_ACEOF |
ef799c46 JC |
9187 | /* confdefs.h. */ |
9188 | _ACEOF | |
9189 | cat confdefs.h >>conftest.$ac_ext | |
9190 | cat >>conftest.$ac_ext <<_ACEOF | |
9191 | /* end confdefs.h. */ | |
9192 | ||
fc6ffb29 AJ |
9193 | /* Override any GCC internal prototype to avoid an error. |
9194 | Use char because int might match the return type of a GCC | |
9195 | builtin and then its argument prototype would still apply. */ | |
ef799c46 JC |
9196 | #ifdef __cplusplus |
9197 | extern "C" | |
9198 | #endif | |
2d6d4e96 | 9199 | char XRenderSetPictureTransform (); |
ef799c46 JC |
9200 | int |
9201 | main () | |
9202 | { | |
fc6ffb29 | 9203 | return XRenderSetPictureTransform (); |
ef799c46 JC |
9204 | ; |
9205 | return 0; | |
9206 | } | |
9207 | _ACEOF | |
9208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
9209 | if { (ac_try="$ac_link" |
9210 | case "(($ac_try" in | |
9211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9212 | *) ac_try_echo=$ac_try;; | |
9213 | esac | |
9214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9215 | (eval "$ac_link") 2>conftest.er1 | |
ef799c46 | 9216 | ac_status=$? |
875927f6 AJ |
9217 | grep -v '^ *+' conftest.er1 >conftest.err |
9218 | rm -f conftest.er1 | |
9219 | cat conftest.err >&5 | |
ef799c46 JC |
9220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9221 | (exit $ac_status); } && | |
0ebeb530 JW |
9222 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9223 | { (case "(($ac_try" in | |
9224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9225 | *) ac_try_echo=$ac_try;; | |
9226 | esac | |
9227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9228 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
9229 | ac_status=$? |
9230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9231 | (exit $ac_status); }; } && | |
9232 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
9233 | { (case "(($ac_try" in |
9234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9235 | *) ac_try_echo=$ac_try;; | |
9236 | esac | |
9237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9238 | (eval "$ac_try") 2>&5 | |
ef799c46 JC |
9239 | ac_status=$? |
9240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9241 | (exit $ac_status); }; }; then | |
2d6d4e96 | 9242 | ac_cv_lib_Xrender_XRenderSetPictureTransform=yes |
ef799c46 JC |
9243 | else |
9244 | echo "$as_me: failed program was:" >&5 | |
9245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9246 | ||
fc6ffb29 | 9247 | ac_cv_lib_Xrender_XRenderSetPictureTransform=no |
ef799c46 | 9248 | fi |
fc6ffb29 | 9249 | |
0ebeb530 | 9250 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 9251 | conftest$ac_exeext conftest.$ac_ext |
ef799c46 JC |
9252 | LIBS=$ac_check_lib_save_LIBS |
9253 | fi | |
fc6ffb29 AJ |
9254 | { echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5 |
9255 | echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; } | |
2d6d4e96 | 9256 | if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then |
ef799c46 | 9257 | |
2d6d4e96 HL |
9258 | cat >>confdefs.h <<\_ACEOF |
9259 | #define HAVE_XRENDERSETPICTURETRANSFORM 1 | |
9260 | _ACEOF | |
ef799c46 JC |
9261 | |
9262 | fi | |
9263 | ||
2d6d4e96 | 9264 | fi |
1eb593cb | 9265 | |
7d00b050 AJ |
9266 | if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes" |
9267 | then | |
9268 | cat >conftest.$ac_ext <<_ACEOF | |
9269 | /* confdefs.h. */ | |
9270 | _ACEOF | |
9271 | cat confdefs.h >>conftest.$ac_ext | |
9272 | cat >>conftest.$ac_ext <<_ACEOF | |
9273 | /* end confdefs.h. */ | |
9274 | #include <X11/Xlib.h> | |
9275 | #include <X11/extensions/Xinerama.h> | |
9276 | int | |
9277 | main () | |
9278 | { | |
9279 | static typeof(XineramaQueryScreens) * func; | |
9280 | ; | |
9281 | return 0; | |
9282 | } | |
9283 | _ACEOF | |
9284 | rm -f conftest.$ac_objext | |
9285 | if { (ac_try="$ac_compile" | |
9286 | case "(($ac_try" in | |
9287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9288 | *) ac_try_echo=$ac_try;; | |
9289 | esac | |
9290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9291 | (eval "$ac_compile") 2>conftest.er1 | |
9292 | ac_status=$? | |
9293 | grep -v '^ *+' conftest.er1 >conftest.err | |
9294 | rm -f conftest.er1 | |
9295 | cat conftest.err >&5 | |
9296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9297 | (exit $ac_status); } && | |
9298 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
9299 | { (case "(($ac_try" in | |
9300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9301 | *) ac_try_echo=$ac_try;; | |
9302 | esac | |
9303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9304 | (eval "$ac_try") 2>&5 | |
9305 | ac_status=$? | |
9306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9307 | (exit $ac_status); }; } && | |
9308 | { ac_try='test -s conftest.$ac_objext' | |
9309 | { (case "(($ac_try" in | |
9310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9311 | *) ac_try_echo=$ac_try;; | |
9312 | esac | |
9313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9314 | (eval "$ac_try") 2>&5 | |
9315 | ac_status=$? | |
9316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9317 | (exit $ac_status); }; }; then | |
9318 | ||
9319 | cat >>confdefs.h <<\_ACEOF | |
9320 | #define HAVE_LIBXINERAMA 1 | |
9321 | _ACEOF | |
9322 | ||
9323 | else | |
9324 | echo "$as_me: failed program was:" >&5 | |
9325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9326 | ||
9327 | ||
9328 | fi | |
9329 | ||
9330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9331 | fi | |
9332 | ||
9333 | ||
2d6d4e96 HL |
9334 | if test "x$with_opengl" != "xno" |
9335 | then | |
6f670b13 FG |
9336 | |
9337 | ||
2d6d4e96 HL |
9338 | |
9339 | ||
9340 | for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h | |
6f670b13 FG |
9341 | do |
9342 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
9343 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9345 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
6f670b13 | 9346 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6f670b13 | 9347 | else |
2d6d4e96 | 9348 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
9349 | /* confdefs.h. */ |
9350 | _ACEOF | |
9351 | cat confdefs.h >>conftest.$ac_ext | |
9352 | cat >>conftest.$ac_ext <<_ACEOF | |
9353 | /* end confdefs.h. */ | |
2d6d4e96 HL |
9354 | #ifdef HAVE_GL_GLX_H |
9355 | # include <GL/glx.h> | |
9356 | #endif | |
9357 | ||
6f670b13 FG |
9358 | #include <$ac_header> |
9359 | _ACEOF | |
9360 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
9361 | if { (ac_try="$ac_compile" |
9362 | case "(($ac_try" in | |
9363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9364 | *) ac_try_echo=$ac_try;; | |
9365 | esac | |
9366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9367 | (eval "$ac_compile") 2>conftest.er1 | |
6f670b13 | 9368 | ac_status=$? |
875927f6 AJ |
9369 | grep -v '^ *+' conftest.er1 >conftest.err |
9370 | rm -f conftest.er1 | |
9371 | cat conftest.err >&5 | |
6f670b13 FG |
9372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9373 | (exit $ac_status); } && | |
0ebeb530 JW |
9374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9375 | { (case "(($ac_try" in | |
9376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9377 | *) ac_try_echo=$ac_try;; | |
9378 | esac | |
9379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9380 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
9381 | ac_status=$? |
9382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9383 | (exit $ac_status); }; } && | |
9384 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
9385 | { (case "(($ac_try" in |
9386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9387 | *) ac_try_echo=$ac_try;; | |
9388 | esac | |
9389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9390 | (eval "$ac_try") 2>&5 | |
6f670b13 FG |
9391 | ac_status=$? |
9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9393 | (exit $ac_status); }; }; then | |
2d6d4e96 | 9394 | eval "$as_ac_Header=yes" |
6f670b13 FG |
9395 | else |
9396 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
9397 | sed 's/^/| /' conftest.$ac_ext >&5 |
9398 | ||
fc6ffb29 | 9399 | eval "$as_ac_Header=no" |
6f670b13 | 9400 | fi |
fc6ffb29 | 9401 | |
0ebeb530 | 9402 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6f670b13 | 9403 | fi |
fc6ffb29 AJ |
9404 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9405 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9406 | echo "${ECHO_T}$ac_res" >&6; } | |
6f670b13 FG |
9407 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9408 | cat >>confdefs.h <<_ACEOF | |
9409 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9410 | _ACEOF | |
9411 | ||
2d6d4e96 HL |
9412 | fi |
9413 | ||
9414 | done | |
9415 | ||
9416 | if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes" | |
9417 | then | |
fc6ffb29 AJ |
9418 | { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5 |
9419 | echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; } | |
bc66d7ed | 9420 | if test "${wine_cv_opengl_header_version_OK+set}" = set; then |
6f670b13 FG |
9421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9422 | else | |
9423 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
9424 | /* confdefs.h. */ |
9425 | _ACEOF | |
9426 | cat confdefs.h >>conftest.$ac_ext | |
9427 | cat >>conftest.$ac_ext <<_ACEOF | |
9428 | /* end confdefs.h. */ | |
2d6d4e96 HL |
9429 | #include <GL/gl.h> |
9430 | int | |
9431 | main () | |
9432 | { | |
9433 | GLenum test = GL_UNSIGNED_SHORT_5_6_5; | |
9434 | ; | |
9435 | return 0; | |
9436 | } | |
6f670b13 FG |
9437 | _ACEOF |
9438 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
9439 | if { (ac_try="$ac_compile" |
9440 | case "(($ac_try" in | |
9441 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9442 | *) ac_try_echo=$ac_try;; | |
9443 | esac | |
9444 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9445 | (eval "$ac_compile") 2>conftest.er1 | |
6f670b13 | 9446 | ac_status=$? |
875927f6 AJ |
9447 | grep -v '^ *+' conftest.er1 >conftest.err |
9448 | rm -f conftest.er1 | |
9449 | cat conftest.err >&5 | |
6f670b13 FG |
9450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9451 | (exit $ac_status); } && | |
0ebeb530 JW |
9452 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9453 | { (case "(($ac_try" in | |
9454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9455 | *) ac_try_echo=$ac_try;; | |
9456 | esac | |
9457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9458 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
9459 | ac_status=$? |
9460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9461 | (exit $ac_status); }; } && | |
9462 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
9463 | { (case "(($ac_try" in |
9464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9465 | *) ac_try_echo=$ac_try;; | |
9466 | esac | |
9467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9468 | (eval "$ac_try") 2>&5 | |
6f670b13 FG |
9469 | ac_status=$? |
9470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9471 | (exit $ac_status); }; }; then | |
bc66d7ed | 9472 | wine_cv_opengl_header_version_OK="yes" |
6f670b13 FG |
9473 | else |
9474 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
9475 | sed 's/^/| /' conftest.$ac_ext >&5 |
9476 | ||
bc66d7ed | 9477 | wine_cv_opengl_header_version_OK="no" |
2d6d4e96 | 9478 | |
6f670b13 | 9479 | fi |
fc6ffb29 | 9480 | |
0ebeb530 | 9481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6f670b13 FG |
9482 | |
9483 | fi | |
bc66d7ed RC |
9484 | { echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5 |
9485 | echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; } | |
6f670b13 | 9486 | |
cc6a08c8 | 9487 | if test "$wine_cv_opengl_header_version_OK" = "yes" |
2d6d4e96 | 9488 | then |
fc6ffb29 AJ |
9489 | { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5 |
9490 | echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; } | |
2d6d4e96 | 9491 | if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then |
6f670b13 FG |
9492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9493 | else | |
9494 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 9495 | LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS" |
6f670b13 | 9496 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
9497 | /* confdefs.h. */ |
9498 | _ACEOF | |
9499 | cat confdefs.h >>conftest.$ac_ext | |
9500 | cat >>conftest.$ac_ext <<_ACEOF | |
9501 | /* end confdefs.h. */ | |
6f670b13 | 9502 | |
fc6ffb29 AJ |
9503 | /* Override any GCC internal prototype to avoid an error. |
9504 | Use char because int might match the return type of a GCC | |
9505 | builtin and then its argument prototype would still apply. */ | |
6f670b13 FG |
9506 | #ifdef __cplusplus |
9507 | extern "C" | |
9508 | #endif | |
2d6d4e96 | 9509 | char glXCreateContext (); |
6f670b13 FG |
9510 | int |
9511 | main () | |
9512 | { | |
fc6ffb29 | 9513 | return glXCreateContext (); |
6f670b13 FG |
9514 | ; |
9515 | return 0; | |
9516 | } | |
9517 | _ACEOF | |
9518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
9519 | if { (ac_try="$ac_link" |
9520 | case "(($ac_try" in | |
9521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9522 | *) ac_try_echo=$ac_try;; | |
9523 | esac | |
9524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9525 | (eval "$ac_link") 2>conftest.er1 | |
6f670b13 | 9526 | ac_status=$? |
875927f6 AJ |
9527 | grep -v '^ *+' conftest.er1 >conftest.err |
9528 | rm -f conftest.er1 | |
9529 | cat conftest.err >&5 | |
6f670b13 FG |
9530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9531 | (exit $ac_status); } && | |
0ebeb530 JW |
9532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9533 | { (case "(($ac_try" in | |
9534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9535 | *) ac_try_echo=$ac_try;; | |
9536 | esac | |
9537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9538 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
9539 | ac_status=$? |
9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9541 | (exit $ac_status); }; } && | |
9542 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
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 | |
6f670b13 FG |
9549 | ac_status=$? |
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9551 | (exit $ac_status); }; }; then | |
2d6d4e96 | 9552 | ac_cv_lib_GL_glXCreateContext=yes |
6f670b13 FG |
9553 | else |
9554 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 |
9556 | ||
fc6ffb29 | 9557 | ac_cv_lib_GL_glXCreateContext=no |
6f670b13 | 9558 | fi |
fc6ffb29 | 9559 | |
0ebeb530 | 9560 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 9561 | conftest$ac_exeext conftest.$ac_ext |
6f670b13 FG |
9562 | LIBS=$ac_check_lib_save_LIBS |
9563 | fi | |
fc6ffb29 AJ |
9564 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5 |
9565 | echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; } | |
2d6d4e96 HL |
9566 | if test $ac_cv_lib_GL_glXCreateContext = yes; then |
9567 | OPENGL_LIBS="-lGL" | |
c84c4784 | 9568 | OPENGLFILES='$(OPENGLFILES)' |
f3719a88 | 9569 | |
2d6d4e96 HL |
9570 | cat >>confdefs.h <<\_ACEOF |
9571 | #define HAVE_OPENGL 1 | |
9572 | _ACEOF | |
f3719a88 | 9573 | |
c84c4784 AJ |
9574 | |
9575 | fi | |
9576 | ||
dcc2d6c2 | 9577 | |
fc6ffb29 AJ |
9578 | { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5 |
9579 | echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; } | |
2d6d4e96 | 9580 | if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then |
dcc2d6c2 | 9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
dcc2d6c2 | 9582 | else |
2d6d4e96 HL |
9583 | ac_check_lib_save_LIBS=$LIBS |
9584 | LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS | |
9585 | $LIBS" | |
dcc2d6c2 MM |
9586 | cat >conftest.$ac_ext <<_ACEOF |
9587 | /* confdefs.h. */ | |
9588 | _ACEOF | |
9589 | cat confdefs.h >>conftest.$ac_ext | |
9590 | cat >>conftest.$ac_ext <<_ACEOF | |
9591 | /* end confdefs.h. */ | |
2d6d4e96 | 9592 | |
fc6ffb29 AJ |
9593 | /* Override any GCC internal prototype to avoid an error. |
9594 | Use char because int might match the return type of a GCC | |
9595 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
9596 | #ifdef __cplusplus |
9597 | extern "C" | |
9598 | #endif | |
2d6d4e96 HL |
9599 | char gluLookAt (); |
9600 | int | |
9601 | main () | |
9602 | { | |
fc6ffb29 | 9603 | return gluLookAt (); |
2d6d4e96 HL |
9604 | ; |
9605 | return 0; | |
9606 | } | |
9607 | _ACEOF | |
9608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
9609 | if { (ac_try="$ac_link" |
9610 | case "(($ac_try" in | |
9611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9612 | *) ac_try_echo=$ac_try;; | |
9613 | esac | |
9614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9615 | (eval "$ac_link") 2>conftest.er1 | |
2d6d4e96 HL |
9616 | ac_status=$? |
9617 | grep -v '^ *+' conftest.er1 >conftest.err | |
9618 | rm -f conftest.er1 | |
9619 | cat conftest.err >&5 | |
9620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9621 | (exit $ac_status); } && | |
0ebeb530 JW |
9622 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9623 | { (case "(($ac_try" in | |
9624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9625 | *) ac_try_echo=$ac_try;; | |
9626 | esac | |
9627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9628 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
9629 | ac_status=$? |
9630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9631 | (exit $ac_status); }; } && | |
9632 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
9633 | { (case "(($ac_try" in |
9634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9635 | *) ac_try_echo=$ac_try;; | |
9636 | esac | |
9637 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9638 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
9639 | ac_status=$? |
9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9641 | (exit $ac_status); }; }; then | |
9642 | ac_cv_lib_GLU_gluLookAt=yes | |
9643 | else | |
9644 | echo "$as_me: failed program was:" >&5 | |
9645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9646 | ||
fc6ffb29 | 9647 | ac_cv_lib_GLU_gluLookAt=no |
2d6d4e96 | 9648 | fi |
fc6ffb29 | 9649 | |
0ebeb530 | 9650 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
9651 | conftest$ac_exeext conftest.$ac_ext |
9652 | LIBS=$ac_check_lib_save_LIBS | |
9653 | fi | |
fc6ffb29 AJ |
9654 | { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5 |
9655 | echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; } | |
2d6d4e96 HL |
9656 | if test $ac_cv_lib_GLU_gluLookAt = yes; then |
9657 | OPENGL_LIBS="$OPENGL_LIBS -lGLU" | |
9658 | GLU32FILES='$(GLU32FILES)' | |
9659 | ||
9660 | fi | |
9661 | ||
9662 | fi | |
9663 | ||
fc6ffb29 AJ |
9664 | { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5 |
9665 | echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; } | |
2d6d4e96 HL |
9666 | if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then |
9667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9668 | else | |
9669 | ac_check_lib_save_LIBS=$LIBS | |
9670 | LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS" | |
9671 | cat >conftest.$ac_ext <<_ACEOF | |
9672 | /* confdefs.h. */ | |
9673 | _ACEOF | |
9674 | cat confdefs.h >>conftest.$ac_ext | |
9675 | cat >>conftest.$ac_ext <<_ACEOF | |
9676 | /* end confdefs.h. */ | |
9677 | ||
fc6ffb29 AJ |
9678 | /* Override any GCC internal prototype to avoid an error. |
9679 | Use char because int might match the return type of a GCC | |
9680 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
9681 | #ifdef __cplusplus |
9682 | extern "C" | |
9683 | #endif | |
2d6d4e96 HL |
9684 | char glutMainLoop (); |
9685 | int | |
9686 | main () | |
9687 | { | |
fc6ffb29 | 9688 | return glutMainLoop (); |
2d6d4e96 HL |
9689 | ; |
9690 | return 0; | |
9691 | } | |
9692 | _ACEOF | |
9693 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
9694 | if { (ac_try="$ac_link" |
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_link") 2>conftest.er1 | |
2d6d4e96 HL |
9701 | ac_status=$? |
9702 | grep -v '^ *+' conftest.er1 >conftest.err | |
9703 | rm -f conftest.er1 | |
9704 | cat conftest.err >&5 | |
9705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9706 | (exit $ac_status); } && | |
0ebeb530 JW |
9707 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9708 | { (case "(($ac_try" in | |
9709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9710 | *) ac_try_echo=$ac_try;; | |
9711 | esac | |
9712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9713 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
9714 | ac_status=$? |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9716 | (exit $ac_status); }; } && | |
9717 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
9718 | { (case "(($ac_try" in |
9719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9720 | *) ac_try_echo=$ac_try;; | |
9721 | esac | |
9722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9723 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
9724 | ac_status=$? |
9725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9726 | (exit $ac_status); }; }; then | |
9727 | ac_cv_lib_glut_glutMainLoop=yes | |
9728 | else | |
9729 | echo "$as_me: failed program was:" >&5 | |
9730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9731 | ||
fc6ffb29 | 9732 | ac_cv_lib_glut_glutMainLoop=no |
2d6d4e96 | 9733 | fi |
fc6ffb29 | 9734 | |
0ebeb530 | 9735 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
9736 | conftest$ac_exeext conftest.$ac_ext |
9737 | LIBS=$ac_check_lib_save_LIBS | |
9738 | fi | |
fc6ffb29 AJ |
9739 | { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5 |
9740 | echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; } | |
2d6d4e96 HL |
9741 | if test $ac_cv_lib_glut_glutMainLoop = yes; then |
9742 | GLUT_LIBS="-lglut -lXmu -lXi" | |
9743 | ||
9744 | GLUT32FILES='$(GLUT32FILES)' | |
9745 | ||
9746 | fi | |
9747 | ||
bc66d7ed RC |
9748 | else |
9749 | wine_cv_opengl_headers_found="no" | |
2d6d4e96 HL |
9750 | fi |
9751 | fi | |
2d6d4e96 HL |
9752 | NASLIBS="" |
9753 | ||
9754 | ||
9755 | for ac_header in audio/audiolib.h | |
9756 | do | |
9757 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
9758 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
9759 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9760 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9761 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d6d4e96 HL |
9762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9763 | fi | |
fc6ffb29 AJ |
9764 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9765 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9766 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
9767 | else |
9768 | # Is the header compilable? | |
fc6ffb29 AJ |
9769 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9770 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
2d6d4e96 HL |
9771 | cat >conftest.$ac_ext <<_ACEOF |
9772 | /* confdefs.h. */ | |
9773 | _ACEOF | |
9774 | cat confdefs.h >>conftest.$ac_ext | |
9775 | cat >>conftest.$ac_ext <<_ACEOF | |
9776 | /* end confdefs.h. */ | |
9777 | $ac_includes_default | |
9778 | #include <$ac_header> | |
9779 | _ACEOF | |
9780 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
9781 | if { (ac_try="$ac_compile" |
9782 | case "(($ac_try" in | |
9783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9784 | *) ac_try_echo=$ac_try;; | |
9785 | esac | |
9786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9787 | (eval "$ac_compile") 2>conftest.er1 | |
2d6d4e96 HL |
9788 | ac_status=$? |
9789 | grep -v '^ *+' conftest.er1 >conftest.err | |
9790 | rm -f conftest.er1 | |
9791 | cat conftest.err >&5 | |
9792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9793 | (exit $ac_status); } && | |
0ebeb530 JW |
9794 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9795 | { (case "(($ac_try" in | |
9796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9797 | *) ac_try_echo=$ac_try;; | |
9798 | esac | |
9799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9800 | (eval "$ac_try") 2>&5 | |
dcc2d6c2 MM |
9801 | ac_status=$? |
9802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9803 | (exit $ac_status); }; } && | |
9804 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
9805 | { (case "(($ac_try" in |
9806 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9807 | *) ac_try_echo=$ac_try;; | |
9808 | esac | |
9809 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9810 | (eval "$ac_try") 2>&5 | |
dcc2d6c2 MM |
9811 | ac_status=$? |
9812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9813 | (exit $ac_status); }; }; then | |
9814 | ac_header_compiler=yes | |
9815 | else | |
9816 | echo "$as_me: failed program was:" >&5 | |
9817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9818 | ||
fc6ffb29 | 9819 | ac_header_compiler=no |
dcc2d6c2 | 9820 | fi |
fc6ffb29 | 9821 | |
0ebeb530 | 9822 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
9823 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9824 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
dcc2d6c2 MM |
9825 | |
9826 | # Is the header present? | |
fc6ffb29 AJ |
9827 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9828 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
dcc2d6c2 MM |
9829 | cat >conftest.$ac_ext <<_ACEOF |
9830 | /* confdefs.h. */ | |
9831 | _ACEOF | |
9832 | cat confdefs.h >>conftest.$ac_ext | |
9833 | cat >>conftest.$ac_ext <<_ACEOF | |
9834 | /* end confdefs.h. */ | |
9835 | #include <$ac_header> | |
9836 | _ACEOF | |
0ebeb530 JW |
9837 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
9838 | case "(($ac_try" in | |
9839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9840 | *) ac_try_echo=$ac_try;; | |
9841 | esac | |
9842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9843 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
dcc2d6c2 MM |
9844 | ac_status=$? |
9845 | grep -v '^ *+' conftest.er1 >conftest.err | |
9846 | rm -f conftest.er1 | |
9847 | cat conftest.err >&5 | |
9848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9849 | (exit $ac_status); } >/dev/null; then | |
9850 | if test -s conftest.err; then | |
9851 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9852 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9853 | else | |
9854 | ac_cpp_err= | |
9855 | fi | |
9856 | else | |
9857 | ac_cpp_err=yes | |
9858 | fi | |
9859 | if test -z "$ac_cpp_err"; then | |
9860 | ac_header_preproc=yes | |
9861 | else | |
9862 | echo "$as_me: failed program was:" >&5 | |
9863 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9864 | ||
9865 | ac_header_preproc=no | |
9866 | fi | |
fc6ffb29 | 9867 | |
dcc2d6c2 | 9868 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
9869 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9870 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
dcc2d6c2 MM |
9871 | |
9872 | # So? What about this header? | |
9873 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9874 | yes:no: ) | |
9875 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9876 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9877 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9878 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9879 | ac_header_preproc=yes | |
9880 | ;; | |
9881 | no:yes:* ) | |
9882 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9883 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9884 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9885 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9886 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9887 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9888 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9889 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9891 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9892 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9893 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
fc6ffb29 | 9894 | ( cat <<\_ASBOX |
dcc2d6c2 MM |
9895 | ## ------------------------------------ ## |
9896 | ## Report this to wine-devel@winehq.org ## | |
9897 | ## ------------------------------------ ## | |
9898 | _ASBOX | |
fc6ffb29 | 9899 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
dcc2d6c2 MM |
9900 | ;; |
9901 | esac | |
fc6ffb29 AJ |
9902 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9903 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9904 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
dcc2d6c2 MM |
9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9906 | else | |
9907 | eval "$as_ac_Header=\$ac_header_preproc" | |
9908 | fi | |
fc6ffb29 AJ |
9909 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9910 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9911 | echo "${ECHO_T}$ac_res" >&6; } | |
dcc2d6c2 MM |
9912 | |
9913 | fi | |
9914 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9915 | cat >>confdefs.h <<_ACEOF | |
9916 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9917 | _ACEOF | |
2d6d4e96 HL |
9918 | |
9919 | for ac_header in audio/soundlib.h | |
9920 | do | |
9921 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
9922 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
9924 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
dcc2d6c2 MM |
9925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9926 | else | |
2d6d4e96 | 9927 | cat >conftest.$ac_ext <<_ACEOF |
dcc2d6c2 MM |
9928 | /* confdefs.h. */ |
9929 | _ACEOF | |
9930 | cat confdefs.h >>conftest.$ac_ext | |
9931 | cat >>conftest.$ac_ext <<_ACEOF | |
9932 | /* end confdefs.h. */ | |
2d6d4e96 | 9933 | #include <audio/audiolib.h> |
dcc2d6c2 | 9934 | |
2d6d4e96 | 9935 | #include <$ac_header> |
dcc2d6c2 | 9936 | _ACEOF |
2d6d4e96 | 9937 | rm -f conftest.$ac_objext |
0ebeb530 JW |
9938 | if { (ac_try="$ac_compile" |
9939 | case "(($ac_try" in | |
9940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9941 | *) ac_try_echo=$ac_try;; | |
9942 | esac | |
9943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9944 | (eval "$ac_compile") 2>conftest.er1 | |
dcc2d6c2 MM |
9945 | ac_status=$? |
9946 | grep -v '^ *+' conftest.er1 >conftest.err | |
9947 | rm -f conftest.er1 | |
9948 | cat conftest.err >&5 | |
9949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9950 | (exit $ac_status); } && | |
0ebeb530 JW |
9951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9952 | { (case "(($ac_try" in | |
9953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9954 | *) ac_try_echo=$ac_try;; | |
9955 | esac | |
9956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9957 | (eval "$ac_try") 2>&5 | |
dcc2d6c2 MM |
9958 | ac_status=$? |
9959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9960 | (exit $ac_status); }; } && | |
2d6d4e96 | 9961 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
9962 | { (case "(($ac_try" in |
9963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9964 | *) ac_try_echo=$ac_try;; | |
9965 | esac | |
9966 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9967 | (eval "$ac_try") 2>&5 | |
dcc2d6c2 MM |
9968 | ac_status=$? |
9969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9970 | (exit $ac_status); }; }; then | |
2d6d4e96 | 9971 | eval "$as_ac_Header=yes" |
dcc2d6c2 MM |
9972 | else |
9973 | echo "$as_me: failed program was:" >&5 | |
9974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9975 | ||
fc6ffb29 | 9976 | eval "$as_ac_Header=no" |
dcc2d6c2 | 9977 | fi |
fc6ffb29 | 9978 | |
0ebeb530 | 9979 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
dcc2d6c2 | 9980 | fi |
fc6ffb29 AJ |
9981 | ac_res=`eval echo '${'$as_ac_Header'}'` |
9982 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
9983 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
9984 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9985 | cat >>confdefs.h <<_ACEOF | |
9986 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
dcc2d6c2 MM |
9987 | _ACEOF |
9988 | ||
dcc2d6c2 MM |
9989 | fi |
9990 | ||
2d6d4e96 HL |
9991 | done |
9992 | ||
fc6ffb29 AJ |
9993 | { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5 |
9994 | echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; } | |
2d6d4e96 | 9995 | if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then |
70adb8f5 MM |
9996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9997 | else | |
9998 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 9999 | LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" |
70adb8f5 MM |
10000 | cat >conftest.$ac_ext <<_ACEOF |
10001 | /* confdefs.h. */ | |
10002 | _ACEOF | |
10003 | cat confdefs.h >>conftest.$ac_ext | |
10004 | cat >>conftest.$ac_ext <<_ACEOF | |
10005 | /* end confdefs.h. */ | |
10006 | ||
fc6ffb29 AJ |
10007 | /* Override any GCC internal prototype to avoid an error. |
10008 | Use char because int might match the return type of a GCC | |
10009 | builtin and then its argument prototype would still apply. */ | |
70adb8f5 MM |
10010 | #ifdef __cplusplus |
10011 | extern "C" | |
10012 | #endif | |
2d6d4e96 | 10013 | char AuCreateFlow (); |
70adb8f5 MM |
10014 | int |
10015 | main () | |
10016 | { | |
fc6ffb29 | 10017 | return AuCreateFlow (); |
70adb8f5 MM |
10018 | ; |
10019 | return 0; | |
10020 | } | |
10021 | _ACEOF | |
10022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
10023 | if { (ac_try="$ac_link" |
10024 | case "(($ac_try" in | |
10025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10026 | *) ac_try_echo=$ac_try;; | |
10027 | esac | |
10028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10029 | (eval "$ac_link") 2>conftest.er1 | |
70adb8f5 MM |
10030 | ac_status=$? |
10031 | grep -v '^ *+' conftest.er1 >conftest.err | |
10032 | rm -f conftest.er1 | |
10033 | cat conftest.err >&5 | |
10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10035 | (exit $ac_status); } && | |
0ebeb530 JW |
10036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10037 | { (case "(($ac_try" in | |
10038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10039 | *) ac_try_echo=$ac_try;; | |
10040 | esac | |
10041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10042 | (eval "$ac_try") 2>&5 | |
70adb8f5 MM |
10043 | ac_status=$? |
10044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10045 | (exit $ac_status); }; } && | |
10046 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
10047 | { (case "(($ac_try" in |
10048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10049 | *) ac_try_echo=$ac_try;; | |
10050 | esac | |
10051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10052 | (eval "$ac_try") 2>&5 | |
70adb8f5 MM |
10053 | ac_status=$? |
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10055 | (exit $ac_status); }; }; then | |
2d6d4e96 | 10056 | ac_cv_lib_audio_AuCreateFlow=yes |
70adb8f5 MM |
10057 | else |
10058 | echo "$as_me: failed program was:" >&5 | |
10059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10060 | ||
fc6ffb29 | 10061 | ac_cv_lib_audio_AuCreateFlow=no |
70adb8f5 | 10062 | fi |
fc6ffb29 | 10063 | |
0ebeb530 | 10064 | rm -f core conftest.err conftest.$ac_objext \ |
70adb8f5 MM |
10065 | conftest$ac_exeext conftest.$ac_ext |
10066 | LIBS=$ac_check_lib_save_LIBS | |
10067 | fi | |
fc6ffb29 AJ |
10068 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5 |
10069 | echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; } | |
2d6d4e96 | 10070 | if test $ac_cv_lib_audio_AuCreateFlow = yes; then |
70adb8f5 MM |
10071 | |
10072 | cat >>confdefs.h <<\_ACEOF | |
2d6d4e96 | 10073 | #define HAVE_NAS 1 |
70adb8f5 MM |
10074 | _ACEOF |
10075 | ||
2d6d4e96 | 10076 | NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS" |
70adb8f5 MM |
10077 | fi |
10078 | ||
f3719a88 MM |
10079 | fi |
10080 | ||
10081 | done | |
10082 | ||
2d6d4e96 | 10083 | |
f3719a88 | 10084 | CPPFLAGS="$ac_save_CPPFLAGS" |
2d6d4e96 HL |
10085 | XFILES='$(XFILES)' |
10086 | else | |
10087 | XLIB="" | |
10088 | X_CFLAGS="" | |
10089 | X_LIBS="" | |
10090 | fi | |
f3719a88 MM |
10091 | |
10092 | ||
2d6d4e96 HL |
10093 | XML2LIBS="" |
10094 | ||
10095 | XML2INCL="" | |
10096 | ||
10097 | XSLTLIBS="" | |
10098 | ||
10099 | XSLTINCL="" | |
10100 | ||
10101 | if test "$PKG_CONFIG" != "false" | |
10102 | then | |
10103 | ac_save_CPPFLAGS="$CPPFLAGS" | |
d01063e1 AJ |
10104 | ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`" |
10105 | ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`" | |
2d6d4e96 HL |
10106 | CPPFLAGS="$CPPFLAGS $ac_xml_cflags" |
10107 | ||
10108 | for ac_header in libxml/parser.h | |
f3719a88 MM |
10109 | do |
10110 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
10111 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10112 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10113 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10114 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f3719a88 | 10115 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2d6d4e96 | 10116 | fi |
fc6ffb29 AJ |
10117 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10118 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10119 | echo "${ECHO_T}$ac_res" >&6; } | |
f3719a88 | 10120 | else |
2d6d4e96 | 10121 | # Is the header compilable? |
fc6ffb29 AJ |
10122 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10123 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
2d6d4e96 | 10124 | cat >conftest.$ac_ext <<_ACEOF |
f3719a88 MM |
10125 | /* confdefs.h. */ |
10126 | _ACEOF | |
10127 | cat confdefs.h >>conftest.$ac_ext | |
10128 | cat >>conftest.$ac_ext <<_ACEOF | |
10129 | /* end confdefs.h. */ | |
2d6d4e96 | 10130 | $ac_includes_default |
f3719a88 MM |
10131 | #include <$ac_header> |
10132 | _ACEOF | |
10133 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
10134 | if { (ac_try="$ac_compile" |
10135 | case "(($ac_try" in | |
10136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10137 | *) ac_try_echo=$ac_try;; | |
10138 | esac | |
10139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10140 | (eval "$ac_compile") 2>conftest.er1 | |
f3719a88 MM |
10141 | ac_status=$? |
10142 | grep -v '^ *+' conftest.er1 >conftest.err | |
10143 | rm -f conftest.er1 | |
10144 | cat conftest.err >&5 | |
10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10146 | (exit $ac_status); } && | |
0ebeb530 JW |
10147 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10148 | { (case "(($ac_try" in | |
10149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10150 | *) ac_try_echo=$ac_try;; | |
10151 | esac | |
10152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10153 | (eval "$ac_try") 2>&5 | |
f3719a88 MM |
10154 | ac_status=$? |
10155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10156 | (exit $ac_status); }; } && | |
10157 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
10158 | { (case "(($ac_try" in |
10159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10160 | *) ac_try_echo=$ac_try;; | |
10161 | esac | |
10162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10163 | (eval "$ac_try") 2>&5 | |
f3719a88 MM |
10164 | ac_status=$? |
10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10166 | (exit $ac_status); }; }; then | |
2d6d4e96 | 10167 | ac_header_compiler=yes |
f3719a88 MM |
10168 | else |
10169 | echo "$as_me: failed program was:" >&5 | |
10170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10171 | ||
fc6ffb29 | 10172 | ac_header_compiler=no |
f3719a88 | 10173 | fi |
fc6ffb29 | 10174 | |
0ebeb530 | 10175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
10176 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10177 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
2d6d4e96 HL |
10178 | |
10179 | # Is the header present? | |
fc6ffb29 AJ |
10180 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10181 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
2d6d4e96 HL |
10182 | cat >conftest.$ac_ext <<_ACEOF |
10183 | /* confdefs.h. */ | |
10184 | _ACEOF | |
10185 | cat confdefs.h >>conftest.$ac_ext | |
10186 | cat >>conftest.$ac_ext <<_ACEOF | |
10187 | /* end confdefs.h. */ | |
10188 | #include <$ac_header> | |
10189 | _ACEOF | |
0ebeb530 JW |
10190 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10191 | case "(($ac_try" in | |
10192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10193 | *) ac_try_echo=$ac_try;; | |
10194 | esac | |
10195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10196 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
2d6d4e96 HL |
10197 | ac_status=$? |
10198 | grep -v '^ *+' conftest.er1 >conftest.err | |
10199 | rm -f conftest.er1 | |
10200 | cat conftest.err >&5 | |
10201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10202 | (exit $ac_status); } >/dev/null; then | |
10203 | if test -s conftest.err; then | |
10204 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10205 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10206 | else | |
10207 | ac_cpp_err= | |
10208 | fi | |
10209 | else | |
10210 | ac_cpp_err=yes | |
10211 | fi | |
10212 | if test -z "$ac_cpp_err"; then | |
10213 | ac_header_preproc=yes | |
10214 | else | |
10215 | echo "$as_me: failed program was:" >&5 | |
10216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10217 | ||
10218 | ac_header_preproc=no | |
10219 | fi | |
fc6ffb29 | 10220 | |
2d6d4e96 | 10221 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
10222 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10223 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
2d6d4e96 HL |
10224 | |
10225 | # So? What about this header? | |
10226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10227 | yes:no: ) | |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10229 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10232 | ac_header_preproc=yes | |
10233 | ;; | |
10234 | no:yes:* ) | |
10235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10239 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10240 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10241 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10242 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10245 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10246 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
fc6ffb29 | 10247 | ( cat <<\_ASBOX |
2d6d4e96 HL |
10248 | ## ------------------------------------ ## |
10249 | ## Report this to wine-devel@winehq.org ## | |
10250 | ## ------------------------------------ ## | |
10251 | _ASBOX | |
fc6ffb29 | 10252 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2d6d4e96 HL |
10253 | ;; |
10254 | esac | |
fc6ffb29 AJ |
10255 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10257 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
2d6d4e96 HL |
10258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10259 | else | |
10260 | eval "$as_ac_Header=\$ac_header_preproc" | |
f3719a88 | 10261 | fi |
fc6ffb29 AJ |
10262 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10263 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10264 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
10265 | |
10266 | fi | |
f3719a88 MM |
10267 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10268 | cat >>confdefs.h <<_ACEOF | |
10269 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10270 | _ACEOF | |
fc6ffb29 AJ |
10271 | { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5 |
10272 | echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; } | |
2d6d4e96 | 10273 | if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then |
f3719a88 MM |
10274 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10275 | else | |
10276 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 10277 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
f3719a88 MM |
10278 | cat >conftest.$ac_ext <<_ACEOF |
10279 | /* confdefs.h. */ | |
10280 | _ACEOF | |
10281 | cat confdefs.h >>conftest.$ac_ext | |
10282 | cat >>conftest.$ac_ext <<_ACEOF | |
10283 | /* end confdefs.h. */ | |
10284 | ||
fc6ffb29 AJ |
10285 | /* Override any GCC internal prototype to avoid an error. |
10286 | Use char because int might match the return type of a GCC | |
10287 | builtin and then its argument prototype would still apply. */ | |
f3719a88 MM |
10288 | #ifdef __cplusplus |
10289 | extern "C" | |
10290 | #endif | |
2d6d4e96 | 10291 | char xmlParseMemory (); |
f3719a88 MM |
10292 | int |
10293 | main () | |
10294 | { | |
fc6ffb29 | 10295 | return xmlParseMemory (); |
f3719a88 MM |
10296 | ; |
10297 | return 0; | |
10298 | } | |
10299 | _ACEOF | |
10300 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
10301 | if { (ac_try="$ac_link" |
10302 | case "(($ac_try" in | |
10303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10304 | *) ac_try_echo=$ac_try;; | |
10305 | esac | |
10306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10307 | (eval "$ac_link") 2>conftest.er1 | |
f3719a88 MM |
10308 | ac_status=$? |
10309 | grep -v '^ *+' conftest.er1 >conftest.err | |
10310 | rm -f conftest.er1 | |
10311 | cat conftest.err >&5 | |
10312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10313 | (exit $ac_status); } && | |
0ebeb530 JW |
10314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10315 | { (case "(($ac_try" in | |
10316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10317 | *) ac_try_echo=$ac_try;; | |
10318 | esac | |
10319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10320 | (eval "$ac_try") 2>&5 | |
f3719a88 MM |
10321 | ac_status=$? |
10322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10323 | (exit $ac_status); }; } && | |
10324 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
10325 | { (case "(($ac_try" in |
10326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10327 | *) ac_try_echo=$ac_try;; | |
10328 | esac | |
10329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10330 | (eval "$ac_try") 2>&5 | |
f3719a88 MM |
10331 | ac_status=$? |
10332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10333 | (exit $ac_status); }; }; then | |
2d6d4e96 | 10334 | ac_cv_lib_xml2_xmlParseMemory=yes |
f3719a88 MM |
10335 | else |
10336 | echo "$as_me: failed program was:" >&5 | |
10337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10338 | ||
fc6ffb29 | 10339 | ac_cv_lib_xml2_xmlParseMemory=no |
f3719a88 | 10340 | fi |
fc6ffb29 | 10341 | |
0ebeb530 | 10342 | rm -f core conftest.err conftest.$ac_objext \ |
f3719a88 MM |
10343 | conftest$ac_exeext conftest.$ac_ext |
10344 | LIBS=$ac_check_lib_save_LIBS | |
10345 | fi | |
fc6ffb29 AJ |
10346 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5 |
10347 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; } | |
2d6d4e96 | 10348 | if test $ac_cv_lib_xml2_xmlParseMemory = yes; then |
f3719a88 MM |
10349 | |
10350 | cat >>confdefs.h <<\_ACEOF | |
2d6d4e96 | 10351 | #define HAVE_LIBXML2 1 |
f3719a88 MM |
10352 | _ACEOF |
10353 | ||
2d6d4e96 HL |
10354 | XML2LIBS="$ac_xml_libs" |
10355 | XML2INCL="$ac_xml_cflags" | |
90c75bdd | 10356 | fi |
dcc2d6c2 | 10357 | |
fc6ffb29 AJ |
10358 | { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5 |
10359 | echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; } | |
2d6d4e96 | 10360 | if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then |
daa2886c | 10361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
daa2886c | 10362 | else |
73482144 | 10363 | ac_check_lib_save_LIBS=$LIBS |
2d6d4e96 | 10364 | LIBS="-lxml2 $ac_xml_libs $LIBS" |
daa2886c | 10365 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
10366 | /* confdefs.h. */ |
10367 | _ACEOF | |
10368 | cat confdefs.h >>conftest.$ac_ext | |
10369 | cat >>conftest.$ac_ext <<_ACEOF | |
10370 | /* end confdefs.h. */ | |
73482144 | 10371 | |
fc6ffb29 AJ |
10372 | /* Override any GCC internal prototype to avoid an error. |
10373 | Use char because int might match the return type of a GCC | |
10374 | builtin and then its argument prototype would still apply. */ | |
73482144 AJ |
10375 | #ifdef __cplusplus |
10376 | extern "C" | |
10377 | #endif | |
2d6d4e96 | 10378 | char xmlReadMemory (); |
73482144 AJ |
10379 | int |
10380 | main () | |
10381 | { | |
fc6ffb29 | 10382 | return xmlReadMemory (); |
73482144 AJ |
10383 | ; |
10384 | return 0; | |
10385 | } | |
daa2886c | 10386 | _ACEOF |
73482144 | 10387 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
10388 | if { (ac_try="$ac_link" |
10389 | case "(($ac_try" in | |
10390 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10391 | *) ac_try_echo=$ac_try;; | |
10392 | esac | |
10393 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10394 | (eval "$ac_link") 2>conftest.er1 | |
daa2886c | 10395 | ac_status=$? |
875927f6 AJ |
10396 | grep -v '^ *+' conftest.er1 >conftest.err |
10397 | rm -f conftest.er1 | |
10398 | cat conftest.err >&5 | |
daa2886c AJ |
10399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10400 | (exit $ac_status); } && | |
0ebeb530 JW |
10401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10402 | { (case "(($ac_try" in | |
10403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10404 | *) ac_try_echo=$ac_try;; | |
10405 | esac | |
10406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10407 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
10408 | ac_status=$? |
10409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10410 | (exit $ac_status); }; } && | |
73482144 | 10411 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
10412 | { (case "(($ac_try" in |
10413 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10414 | *) ac_try_echo=$ac_try;; | |
10415 | esac | |
10416 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10417 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
10418 | ac_status=$? |
10419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10420 | (exit $ac_status); }; }; then | |
2d6d4e96 | 10421 | ac_cv_lib_xml2_xmlReadMemory=yes |
daa2886c AJ |
10422 | else |
10423 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
10424 | sed 's/^/| /' conftest.$ac_ext >&5 |
10425 | ||
fc6ffb29 | 10426 | ac_cv_lib_xml2_xmlReadMemory=no |
24110288 | 10427 | fi |
fc6ffb29 | 10428 | |
0ebeb530 | 10429 | rm -f core conftest.err conftest.$ac_objext \ |
73482144 AJ |
10430 | conftest$ac_exeext conftest.$ac_ext |
10431 | LIBS=$ac_check_lib_save_LIBS | |
10432 | fi | |
fc6ffb29 AJ |
10433 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5 |
10434 | echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; } | |
2d6d4e96 | 10435 | if test $ac_cv_lib_xml2_xmlReadMemory = yes; then |
24110288 | 10436 | |
73482144 | 10437 | cat >>confdefs.h <<\_ACEOF |
2d6d4e96 | 10438 | #define HAVE_XMLREADMEMORY 1 |
73482144 AJ |
10439 | _ACEOF |
10440 | ||
73482144 AJ |
10441 | fi |
10442 | ||
2d6d4e96 HL |
10443 | |
10444 | fi | |
10445 | ||
10446 | done | |
10447 | ||
10448 | CPPFLAGS="$ac_save_CPPFLAGS" | |
d01063e1 AJ |
10449 | ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`" |
10450 | ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`" | |
2d6d4e96 HL |
10451 | CPPFLAGS="$CPPFLAGS $ac_xslt_cflags" |
10452 | ||
10453 | ||
10454 | for ac_header in libxslt/pattern.h libxslt/transform.h | |
10455 | do | |
10456 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
10457 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10459 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
73482144 AJ |
10460 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10461 | else | |
2d6d4e96 | 10462 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
10463 | /* confdefs.h. */ |
10464 | _ACEOF | |
10465 | cat confdefs.h >>conftest.$ac_ext | |
10466 | cat >>conftest.$ac_ext <<_ACEOF | |
10467 | /* end confdefs.h. */ | |
2d6d4e96 HL |
10468 | #ifdef HAVE_LIBXSLT_PATTERN_H |
10469 | # include <libxslt/pattern.h> | |
73482144 | 10470 | #endif |
2d6d4e96 HL |
10471 | |
10472 | #include <$ac_header> | |
f5818d2f | 10473 | _ACEOF |
2d6d4e96 | 10474 | rm -f conftest.$ac_objext |
0ebeb530 JW |
10475 | if { (ac_try="$ac_compile" |
10476 | case "(($ac_try" in | |
10477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10478 | *) ac_try_echo=$ac_try;; | |
10479 | esac | |
10480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10481 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 10482 | ac_status=$? |
875927f6 AJ |
10483 | grep -v '^ *+' conftest.er1 >conftest.err |
10484 | rm -f conftest.er1 | |
10485 | cat conftest.err >&5 | |
daa2886c | 10486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10487 | (exit $ac_status); } && |
0ebeb530 JW |
10488 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10489 | { (case "(($ac_try" in | |
10490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10491 | *) ac_try_echo=$ac_try;; | |
10492 | esac | |
10493 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10494 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
10495 | ac_status=$? |
10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10497 | (exit $ac_status); }; } && | |
2d6d4e96 | 10498 | { ac_try='test -s conftest.$ac_objext' |
0ebeb530 JW |
10499 | { (case "(($ac_try" in |
10500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10501 | *) ac_try_echo=$ac_try;; | |
10502 | esac | |
10503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10504 | (eval "$ac_try") 2>&5 | |
f5818d2f | 10505 | ac_status=$? |
daa2886c | 10506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 10507 | (exit $ac_status); }; }; then |
2d6d4e96 | 10508 | eval "$as_ac_Header=yes" |
f5818d2f AJ |
10509 | else |
10510 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
10511 | sed 's/^/| /' conftest.$ac_ext >&5 |
10512 | ||
fc6ffb29 | 10513 | eval "$as_ac_Header=no" |
f5818d2f | 10514 | fi |
fc6ffb29 | 10515 | |
0ebeb530 | 10516 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 10517 | fi |
fc6ffb29 AJ |
10518 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10519 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10520 | echo "${ECHO_T}$ac_res" >&6; } | |
2d6d4e96 HL |
10521 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10522 | cat >>confdefs.h <<_ACEOF | |
10523 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10524 | _ACEOF | |
fc6ffb29 AJ |
10525 | { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5 |
10526 | echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; } | |
2d6d4e96 HL |
10527 | if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then |
10528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10529 | else | |
10530 | ac_check_lib_save_LIBS=$LIBS | |
10531 | LIBS="-lxslt $ac_xslt_libs $LIBS" | |
10532 | cat >conftest.$ac_ext <<_ACEOF | |
10533 | /* confdefs.h. */ | |
10534 | _ACEOF | |
10535 | cat confdefs.h >>conftest.$ac_ext | |
10536 | cat >>conftest.$ac_ext <<_ACEOF | |
10537 | /* end confdefs.h. */ | |
10538 | ||
fc6ffb29 AJ |
10539 | /* Override any GCC internal prototype to avoid an error. |
10540 | Use char because int might match the return type of a GCC | |
10541 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
10542 | #ifdef __cplusplus |
10543 | extern "C" | |
10544 | #endif | |
2d6d4e96 HL |
10545 | char xsltCompilePattern (); |
10546 | int | |
10547 | main () | |
10548 | { | |
fc6ffb29 | 10549 | return xsltCompilePattern (); |
2d6d4e96 HL |
10550 | ; |
10551 | return 0; | |
10552 | } | |
10553 | _ACEOF | |
10554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
10555 | if { (ac_try="$ac_link" |
10556 | case "(($ac_try" in | |
10557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10558 | *) ac_try_echo=$ac_try;; | |
10559 | esac | |
10560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10561 | (eval "$ac_link") 2>conftest.er1 | |
2d6d4e96 HL |
10562 | ac_status=$? |
10563 | grep -v '^ *+' conftest.er1 >conftest.err | |
10564 | rm -f conftest.er1 | |
10565 | cat conftest.err >&5 | |
10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10567 | (exit $ac_status); } && | |
0ebeb530 JW |
10568 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10569 | { (case "(($ac_try" in | |
10570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10571 | *) ac_try_echo=$ac_try;; | |
10572 | esac | |
10573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10574 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
10575 | ac_status=$? |
10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10577 | (exit $ac_status); }; } && | |
10578 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
10579 | { (case "(($ac_try" in |
10580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10581 | *) ac_try_echo=$ac_try;; | |
10582 | esac | |
10583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10584 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
10585 | ac_status=$? |
10586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10587 | (exit $ac_status); }; }; then | |
10588 | ac_cv_lib_xslt_xsltCompilePattern=yes | |
10589 | else | |
10590 | echo "$as_me: failed program was:" >&5 | |
10591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10592 | ||
fc6ffb29 | 10593 | ac_cv_lib_xslt_xsltCompilePattern=no |
2d6d4e96 | 10594 | fi |
fc6ffb29 | 10595 | |
0ebeb530 | 10596 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
10597 | conftest$ac_exeext conftest.$ac_ext |
10598 | LIBS=$ac_check_lib_save_LIBS | |
10599 | fi | |
fc6ffb29 AJ |
10600 | { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5 |
10601 | echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; } | |
2d6d4e96 HL |
10602 | if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then |
10603 | ||
10604 | cat >>confdefs.h <<\_ACEOF | |
10605 | #define HAVE_LIBXSLT 1 | |
10606 | _ACEOF | |
10607 | ||
10608 | XSLTLIBS="$ac_xslt_libs" | |
10609 | XSLTINCL="$ac_xslt_cflags" | |
10610 | fi | |
10611 | ||
10612 | ||
00068989 AJ |
10613 | fi |
10614 | ||
10615 | done | |
10616 | ||
10617 | CPPFLAGS="$ac_save_CPPFLAGS" | |
10618 | fi | |
10619 | ||
10620 | HALINCL="" | |
10621 | ||
10622 | if test "$PKG_CONFIG" != "false" | |
10623 | then | |
10624 | ac_save_CPPFLAGS="$CPPFLAGS" | |
d01063e1 AJ |
10625 | ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`" |
10626 | ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`" | |
00068989 AJ |
10627 | CPPFLAGS="$CPPFLAGS $ac_hal_cflags" |
10628 | ||
10629 | ||
10630 | for ac_header in dbus/dbus.h hal/libhal.h | |
10631 | do | |
10632 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
fc6ffb29 AJ |
10633 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
10634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10636 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
00068989 AJ |
10637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10638 | fi | |
fc6ffb29 AJ |
10639 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10640 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10641 | echo "${ECHO_T}$ac_res" >&6; } | |
00068989 AJ |
10642 | else |
10643 | # Is the header compilable? | |
fc6ffb29 AJ |
10644 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10645 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
00068989 AJ |
10646 | cat >conftest.$ac_ext <<_ACEOF |
10647 | /* confdefs.h. */ | |
10648 | _ACEOF | |
10649 | cat confdefs.h >>conftest.$ac_ext | |
10650 | cat >>conftest.$ac_ext <<_ACEOF | |
10651 | /* end confdefs.h. */ | |
10652 | $ac_includes_default | |
10653 | #include <$ac_header> | |
10654 | _ACEOF | |
10655 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
10656 | if { (ac_try="$ac_compile" |
10657 | case "(($ac_try" in | |
10658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10659 | *) ac_try_echo=$ac_try;; | |
10660 | esac | |
10661 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10662 | (eval "$ac_compile") 2>conftest.er1 | |
00068989 AJ |
10663 | ac_status=$? |
10664 | grep -v '^ *+' conftest.er1 >conftest.err | |
10665 | rm -f conftest.er1 | |
10666 | cat conftest.err >&5 | |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10668 | (exit $ac_status); } && | |
0ebeb530 JW |
10669 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10670 | { (case "(($ac_try" in | |
10671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10672 | *) ac_try_echo=$ac_try;; | |
10673 | esac | |
10674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10675 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
10676 | ac_status=$? |
10677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10678 | (exit $ac_status); }; } && | |
10679 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
10680 | { (case "(($ac_try" in |
10681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10682 | *) ac_try_echo=$ac_try;; | |
10683 | esac | |
10684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10685 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
10686 | ac_status=$? |
10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10688 | (exit $ac_status); }; }; then | |
10689 | ac_header_compiler=yes | |
10690 | else | |
10691 | echo "$as_me: failed program was:" >&5 | |
10692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10693 | ||
fc6ffb29 | 10694 | ac_header_compiler=no |
00068989 | 10695 | fi |
fc6ffb29 | 10696 | |
0ebeb530 | 10697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
10698 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10699 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
00068989 AJ |
10700 | |
10701 | # Is the header present? | |
fc6ffb29 AJ |
10702 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
00068989 AJ |
10704 | cat >conftest.$ac_ext <<_ACEOF |
10705 | /* confdefs.h. */ | |
10706 | _ACEOF | |
10707 | cat confdefs.h >>conftest.$ac_ext | |
10708 | cat >>conftest.$ac_ext <<_ACEOF | |
10709 | /* end confdefs.h. */ | |
10710 | #include <$ac_header> | |
10711 | _ACEOF | |
0ebeb530 JW |
10712 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
10713 | case "(($ac_try" in | |
10714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10715 | *) ac_try_echo=$ac_try;; | |
10716 | esac | |
10717 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10718 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
00068989 AJ |
10719 | ac_status=$? |
10720 | grep -v '^ *+' conftest.er1 >conftest.err | |
10721 | rm -f conftest.er1 | |
10722 | cat conftest.err >&5 | |
10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10724 | (exit $ac_status); } >/dev/null; then | |
10725 | if test -s conftest.err; then | |
10726 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10727 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10728 | else | |
10729 | ac_cpp_err= | |
10730 | fi | |
10731 | else | |
10732 | ac_cpp_err=yes | |
10733 | fi | |
10734 | if test -z "$ac_cpp_err"; then | |
10735 | ac_header_preproc=yes | |
10736 | else | |
10737 | echo "$as_me: failed program was:" >&5 | |
10738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10739 | ||
10740 | ac_header_preproc=no | |
10741 | fi | |
fc6ffb29 | 10742 | |
00068989 | 10743 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
10744 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10745 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
00068989 AJ |
10746 | |
10747 | # So? What about this header? | |
10748 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10749 | yes:no: ) | |
10750 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10751 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10752 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10753 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10754 | ac_header_preproc=yes | |
10755 | ;; | |
10756 | no:yes:* ) | |
10757 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10758 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10759 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10760 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10761 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10762 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10763 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10764 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10765 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10766 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10767 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10768 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
fc6ffb29 | 10769 | ( cat <<\_ASBOX |
00068989 AJ |
10770 | ## ------------------------------------ ## |
10771 | ## Report this to wine-devel@winehq.org ## | |
10772 | ## ------------------------------------ ## | |
10773 | _ASBOX | |
fc6ffb29 | 10774 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
00068989 AJ |
10775 | ;; |
10776 | esac | |
fc6ffb29 AJ |
10777 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10778 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
10779 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
00068989 AJ |
10780 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10781 | else | |
10782 | eval "$as_ac_Header=\$ac_header_preproc" | |
10783 | fi | |
fc6ffb29 AJ |
10784 | ac_res=`eval echo '${'$as_ac_Header'}'` |
10785 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
10786 | echo "${ECHO_T}$ac_res" >&6; } | |
00068989 AJ |
10787 | |
10788 | fi | |
10789 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10790 | cat >>confdefs.h <<_ACEOF | |
10791 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10792 | _ACEOF | |
b18b9f37 AJ |
10793 | |
10794 | fi | |
10795 | ||
10796 | done | |
10797 | ||
10798 | if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes" | |
10799 | then | |
fc6ffb29 AJ |
10800 | { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5 |
10801 | echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; } | |
00068989 AJ |
10802 | if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then |
10803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10804 | else | |
10805 | ac_check_lib_save_LIBS=$LIBS | |
b18b9f37 | 10806 | LIBS="-lhal $LIBS" |
00068989 AJ |
10807 | cat >conftest.$ac_ext <<_ACEOF |
10808 | /* confdefs.h. */ | |
10809 | _ACEOF | |
10810 | cat confdefs.h >>conftest.$ac_ext | |
10811 | cat >>conftest.$ac_ext <<_ACEOF | |
10812 | /* end confdefs.h. */ | |
10813 | ||
fc6ffb29 AJ |
10814 | /* Override any GCC internal prototype to avoid an error. |
10815 | Use char because int might match the return type of a GCC | |
10816 | builtin and then its argument prototype would still apply. */ | |
00068989 AJ |
10817 | #ifdef __cplusplus |
10818 | extern "C" | |
10819 | #endif | |
00068989 AJ |
10820 | char libhal_ctx_new (); |
10821 | int | |
10822 | main () | |
10823 | { | |
fc6ffb29 | 10824 | return libhal_ctx_new (); |
00068989 AJ |
10825 | ; |
10826 | return 0; | |
10827 | } | |
10828 | _ACEOF | |
10829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
10830 | if { (ac_try="$ac_link" |
10831 | case "(($ac_try" in | |
10832 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10833 | *) ac_try_echo=$ac_try;; | |
10834 | esac | |
10835 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10836 | (eval "$ac_link") 2>conftest.er1 | |
00068989 AJ |
10837 | ac_status=$? |
10838 | grep -v '^ *+' conftest.er1 >conftest.err | |
10839 | rm -f conftest.er1 | |
10840 | cat conftest.err >&5 | |
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10842 | (exit $ac_status); } && | |
0ebeb530 JW |
10843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10844 | { (case "(($ac_try" in | |
10845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10846 | *) ac_try_echo=$ac_try;; | |
10847 | esac | |
10848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10849 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
10850 | ac_status=$? |
10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10852 | (exit $ac_status); }; } && | |
10853 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
10854 | { (case "(($ac_try" in |
10855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10856 | *) ac_try_echo=$ac_try;; | |
10857 | esac | |
10858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10859 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
10860 | ac_status=$? |
10861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10862 | (exit $ac_status); }; }; then | |
10863 | ac_cv_lib_hal_libhal_ctx_new=yes | |
10864 | else | |
10865 | echo "$as_me: failed program was:" >&5 | |
10866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10867 | ||
fc6ffb29 | 10868 | ac_cv_lib_hal_libhal_ctx_new=no |
00068989 | 10869 | fi |
fc6ffb29 | 10870 | |
0ebeb530 | 10871 | rm -f core conftest.err conftest.$ac_objext \ |
00068989 AJ |
10872 | conftest$ac_exeext conftest.$ac_ext |
10873 | LIBS=$ac_check_lib_save_LIBS | |
10874 | fi | |
fc6ffb29 AJ |
10875 | { echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5 |
10876 | echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; } | |
00068989 | 10877 | if test $ac_cv_lib_hal_libhal_ctx_new = yes; then |
fc6ffb29 AJ |
10878 | { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5 |
10879 | echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; } | |
b18b9f37 AJ |
10880 | if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then |
10881 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10882 | else | |
10883 | ac_check_lib_save_LIBS=$LIBS | |
10884 | LIBS="-ldbus-1 $ac_hal_libs $LIBS" | |
10885 | cat >conftest.$ac_ext <<_ACEOF | |
10886 | /* confdefs.h. */ | |
10887 | _ACEOF | |
10888 | cat confdefs.h >>conftest.$ac_ext | |
10889 | cat >>conftest.$ac_ext <<_ACEOF | |
10890 | /* end confdefs.h. */ | |
10891 | ||
fc6ffb29 AJ |
10892 | /* Override any GCC internal prototype to avoid an error. |
10893 | Use char because int might match the return type of a GCC | |
10894 | builtin and then its argument prototype would still apply. */ | |
b18b9f37 AJ |
10895 | #ifdef __cplusplus |
10896 | extern "C" | |
10897 | #endif | |
b18b9f37 AJ |
10898 | char dbus_connection_close (); |
10899 | int | |
10900 | main () | |
10901 | { | |
fc6ffb29 | 10902 | return dbus_connection_close (); |
b18b9f37 AJ |
10903 | ; |
10904 | return 0; | |
10905 | } | |
10906 | _ACEOF | |
10907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
10908 | if { (ac_try="$ac_link" |
10909 | case "(($ac_try" in | |
10910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10911 | *) ac_try_echo=$ac_try;; | |
10912 | esac | |
10913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10914 | (eval "$ac_link") 2>conftest.er1 | |
b18b9f37 AJ |
10915 | ac_status=$? |
10916 | grep -v '^ *+' conftest.er1 >conftest.err | |
10917 | rm -f conftest.er1 | |
10918 | cat conftest.err >&5 | |
10919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10920 | (exit $ac_status); } && | |
0ebeb530 JW |
10921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10922 | { (case "(($ac_try" in | |
10923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10924 | *) ac_try_echo=$ac_try;; | |
10925 | esac | |
10926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10927 | (eval "$ac_try") 2>&5 | |
b18b9f37 AJ |
10928 | ac_status=$? |
10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); }; } && | |
10931 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
10932 | { (case "(($ac_try" in |
10933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10934 | *) ac_try_echo=$ac_try;; | |
10935 | esac | |
10936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10937 | (eval "$ac_try") 2>&5 | |
b18b9f37 AJ |
10938 | ac_status=$? |
10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10940 | (exit $ac_status); }; }; then | |
10941 | ac_cv_lib_dbus_1_dbus_connection_close=yes | |
10942 | else | |
10943 | echo "$as_me: failed program was:" >&5 | |
10944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10945 | ||
fc6ffb29 | 10946 | ac_cv_lib_dbus_1_dbus_connection_close=no |
b18b9f37 | 10947 | fi |
fc6ffb29 | 10948 | |
0ebeb530 | 10949 | rm -f core conftest.err conftest.$ac_objext \ |
b18b9f37 AJ |
10950 | conftest$ac_exeext conftest.$ac_ext |
10951 | LIBS=$ac_check_lib_save_LIBS | |
10952 | fi | |
fc6ffb29 AJ |
10953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5 |
10954 | echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; } | |
b18b9f37 | 10955 | if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then |
00068989 AJ |
10956 | |
10957 | cat >>confdefs.h <<\_ACEOF | |
10958 | #define HAVE_LIBHAL 1 | |
10959 | _ACEOF | |
10960 | ||
10961 | HALINCL="$ac_hal_cflags" | |
10962 | fi | |
10963 | ||
2d6d4e96 HL |
10964 | fi |
10965 | ||
b18b9f37 | 10966 | fi |
2d6d4e96 HL |
10967 | CPPFLAGS="$ac_save_CPPFLAGS" |
10968 | fi | |
10969 | ||
10970 | CURSESLIBS="" | |
10971 | if test "x$with_curses" != "xno" | |
10972 | then | |
10973 | if test "$ac_cv_header_ncurses_h" = "yes" | |
10974 | then | |
fc6ffb29 AJ |
10975 | { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5 |
10976 | echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; } | |
2d6d4e96 HL |
10977 | if test "${ac_cv_lib_ncurses_waddch+set}" = set; then |
10978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10979 | else | |
10980 | ac_check_lib_save_LIBS=$LIBS | |
10981 | LIBS="-lncurses $LIBS" | |
10982 | cat >conftest.$ac_ext <<_ACEOF | |
10983 | /* confdefs.h. */ | |
10984 | _ACEOF | |
10985 | cat confdefs.h >>conftest.$ac_ext | |
10986 | cat >>conftest.$ac_ext <<_ACEOF | |
10987 | /* end confdefs.h. */ | |
10988 | ||
fc6ffb29 AJ |
10989 | /* Override any GCC internal prototype to avoid an error. |
10990 | Use char because int might match the return type of a GCC | |
10991 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
10992 | #ifdef __cplusplus |
10993 | extern "C" | |
10994 | #endif | |
2d6d4e96 HL |
10995 | char waddch (); |
10996 | int | |
10997 | main () | |
10998 | { | |
fc6ffb29 | 10999 | return waddch (); |
2d6d4e96 HL |
11000 | ; |
11001 | return 0; | |
11002 | } | |
11003 | _ACEOF | |
11004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
11005 | if { (ac_try="$ac_link" |
11006 | case "(($ac_try" in | |
11007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11008 | *) ac_try_echo=$ac_try;; | |
11009 | esac | |
11010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11011 | (eval "$ac_link") 2>conftest.er1 | |
2d6d4e96 HL |
11012 | ac_status=$? |
11013 | grep -v '^ *+' conftest.er1 >conftest.err | |
11014 | rm -f conftest.er1 | |
11015 | cat conftest.err >&5 | |
11016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11017 | (exit $ac_status); } && | |
0ebeb530 JW |
11018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11019 | { (case "(($ac_try" in | |
11020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11021 | *) ac_try_echo=$ac_try;; | |
11022 | esac | |
11023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11024 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
11025 | ac_status=$? |
11026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11027 | (exit $ac_status); }; } && | |
11028 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
11029 | { (case "(($ac_try" in |
11030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11031 | *) ac_try_echo=$ac_try;; | |
11032 | esac | |
11033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11034 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
11035 | ac_status=$? |
11036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11037 | (exit $ac_status); }; }; then | |
11038 | ac_cv_lib_ncurses_waddch=yes | |
11039 | else | |
11040 | echo "$as_me: failed program was:" >&5 | |
11041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11042 | ||
fc6ffb29 | 11043 | ac_cv_lib_ncurses_waddch=no |
2d6d4e96 | 11044 | fi |
fc6ffb29 | 11045 | |
0ebeb530 | 11046 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
11047 | conftest$ac_exeext conftest.$ac_ext |
11048 | LIBS=$ac_check_lib_save_LIBS | |
11049 | fi | |
fc6ffb29 AJ |
11050 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5 |
11051 | echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; } | |
2d6d4e96 HL |
11052 | if test $ac_cv_lib_ncurses_waddch = yes; then |
11053 | ||
11054 | cat >>confdefs.h <<\_ACEOF | |
11055 | #define HAVE_LIBNCURSES 1 | |
11056 | _ACEOF | |
11057 | ||
11058 | CURSESLIBS="-lncurses" | |
11059 | fi | |
11060 | ||
11061 | elif test "$ac_cv_header_curses_h" = "yes" | |
11062 | then | |
fc6ffb29 AJ |
11063 | { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5 |
11064 | echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; } | |
2d6d4e96 HL |
11065 | if test "${ac_cv_lib_curses_waddch+set}" = set; then |
11066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11067 | else | |
11068 | ac_check_lib_save_LIBS=$LIBS | |
11069 | LIBS="-lcurses $LIBS" | |
11070 | cat >conftest.$ac_ext <<_ACEOF | |
11071 | /* confdefs.h. */ | |
11072 | _ACEOF | |
11073 | cat confdefs.h >>conftest.$ac_ext | |
11074 | cat >>conftest.$ac_ext <<_ACEOF | |
11075 | /* end confdefs.h. */ | |
11076 | ||
fc6ffb29 AJ |
11077 | /* Override any GCC internal prototype to avoid an error. |
11078 | Use char because int might match the return type of a GCC | |
11079 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
11080 | #ifdef __cplusplus |
11081 | extern "C" | |
11082 | #endif | |
2d6d4e96 HL |
11083 | char waddch (); |
11084 | int | |
11085 | main () | |
11086 | { | |
fc6ffb29 | 11087 | return waddch (); |
2d6d4e96 HL |
11088 | ; |
11089 | return 0; | |
11090 | } | |
11091 | _ACEOF | |
11092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
11093 | if { (ac_try="$ac_link" |
11094 | case "(($ac_try" in | |
11095 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11096 | *) ac_try_echo=$ac_try;; | |
11097 | esac | |
11098 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11099 | (eval "$ac_link") 2>conftest.er1 | |
2d6d4e96 HL |
11100 | ac_status=$? |
11101 | grep -v '^ *+' conftest.er1 >conftest.err | |
11102 | rm -f conftest.er1 | |
11103 | cat conftest.err >&5 | |
11104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11105 | (exit $ac_status); } && | |
0ebeb530 JW |
11106 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11107 | { (case "(($ac_try" in | |
11108 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11109 | *) ac_try_echo=$ac_try;; | |
11110 | esac | |
11111 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11112 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
11113 | ac_status=$? |
11114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11115 | (exit $ac_status); }; } && | |
11116 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
11117 | { (case "(($ac_try" in |
11118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11119 | *) ac_try_echo=$ac_try;; | |
11120 | esac | |
11121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11122 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
11123 | ac_status=$? |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11125 | (exit $ac_status); }; }; then | |
11126 | ac_cv_lib_curses_waddch=yes | |
11127 | else | |
11128 | echo "$as_me: failed program was:" >&5 | |
11129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11130 | ||
fc6ffb29 | 11131 | ac_cv_lib_curses_waddch=no |
2d6d4e96 | 11132 | fi |
fc6ffb29 | 11133 | |
0ebeb530 | 11134 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
11135 | conftest$ac_exeext conftest.$ac_ext |
11136 | LIBS=$ac_check_lib_save_LIBS | |
11137 | fi | |
fc6ffb29 AJ |
11138 | { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5 |
11139 | echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; } | |
73482144 | 11140 | if test $ac_cv_lib_curses_waddch = yes; then |
f5818d2f | 11141 | |
daa2886c | 11142 | cat >>confdefs.h <<\_ACEOF |
73482144 | 11143 | #define HAVE_LIBCURSES 1 |
daa2886c | 11144 | _ACEOF |
e884f9ca | 11145 | |
73482144 AJ |
11146 | CURSESLIBS="-lcurses" |
11147 | fi | |
11148 | ||
11149 | fi | |
f5f37a85 AJ |
11150 | ac_save_LIBS="$LIBS" |
11151 | LIBS="$LIBS $CURSESLIBS" | |
11152 | ||
11153 | for ac_func in mousemask | |
11154 | do | |
11155 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
11156 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
11157 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
11158 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
11159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11160 | else | |
11161 | cat >conftest.$ac_ext <<_ACEOF | |
11162 | /* confdefs.h. */ | |
11163 | _ACEOF | |
11164 | cat confdefs.h >>conftest.$ac_ext | |
11165 | cat >>conftest.$ac_ext <<_ACEOF | |
11166 | /* end confdefs.h. */ | |
11167 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
11168 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11169 | #define $ac_func innocuous_$ac_func | |
11170 | ||
11171 | /* System header to define __stub macros and hopefully few prototypes, | |
11172 | which can conflict with char $ac_func (); below. | |
11173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11174 | <limits.h> exists even on freestanding compilers. */ | |
11175 | ||
11176 | #ifdef __STDC__ | |
11177 | # include <limits.h> | |
11178 | #else | |
11179 | # include <assert.h> | |
11180 | #endif | |
11181 | ||
11182 | #undef $ac_func | |
11183 | ||
11184 | /* Override any GCC internal prototype to avoid an error. | |
11185 | Use char because int might match the return type of a GCC | |
11186 | builtin and then its argument prototype would still apply. */ | |
11187 | #ifdef __cplusplus | |
11188 | extern "C" | |
11189 | #endif | |
11190 | char $ac_func (); | |
11191 | /* The GNU C library defines this for functions which it implements | |
11192 | to always fail with ENOSYS. Some functions are actually named | |
11193 | something starting with __ and the normal name is an alias. */ | |
11194 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
11195 | choke me | |
11196 | #endif | |
11197 | ||
11198 | int | |
11199 | main () | |
11200 | { | |
11201 | return $ac_func (); | |
11202 | ; | |
11203 | return 0; | |
11204 | } | |
11205 | _ACEOF | |
11206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11207 | if { (ac_try="$ac_link" | |
11208 | case "(($ac_try" in | |
11209 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11210 | *) ac_try_echo=$ac_try;; | |
11211 | esac | |
11212 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11213 | (eval "$ac_link") 2>conftest.er1 | |
11214 | ac_status=$? | |
11215 | grep -v '^ *+' conftest.er1 >conftest.err | |
11216 | rm -f conftest.er1 | |
11217 | cat conftest.err >&5 | |
11218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11219 | (exit $ac_status); } && | |
11220 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
11221 | { (case "(($ac_try" in | |
11222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11223 | *) ac_try_echo=$ac_try;; | |
11224 | esac | |
11225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11226 | (eval "$ac_try") 2>&5 | |
11227 | ac_status=$? | |
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 | (exit $ac_status); }; } && | |
11230 | { ac_try='test -s conftest$ac_exeext' | |
11231 | { (case "(($ac_try" in | |
11232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11233 | *) ac_try_echo=$ac_try;; | |
11234 | esac | |
11235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11236 | (eval "$ac_try") 2>&5 | |
11237 | ac_status=$? | |
11238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11239 | (exit $ac_status); }; }; then | |
11240 | eval "$as_ac_var=yes" | |
11241 | else | |
11242 | echo "$as_me: failed program was:" >&5 | |
11243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11244 | ||
11245 | eval "$as_ac_var=no" | |
11246 | fi | |
11247 | ||
11248 | rm -f core conftest.err conftest.$ac_objext \ | |
11249 | conftest$ac_exeext conftest.$ac_ext | |
11250 | fi | |
11251 | ac_res=`eval echo '${'$as_ac_var'}'` | |
11252 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
11253 | echo "${ECHO_T}$ac_res" >&6; } | |
11254 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
11255 | cat >>confdefs.h <<_ACEOF | |
11256 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
11257 | _ACEOF | |
11258 | ||
11259 | fi | |
11260 | done | |
11261 | ||
11262 | LIBS="$ac_save_LIBS" | |
73482144 | 11263 | fi |
f5818d2f | 11264 | |
73482144 AJ |
11265 | |
11266 | # Extract the first word of "sane-config", so it can be a program name with args. | |
11267 | set dummy sane-config; ac_word=$2 | |
fc6ffb29 AJ |
11268 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11269 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
73482144 AJ |
11270 | if test "${ac_cv_prog_sane_devel+set}" = set; then |
11271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11272 | else | |
11273 | if test -n "$sane_devel"; then | |
11274 | ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test. | |
11275 | else | |
11276 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11277 | for as_dir in $PATH | |
24110288 | 11278 | do |
73482144 AJ |
11279 | IFS=$as_save_IFS |
11280 | test -z "$as_dir" && as_dir=. | |
11281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 11282 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
73482144 AJ |
11283 | ac_cv_prog_sane_devel="sane-config" |
11284 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11285 | break 2 | |
11286 | fi | |
11287 | done | |
11288 | done | |
fc6ffb29 | 11289 | IFS=$as_save_IFS |
73482144 AJ |
11290 | |
11291 | test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no" | |
11292 | fi | |
11293 | fi | |
11294 | sane_devel=$ac_cv_prog_sane_devel | |
11295 | if test -n "$sane_devel"; then | |
fc6ffb29 AJ |
11296 | { echo "$as_me:$LINENO: result: $sane_devel" >&5 |
11297 | echo "${ECHO_T}$sane_devel" >&6; } | |
73482144 | 11298 | else |
fc6ffb29 AJ |
11299 | { echo "$as_me:$LINENO: result: no" >&5 |
11300 | echo "${ECHO_T}no" >&6; } | |
73482144 AJ |
11301 | fi |
11302 | ||
fc6ffb29 | 11303 | |
82776020 AJ |
11304 | SANELIBS="" |
11305 | ||
11306 | SANEINCL="" | |
11307 | ||
11308 | if test "$sane_devel" != "no" | |
73482144 | 11309 | then |
73482144 AJ |
11310 | SANELIBS="`$sane_devel --libs`" |
11311 | SANEINCL="`$sane_devel --cflags`" | |
11312 | ac_save_CPPFLAGS="$CPPFLAGS" | |
11313 | ac_save_LIBS="$LIBS" | |
11314 | CPPFLAGS="$CPPFLAGS $SANEINCL" | |
11315 | LIBS="$LIBS $SANELIBS" | |
11316 | if test "${ac_cv_header_sane_sane_h+set}" = set; then | |
fc6ffb29 AJ |
11317 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
11318 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } | |
73482144 | 11319 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
f5818d2f | 11320 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
daa2886c | 11321 | fi |
fc6ffb29 AJ |
11322 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
11323 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } | |
f5818d2f | 11324 | else |
daa2886c | 11325 | # Is the header compilable? |
fc6ffb29 AJ |
11326 | { echo "$as_me:$LINENO: checking sane/sane.h usability" >&5 |
11327 | echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; } | |
daa2886c | 11328 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
11329 | /* confdefs.h. */ |
11330 | _ACEOF | |
11331 | cat confdefs.h >>conftest.$ac_ext | |
11332 | cat >>conftest.$ac_ext <<_ACEOF | |
11333 | /* end confdefs.h. */ | |
daa2886c | 11334 | $ac_includes_default |
73482144 | 11335 | #include <sane/sane.h> |
daa2886c AJ |
11336 | _ACEOF |
11337 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
11338 | if { (ac_try="$ac_compile" |
11339 | case "(($ac_try" in | |
11340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11341 | *) ac_try_echo=$ac_try;; | |
11342 | esac | |
11343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11344 | (eval "$ac_compile") 2>conftest.er1 | |
daa2886c | 11345 | ac_status=$? |
875927f6 AJ |
11346 | grep -v '^ *+' conftest.er1 >conftest.err |
11347 | rm -f conftest.er1 | |
11348 | cat conftest.err >&5 | |
daa2886c AJ |
11349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11350 | (exit $ac_status); } && | |
0ebeb530 JW |
11351 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11352 | { (case "(($ac_try" in | |
11353 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11354 | *) ac_try_echo=$ac_try;; | |
11355 | esac | |
11356 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11357 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
11358 | ac_status=$? |
11359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11360 | (exit $ac_status); }; } && | |
11361 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
11362 | { (case "(($ac_try" in |
11363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11364 | *) ac_try_echo=$ac_try;; | |
11365 | esac | |
11366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11367 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
11368 | ac_status=$? |
11369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11370 | (exit $ac_status); }; }; then | |
11371 | ac_header_compiler=yes | |
11372 | else | |
11373 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
11374 | sed 's/^/| /' conftest.$ac_ext >&5 |
11375 | ||
fc6ffb29 | 11376 | ac_header_compiler=no |
daa2886c | 11377 | fi |
fc6ffb29 | 11378 | |
0ebeb530 | 11379 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
11380 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11381 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
daa2886c AJ |
11382 | |
11383 | # Is the header present? | |
fc6ffb29 AJ |
11384 | { echo "$as_me:$LINENO: checking sane/sane.h presence" >&5 |
11385 | echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; } | |
daa2886c | 11386 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
11387 | /* confdefs.h. */ |
11388 | _ACEOF | |
11389 | cat confdefs.h >>conftest.$ac_ext | |
11390 | cat >>conftest.$ac_ext <<_ACEOF | |
11391 | /* end confdefs.h. */ | |
73482144 | 11392 | #include <sane/sane.h> |
f5818d2f | 11393 | _ACEOF |
0ebeb530 JW |
11394 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11395 | case "(($ac_try" in | |
11396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11397 | *) ac_try_echo=$ac_try;; | |
11398 | esac | |
11399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11400 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 11401 | ac_status=$? |
11af04e3 | 11402 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
11403 | rm -f conftest.er1 |
11404 | cat conftest.err >&5 | |
daa2886c | 11405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
11406 | (exit $ac_status); } >/dev/null; then |
11407 | if test -s conftest.err; then | |
11408 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 11409 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
11410 | else |
11411 | ac_cpp_err= | |
11412 | fi | |
11413 | else | |
11414 | ac_cpp_err=yes | |
11415 | fi | |
11416 | if test -z "$ac_cpp_err"; then | |
daa2886c | 11417 | ac_header_preproc=yes |
f5818d2f AJ |
11418 | else |
11419 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
11420 | sed 's/^/| /' conftest.$ac_ext >&5 |
11421 | ||
daa2886c | 11422 | ac_header_preproc=no |
24110288 | 11423 | fi |
fc6ffb29 | 11424 | |
f5818d2f | 11425 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
11426 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11427 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
daa2886c AJ |
11428 | |
11429 | # So? What about this header? | |
875927f6 AJ |
11430 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
11431 | yes:no: ) | |
73482144 AJ |
11432 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
11433 | echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11434 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5 | |
11435 | echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;} | |
875927f6 | 11436 | ac_header_preproc=yes |
e24bcc77 | 11437 | ;; |
875927f6 | 11438 | no:yes:* ) |
73482144 AJ |
11439 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5 |
11440 | echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;} | |
11441 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5 | |
11442 | echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;} | |
11443 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5 | |
11444 | echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;} | |
11445 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11446 | echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
11447 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5 | |
11448 | echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;} | |
11449 | { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5 | |
11450 | echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;} | |
fc6ffb29 | 11451 | ( cat <<\_ASBOX |
e24bcc77 | 11452 | ## ------------------------------------ ## |
875927f6 | 11453 | ## Report this to wine-devel@winehq.org ## |
e24bcc77 AJ |
11454 | ## ------------------------------------ ## |
11455 | _ASBOX | |
fc6ffb29 | 11456 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
e24bcc77 | 11457 | ;; |
daa2886c | 11458 | esac |
fc6ffb29 AJ |
11459 | { echo "$as_me:$LINENO: checking for sane/sane.h" >&5 |
11460 | echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; } | |
73482144 | 11461 | if test "${ac_cv_header_sane_sane_h+set}" = set; then |
daa2886c AJ |
11462 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11463 | else | |
73482144 | 11464 | ac_cv_header_sane_sane_h=$ac_header_preproc |
24110288 | 11465 | fi |
fc6ffb29 AJ |
11466 | { echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5 |
11467 | echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; } | |
daa2886c AJ |
11468 | |
11469 | fi | |
73482144 | 11470 | if test $ac_cv_header_sane_sane_h = yes; then |
fc6ffb29 AJ |
11471 | { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5 |
11472 | echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; } | |
73482144 | 11473 | if test "${ac_cv_lib_sane_sane_open+set}" = set; then |
f5818d2f | 11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
e884f9ca | 11475 | else |
f5818d2f | 11476 | ac_check_lib_save_LIBS=$LIBS |
73482144 | 11477 | LIBS="-lsane $LIBS" |
f5818d2f | 11478 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
11479 | /* confdefs.h. */ |
11480 | _ACEOF | |
11481 | cat confdefs.h >>conftest.$ac_ext | |
11482 | cat >>conftest.$ac_ext <<_ACEOF | |
11483 | /* end confdefs.h. */ | |
f5818d2f | 11484 | |
fc6ffb29 AJ |
11485 | /* Override any GCC internal prototype to avoid an error. |
11486 | Use char because int might match the return type of a GCC | |
11487 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
11488 | #ifdef __cplusplus |
11489 | extern "C" | |
11490 | #endif | |
73482144 | 11491 | char sane_open (); |
f5818d2f AJ |
11492 | int |
11493 | main () | |
11494 | { | |
fc6ffb29 | 11495 | return sane_open (); |
f5818d2f AJ |
11496 | ; |
11497 | return 0; | |
11498 | } | |
11499 | _ACEOF | |
11500 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
11501 | if { (ac_try="$ac_link" |
11502 | case "(($ac_try" in | |
11503 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11504 | *) ac_try_echo=$ac_try;; | |
11505 | esac | |
11506 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11507 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 11508 | ac_status=$? |
875927f6 AJ |
11509 | grep -v '^ *+' conftest.er1 >conftest.err |
11510 | rm -f conftest.er1 | |
11511 | cat conftest.err >&5 | |
daa2886c | 11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 11513 | (exit $ac_status); } && |
0ebeb530 JW |
11514 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11515 | { (case "(($ac_try" in | |
11516 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11517 | *) ac_try_echo=$ac_try;; | |
11518 | esac | |
11519 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11520 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
11521 | ac_status=$? |
11522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11523 | (exit $ac_status); }; } && | |
11524 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
11525 | { (case "(($ac_try" in |
11526 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11527 | *) ac_try_echo=$ac_try;; | |
11528 | esac | |
11529 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11530 | (eval "$ac_try") 2>&5 | |
f5818d2f | 11531 | ac_status=$? |
daa2886c | 11532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 11533 | (exit $ac_status); }; }; then |
73482144 | 11534 | ac_cv_lib_sane_sane_open=yes |
f5818d2f AJ |
11535 | else |
11536 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
11537 | sed 's/^/| /' conftest.$ac_ext >&5 |
11538 | ||
fc6ffb29 | 11539 | ac_cv_lib_sane_sane_open=no |
f5818d2f | 11540 | fi |
fc6ffb29 | 11541 | |
0ebeb530 | 11542 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 11543 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f AJ |
11544 | LIBS=$ac_check_lib_save_LIBS |
11545 | fi | |
fc6ffb29 AJ |
11546 | { echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5 |
11547 | echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; } | |
73482144 | 11548 | if test $ac_cv_lib_sane_sane_open = yes; then |
f5818d2f | 11549 | |
daa2886c | 11550 | cat >>confdefs.h <<\_ACEOF |
73482144 | 11551 | #define HAVE_SANE 1 |
daa2886c | 11552 | _ACEOF |
e884f9ca | 11553 | |
73482144 AJ |
11554 | else |
11555 | SANELIBS="" | |
11556 | SANEINCL="" | |
638f169b | 11557 | fi |
48957684 | 11558 | |
73482144 AJ |
11559 | else |
11560 | SANELIBS="" | |
11561 | SANEINCL="" | |
48957684 | 11562 | fi |
daa2886c | 11563 | |
f544507b | 11564 | |
73482144 AJ |
11565 | LIBS="$ac_save_LIBS" |
11566 | CPPFLAGS="$ac_save_CPPFLAGS" | |
e884f9ca JP |
11567 | fi |
11568 | ||
40e7ef3a MM |
11569 | # Extract the first word of "gphoto2-config", so it can be a program name with args. |
11570 | set dummy gphoto2-config; ac_word=$2 | |
fc6ffb29 AJ |
11571 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
40e7ef3a MM |
11573 | if test "${ac_cv_prog_gphoto2_devel+set}" = set; then |
11574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11575 | else | |
11576 | if test -n "$gphoto2_devel"; then | |
11577 | ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test. | |
11578 | else | |
11579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11580 | for as_dir in $PATH | |
11581 | do | |
11582 | IFS=$as_save_IFS | |
11583 | test -z "$as_dir" && as_dir=. | |
11584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 11585 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
40e7ef3a MM |
11586 | ac_cv_prog_gphoto2_devel="gphoto2-config" |
11587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11588 | break 2 | |
11589 | fi | |
11590 | done | |
11591 | done | |
fc6ffb29 | 11592 | IFS=$as_save_IFS |
40e7ef3a MM |
11593 | |
11594 | test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no" | |
11595 | fi | |
11596 | fi | |
11597 | gphoto2_devel=$ac_cv_prog_gphoto2_devel | |
11598 | if test -n "$gphoto2_devel"; then | |
fc6ffb29 AJ |
11599 | { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5 |
11600 | echo "${ECHO_T}$gphoto2_devel" >&6; } | |
40e7ef3a | 11601 | else |
fc6ffb29 AJ |
11602 | { echo "$as_me:$LINENO: result: no" >&5 |
11603 | echo "${ECHO_T}no" >&6; } | |
40e7ef3a MM |
11604 | fi |
11605 | ||
fc6ffb29 | 11606 | |
40e7ef3a MM |
11607 | # Extract the first word of "gphoto2-port-config", so it can be a program name with args. |
11608 | set dummy gphoto2-port-config; ac_word=$2 | |
fc6ffb29 AJ |
11609 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11610 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
40e7ef3a MM |
11611 | if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then |
11612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11613 | else | |
11614 | if test -n "$gphoto2port_devel"; then | |
11615 | ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test. | |
11616 | else | |
11617 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11618 | for as_dir in $PATH | |
11619 | do | |
11620 | IFS=$as_save_IFS | |
11621 | test -z "$as_dir" && as_dir=. | |
11622 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 11623 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
40e7ef3a MM |
11624 | ac_cv_prog_gphoto2port_devel="gphoto2-port-config" |
11625 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11626 | break 2 | |
11627 | fi | |
11628 | done | |
11629 | done | |
fc6ffb29 | 11630 | IFS=$as_save_IFS |
40e7ef3a MM |
11631 | |
11632 | test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no" | |
11633 | fi | |
11634 | fi | |
11635 | gphoto2port_devel=$ac_cv_prog_gphoto2port_devel | |
11636 | if test -n "$gphoto2port_devel"; then | |
fc6ffb29 AJ |
11637 | { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5 |
11638 | echo "${ECHO_T}$gphoto2port_devel" >&6; } | |
40e7ef3a | 11639 | else |
fc6ffb29 AJ |
11640 | { echo "$as_me:$LINENO: result: no" >&5 |
11641 | echo "${ECHO_T}no" >&6; } | |
40e7ef3a MM |
11642 | fi |
11643 | ||
fc6ffb29 | 11644 | |
40e7ef3a MM |
11645 | GPHOTO2LIBS="" |
11646 | ||
11647 | GPHOTO2INCL="" | |
11648 | ||
11649 | if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no" | |
11650 | then | |
11651 | GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`" | |
11652 | GPHOTO2LIBS="" | |
11653 | for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs` | |
11654 | do | |
11655 | case "$i" in | |
11656 | -L/usr/lib|-L/usr/lib64) ;; | |
11657 | -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";; | |
11658 | esac | |
11659 | done | |
11660 | ac_save_CPPFLAGS="$CPPFLAGS" | |
11661 | ac_save_LIBS="$LIBS" | |
11662 | CPPFLAGS="$CPPFLAGS $GPHOTO2INCL" | |
11663 | LIBS="$LIBS $GPHOTO2LIBS" | |
11664 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then | |
fc6ffb29 AJ |
11665 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
11666 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } | |
40e7ef3a MM |
11667 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
11668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11669 | fi | |
fc6ffb29 AJ |
11670 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
11671 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } | |
40e7ef3a MM |
11672 | else |
11673 | # Is the header compilable? | |
fc6ffb29 AJ |
11674 | { echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5 |
11675 | echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; } | |
40e7ef3a MM |
11676 | cat >conftest.$ac_ext <<_ACEOF |
11677 | /* confdefs.h. */ | |
11678 | _ACEOF | |
11679 | cat confdefs.h >>conftest.$ac_ext | |
11680 | cat >>conftest.$ac_ext <<_ACEOF | |
11681 | /* end confdefs.h. */ | |
11682 | $ac_includes_default | |
11683 | #include <gphoto2-camera.h> | |
11684 | _ACEOF | |
11685 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
11686 | if { (ac_try="$ac_compile" |
11687 | case "(($ac_try" in | |
11688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11689 | *) ac_try_echo=$ac_try;; | |
11690 | esac | |
11691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11692 | (eval "$ac_compile") 2>conftest.er1 | |
40e7ef3a MM |
11693 | ac_status=$? |
11694 | grep -v '^ *+' conftest.er1 >conftest.err | |
11695 | rm -f conftest.er1 | |
11696 | cat conftest.err >&5 | |
11697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11698 | (exit $ac_status); } && | |
0ebeb530 JW |
11699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11700 | { (case "(($ac_try" in | |
11701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11702 | *) ac_try_echo=$ac_try;; | |
11703 | esac | |
11704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11705 | (eval "$ac_try") 2>&5 | |
40e7ef3a MM |
11706 | ac_status=$? |
11707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11708 | (exit $ac_status); }; } && | |
11709 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
11710 | { (case "(($ac_try" in |
11711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11712 | *) ac_try_echo=$ac_try;; | |
11713 | esac | |
11714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11715 | (eval "$ac_try") 2>&5 | |
40e7ef3a MM |
11716 | ac_status=$? |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); }; }; then | |
11719 | ac_header_compiler=yes | |
11720 | else | |
11721 | echo "$as_me: failed program was:" >&5 | |
11722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11723 | ||
fc6ffb29 | 11724 | ac_header_compiler=no |
40e7ef3a | 11725 | fi |
fc6ffb29 | 11726 | |
0ebeb530 | 11727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 AJ |
11728 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11729 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
40e7ef3a MM |
11730 | |
11731 | # Is the header present? | |
fc6ffb29 AJ |
11732 | { echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5 |
11733 | echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; } | |
40e7ef3a MM |
11734 | cat >conftest.$ac_ext <<_ACEOF |
11735 | /* confdefs.h. */ | |
11736 | _ACEOF | |
11737 | cat confdefs.h >>conftest.$ac_ext | |
11738 | cat >>conftest.$ac_ext <<_ACEOF | |
11739 | /* end confdefs.h. */ | |
11740 | #include <gphoto2-camera.h> | |
11741 | _ACEOF | |
0ebeb530 JW |
11742 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
11743 | case "(($ac_try" in | |
11744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11745 | *) ac_try_echo=$ac_try;; | |
11746 | esac | |
11747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11748 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
40e7ef3a MM |
11749 | ac_status=$? |
11750 | grep -v '^ *+' conftest.er1 >conftest.err | |
11751 | rm -f conftest.er1 | |
11752 | cat conftest.err >&5 | |
11753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11754 | (exit $ac_status); } >/dev/null; then | |
11755 | if test -s conftest.err; then | |
11756 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11757 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11758 | else | |
11759 | ac_cpp_err= | |
11760 | fi | |
11761 | else | |
11762 | ac_cpp_err=yes | |
11763 | fi | |
11764 | if test -z "$ac_cpp_err"; then | |
11765 | ac_header_preproc=yes | |
11766 | else | |
11767 | echo "$as_me: failed program was:" >&5 | |
11768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11769 | ||
11770 | ac_header_preproc=no | |
11771 | fi | |
fc6ffb29 | 11772 | |
40e7ef3a | 11773 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
11774 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11775 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
40e7ef3a MM |
11776 | |
11777 | # So? What about this header? | |
11778 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11779 | yes:no: ) | |
11780 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11781 | echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11782 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5 | |
11783 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;} | |
11784 | ac_header_preproc=yes | |
11785 | ;; | |
11786 | no:yes:* ) | |
11787 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5 | |
11788 | echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;} | |
11789 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5 | |
11790 | echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;} | |
11791 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5 | |
11792 | echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;} | |
11793 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5 | |
11794 | echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
11795 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5 | |
11796 | echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;} | |
11797 | { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5 | |
11798 | echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;} | |
fc6ffb29 | 11799 | ( cat <<\_ASBOX |
40e7ef3a MM |
11800 | ## ------------------------------------ ## |
11801 | ## Report this to wine-devel@winehq.org ## | |
11802 | ## ------------------------------------ ## | |
11803 | _ASBOX | |
fc6ffb29 | 11804 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
40e7ef3a MM |
11805 | ;; |
11806 | esac | |
fc6ffb29 AJ |
11807 | { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5 |
11808 | echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; } | |
40e7ef3a MM |
11809 | if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then |
11810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11811 | else | |
11812 | ac_cv_header_gphoto2_camera_h=$ac_header_preproc | |
11813 | fi | |
fc6ffb29 AJ |
11814 | { echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5 |
11815 | echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; } | |
40e7ef3a MM |
11816 | |
11817 | fi | |
11818 | if test $ac_cv_header_gphoto2_camera_h = yes; then | |
fc6ffb29 AJ |
11819 | { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5 |
11820 | echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; } | |
40e7ef3a MM |
11821 | if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then |
11822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11823 | else | |
11824 | ac_check_lib_save_LIBS=$LIBS | |
11825 | LIBS="-lgphoto2 $LIBS" | |
11826 | cat >conftest.$ac_ext <<_ACEOF | |
11827 | /* confdefs.h. */ | |
11828 | _ACEOF | |
11829 | cat confdefs.h >>conftest.$ac_ext | |
11830 | cat >>conftest.$ac_ext <<_ACEOF | |
11831 | /* end confdefs.h. */ | |
11832 | ||
fc6ffb29 AJ |
11833 | /* Override any GCC internal prototype to avoid an error. |
11834 | Use char because int might match the return type of a GCC | |
11835 | builtin and then its argument prototype would still apply. */ | |
40e7ef3a MM |
11836 | #ifdef __cplusplus |
11837 | extern "C" | |
11838 | #endif | |
40e7ef3a MM |
11839 | char gp_camera_new (); |
11840 | int | |
11841 | main () | |
11842 | { | |
fc6ffb29 | 11843 | return gp_camera_new (); |
40e7ef3a MM |
11844 | ; |
11845 | return 0; | |
11846 | } | |
11847 | _ACEOF | |
11848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
11849 | if { (ac_try="$ac_link" |
11850 | case "(($ac_try" in | |
11851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11852 | *) ac_try_echo=$ac_try;; | |
11853 | esac | |
11854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11855 | (eval "$ac_link") 2>conftest.er1 | |
40e7ef3a MM |
11856 | ac_status=$? |
11857 | grep -v '^ *+' conftest.er1 >conftest.err | |
11858 | rm -f conftest.er1 | |
11859 | cat conftest.err >&5 | |
11860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11861 | (exit $ac_status); } && | |
0ebeb530 JW |
11862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11863 | { (case "(($ac_try" in | |
11864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11865 | *) ac_try_echo=$ac_try;; | |
11866 | esac | |
11867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11868 | (eval "$ac_try") 2>&5 | |
40e7ef3a MM |
11869 | ac_status=$? |
11870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11871 | (exit $ac_status); }; } && | |
11872 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
11873 | { (case "(($ac_try" in |
11874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11875 | *) ac_try_echo=$ac_try;; | |
11876 | esac | |
11877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11878 | (eval "$ac_try") 2>&5 | |
40e7ef3a MM |
11879 | ac_status=$? |
11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11881 | (exit $ac_status); }; }; then | |
11882 | ac_cv_lib_gphoto2_gp_camera_new=yes | |
11883 | else | |
11884 | echo "$as_me: failed program was:" >&5 | |
11885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11886 | ||
fc6ffb29 | 11887 | ac_cv_lib_gphoto2_gp_camera_new=no |
40e7ef3a | 11888 | fi |
fc6ffb29 | 11889 | |
0ebeb530 | 11890 | rm -f core conftest.err conftest.$ac_objext \ |
40e7ef3a MM |
11891 | conftest$ac_exeext conftest.$ac_ext |
11892 | LIBS=$ac_check_lib_save_LIBS | |
11893 | fi | |
fc6ffb29 AJ |
11894 | { echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5 |
11895 | echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; } | |
40e7ef3a MM |
11896 | if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then |
11897 | ||
11898 | cat >>confdefs.h <<\_ACEOF | |
11899 | #define HAVE_GPHOTO2 1 | |
11900 | _ACEOF | |
11901 | ||
11902 | else | |
11903 | GPHOTO2LIBS="" | |
11904 | GPHOTO2INCL="" | |
11905 | fi | |
11906 | ||
11907 | else | |
11908 | GPHOTO2LIBS="" | |
11909 | GPHOTO2INCL="" | |
11910 | fi | |
11911 | ||
11912 | ||
11913 | LIBS="$ac_save_LIBS" | |
11914 | CPPFLAGS="$ac_save_CPPFLAGS" | |
11915 | fi | |
11916 | ||
73482144 | 11917 | if test "$ac_cv_header_unicode_ubidi_h" = "yes" |
6b0720f5 | 11918 | then |
73482144 | 11919 | saved_libs="$LIBS" |
ee112fc7 SB |
11920 | for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu |
11921 | do | |
11922 | TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}" | |
11923 | TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}" | |
11924 | { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5 | |
11925 | echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; } | |
11926 | LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" | |
11927 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
11928 | /* confdefs.h. */ |
11929 | _ACEOF | |
11930 | cat confdefs.h >>conftest.$ac_ext | |
11931 | cat >>conftest.$ac_ext <<_ACEOF | |
11932 | /* end confdefs.h. */ | |
73482144 AJ |
11933 | #include <unicode/ubidi.h> |
11934 | int | |
11935 | main () | |
11936 | { | |
11937 | ubidi_open() | |
11938 | ; | |
11939 | return 0; | |
11940 | } | |
daa2886c | 11941 | _ACEOF |
73482144 | 11942 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
11943 | if { (ac_try="$ac_link" |
11944 | case "(($ac_try" in | |
11945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11946 | *) ac_try_echo=$ac_try;; | |
11947 | esac | |
11948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11949 | (eval "$ac_link") 2>conftest.er1 | |
daa2886c | 11950 | ac_status=$? |
875927f6 AJ |
11951 | grep -v '^ *+' conftest.er1 >conftest.err |
11952 | rm -f conftest.er1 | |
11953 | cat conftest.err >&5 | |
daa2886c AJ |
11954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11955 | (exit $ac_status); } && | |
0ebeb530 JW |
11956 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
11957 | { (case "(($ac_try" in | |
11958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11959 | *) ac_try_echo=$ac_try;; | |
11960 | esac | |
11961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11962 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
11963 | ac_status=$? |
11964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11965 | (exit $ac_status); }; } && | |
73482144 | 11966 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
11967 | { (case "(($ac_try" in |
11968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11969 | *) ac_try_echo=$ac_try;; | |
11970 | esac | |
11971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11972 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
11973 | ac_status=$? |
11974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11975 | (exit $ac_status); }; }; then | |
e24bcc77 | 11976 | |
73482144 AJ |
11977 | cat >>confdefs.h <<\_ACEOF |
11978 | #define HAVE_ICU 1 | |
6b0720f5 | 11979 | _ACEOF |
73482144 | 11980 | |
ee112fc7 | 11981 | ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s" |
73482144 | 11982 | |
ee112fc7 | 11983 | { echo "$as_me:$LINENO: result: yes" >&5 |
fc6ffb29 | 11984 | echo "${ECHO_T}yes" >&6; } |
6b0720f5 SQH |
11985 | else |
11986 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
11987 | sed 's/^/| /' conftest.$ac_ext >&5 |
11988 | ||
fc6ffb29 AJ |
11989 | { echo "$as_me:$LINENO: result: no" >&5 |
11990 | echo "${ECHO_T}no" >&6; } | |
6b0720f5 | 11991 | fi |
fc6ffb29 | 11992 | |
0ebeb530 | 11993 | rm -f core conftest.err conftest.$ac_objext \ |
73482144 | 11994 | conftest$ac_exeext conftest.$ac_ext |
ee112fc7 | 11995 | done |
73482144 | 11996 | LIBS="$saved_libs" |
6b0720f5 | 11997 | fi |
daa2886c | 11998 | |
2d6d4e96 | 11999 | RESOLVLIBS="" |
73482144 | 12000 | |
2d6d4e96 | 12001 | if test "$ac_cv_header_resolv_h" = "yes" |
73482144 | 12002 | then |
fc6ffb29 AJ |
12003 | { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5 |
12004 | echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; } | |
2d6d4e96 | 12005 | if test "${ac_cv_lib_resolv_res_query+set}" = set; then |
6b0720f5 SQH |
12006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12007 | else | |
12008 | ac_check_lib_save_LIBS=$LIBS | |
2d6d4e96 | 12009 | LIBS="-lresolv $LIBS" |
6b0720f5 | 12010 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
12011 | /* confdefs.h. */ |
12012 | _ACEOF | |
12013 | cat confdefs.h >>conftest.$ac_ext | |
12014 | cat >>conftest.$ac_ext <<_ACEOF | |
12015 | /* end confdefs.h. */ | |
6b0720f5 | 12016 | |
fc6ffb29 AJ |
12017 | /* Override any GCC internal prototype to avoid an error. |
12018 | Use char because int might match the return type of a GCC | |
12019 | builtin and then its argument prototype would still apply. */ | |
6b0720f5 SQH |
12020 | #ifdef __cplusplus |
12021 | extern "C" | |
12022 | #endif | |
2d6d4e96 | 12023 | char res_query (); |
6b0720f5 SQH |
12024 | int |
12025 | main () | |
12026 | { | |
fc6ffb29 | 12027 | return res_query (); |
6b0720f5 SQH |
12028 | ; |
12029 | return 0; | |
12030 | } | |
12031 | _ACEOF | |
12032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12033 | if { (ac_try="$ac_link" |
12034 | case "(($ac_try" in | |
12035 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12036 | *) ac_try_echo=$ac_try;; | |
12037 | esac | |
12038 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12039 | (eval "$ac_link") 2>conftest.er1 | |
6b0720f5 | 12040 | ac_status=$? |
875927f6 AJ |
12041 | grep -v '^ *+' conftest.er1 >conftest.err |
12042 | rm -f conftest.er1 | |
12043 | cat conftest.err >&5 | |
daa2886c | 12044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6b0720f5 | 12045 | (exit $ac_status); } && |
0ebeb530 JW |
12046 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12047 | { (case "(($ac_try" in | |
12048 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12049 | *) ac_try_echo=$ac_try;; | |
12050 | esac | |
12051 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12052 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
12053 | ac_status=$? |
12054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12055 | (exit $ac_status); }; } && | |
12056 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12057 | { (case "(($ac_try" in |
12058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12059 | *) ac_try_echo=$ac_try;; | |
12060 | esac | |
12061 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12062 | (eval "$ac_try") 2>&5 | |
6b0720f5 | 12063 | ac_status=$? |
daa2886c | 12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6b0720f5 | 12065 | (exit $ac_status); }; }; then |
2d6d4e96 | 12066 | ac_cv_lib_resolv_res_query=yes |
6b0720f5 SQH |
12067 | else |
12068 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
12069 | sed 's/^/| /' conftest.$ac_ext >&5 |
12070 | ||
fc6ffb29 | 12071 | ac_cv_lib_resolv_res_query=no |
6b0720f5 | 12072 | fi |
fc6ffb29 | 12073 | |
0ebeb530 | 12074 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 12075 | conftest$ac_exeext conftest.$ac_ext |
6b0720f5 SQH |
12076 | LIBS=$ac_check_lib_save_LIBS |
12077 | fi | |
fc6ffb29 AJ |
12078 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5 |
12079 | echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; } | |
2d6d4e96 | 12080 | if test $ac_cv_lib_resolv_res_query = yes; then |
6b0720f5 | 12081 | |
daa2886c | 12082 | cat >>confdefs.h <<\_ACEOF |
2d6d4e96 | 12083 | #define HAVE_RESOLV 1 |
daa2886c | 12084 | _ACEOF |
6b0720f5 | 12085 | |
2d6d4e96 | 12086 | RESOLVLIBS="-lresolv" |
6b0720f5 SQH |
12087 | fi |
12088 | ||
6b0720f5 SQH |
12089 | fi |
12090 | ||
2d6d4e96 | 12091 | LCMSLIBS="" |
daa2886c | 12092 | |
2d6d4e96 | 12093 | if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes" |
73482144 | 12094 | then |
fc6ffb29 AJ |
12095 | { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5 |
12096 | echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; } | |
2d6d4e96 | 12097 | if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then |
73482144 | 12098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4ee8290b | 12099 | else |
73482144 | 12100 | ac_check_lib_save_LIBS=$LIBS |
2d6d4e96 HL |
12101 | LIBS="-llcms $LIBS" |
12102 | cat >conftest.$ac_ext <<_ACEOF | |
12103 | /* confdefs.h. */ | |
12104 | _ACEOF | |
12105 | cat confdefs.h >>conftest.$ac_ext | |
12106 | cat >>conftest.$ac_ext <<_ACEOF | |
12107 | /* end confdefs.h. */ | |
12108 | ||
fc6ffb29 AJ |
12109 | /* Override any GCC internal prototype to avoid an error. |
12110 | Use char because int might match the return type of a GCC | |
12111 | builtin and then its argument prototype would still apply. */ | |
2d6d4e96 HL |
12112 | #ifdef __cplusplus |
12113 | extern "C" | |
12114 | #endif | |
2d6d4e96 HL |
12115 | char cmsOpenProfileFromFile (); |
12116 | int | |
12117 | main () | |
12118 | { | |
fc6ffb29 | 12119 | return cmsOpenProfileFromFile (); |
2d6d4e96 HL |
12120 | ; |
12121 | return 0; | |
12122 | } | |
12123 | _ACEOF | |
12124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12125 | if { (ac_try="$ac_link" |
12126 | case "(($ac_try" in | |
12127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12128 | *) ac_try_echo=$ac_try;; | |
12129 | esac | |
12130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12131 | (eval "$ac_link") 2>conftest.er1 | |
2d6d4e96 HL |
12132 | ac_status=$? |
12133 | grep -v '^ *+' conftest.er1 >conftest.err | |
12134 | rm -f conftest.er1 | |
12135 | cat conftest.err >&5 | |
12136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12137 | (exit $ac_status); } && | |
0ebeb530 JW |
12138 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12139 | { (case "(($ac_try" in | |
12140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12141 | *) ac_try_echo=$ac_try;; | |
12142 | esac | |
12143 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12144 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
12145 | ac_status=$? |
12146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12147 | (exit $ac_status); }; } && | |
12148 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12149 | { (case "(($ac_try" in |
12150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12151 | *) ac_try_echo=$ac_try;; | |
12152 | esac | |
12153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12154 | (eval "$ac_try") 2>&5 | |
2d6d4e96 HL |
12155 | ac_status=$? |
12156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12157 | (exit $ac_status); }; }; then | |
12158 | ac_cv_lib_lcms_cmsOpenProfileFromFile=yes | |
12159 | else | |
12160 | echo "$as_me: failed program was:" >&5 | |
12161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12162 | ||
fc6ffb29 | 12163 | ac_cv_lib_lcms_cmsOpenProfileFromFile=no |
2d6d4e96 | 12164 | fi |
fc6ffb29 | 12165 | |
0ebeb530 | 12166 | rm -f core conftest.err conftest.$ac_objext \ |
2d6d4e96 HL |
12167 | conftest$ac_exeext conftest.$ac_ext |
12168 | LIBS=$ac_check_lib_save_LIBS | |
12169 | fi | |
fc6ffb29 AJ |
12170 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5 |
12171 | echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; } | |
2d6d4e96 HL |
12172 | if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then |
12173 | ||
12174 | cat >>confdefs.h <<\_ACEOF | |
12175 | #define HAVE_LCMS 1 | |
12176 | _ACEOF | |
12177 | ||
12178 | LCMSLIBS="-llcms" | |
12179 | fi | |
12180 | ||
12181 | fi | |
12182 | ||
12183 | LDAPLIBS="" | |
12184 | ||
12185 | if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes" | |
12186 | then | |
fc6ffb29 AJ |
12187 | { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5 |
12188 | echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; } | |
2d6d4e96 HL |
12189 | if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then |
12190 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12191 | else | |
12192 | ac_check_lib_save_LIBS=$LIBS | |
12193 | LIBS="-lldap_r $LIBPTHREAD $LIBS" | |
4ee8290b | 12194 | cat >conftest.$ac_ext <<_ACEOF |
4ee8290b AJ |
12195 | /* confdefs.h. */ |
12196 | _ACEOF | |
12197 | cat confdefs.h >>conftest.$ac_ext | |
12198 | cat >>conftest.$ac_ext <<_ACEOF | |
12199 | /* end confdefs.h. */ | |
4ee8290b | 12200 | |
fc6ffb29 AJ |
12201 | /* Override any GCC internal prototype to avoid an error. |
12202 | Use char because int might match the return type of a GCC | |
12203 | builtin and then its argument prototype would still apply. */ | |
73482144 AJ |
12204 | #ifdef __cplusplus |
12205 | extern "C" | |
12206 | #endif | |
20d0e80e | 12207 | char ldap_initialize (); |
4ee8290b AJ |
12208 | int |
12209 | main () | |
12210 | { | |
fc6ffb29 | 12211 | return ldap_initialize (); |
4ee8290b AJ |
12212 | ; |
12213 | return 0; | |
12214 | } | |
12215 | _ACEOF | |
12216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12217 | if { (ac_try="$ac_link" |
12218 | case "(($ac_try" in | |
12219 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12220 | *) ac_try_echo=$ac_try;; | |
12221 | esac | |
12222 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12223 | (eval "$ac_link") 2>conftest.er1 | |
4ee8290b | 12224 | ac_status=$? |
875927f6 AJ |
12225 | grep -v '^ *+' conftest.er1 >conftest.err |
12226 | rm -f conftest.er1 | |
12227 | cat conftest.err >&5 | |
4ee8290b AJ |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12229 | (exit $ac_status); } && | |
0ebeb530 JW |
12230 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12231 | { (case "(($ac_try" in | |
12232 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12233 | *) ac_try_echo=$ac_try;; | |
12234 | esac | |
12235 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12236 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
12237 | ac_status=$? |
12238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12239 | (exit $ac_status); }; } && | |
12240 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12241 | { (case "(($ac_try" in |
12242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12243 | *) ac_try_echo=$ac_try;; | |
12244 | esac | |
12245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12246 | (eval "$ac_try") 2>&5 | |
4ee8290b AJ |
12247 | ac_status=$? |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12249 | (exit $ac_status); }; }; then | |
ecfc2c15 | 12250 | ac_cv_lib_ldap_r_ldap_initialize=yes |
4ee8290b AJ |
12251 | else |
12252 | echo "$as_me: failed program was:" >&5 | |
12253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12254 | ||
fc6ffb29 | 12255 | ac_cv_lib_ldap_r_ldap_initialize=no |
4ee8290b | 12256 | fi |
fc6ffb29 | 12257 | |
0ebeb530 | 12258 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 12259 | conftest$ac_exeext conftest.$ac_ext |
73482144 | 12260 | LIBS=$ac_check_lib_save_LIBS |
4ee8290b | 12261 | fi |
fc6ffb29 AJ |
12262 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5 |
12263 | echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; } | |
ecfc2c15 | 12264 | if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then |
fc6ffb29 AJ |
12265 | { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5 |
12266 | echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; } | |
73482144 | 12267 | if test "${ac_cv_lib_lber_ber_init+set}" = set; then |
d3447022 HL |
12268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12269 | else | |
12270 | ac_check_lib_save_LIBS=$LIBS | |
ecfc2c15 | 12271 | LIBS="-llber $LIBPTHREAD $LIBS" |
d3447022 HL |
12272 | cat >conftest.$ac_ext <<_ACEOF |
12273 | /* confdefs.h. */ | |
12274 | _ACEOF | |
12275 | cat confdefs.h >>conftest.$ac_ext | |
12276 | cat >>conftest.$ac_ext <<_ACEOF | |
12277 | /* end confdefs.h. */ | |
12278 | ||
fc6ffb29 AJ |
12279 | /* Override any GCC internal prototype to avoid an error. |
12280 | Use char because int might match the return type of a GCC | |
12281 | builtin and then its argument prototype would still apply. */ | |
d3447022 HL |
12282 | #ifdef __cplusplus |
12283 | extern "C" | |
12284 | #endif | |
73482144 | 12285 | char ber_init (); |
d3447022 HL |
12286 | int |
12287 | main () | |
12288 | { | |
fc6ffb29 | 12289 | return ber_init (); |
d3447022 HL |
12290 | ; |
12291 | return 0; | |
12292 | } | |
12293 | _ACEOF | |
12294 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12295 | if { (ac_try="$ac_link" |
12296 | case "(($ac_try" in | |
12297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12298 | *) ac_try_echo=$ac_try;; | |
12299 | esac | |
12300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12301 | (eval "$ac_link") 2>conftest.er1 | |
d3447022 HL |
12302 | ac_status=$? |
12303 | grep -v '^ *+' conftest.er1 >conftest.err | |
12304 | rm -f conftest.er1 | |
12305 | cat conftest.err >&5 | |
12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12307 | (exit $ac_status); } && | |
0ebeb530 JW |
12308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12309 | { (case "(($ac_try" in | |
12310 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12311 | *) ac_try_echo=$ac_try;; | |
12312 | esac | |
12313 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12314 | (eval "$ac_try") 2>&5 | |
d3447022 HL |
12315 | ac_status=$? |
12316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12317 | (exit $ac_status); }; } && | |
12318 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12319 | { (case "(($ac_try" in |
12320 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12321 | *) ac_try_echo=$ac_try;; | |
12322 | esac | |
12323 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12324 | (eval "$ac_try") 2>&5 | |
d3447022 HL |
12325 | ac_status=$? |
12326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12327 | (exit $ac_status); }; }; then | |
73482144 | 12328 | ac_cv_lib_lber_ber_init=yes |
d3447022 HL |
12329 | else |
12330 | echo "$as_me: failed program was:" >&5 | |
12331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12332 | ||
fc6ffb29 | 12333 | ac_cv_lib_lber_ber_init=no |
d3447022 | 12334 | fi |
fc6ffb29 | 12335 | |
0ebeb530 | 12336 | rm -f core conftest.err conftest.$ac_objext \ |
d3447022 HL |
12337 | conftest$ac_exeext conftest.$ac_ext |
12338 | LIBS=$ac_check_lib_save_LIBS | |
12339 | fi | |
fc6ffb29 AJ |
12340 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5 |
12341 | echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; } | |
73482144 | 12342 | if test $ac_cv_lib_lber_ber_init = yes; then |
d3447022 HL |
12343 | |
12344 | cat >>confdefs.h <<\_ACEOF | |
73482144 | 12345 | #define HAVE_LDAP 1 |
d3447022 HL |
12346 | _ACEOF |
12347 | ||
ecfc2c15 | 12348 | LDAPLIBS="-lldap_r -llber" |
d3447022 HL |
12349 | fi |
12350 | ||
12351 | fi | |
12352 | ||
2d1a6274 AJ |
12353 | ac_wine_check_funcs_save_LIBS="$LIBS" |
12354 | LIBS="$LIBS $LDAPLIBS $LIBPTHREAD" | |
b2c62c94 HL |
12355 | |
12356 | ||
12357 | ||
12358 | ||
12359 | for ac_func in \ | |
12360 | ldap_count_references \ | |
12361 | ldap_first_reference \ | |
12362 | ldap_next_reference \ | |
12363 | ldap_parse_reference | |
12364 | do | |
12365 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
fc6ffb29 AJ |
12366 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12367 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
12368 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
b2c62c94 HL |
12369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12370 | else | |
12371 | cat >conftest.$ac_ext <<_ACEOF | |
12372 | /* confdefs.h. */ | |
12373 | _ACEOF | |
12374 | cat confdefs.h >>conftest.$ac_ext | |
12375 | cat >>conftest.$ac_ext <<_ACEOF | |
12376 | /* end confdefs.h. */ | |
12377 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12378 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12379 | #define $ac_func innocuous_$ac_func | |
12380 | ||
12381 | /* System header to define __stub macros and hopefully few prototypes, | |
12382 | which can conflict with char $ac_func (); below. | |
12383 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12384 | <limits.h> exists even on freestanding compilers. */ | |
12385 | ||
12386 | #ifdef __STDC__ | |
12387 | # include <limits.h> | |
12388 | #else | |
12389 | # include <assert.h> | |
12390 | #endif | |
12391 | ||
12392 | #undef $ac_func | |
12393 | ||
fc6ffb29 AJ |
12394 | /* Override any GCC internal prototype to avoid an error. |
12395 | Use char because int might match the return type of a GCC | |
12396 | builtin and then its argument prototype would still apply. */ | |
b2c62c94 HL |
12397 | #ifdef __cplusplus |
12398 | extern "C" | |
b2c62c94 | 12399 | #endif |
b2c62c94 HL |
12400 | char $ac_func (); |
12401 | /* The GNU C library defines this for functions which it implements | |
12402 | to always fail with ENOSYS. Some functions are actually named | |
12403 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 12404 | #if defined __stub_$ac_func || defined __stub___$ac_func |
b2c62c94 | 12405 | choke me |
b2c62c94 HL |
12406 | #endif |
12407 | ||
12408 | int | |
12409 | main () | |
12410 | { | |
fc6ffb29 | 12411 | return $ac_func (); |
b2c62c94 HL |
12412 | ; |
12413 | return 0; | |
12414 | } | |
12415 | _ACEOF | |
12416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12417 | if { (ac_try="$ac_link" |
12418 | case "(($ac_try" in | |
12419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12420 | *) ac_try_echo=$ac_try;; | |
12421 | esac | |
12422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12423 | (eval "$ac_link") 2>conftest.er1 | |
b2c62c94 HL |
12424 | ac_status=$? |
12425 | grep -v '^ *+' conftest.er1 >conftest.err | |
12426 | rm -f conftest.er1 | |
12427 | cat conftest.err >&5 | |
12428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12429 | (exit $ac_status); } && | |
0ebeb530 JW |
12430 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12431 | { (case "(($ac_try" in | |
12432 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12433 | *) ac_try_echo=$ac_try;; | |
12434 | esac | |
12435 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12436 | (eval "$ac_try") 2>&5 | |
b2c62c94 HL |
12437 | ac_status=$? |
12438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12439 | (exit $ac_status); }; } && | |
12440 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12441 | { (case "(($ac_try" in |
12442 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12443 | *) ac_try_echo=$ac_try;; | |
12444 | esac | |
12445 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12446 | (eval "$ac_try") 2>&5 | |
b2c62c94 HL |
12447 | ac_status=$? |
12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12449 | (exit $ac_status); }; }; then | |
12450 | eval "$as_ac_var=yes" | |
12451 | else | |
12452 | echo "$as_me: failed program was:" >&5 | |
12453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12454 | ||
fc6ffb29 | 12455 | eval "$as_ac_var=no" |
b2c62c94 | 12456 | fi |
fc6ffb29 | 12457 | |
0ebeb530 | 12458 | rm -f core conftest.err conftest.$ac_objext \ |
b2c62c94 HL |
12459 | conftest$ac_exeext conftest.$ac_ext |
12460 | fi | |
fc6ffb29 AJ |
12461 | ac_res=`eval echo '${'$as_ac_var'}'` |
12462 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12463 | echo "${ECHO_T}$ac_res" >&6; } | |
b2c62c94 HL |
12464 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12465 | cat >>confdefs.h <<_ACEOF | |
12466 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12467 | _ACEOF | |
12468 | ||
12469 | fi | |
12470 | done | |
12471 | ||
2d1a6274 | 12472 | LIBS="$ac_wine_check_funcs_save_LIBS" |
73482144 | 12473 | fi |
ea524def | 12474 | |
82776020 AJ |
12475 | FREETYPELIBS="" |
12476 | ||
12477 | FREETYPEINCL="" | |
12478 | ||
d9ef88cd MM |
12479 | # Extract the first word of "freetype-config", so it can be a program name with args. |
12480 | set dummy freetype-config; ac_word=$2 | |
12481 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
12483 | if test "${ac_cv_prog_ft_devel+set}" = set; then | |
12484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12485 | else | |
12486 | if test -n "$ft_devel"; then | |
12487 | ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test. | |
12488 | else | |
12489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12490 | for as_dir in $PATH | |
12491 | do | |
12492 | IFS=$as_save_IFS | |
12493 | test -z "$as_dir" && as_dir=. | |
12494 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12495 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12496 | ac_cv_prog_ft_devel="freetype-config" | |
12497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12498 | break 2 | |
12499 | fi | |
12500 | done | |
12501 | done | |
12502 | IFS=$as_save_IFS | |
12503 | ||
12504 | test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no" | |
12505 | fi | |
12506 | fi | |
12507 | ft_devel=$ac_cv_prog_ft_devel | |
12508 | if test -n "$ft_devel"; then | |
12509 | { echo "$as_me:$LINENO: result: $ft_devel" >&5 | |
12510 | echo "${ECHO_T}$ft_devel" >&6; } | |
12511 | else | |
12512 | { echo "$as_me:$LINENO: result: no" >&5 | |
12513 | echo "${ECHO_T}no" >&6; } | |
12514 | fi | |
12515 | ||
12516 | ||
12517 | if test "$ft_devel" = "no" | |
12518 | then | |
12519 | # Extract the first word of "freetype2-config", so it can be a program name with args. | |
12520 | set dummy freetype2-config; ac_word=$2 | |
12521 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
12523 | if test "${ac_cv_prog_ft_devel2+set}" = set; then | |
12524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12525 | else | |
12526 | if test -n "$ft_devel2"; then | |
12527 | ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test. | |
12528 | else | |
12529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12530 | for as_dir in $PATH | |
12531 | do | |
12532 | IFS=$as_save_IFS | |
12533 | test -z "$as_dir" && as_dir=. | |
12534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12535 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
12536 | ac_cv_prog_ft_devel2="freetype2-config" | |
12537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12538 | break 2 | |
12539 | fi | |
12540 | done | |
12541 | done | |
12542 | IFS=$as_save_IFS | |
12543 | ||
12544 | test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no" | |
12545 | fi | |
12546 | fi | |
12547 | ft_devel2=$ac_cv_prog_ft_devel2 | |
12548 | if test -n "$ft_devel2"; then | |
12549 | { echo "$as_me:$LINENO: result: $ft_devel2" >&5 | |
12550 | echo "${ECHO_T}$ft_devel2" >&6; } | |
12551 | else | |
12552 | { echo "$as_me:$LINENO: result: no" >&5 | |
12553 | echo "${ECHO_T}no" >&6; } | |
12554 | fi | |
12555 | ||
12556 | ||
12557 | if test "$ft_devel2" = "freetype2-config" | |
12558 | then | |
12559 | ft_devel=$ft_devel2 | |
12560 | fi | |
12561 | fi | |
12562 | ||
12563 | if test "$ft_devel" = "no" | |
12564 | then | |
12565 | wine_cv_msg_freetype=yes | |
12566 | else | |
12567 | FREETYPELIBS=`$ft_devel --libs` | |
12568 | FREETYPEINCL=`$ft_devel --cflags` | |
12569 | { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5 | |
fc6ffb29 | 12570 | echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; } |
73482144 | 12571 | if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then |
ea524def HL |
12572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12573 | else | |
12574 | ac_check_lib_save_LIBS=$LIBS | |
d9ef88cd | 12575 | LIBS="-lfreetype $FREETYPELIBS $LIBS" |
ea524def HL |
12576 | cat >conftest.$ac_ext <<_ACEOF |
12577 | /* confdefs.h. */ | |
12578 | _ACEOF | |
12579 | cat confdefs.h >>conftest.$ac_ext | |
12580 | cat >>conftest.$ac_ext <<_ACEOF | |
12581 | /* end confdefs.h. */ | |
12582 | ||
fc6ffb29 AJ |
12583 | /* Override any GCC internal prototype to avoid an error. |
12584 | Use char because int might match the return type of a GCC | |
12585 | builtin and then its argument prototype would still apply. */ | |
ea524def HL |
12586 | #ifdef __cplusplus |
12587 | extern "C" | |
12588 | #endif | |
73482144 | 12589 | char FT_Init_FreeType (); |
ea524def HL |
12590 | int |
12591 | main () | |
12592 | { | |
fc6ffb29 | 12593 | return FT_Init_FreeType (); |
ea524def HL |
12594 | ; |
12595 | return 0; | |
12596 | } | |
12597 | _ACEOF | |
12598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12599 | if { (ac_try="$ac_link" |
12600 | case "(($ac_try" in | |
12601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12602 | *) ac_try_echo=$ac_try;; | |
12603 | esac | |
12604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12605 | (eval "$ac_link") 2>conftest.er1 | |
ea524def HL |
12606 | ac_status=$? |
12607 | grep -v '^ *+' conftest.er1 >conftest.err | |
12608 | rm -f conftest.er1 | |
12609 | cat conftest.err >&5 | |
12610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12611 | (exit $ac_status); } && | |
0ebeb530 JW |
12612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12613 | { (case "(($ac_try" in | |
12614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12615 | *) ac_try_echo=$ac_try;; | |
12616 | esac | |
12617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12618 | (eval "$ac_try") 2>&5 | |
ea524def HL |
12619 | ac_status=$? |
12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12621 | (exit $ac_status); }; } && | |
12622 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12623 | { (case "(($ac_try" in |
12624 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12625 | *) ac_try_echo=$ac_try;; | |
12626 | esac | |
12627 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12628 | (eval "$ac_try") 2>&5 | |
ea524def HL |
12629 | ac_status=$? |
12630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12631 | (exit $ac_status); }; }; then | |
73482144 | 12632 | ac_cv_lib_freetype_FT_Init_FreeType=yes |
ea524def HL |
12633 | else |
12634 | echo "$as_me: failed program was:" >&5 | |
12635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12636 | ||
fc6ffb29 | 12637 | ac_cv_lib_freetype_FT_Init_FreeType=no |
ea524def | 12638 | fi |
fc6ffb29 | 12639 | |
0ebeb530 | 12640 | rm -f core conftest.err conftest.$ac_objext \ |
ea524def HL |
12641 | conftest$ac_exeext conftest.$ac_ext |
12642 | LIBS=$ac_check_lib_save_LIBS | |
12643 | fi | |
fc6ffb29 AJ |
12644 | { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5 |
12645 | echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; } | |
73482144 AJ |
12646 | if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then |
12647 | ft_lib=yes | |
ea524def | 12648 | else |
73482144 AJ |
12649 | ft_lib=no |
12650 | fi | |
563598d4 | 12651 | |
d9ef88cd | 12652 | if test "$ft_lib" = "no" |
563598d4 | 12653 | then |
563598d4 | 12654 | wine_cv_msg_freetype=yes |
d9ef88cd MM |
12655 | FREETYPELIBS="" |
12656 | FREETYPEINCL="" | |
563598d4 | 12657 | else |
40432fef IP |
12658 | ac_save_CPPFLAGS="$CPPFLAGS" |
12659 | CPPFLAGS="$FREETYPEINCL $CPPFLAGS" | |
f5818d2f | 12660 | |
daa2886c AJ |
12661 | |
12662 | ||
12663 | ||
12664 | ||
12665 | ||
12666 | ||
12667 | ||
e617a9c5 | 12668 | |
c2217183 | 12669 | |
603d21cb | 12670 | |
e617a9c5 RK |
12671 | for ac_header in ft2build.h \ |
12672 | freetype/freetype.h \ | |
40432fef IP |
12673 | freetype/ftglyph.h \ |
12674 | freetype/tttables.h \ | |
12675 | freetype/ftnames.h \ | |
12676 | freetype/ftsnames.h \ | |
814654ef | 12677 | freetype/ttnameid.h \ |
4e2024e8 | 12678 | freetype/ftoutln.h \ |
c2217183 | 12679 | freetype/ftwinfnt.h \ |
603d21cb | 12680 | freetype/ftmodapi.h \ |
4e2024e8 | 12681 | freetype/internal/sfnt.h |
40432fef | 12682 | do |
f5818d2f | 12683 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
fc6ffb29 AJ |
12684 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
12685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
12686 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f AJ |
12687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12688 | else | |
9c269172 | 12689 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
12690 | /* confdefs.h. */ |
12691 | _ACEOF | |
12692 | cat confdefs.h >>conftest.$ac_ext | |
12693 | cat >>conftest.$ac_ext <<_ACEOF | |
12694 | /* end confdefs.h. */ | |
9c269172 RK |
12695 | #if HAVE_FT2BUILD_H |
12696 | #include <ft2build.h> | |
12697 | #endif | |
12698 | ||
daa2886c AJ |
12699 | #include <$ac_header> |
12700 | _ACEOF | |
12701 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
12702 | if { (ac_try="$ac_compile" |
12703 | case "(($ac_try" in | |
12704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12705 | *) ac_try_echo=$ac_try;; | |
12706 | esac | |
12707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12708 | (eval "$ac_compile") 2>conftest.er1 | |
daa2886c | 12709 | ac_status=$? |
875927f6 AJ |
12710 | grep -v '^ *+' conftest.er1 >conftest.err |
12711 | rm -f conftest.er1 | |
12712 | cat conftest.err >&5 | |
daa2886c AJ |
12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12714 | (exit $ac_status); } && | |
0ebeb530 JW |
12715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12716 | { (case "(($ac_try" in | |
12717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12718 | *) ac_try_echo=$ac_try;; | |
12719 | esac | |
12720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12721 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
12722 | ac_status=$? |
12723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12724 | (exit $ac_status); }; } && | |
12725 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
12726 | { (case "(($ac_try" in |
12727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12728 | *) ac_try_echo=$ac_try;; | |
12729 | esac | |
12730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12731 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
12732 | ac_status=$? |
12733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12734 | (exit $ac_status); }; }; then | |
9c269172 | 12735 | eval "$as_ac_Header=yes" |
daa2886c AJ |
12736 | else |
12737 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
12738 | sed 's/^/| /' conftest.$ac_ext >&5 |
12739 | ||
fc6ffb29 | 12740 | eval "$as_ac_Header=no" |
daa2886c | 12741 | fi |
fc6ffb29 | 12742 | |
0ebeb530 | 12743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
40432fef | 12744 | fi |
fc6ffb29 AJ |
12745 | ac_res=`eval echo '${'$as_ac_Header'}'` |
12746 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12747 | echo "${ECHO_T}$ac_res" >&6; } | |
f5818d2f | 12748 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
daa2886c | 12749 | cat >>confdefs.h <<_ACEOF |
f5818d2f | 12750 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
daa2886c | 12751 | _ACEOF |
f5818d2f | 12752 | |
40432fef | 12753 | fi |
daa2886c | 12754 | |
40432fef IP |
12755 | done |
12756 | ||
f5818d2f | 12757 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
12758 | /* confdefs.h. */ |
12759 | _ACEOF | |
12760 | cat confdefs.h >>conftest.$ac_ext | |
12761 | cat >>conftest.$ac_ext <<_ACEOF | |
12762 | /* end confdefs.h. */ | |
18d7573c AJ |
12763 | #include <ft2build.h> |
12764 | #include <freetype/fttrigon.h> | |
f5818d2f | 12765 | _ACEOF |
0ebeb530 JW |
12766 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
12767 | case "(($ac_try" in | |
12768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12769 | *) ac_try_echo=$ac_try;; | |
12770 | esac | |
12771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
f5818d2f | 12773 | ac_status=$? |
11af04e3 | 12774 | grep -v '^ *+' conftest.er1 >conftest.err |
f5818d2f AJ |
12775 | rm -f conftest.er1 |
12776 | cat conftest.err >&5 | |
daa2886c | 12777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f AJ |
12778 | (exit $ac_status); } >/dev/null; then |
12779 | if test -s conftest.err; then | |
12780 | ac_cpp_err=$ac_c_preproc_warn_flag | |
875927f6 | 12781 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
f5818d2f AJ |
12782 | else |
12783 | ac_cpp_err= | |
12784 | fi | |
12785 | else | |
12786 | ac_cpp_err=yes | |
12787 | fi | |
12788 | if test -z "$ac_cpp_err"; then | |
12789 | ||
daa2886c | 12790 | cat >>confdefs.h <<\_ACEOF |
18d7573c | 12791 | #define HAVE_FREETYPE_FTTRIGON_H 1 |
daa2886c | 12792 | _ACEOF |
18d7573c | 12793 | |
c1d38132 | 12794 | wine_cv_fttrigon=yes |
18d7573c | 12795 | else |
f5818d2f | 12796 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
12797 | sed 's/^/| /' conftest.$ac_ext >&5 |
12798 | ||
c1d38132 | 12799 | wine_cv_fttrigon=no |
18d7573c | 12800 | fi |
fc6ffb29 | 12801 | |
f5818d2f | 12802 | rm -f conftest.err conftest.$ac_ext |
fc6ffb29 AJ |
12803 | { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5 |
12804 | echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; } | |
d8a6c278 HD |
12805 | if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then |
12806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12807 | else | |
12808 | cat >conftest.$ac_ext <<_ACEOF | |
12809 | /* confdefs.h. */ | |
12810 | _ACEOF | |
12811 | cat confdefs.h >>conftest.$ac_ext | |
12812 | cat >>conftest.$ac_ext <<_ACEOF | |
12813 | /* end confdefs.h. */ | |
12814 | #include <freetype/ftmodapi.h> | |
12815 | ||
fc6ffb29 | 12816 | typedef FT_TrueTypeEngineType ac__type_new_; |
d8a6c278 HD |
12817 | int |
12818 | main () | |
12819 | { | |
fc6ffb29 | 12820 | if ((ac__type_new_ *) 0) |
d8a6c278 | 12821 | return 0; |
fc6ffb29 | 12822 | if (sizeof (ac__type_new_)) |
d8a6c278 HD |
12823 | return 0; |
12824 | ; | |
12825 | return 0; | |
12826 | } | |
12827 | _ACEOF | |
12828 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
12829 | if { (ac_try="$ac_compile" |
12830 | case "(($ac_try" in | |
12831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12832 | *) ac_try_echo=$ac_try;; | |
12833 | esac | |
12834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12835 | (eval "$ac_compile") 2>conftest.er1 | |
d8a6c278 HD |
12836 | ac_status=$? |
12837 | grep -v '^ *+' conftest.er1 >conftest.err | |
12838 | rm -f conftest.er1 | |
12839 | cat conftest.err >&5 | |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); } && | |
0ebeb530 JW |
12842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12843 | { (case "(($ac_try" in | |
12844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12845 | *) ac_try_echo=$ac_try;; | |
12846 | esac | |
12847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12848 | (eval "$ac_try") 2>&5 | |
d8a6c278 HD |
12849 | ac_status=$? |
12850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12851 | (exit $ac_status); }; } && | |
12852 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
12853 | { (case "(($ac_try" in |
12854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12855 | *) ac_try_echo=$ac_try;; | |
12856 | esac | |
12857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12858 | (eval "$ac_try") 2>&5 | |
d8a6c278 HD |
12859 | ac_status=$? |
12860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12861 | (exit $ac_status); }; }; then | |
12862 | ac_cv_type_FT_TrueTypeEngineType=yes | |
12863 | else | |
12864 | echo "$as_me: failed program was:" >&5 | |
12865 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12866 | ||
fc6ffb29 | 12867 | ac_cv_type_FT_TrueTypeEngineType=no |
d8a6c278 | 12868 | fi |
fc6ffb29 | 12869 | |
0ebeb530 | 12870 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d8a6c278 | 12871 | fi |
fc6ffb29 AJ |
12872 | { echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5 |
12873 | echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; } | |
d8a6c278 HD |
12874 | if test $ac_cv_type_FT_TrueTypeEngineType = yes; then |
12875 | ||
12876 | cat >>confdefs.h <<_ACEOF | |
12877 | #define HAVE_FT_TRUETYPEENGINETYPE 1 | |
12878 | _ACEOF | |
12879 | ||
12880 | ||
12881 | fi | |
12882 | ||
35bca77f HD |
12883 | ac_save_CFLAGS="$CFLAGS" |
12884 | CFLAGS="$CFLAGS $FREETYPELIBS" | |
12885 | ||
12886 | for ac_func in FT_Load_Sfnt_Table | |
12887 | do | |
12888 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
fc6ffb29 AJ |
12889 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
12890 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
12891 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
35bca77f HD |
12892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12893 | else | |
12894 | cat >conftest.$ac_ext <<_ACEOF | |
12895 | /* confdefs.h. */ | |
12896 | _ACEOF | |
12897 | cat confdefs.h >>conftest.$ac_ext | |
12898 | cat >>conftest.$ac_ext <<_ACEOF | |
12899 | /* end confdefs.h. */ | |
12900 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12901 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12902 | #define $ac_func innocuous_$ac_func | |
12903 | ||
12904 | /* System header to define __stub macros and hopefully few prototypes, | |
12905 | which can conflict with char $ac_func (); below. | |
12906 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12907 | <limits.h> exists even on freestanding compilers. */ | |
12908 | ||
12909 | #ifdef __STDC__ | |
12910 | # include <limits.h> | |
12911 | #else | |
12912 | # include <assert.h> | |
12913 | #endif | |
12914 | ||
12915 | #undef $ac_func | |
12916 | ||
fc6ffb29 AJ |
12917 | /* Override any GCC internal prototype to avoid an error. |
12918 | Use char because int might match the return type of a GCC | |
12919 | builtin and then its argument prototype would still apply. */ | |
35bca77f HD |
12920 | #ifdef __cplusplus |
12921 | extern "C" | |
35bca77f | 12922 | #endif |
35bca77f HD |
12923 | char $ac_func (); |
12924 | /* The GNU C library defines this for functions which it implements | |
12925 | to always fail with ENOSYS. Some functions are actually named | |
12926 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 12927 | #if defined __stub_$ac_func || defined __stub___$ac_func |
35bca77f | 12928 | choke me |
35bca77f HD |
12929 | #endif |
12930 | ||
12931 | int | |
12932 | main () | |
12933 | { | |
fc6ffb29 | 12934 | return $ac_func (); |
35bca77f HD |
12935 | ; |
12936 | return 0; | |
12937 | } | |
12938 | _ACEOF | |
12939 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
12940 | if { (ac_try="$ac_link" |
12941 | case "(($ac_try" in | |
12942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12943 | *) ac_try_echo=$ac_try;; | |
12944 | esac | |
12945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12946 | (eval "$ac_link") 2>conftest.er1 | |
35bca77f HD |
12947 | ac_status=$? |
12948 | grep -v '^ *+' conftest.er1 >conftest.err | |
12949 | rm -f conftest.er1 | |
12950 | cat conftest.err >&5 | |
12951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12952 | (exit $ac_status); } && | |
0ebeb530 JW |
12953 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
12954 | { (case "(($ac_try" in | |
12955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12956 | *) ac_try_echo=$ac_try;; | |
12957 | esac | |
12958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12959 | (eval "$ac_try") 2>&5 | |
35bca77f HD |
12960 | ac_status=$? |
12961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12962 | (exit $ac_status); }; } && | |
12963 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
12964 | { (case "(($ac_try" in |
12965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12966 | *) ac_try_echo=$ac_try;; | |
12967 | esac | |
12968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12969 | (eval "$ac_try") 2>&5 | |
35bca77f HD |
12970 | ac_status=$? |
12971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12972 | (exit $ac_status); }; }; then | |
12973 | eval "$as_ac_var=yes" | |
12974 | else | |
12975 | echo "$as_me: failed program was:" >&5 | |
12976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12977 | ||
fc6ffb29 | 12978 | eval "$as_ac_var=no" |
35bca77f | 12979 | fi |
fc6ffb29 | 12980 | |
0ebeb530 | 12981 | rm -f core conftest.err conftest.$ac_objext \ |
35bca77f HD |
12982 | conftest$ac_exeext conftest.$ac_ext |
12983 | fi | |
fc6ffb29 AJ |
12984 | ac_res=`eval echo '${'$as_ac_var'}'` |
12985 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
12986 | echo "${ECHO_T}$ac_res" >&6; } | |
35bca77f HD |
12987 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
12988 | cat >>confdefs.h <<_ACEOF | |
12989 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12990 | _ACEOF | |
12991 | ||
12992 | fi | |
12993 | done | |
12994 | ||
12995 | CFLAGS="$ac_save_CFLAGS" | |
40432fef | 12996 | CPPFLAGS="$ac_save_CPPFLAGS" |
c1d38132 | 12997 | if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes" |
9b1d3726 | 12998 | then |
f5818d2f | 12999 | |
daa2886c | 13000 | cat >>confdefs.h <<\_ACEOF |
9b1d3726 | 13001 | #define HAVE_FREETYPE 1 |
daa2886c | 13002 | _ACEOF |
9b1d3726 HD |
13003 | |
13004 | wine_cv_msg_freetype=no | |
13005 | else | |
00acb5f7 | 13006 | FREETYPELIBS="" |
9b1d3726 HD |
13007 | FREETYPEINCL="" |
13008 | wine_cv_msg_freetype=yes | |
13009 | fi | |
563598d4 IP |
13010 | fi |
13011 | fi | |
13012 | ||
00acb5f7 HD |
13013 | if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS" |
13014 | then | |
13015 | FONTSSUBDIRS="fonts" | |
13016 | ||
13017 | fi | |
13018 | ||
fc6ffb29 AJ |
13019 | { echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5 |
13020 | echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; } | |
f5818d2f AJ |
13021 | if test "${ac_cv_c_ppdev+set}" = set; then |
13022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6509fa93 | 13023 | else |
f5818d2f | 13024 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
13025 | /* confdefs.h. */ |
13026 | _ACEOF | |
13027 | cat confdefs.h >>conftest.$ac_ext | |
13028 | cat >>conftest.$ac_ext <<_ACEOF | |
13029 | /* end confdefs.h. */ | |
6509fa93 | 13030 | #include <linux/ppdev.h> |
f5818d2f AJ |
13031 | int |
13032 | main () | |
13033 | { | |
6509fa93 | 13034 | ioctl (1,PPCLAIM,0) |
f5818d2f AJ |
13035 | ; |
13036 | return 0; | |
13037 | } | |
13038 | _ACEOF | |
13039 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
13040 | if { (ac_try="$ac_compile" |
13041 | case "(($ac_try" in | |
13042 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13043 | *) ac_try_echo=$ac_try;; | |
13044 | esac | |
13045 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13046 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 13047 | ac_status=$? |
875927f6 AJ |
13048 | grep -v '^ *+' conftest.er1 >conftest.err |
13049 | rm -f conftest.er1 | |
13050 | cat conftest.err >&5 | |
daa2886c | 13051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 13052 | (exit $ac_status); } && |
0ebeb530 JW |
13053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13054 | { (case "(($ac_try" in | |
13055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13056 | *) ac_try_echo=$ac_try;; | |
13057 | esac | |
13058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13059 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13060 | ac_status=$? |
13061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13062 | (exit $ac_status); }; } && | |
13063 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
13064 | { (case "(($ac_try" in |
13065 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13066 | *) ac_try_echo=$ac_try;; | |
13067 | esac | |
13068 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13069 | (eval "$ac_try") 2>&5 | |
f5818d2f | 13070 | ac_status=$? |
daa2886c | 13071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 13072 | (exit $ac_status); }; }; then |
6509fa93 UB |
13073 | ac_cv_c_ppdev="yes" |
13074 | else | |
f5818d2f | 13075 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
13076 | sed 's/^/| /' conftest.$ac_ext >&5 |
13077 | ||
fc6ffb29 | 13078 | ac_cv_c_ppdev="no" |
6509fa93 | 13079 | fi |
fc6ffb29 | 13080 | |
0ebeb530 | 13081 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6509fa93 | 13082 | |
f5818d2f | 13083 | fi |
fc6ffb29 AJ |
13084 | { echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5 |
13085 | echo "${ECHO_T}$ac_cv_c_ppdev" >&6; } | |
6509fa93 UB |
13086 | if test "$ac_cv_c_ppdev" = "yes" |
13087 | then | |
f5818d2f | 13088 | |
daa2886c | 13089 | cat >>confdefs.h <<\_ACEOF |
6509fa93 | 13090 | #define HAVE_PPDEV 1 |
daa2886c | 13091 | _ACEOF |
6509fa93 UB |
13092 | |
13093 | fi | |
13094 | ||
fc6ffb29 AJ |
13095 | { echo "$as_me:$LINENO: checking for va_copy" >&5 |
13096 | echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; } | |
5ee517ac MM |
13097 | if test "${ac_cv_c_va_copy+set}" = set; then |
13098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13099 | else | |
13100 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
13101 | /* confdefs.h. */ |
13102 | _ACEOF | |
13103 | cat confdefs.h >>conftest.$ac_ext | |
13104 | cat >>conftest.$ac_ext <<_ACEOF | |
13105 | /* end confdefs.h. */ | |
5ee517ac | 13106 | #include <stdarg.h> |
5ee517ac MM |
13107 | int |
13108 | main () | |
13109 | { | |
13110 | va_list ap1, ap2; | |
13111 | va_copy(ap1,ap2); | |
13112 | ||
13113 | ; | |
13114 | return 0; | |
13115 | } | |
13116 | _ACEOF | |
13117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
13118 | if { (ac_try="$ac_link" |
13119 | case "(($ac_try" in | |
13120 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13121 | *) ac_try_echo=$ac_try;; | |
13122 | esac | |
13123 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13124 | (eval "$ac_link") 2>conftest.er1 | |
5ee517ac | 13125 | ac_status=$? |
875927f6 AJ |
13126 | grep -v '^ *+' conftest.er1 >conftest.err |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
5ee517ac MM |
13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13130 | (exit $ac_status); } && | |
0ebeb530 JW |
13131 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13132 | { (case "(($ac_try" in | |
13133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13134 | *) ac_try_echo=$ac_try;; | |
13135 | esac | |
13136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13137 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13138 | ac_status=$? |
13139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13140 | (exit $ac_status); }; } && | |
13141 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
13142 | { (case "(($ac_try" in |
13143 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13144 | *) ac_try_echo=$ac_try;; | |
13145 | esac | |
13146 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13147 | (eval "$ac_try") 2>&5 | |
5ee517ac MM |
13148 | ac_status=$? |
13149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13150 | (exit $ac_status); }; }; then | |
13151 | ac_cv_c_va_copy="yes" | |
13152 | else | |
13153 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
13154 | sed 's/^/| /' conftest.$ac_ext >&5 |
13155 | ||
fc6ffb29 | 13156 | ac_cv_c_va_copy="no" |
5ee517ac | 13157 | fi |
fc6ffb29 | 13158 | |
0ebeb530 | 13159 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 13160 | conftest$ac_exeext conftest.$ac_ext |
5ee517ac MM |
13161 | |
13162 | fi | |
fc6ffb29 AJ |
13163 | { echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5 |
13164 | echo "${ECHO_T}$ac_cv_c_va_copy" >&6; } | |
5ee517ac MM |
13165 | if test "$ac_cv_c_va_copy" = "yes" |
13166 | then | |
13167 | ||
13168 | cat >>confdefs.h <<\_ACEOF | |
13169 | #define HAVE_VA_COPY 1 | |
13170 | _ACEOF | |
13171 | ||
13172 | fi | |
fc6ffb29 AJ |
13173 | { echo "$as_me:$LINENO: checking for __va_copy" >&5 |
13174 | echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; } | |
5ee517ac MM |
13175 | if test "${ac_cv_c___va_copy+set}" = set; then |
13176 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13177 | else | |
13178 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
13179 | /* confdefs.h. */ |
13180 | _ACEOF | |
13181 | cat confdefs.h >>conftest.$ac_ext | |
13182 | cat >>conftest.$ac_ext <<_ACEOF | |
13183 | /* end confdefs.h. */ | |
5ee517ac | 13184 | #include <stdarg.h> |
5ee517ac MM |
13185 | int |
13186 | main () | |
13187 | { | |
13188 | va_list ap1, ap2; | |
13189 | __va_copy(ap1,ap2); | |
13190 | ||
13191 | ; | |
13192 | return 0; | |
13193 | } | |
13194 | _ACEOF | |
13195 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
13196 | if { (ac_try="$ac_link" |
13197 | case "(($ac_try" in | |
13198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13199 | *) ac_try_echo=$ac_try;; | |
13200 | esac | |
13201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13202 | (eval "$ac_link") 2>conftest.er1 | |
5ee517ac | 13203 | ac_status=$? |
875927f6 AJ |
13204 | grep -v '^ *+' conftest.er1 >conftest.err |
13205 | rm -f conftest.er1 | |
13206 | cat conftest.err >&5 | |
5ee517ac MM |
13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13208 | (exit $ac_status); } && | |
0ebeb530 JW |
13209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13210 | { (case "(($ac_try" in | |
13211 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13212 | *) ac_try_echo=$ac_try;; | |
13213 | esac | |
13214 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13215 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13216 | ac_status=$? |
13217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13218 | (exit $ac_status); }; } && | |
13219 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
13220 | { (case "(($ac_try" in |
13221 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13222 | *) ac_try_echo=$ac_try;; | |
13223 | esac | |
13224 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13225 | (eval "$ac_try") 2>&5 | |
5ee517ac MM |
13226 | ac_status=$? |
13227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13228 | (exit $ac_status); }; }; then | |
13229 | ac_cv_c___va_copy="yes" | |
13230 | else | |
13231 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
13232 | sed 's/^/| /' conftest.$ac_ext >&5 |
13233 | ||
fc6ffb29 | 13234 | ac_cv_c___va_copy="no" |
5ee517ac | 13235 | fi |
fc6ffb29 | 13236 | |
0ebeb530 | 13237 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 13238 | conftest$ac_exeext conftest.$ac_ext |
5ee517ac MM |
13239 | |
13240 | fi | |
fc6ffb29 AJ |
13241 | { echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5 |
13242 | echo "${ECHO_T}$ac_cv_c___va_copy" >&6; } | |
5ee517ac MM |
13243 | if test "$ac_cv_c___va_copy" = "yes" |
13244 | then | |
13245 | ||
13246 | cat >>confdefs.h <<\_ACEOF | |
13247 | #define HAVE___VA_COPY 1 | |
13248 | _ACEOF | |
13249 | ||
13250 | fi | |
13251 | ||
fc6ffb29 AJ |
13252 | { echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
13253 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; } | |
b2d937d5 AJ |
13254 | if test "${ac_cv_c_sigsetjmp+set}" = set; then |
13255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13256 | else | |
13257 | cat >conftest.$ac_ext <<_ACEOF | |
b2d937d5 AJ |
13258 | /* confdefs.h. */ |
13259 | _ACEOF | |
13260 | cat confdefs.h >>conftest.$ac_ext | |
13261 | cat >>conftest.$ac_ext <<_ACEOF | |
13262 | /* end confdefs.h. */ | |
13263 | #include <setjmp.h> | |
13264 | int | |
13265 | main () | |
13266 | { | |
13267 | sigjmp_buf buf; | |
13268 | sigsetjmp( buf, 1 ); | |
13269 | siglongjmp( buf, 1 ); | |
13270 | ; | |
13271 | return 0; | |
13272 | } | |
13273 | _ACEOF | |
13274 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
13275 | if { (ac_try="$ac_link" |
13276 | case "(($ac_try" in | |
13277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13278 | *) ac_try_echo=$ac_try;; | |
13279 | esac | |
13280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13281 | (eval "$ac_link") 2>conftest.er1 | |
b2d937d5 | 13282 | ac_status=$? |
875927f6 AJ |
13283 | grep -v '^ *+' conftest.er1 >conftest.err |
13284 | rm -f conftest.er1 | |
13285 | cat conftest.err >&5 | |
b2d937d5 AJ |
13286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13287 | (exit $ac_status); } && | |
0ebeb530 JW |
13288 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13289 | { (case "(($ac_try" in | |
13290 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13291 | *) ac_try_echo=$ac_try;; | |
13292 | esac | |
13293 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13294 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13295 | ac_status=$? |
13296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13297 | (exit $ac_status); }; } && | |
13298 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
13299 | { (case "(($ac_try" in |
13300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13301 | *) ac_try_echo=$ac_try;; | |
13302 | esac | |
13303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13304 | (eval "$ac_try") 2>&5 | |
b2d937d5 AJ |
13305 | ac_status=$? |
13306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13307 | (exit $ac_status); }; }; then | |
13308 | ac_cv_c_sigsetjmp="yes" | |
13309 | else | |
13310 | echo "$as_me: failed program was:" >&5 | |
13311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13312 | ||
fc6ffb29 | 13313 | ac_cv_c_sigsetjmp="no" |
b2d937d5 | 13314 | fi |
fc6ffb29 | 13315 | |
0ebeb530 | 13316 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 13317 | conftest$ac_exeext conftest.$ac_ext |
b2d937d5 AJ |
13318 | |
13319 | fi | |
fc6ffb29 AJ |
13320 | { echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5 |
13321 | echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; } | |
b2d937d5 AJ |
13322 | if test "$ac_cv_c_sigsetjmp" = "yes" |
13323 | then | |
13324 | ||
13325 | cat >>confdefs.h <<\_ACEOF | |
13326 | #define HAVE_SIGSETJMP 1 | |
13327 | _ACEOF | |
13328 | ||
13329 | fi | |
13330 | ||
fc6ffb29 AJ |
13331 | { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5 |
13332 | echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; } | |
80e34dbb AJ |
13333 | if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then |
13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13335 | else | |
13336 | cat >conftest.$ac_ext <<_ACEOF | |
80e34dbb AJ |
13337 | /* confdefs.h. */ |
13338 | _ACEOF | |
13339 | cat confdefs.h >>conftest.$ac_ext | |
13340 | cat >>conftest.$ac_ext <<_ACEOF | |
13341 | /* end confdefs.h. */ | |
13342 | #define _GNU_SOURCE | |
13343 | #include <pthread.h> | |
13344 | ||
fc6ffb29 | 13345 | typedef pthread_rwlock_t ac__type_new_; |
80e34dbb AJ |
13346 | int |
13347 | main () | |
13348 | { | |
fc6ffb29 | 13349 | if ((ac__type_new_ *) 0) |
80e34dbb | 13350 | return 0; |
fc6ffb29 | 13351 | if (sizeof (ac__type_new_)) |
80e34dbb AJ |
13352 | return 0; |
13353 | ; | |
13354 | return 0; | |
13355 | } | |
13356 | _ACEOF | |
13357 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
13358 | if { (ac_try="$ac_compile" |
13359 | case "(($ac_try" in | |
13360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13361 | *) ac_try_echo=$ac_try;; | |
13362 | esac | |
13363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13364 | (eval "$ac_compile") 2>conftest.er1 | |
80e34dbb | 13365 | ac_status=$? |
875927f6 AJ |
13366 | grep -v '^ *+' conftest.er1 >conftest.err |
13367 | rm -f conftest.er1 | |
13368 | cat conftest.err >&5 | |
80e34dbb AJ |
13369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13370 | (exit $ac_status); } && | |
0ebeb530 JW |
13371 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13372 | { (case "(($ac_try" in | |
13373 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13374 | *) ac_try_echo=$ac_try;; | |
13375 | esac | |
13376 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13377 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13378 | ac_status=$? |
13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13380 | (exit $ac_status); }; } && | |
13381 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
13382 | { (case "(($ac_try" in |
13383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13384 | *) ac_try_echo=$ac_try;; | |
13385 | esac | |
13386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13387 | (eval "$ac_try") 2>&5 | |
80e34dbb AJ |
13388 | ac_status=$? |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); }; }; then | |
13391 | ac_cv_type_pthread_rwlock_t=yes | |
13392 | else | |
13393 | echo "$as_me: failed program was:" >&5 | |
13394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13395 | ||
fc6ffb29 | 13396 | ac_cv_type_pthread_rwlock_t=no |
80e34dbb | 13397 | fi |
fc6ffb29 | 13398 | |
0ebeb530 | 13399 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
80e34dbb | 13400 | fi |
fc6ffb29 AJ |
13401 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5 |
13402 | echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; } | |
80e34dbb AJ |
13403 | if test $ac_cv_type_pthread_rwlock_t = yes; then |
13404 | ||
13405 | cat >>confdefs.h <<_ACEOF | |
13406 | #define HAVE_PTHREAD_RWLOCK_T 1 | |
13407 | _ACEOF | |
13408 | ||
13409 | ||
13410 | fi | |
fc6ffb29 AJ |
13411 | { echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5 |
13412 | echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; } | |
80e34dbb AJ |
13413 | if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then |
13414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13415 | else | |
13416 | cat >conftest.$ac_ext <<_ACEOF | |
80e34dbb AJ |
13417 | /* confdefs.h. */ |
13418 | _ACEOF | |
13419 | cat confdefs.h >>conftest.$ac_ext | |
13420 | cat >>conftest.$ac_ext <<_ACEOF | |
13421 | /* end confdefs.h. */ | |
13422 | #define _GNU_SOURCE | |
13423 | #include <pthread.h> | |
13424 | ||
fc6ffb29 | 13425 | typedef pthread_rwlockattr_t ac__type_new_; |
80e34dbb AJ |
13426 | int |
13427 | main () | |
13428 | { | |
fc6ffb29 | 13429 | if ((ac__type_new_ *) 0) |
80e34dbb | 13430 | return 0; |
fc6ffb29 | 13431 | if (sizeof (ac__type_new_)) |
80e34dbb AJ |
13432 | return 0; |
13433 | ; | |
13434 | return 0; | |
13435 | } | |
13436 | _ACEOF | |
13437 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
13438 | if { (ac_try="$ac_compile" |
13439 | case "(($ac_try" in | |
13440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13441 | *) ac_try_echo=$ac_try;; | |
13442 | esac | |
13443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13444 | (eval "$ac_compile") 2>conftest.er1 | |
80e34dbb | 13445 | ac_status=$? |
875927f6 AJ |
13446 | grep -v '^ *+' conftest.er1 >conftest.err |
13447 | rm -f conftest.er1 | |
13448 | cat conftest.err >&5 | |
80e34dbb AJ |
13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13450 | (exit $ac_status); } && | |
0ebeb530 JW |
13451 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13452 | { (case "(($ac_try" in | |
13453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13454 | *) ac_try_echo=$ac_try;; | |
13455 | esac | |
13456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13457 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13458 | ac_status=$? |
13459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13460 | (exit $ac_status); }; } && | |
13461 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
13462 | { (case "(($ac_try" in |
13463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13464 | *) ac_try_echo=$ac_try;; | |
13465 | esac | |
13466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13467 | (eval "$ac_try") 2>&5 | |
80e34dbb AJ |
13468 | ac_status=$? |
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13470 | (exit $ac_status); }; }; then | |
13471 | ac_cv_type_pthread_rwlockattr_t=yes | |
13472 | else | |
13473 | echo "$as_me: failed program was:" >&5 | |
13474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13475 | ||
fc6ffb29 | 13476 | ac_cv_type_pthread_rwlockattr_t=no |
80e34dbb | 13477 | fi |
fc6ffb29 | 13478 | |
0ebeb530 | 13479 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
80e34dbb | 13480 | fi |
fc6ffb29 AJ |
13481 | { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5 |
13482 | echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; } | |
80e34dbb AJ |
13483 | if test $ac_cv_type_pthread_rwlockattr_t = yes; then |
13484 | ||
13485 | cat >>confdefs.h <<_ACEOF | |
13486 | #define HAVE_PTHREAD_RWLOCKATTR_T 1 | |
13487 | _ACEOF | |
13488 | ||
13489 | ||
13490 | fi | |
13491 | ||
13492 | ||
2d1a6274 | 13493 | ac_wine_check_funcs_save_LIBS="$LIBS" |
821ab863 AJ |
13494 | LIBS="$LIBS $LIBPTHREAD" |
13495 | ||
d110e1f2 EM |
13496 | |
13497 | ||
fc8172f7 | 13498 | |
d110e1f2 | 13499 | for ac_func in \ |
fc8172f7 | 13500 | pthread_attr_get_np \ |
d110e1f2 EM |
13501 | pthread_getattr_np \ |
13502 | pthread_get_stackaddr_np \ | |
2d1a6274 | 13503 | pthread_get_stacksize_np |
821ab863 AJ |
13504 | do |
13505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
fc6ffb29 AJ |
13506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
13507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
13508 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
821ab863 AJ |
13509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13510 | else | |
13511 | cat >conftest.$ac_ext <<_ACEOF | |
821ab863 AJ |
13512 | /* confdefs.h. */ |
13513 | _ACEOF | |
13514 | cat confdefs.h >>conftest.$ac_ext | |
13515 | cat >>conftest.$ac_ext <<_ACEOF | |
13516 | /* end confdefs.h. */ | |
875927f6 AJ |
13517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
13518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13519 | #define $ac_func innocuous_$ac_func | |
13520 | ||
821ab863 AJ |
13521 | /* System header to define __stub macros and hopefully few prototypes, |
13522 | which can conflict with char $ac_func (); below. | |
13523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13524 | <limits.h> exists even on freestanding compilers. */ | |
875927f6 | 13525 | |
821ab863 AJ |
13526 | #ifdef __STDC__ |
13527 | # include <limits.h> | |
13528 | #else | |
13529 | # include <assert.h> | |
13530 | #endif | |
875927f6 AJ |
13531 | |
13532 | #undef $ac_func | |
13533 | ||
fc6ffb29 AJ |
13534 | /* Override any GCC internal prototype to avoid an error. |
13535 | Use char because int might match the return type of a GCC | |
13536 | builtin and then its argument prototype would still apply. */ | |
821ab863 AJ |
13537 | #ifdef __cplusplus |
13538 | extern "C" | |
821ab863 | 13539 | #endif |
821ab863 AJ |
13540 | char $ac_func (); |
13541 | /* The GNU C library defines this for functions which it implements | |
13542 | to always fail with ENOSYS. Some functions are actually named | |
13543 | something starting with __ and the normal name is an alias. */ | |
fc6ffb29 | 13544 | #if defined __stub_$ac_func || defined __stub___$ac_func |
821ab863 | 13545 | choke me |
821ab863 AJ |
13546 | #endif |
13547 | ||
13548 | int | |
13549 | main () | |
13550 | { | |
fc6ffb29 | 13551 | return $ac_func (); |
821ab863 AJ |
13552 | ; |
13553 | return 0; | |
13554 | } | |
13555 | _ACEOF | |
13556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
13557 | if { (ac_try="$ac_link" |
13558 | case "(($ac_try" in | |
13559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13560 | *) ac_try_echo=$ac_try;; | |
13561 | esac | |
13562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13563 | (eval "$ac_link") 2>conftest.er1 | |
821ab863 | 13564 | ac_status=$? |
875927f6 AJ |
13565 | grep -v '^ *+' conftest.er1 >conftest.err |
13566 | rm -f conftest.er1 | |
13567 | cat conftest.err >&5 | |
821ab863 AJ |
13568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13569 | (exit $ac_status); } && | |
0ebeb530 JW |
13570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13571 | { (case "(($ac_try" in | |
13572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13573 | *) ac_try_echo=$ac_try;; | |
13574 | esac | |
13575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13576 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13577 | ac_status=$? |
13578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13579 | (exit $ac_status); }; } && | |
13580 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
13581 | { (case "(($ac_try" in |
13582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13583 | *) ac_try_echo=$ac_try;; | |
13584 | esac | |
13585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13586 | (eval "$ac_try") 2>&5 | |
821ab863 AJ |
13587 | ac_status=$? |
13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13589 | (exit $ac_status); }; }; then | |
13590 | eval "$as_ac_var=yes" | |
13591 | else | |
13592 | echo "$as_me: failed program was:" >&5 | |
13593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13594 | ||
fc6ffb29 | 13595 | eval "$as_ac_var=no" |
821ab863 | 13596 | fi |
fc6ffb29 | 13597 | |
0ebeb530 | 13598 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 13599 | conftest$ac_exeext conftest.$ac_ext |
821ab863 | 13600 | fi |
fc6ffb29 AJ |
13601 | ac_res=`eval echo '${'$as_ac_var'}'` |
13602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
13603 | echo "${ECHO_T}$ac_res" >&6; } | |
821ab863 AJ |
13604 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
13605 | cat >>confdefs.h <<_ACEOF | |
13606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13607 | _ACEOF | |
13608 | ||
13609 | fi | |
13610 | done | |
13611 | ||
2d1a6274 | 13612 | LIBS="$ac_wine_check_funcs_save_LIBS" |
821ab863 | 13613 | |
82776020 AJ |
13614 | # Extract the first word of "artsc-config", so it can be a program name with args. |
13615 | set dummy artsc-config; ac_word=$2 | |
fc6ffb29 AJ |
13616 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
82776020 | 13618 | if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then |
daa2886c | 13619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
daa2886c | 13620 | else |
82776020 AJ |
13621 | case $ARTSCCONFIG in |
13622 | [\\/]* | ?:[\\/]*) | |
13623 | ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path. | |
13624 | ;; | |
13625 | *) | |
13626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13627 | for as_dir in $PATH | |
13628 | do | |
13629 | IFS=$as_save_IFS | |
13630 | test -z "$as_dir" && as_dir=. | |
13631 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 13632 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
82776020 AJ |
13633 | ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext" |
13634 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13635 | break 2 | |
13636 | fi | |
13637 | done | |
13638 | done | |
fc6ffb29 | 13639 | IFS=$as_save_IFS |
82776020 AJ |
13640 | |
13641 | ;; | |
13642 | esac | |
13643 | fi | |
13644 | ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG | |
82776020 | 13645 | if test -n "$ARTSCCONFIG"; then |
fc6ffb29 AJ |
13646 | { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5 |
13647 | echo "${ECHO_T}$ARTSCCONFIG" >&6; } | |
82776020 | 13648 | else |
fc6ffb29 AJ |
13649 | { echo "$as_me:$LINENO: result: no" >&5 |
13650 | echo "${ECHO_T}no" >&6; } | |
82776020 AJ |
13651 | fi |
13652 | ||
fc6ffb29 | 13653 | |
82776020 AJ |
13654 | if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"'; |
13655 | then | |
13656 | ARTSC_CFLAGS="" | |
13657 | for i in `$ARTSCCONFIG --cflags` | |
13658 | do | |
13659 | case "$i" in | |
13660 | -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";; | |
13661 | esac | |
13662 | done | |
197a7d04 AJ |
13663 | ARTSC_LIBS="" |
13664 | for i in `$ARTSCCONFIG --libs` | |
13665 | do | |
13666 | case "$i" in | |
13667 | -L/usr/lib|-L/usr/lib64) ;; | |
13668 | -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";; | |
13669 | esac | |
13670 | done | |
82776020 AJ |
13671 | save_CFLAGS="$CFLAGS" |
13672 | CFLAGS="$CFLAGS $ARTSC_CFLAGS" | |
fc6ffb29 AJ |
13673 | { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5 |
13674 | echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; } | |
82776020 AJ |
13675 | if test "${ac_cv_lib_artsc_arts_init+set}" = set; then |
13676 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13677 | else | |
13678 | ac_check_lib_save_LIBS=$LIBS | |
13679 | LIBS="-lartsc $ARTSC_LIBS $LIBS" | |
13680 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
13681 | /* confdefs.h. */ |
13682 | _ACEOF | |
13683 | cat confdefs.h >>conftest.$ac_ext | |
13684 | cat >>conftest.$ac_ext <<_ACEOF | |
13685 | /* end confdefs.h. */ | |
73482144 | 13686 | |
fc6ffb29 AJ |
13687 | /* Override any GCC internal prototype to avoid an error. |
13688 | Use char because int might match the return type of a GCC | |
13689 | builtin and then its argument prototype would still apply. */ | |
82776020 AJ |
13690 | #ifdef __cplusplus |
13691 | extern "C" | |
13692 | #endif | |
82776020 | 13693 | char arts_init (); |
73482144 AJ |
13694 | int |
13695 | main () | |
13696 | { | |
fc6ffb29 | 13697 | return arts_init (); |
73482144 AJ |
13698 | ; |
13699 | return 0; | |
13700 | } | |
daa2886c | 13701 | _ACEOF |
82776020 | 13702 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
13703 | if { (ac_try="$ac_link" |
13704 | case "(($ac_try" in | |
13705 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13706 | *) ac_try_echo=$ac_try;; | |
13707 | esac | |
13708 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13709 | (eval "$ac_link") 2>conftest.er1 | |
daa2886c | 13710 | ac_status=$? |
875927f6 AJ |
13711 | grep -v '^ *+' conftest.er1 >conftest.err |
13712 | rm -f conftest.er1 | |
13713 | cat conftest.err >&5 | |
daa2886c AJ |
13714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13715 | (exit $ac_status); } && | |
0ebeb530 JW |
13716 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13717 | { (case "(($ac_try" in | |
13718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13719 | *) ac_try_echo=$ac_try;; | |
13720 | esac | |
13721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13722 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13723 | ac_status=$? |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13725 | (exit $ac_status); }; } && | |
82776020 | 13726 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
13727 | { (case "(($ac_try" in |
13728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13729 | *) ac_try_echo=$ac_try;; | |
13730 | esac | |
13731 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13732 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
13733 | ac_status=$? |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; }; then | |
82776020 | 13736 | ac_cv_lib_artsc_arts_init=yes |
daa2886c AJ |
13737 | else |
13738 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
13739 | sed 's/^/| /' conftest.$ac_ext >&5 |
13740 | ||
fc6ffb29 | 13741 | ac_cv_lib_artsc_arts_init=no |
f92b7c06 | 13742 | fi |
fc6ffb29 | 13743 | |
0ebeb530 | 13744 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 13745 | conftest$ac_exeext conftest.$ac_ext |
f92b7c06 AJ |
13746 | LIBS=$ac_check_lib_save_LIBS |
13747 | fi | |
fc6ffb29 AJ |
13748 | { echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5 |
13749 | echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; } | |
73482144 | 13750 | if test $ac_cv_lib_artsc_arts_init = yes; then |
151015fa VB |
13751 | cat >conftest.$ac_ext <<_ACEOF |
13752 | /* confdefs.h. */ | |
13753 | _ACEOF | |
13754 | cat confdefs.h >>conftest.$ac_ext | |
13755 | cat >>conftest.$ac_ext <<_ACEOF | |
13756 | /* end confdefs.h. */ | |
73482144 | 13757 | #include <artsc.h> |
151015fa VB |
13758 | int |
13759 | main () | |
13760 | { | |
73482144 | 13761 | arts_stream_t stream; |
151015fa VB |
13762 | ; |
13763 | return 0; | |
13764 | } | |
13765 | _ACEOF | |
13766 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
13767 | if { (ac_try="$ac_compile" |
13768 | case "(($ac_try" in | |
13769 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13770 | *) ac_try_echo=$ac_try;; | |
13771 | esac | |
13772 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13773 | (eval "$ac_compile") 2>conftest.er1 | |
151015fa VB |
13774 | ac_status=$? |
13775 | grep -v '^ *+' conftest.er1 >conftest.err | |
13776 | rm -f conftest.er1 | |
13777 | cat conftest.err >&5 | |
13778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13779 | (exit $ac_status); } && | |
0ebeb530 JW |
13780 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13781 | { (case "(($ac_try" in | |
13782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13783 | *) ac_try_echo=$ac_try;; | |
13784 | esac | |
13785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13786 | (eval "$ac_try") 2>&5 | |
151015fa VB |
13787 | ac_status=$? |
13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13789 | (exit $ac_status); }; } && | |
13790 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
13791 | { (case "(($ac_try" in |
13792 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13793 | *) ac_try_echo=$ac_try;; | |
13794 | esac | |
13795 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13796 | (eval "$ac_try") 2>&5 | |
151015fa VB |
13797 | ac_status=$? |
13798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13799 | (exit $ac_status); }; }; then | |
73482144 AJ |
13800 | ARTSLIBS=$ARTSC_LIBS |
13801 | ||
13802 | ARTSINCL=$ARTSC_CFLAGS | |
13803 | ||
f92b7c06 AJ |
13804 | |
13805 | cat >>confdefs.h <<\_ACEOF | |
73482144 | 13806 | #define HAVE_ARTS 1 |
f92b7c06 AJ |
13807 | _ACEOF |
13808 | ||
151015fa VB |
13809 | else |
13810 | echo "$as_me: failed program was:" >&5 | |
13811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13812 | ||
fc6ffb29 | 13813 | |
151015fa | 13814 | fi |
fc6ffb29 | 13815 | |
0ebeb530 | 13816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f92b7c06 AJ |
13817 | fi |
13818 | ||
73482144 | 13819 | CFLAGS="$save_CFLAGS" |
f92b7c06 AJ |
13820 | fi |
13821 | ||
73482144 AJ |
13822 | # Extract the first word of "esd-config", so it can be a program name with args. |
13823 | set dummy esd-config; ac_word=$2 | |
fc6ffb29 AJ |
13824 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
13825 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
73482144 AJ |
13826 | if test "${ac_cv_path_ESDCONFIG+set}" = set; then |
13827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13828 | else | |
13829 | case $ESDCONFIG in | |
13830 | [\\/]* | ?:[\\/]*) | |
13831 | ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path. | |
13832 | ;; | |
13833 | *) | |
13834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13835 | for as_dir in $PATH | |
13836 | do | |
13837 | IFS=$as_save_IFS | |
13838 | test -z "$as_dir" && as_dir=. | |
13839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 13840 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
73482144 AJ |
13841 | ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
13842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
13843 | break 2 | |
13844 | fi | |
13845 | done | |
13846 | done | |
fc6ffb29 | 13847 | IFS=$as_save_IFS |
daa2886c | 13848 | |
73482144 AJ |
13849 | ;; |
13850 | esac | |
13851 | fi | |
13852 | ESDCONFIG=$ac_cv_path_ESDCONFIG | |
73482144 | 13853 | if test -n "$ESDCONFIG"; then |
fc6ffb29 AJ |
13854 | { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5 |
13855 | echo "${ECHO_T}$ESDCONFIG" >&6; } | |
73482144 | 13856 | else |
fc6ffb29 AJ |
13857 | { echo "$as_me:$LINENO: result: no" >&5 |
13858 | echo "${ECHO_T}no" >&6; } | |
73482144 | 13859 | fi |
2a91e3f9 | 13860 | |
fc6ffb29 | 13861 | |
73482144 AJ |
13862 | if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"'; |
13863 | then | |
13864 | ESD_CFLAGS="" | |
13865 | for i in `$ESDCONFIG --cflags` | |
13866 | do | |
13867 | case "$i" in | |
13868 | -I*) ESD_CFLAGS="$ESD_CFLAGS $i";; | |
13869 | esac | |
13870 | done | |
13871 | ESD_LIBS=`$ESDCONFIG --libs` | |
13872 | save_CFLAGS="$CFLAGS" | |
13873 | CFLAGS="$CFLAGS $ESD_CFLAGS" | |
fc6ffb29 AJ |
13874 | { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5 |
13875 | echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; } | |
73482144 | 13876 | if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then |
2a91e3f9 | 13877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2a91e3f9 | 13878 | else |
73482144 AJ |
13879 | ac_check_lib_save_LIBS=$LIBS |
13880 | LIBS="-lesd $LIBS" | |
2a91e3f9 | 13881 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
13882 | /* confdefs.h. */ |
13883 | _ACEOF | |
13884 | cat confdefs.h >>conftest.$ac_ext | |
13885 | cat >>conftest.$ac_ext <<_ACEOF | |
13886 | /* end confdefs.h. */ | |
73482144 | 13887 | |
fc6ffb29 AJ |
13888 | /* Override any GCC internal prototype to avoid an error. |
13889 | Use char because int might match the return type of a GCC | |
13890 | builtin and then its argument prototype would still apply. */ | |
73482144 AJ |
13891 | #ifdef __cplusplus |
13892 | extern "C" | |
13893 | #endif | |
73482144 AJ |
13894 | char esd_open_sound (); |
13895 | int | |
13896 | main () | |
13897 | { | |
fc6ffb29 | 13898 | return esd_open_sound (); |
73482144 AJ |
13899 | ; |
13900 | return 0; | |
13901 | } | |
2a91e3f9 | 13902 | _ACEOF |
73482144 | 13903 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
13904 | if { (ac_try="$ac_link" |
13905 | case "(($ac_try" in | |
13906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13907 | *) ac_try_echo=$ac_try;; | |
13908 | esac | |
13909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13910 | (eval "$ac_link") 2>conftest.er1 | |
2a91e3f9 | 13911 | ac_status=$? |
875927f6 AJ |
13912 | grep -v '^ *+' conftest.er1 >conftest.err |
13913 | rm -f conftest.er1 | |
13914 | cat conftest.err >&5 | |
2a91e3f9 RL |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13916 | (exit $ac_status); } && | |
0ebeb530 JW |
13917 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
13918 | { (case "(($ac_try" in | |
13919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13920 | *) ac_try_echo=$ac_try;; | |
13921 | esac | |
13922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13923 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
13924 | ac_status=$? |
13925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13926 | (exit $ac_status); }; } && | |
73482144 | 13927 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
13928 | { (case "(($ac_try" in |
13929 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13930 | *) ac_try_echo=$ac_try;; | |
13931 | esac | |
13932 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13933 | (eval "$ac_try") 2>&5 | |
2a91e3f9 RL |
13934 | ac_status=$? |
13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13936 | (exit $ac_status); }; }; then | |
73482144 | 13937 | ac_cv_lib_esd_esd_open_sound=yes |
2a91e3f9 RL |
13938 | else |
13939 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
13940 | sed 's/^/| /' conftest.$ac_ext >&5 |
13941 | ||
fc6ffb29 | 13942 | ac_cv_lib_esd_esd_open_sound=no |
2a91e3f9 | 13943 | fi |
fc6ffb29 | 13944 | |
0ebeb530 | 13945 | rm -f core conftest.err conftest.$ac_objext \ |
73482144 AJ |
13946 | conftest$ac_exeext conftest.$ac_ext |
13947 | LIBS=$ac_check_lib_save_LIBS | |
13948 | fi | |
fc6ffb29 AJ |
13949 | { echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5 |
13950 | echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; } | |
73482144 AJ |
13951 | if test $ac_cv_lib_esd_esd_open_sound = yes; then |
13952 | ESDLIBS=$ESD_LIBS | |
2a91e3f9 | 13953 | |
73482144 AJ |
13954 | ESDINCL=$ESD_CFLAGS |
13955 | ||
13956 | ||
13957 | cat >>confdefs.h <<\_ACEOF | |
13958 | #define HAVE_ESD 1 | |
2a91e3f9 | 13959 | _ACEOF |
e24bcc77 | 13960 | |
2a91e3f9 | 13961 | fi |
875927f6 | 13962 | |
73482144 | 13963 | CFLAGS="$save_CFLAGS" |
2a91e3f9 | 13964 | fi |
2a91e3f9 | 13965 | |
73482144 AJ |
13966 | ALSALIBS="" |
13967 | ||
13968 | if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes" | |
13969 | then | |
fc6ffb29 AJ |
13970 | { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5 |
13971 | echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; } | |
73482144 | 13972 | if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then |
2a91e3f9 RL |
13973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13974 | else | |
13975 | ac_check_lib_save_LIBS=$LIBS | |
73482144 | 13976 | LIBS="-lasound $LIBS" |
2a91e3f9 | 13977 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
13978 | /* confdefs.h. */ |
13979 | _ACEOF | |
13980 | cat confdefs.h >>conftest.$ac_ext | |
13981 | cat >>conftest.$ac_ext <<_ACEOF | |
13982 | /* end confdefs.h. */ | |
2a91e3f9 | 13983 | |
fc6ffb29 AJ |
13984 | /* Override any GCC internal prototype to avoid an error. |
13985 | Use char because int might match the return type of a GCC | |
13986 | builtin and then its argument prototype would still apply. */ | |
2a91e3f9 RL |
13987 | #ifdef __cplusplus |
13988 | extern "C" | |
13989 | #endif | |
73482144 | 13990 | char snd_pcm_hw_params_get_access (); |
2a91e3f9 RL |
13991 | int |
13992 | main () | |
13993 | { | |
fc6ffb29 | 13994 | return snd_pcm_hw_params_get_access (); |
2a91e3f9 RL |
13995 | ; |
13996 | return 0; | |
13997 | } | |
13998 | _ACEOF | |
13999 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14000 | if { (ac_try="$ac_link" |
14001 | case "(($ac_try" in | |
14002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14003 | *) ac_try_echo=$ac_try;; | |
14004 | esac | |
14005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14006 | (eval "$ac_link") 2>conftest.er1 | |
2a91e3f9 | 14007 | ac_status=$? |
875927f6 AJ |
14008 | grep -v '^ *+' conftest.er1 >conftest.err |
14009 | rm -f conftest.er1 | |
14010 | cat conftest.err >&5 | |
2a91e3f9 RL |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14012 | (exit $ac_status); } && | |
0ebeb530 JW |
14013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14014 | { (case "(($ac_try" in | |
14015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14016 | *) ac_try_echo=$ac_try;; | |
14017 | esac | |
14018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14019 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14020 | ac_status=$? |
14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14022 | (exit $ac_status); }; } && | |
14023 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14024 | { (case "(($ac_try" in |
14025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14026 | *) ac_try_echo=$ac_try;; | |
14027 | esac | |
14028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14029 | (eval "$ac_try") 2>&5 | |
2a91e3f9 RL |
14030 | ac_status=$? |
14031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14032 | (exit $ac_status); }; }; then | |
73482144 | 14033 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes |
2a91e3f9 RL |
14034 | else |
14035 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
14036 | sed 's/^/| /' conftest.$ac_ext >&5 |
14037 | ||
fc6ffb29 | 14038 | ac_cv_lib_asound_snd_pcm_hw_params_get_access=no |
2a91e3f9 | 14039 | fi |
fc6ffb29 | 14040 | |
0ebeb530 | 14041 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 14042 | conftest$ac_exeext conftest.$ac_ext |
2a91e3f9 RL |
14043 | LIBS=$ac_check_lib_save_LIBS |
14044 | fi | |
fc6ffb29 AJ |
14045 | { echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5 |
14046 | echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; } | |
73482144 AJ |
14047 | if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then |
14048 | cat >conftest.$ac_ext <<_ACEOF | |
00fdd9fc AJ |
14049 | /* confdefs.h. */ |
14050 | _ACEOF | |
14051 | cat confdefs.h >>conftest.$ac_ext | |
14052 | cat >>conftest.$ac_ext <<_ACEOF | |
14053 | /* end confdefs.h. */ | |
73482144 AJ |
14054 | #ifdef HAVE_ALSA_ASOUNDLIB_H |
14055 | #include <alsa/asoundlib.h> | |
14056 | #elif defined(HAVE_SYS_ASOUNDLIB_H) | |
14057 | #include <sys/asoundlib.h> | |
14058 | #endif | |
14059 | int | |
14060 | main () | |
14061 | { | |
14062 | int ret = snd_pcm_hw_params_get_access(NULL, NULL) | |
14063 | ; | |
14064 | return 0; | |
14065 | } | |
00fdd9fc AJ |
14066 | _ACEOF |
14067 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
14068 | if { (ac_try="$ac_compile" |
14069 | case "(($ac_try" in | |
14070 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14071 | *) ac_try_echo=$ac_try;; | |
14072 | esac | |
14073 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14074 | (eval "$ac_compile") 2>conftest.er1 | |
00fdd9fc | 14075 | ac_status=$? |
875927f6 AJ |
14076 | grep -v '^ *+' conftest.er1 >conftest.err |
14077 | rm -f conftest.er1 | |
14078 | cat conftest.err >&5 | |
00fdd9fc AJ |
14079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14080 | (exit $ac_status); } && | |
0ebeb530 JW |
14081 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14082 | { (case "(($ac_try" in | |
14083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14084 | *) ac_try_echo=$ac_try;; | |
14085 | esac | |
14086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14087 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14088 | ac_status=$? |
14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14090 | (exit $ac_status); }; } && | |
14091 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
14092 | { (case "(($ac_try" in |
14093 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14094 | *) ac_try_echo=$ac_try;; | |
14095 | esac | |
14096 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14097 | (eval "$ac_try") 2>&5 | |
00fdd9fc AJ |
14098 | ac_status=$? |
14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14100 | (exit $ac_status); }; }; then | |
00fdd9fc | 14101 | |
73482144 AJ |
14102 | cat >>confdefs.h <<\_ACEOF |
14103 | #define HAVE_ALSA 1 | |
00fdd9fc | 14104 | _ACEOF |
73482144 AJ |
14105 | |
14106 | ALSALIBS="-lasound" | |
00fdd9fc AJ |
14107 | else |
14108 | echo "$as_me: failed program was:" >&5 | |
14109 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14110 | ||
fc6ffb29 | 14111 | |
00fdd9fc | 14112 | fi |
fc6ffb29 | 14113 | |
0ebeb530 | 14114 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
00fdd9fc | 14115 | fi |
00fdd9fc AJ |
14116 | |
14117 | fi | |
00fdd9fc AJ |
14118 | |
14119 | ||
73482144 AJ |
14120 | AUDIOIOLIBS="" |
14121 | ||
14122 | if test "$ac_cv_header_libaudioio_h" = "yes" | |
14123 | then | |
fc6ffb29 AJ |
14124 | { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5 |
14125 | echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; } | |
73482144 | 14126 | if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then |
00fdd9fc | 14127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
00fdd9fc | 14128 | else |
73482144 AJ |
14129 | ac_check_lib_save_LIBS=$LIBS |
14130 | LIBS="-laudioio $LIBS" | |
00fdd9fc | 14131 | cat >conftest.$ac_ext <<_ACEOF |
00fdd9fc AJ |
14132 | /* confdefs.h. */ |
14133 | _ACEOF | |
14134 | cat confdefs.h >>conftest.$ac_ext | |
14135 | cat >>conftest.$ac_ext <<_ACEOF | |
14136 | /* end confdefs.h. */ | |
73482144 | 14137 | |
fc6ffb29 AJ |
14138 | /* Override any GCC internal prototype to avoid an error. |
14139 | Use char because int might match the return type of a GCC | |
14140 | builtin and then its argument prototype would still apply. */ | |
73482144 AJ |
14141 | #ifdef __cplusplus |
14142 | extern "C" | |
14143 | #endif | |
73482144 AJ |
14144 | char AudioIOGetVersion (); |
14145 | int | |
14146 | main () | |
14147 | { | |
fc6ffb29 | 14148 | return AudioIOGetVersion (); |
73482144 AJ |
14149 | ; |
14150 | return 0; | |
14151 | } | |
00fdd9fc | 14152 | _ACEOF |
73482144 | 14153 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
14154 | if { (ac_try="$ac_link" |
14155 | case "(($ac_try" in | |
14156 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14157 | *) ac_try_echo=$ac_try;; | |
14158 | esac | |
14159 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14160 | (eval "$ac_link") 2>conftest.er1 | |
00fdd9fc | 14161 | ac_status=$? |
875927f6 AJ |
14162 | grep -v '^ *+' conftest.er1 >conftest.err |
14163 | rm -f conftest.er1 | |
14164 | cat conftest.err >&5 | |
00fdd9fc AJ |
14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14166 | (exit $ac_status); } && | |
0ebeb530 JW |
14167 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14168 | { (case "(($ac_try" in | |
14169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14170 | *) ac_try_echo=$ac_try;; | |
14171 | esac | |
14172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14173 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14174 | ac_status=$? |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); }; } && | |
73482144 | 14177 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
14178 | { (case "(($ac_try" in |
14179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14180 | *) ac_try_echo=$ac_try;; | |
14181 | esac | |
14182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14183 | (eval "$ac_try") 2>&5 | |
73482144 AJ |
14184 | ac_status=$? |
14185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14186 | (exit $ac_status); }; }; then | |
14187 | ac_cv_lib_audioio_AudioIOGetVersion=yes | |
00fdd9fc AJ |
14188 | else |
14189 | echo "$as_me: failed program was:" >&5 | |
14190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14191 | ||
fc6ffb29 | 14192 | ac_cv_lib_audioio_AudioIOGetVersion=no |
00fdd9fc | 14193 | fi |
fc6ffb29 | 14194 | |
0ebeb530 | 14195 | rm -f core conftest.err conftest.$ac_objext \ |
73482144 AJ |
14196 | conftest$ac_exeext conftest.$ac_ext |
14197 | LIBS=$ac_check_lib_save_LIBS | |
14198 | fi | |
fc6ffb29 AJ |
14199 | { echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5 |
14200 | echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; } | |
73482144 AJ |
14201 | if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then |
14202 | AUDIOIOLIBS="-laudioio" | |
14203 | ||
14204 | cat >>confdefs.h <<\_ACEOF | |
14205 | #define HAVE_LIBAUDIOIO 1 | |
14206 | _ACEOF | |
00fdd9fc | 14207 | |
00fdd9fc | 14208 | fi |
00fdd9fc AJ |
14209 | |
14210 | fi | |
00fdd9fc | 14211 | |
73482144 AJ |
14212 | |
14213 | if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes" | |
14214 | then | |
fc6ffb29 AJ |
14215 | { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5 |
14216 | echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; } | |
00fdd9fc AJ |
14217 | if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then |
14218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14219 | else | |
14220 | ac_check_lib_save_LIBS=$LIBS | |
14221 | LIBS="-lcapi20 $LIBS" | |
14222 | cat >conftest.$ac_ext <<_ACEOF | |
00fdd9fc AJ |
14223 | /* confdefs.h. */ |
14224 | _ACEOF | |
14225 | cat confdefs.h >>conftest.$ac_ext | |
14226 | cat >>conftest.$ac_ext <<_ACEOF | |
14227 | /* end confdefs.h. */ | |
14228 | ||
fc6ffb29 AJ |
14229 | /* Override any GCC internal prototype to avoid an error. |
14230 | Use char because int might match the return type of a GCC | |
14231 | builtin and then its argument prototype would still apply. */ | |
00fdd9fc AJ |
14232 | #ifdef __cplusplus |
14233 | extern "C" | |
14234 | #endif | |
00fdd9fc AJ |
14235 | char capi20_register (); |
14236 | int | |
14237 | main () | |
14238 | { | |
fc6ffb29 | 14239 | return capi20_register (); |
00fdd9fc AJ |
14240 | ; |
14241 | return 0; | |
14242 | } | |
14243 | _ACEOF | |
14244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14245 | if { (ac_try="$ac_link" |
14246 | case "(($ac_try" in | |
14247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14248 | *) ac_try_echo=$ac_try;; | |
14249 | esac | |
14250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14251 | (eval "$ac_link") 2>conftest.er1 | |
00fdd9fc | 14252 | ac_status=$? |
875927f6 AJ |
14253 | grep -v '^ *+' conftest.er1 >conftest.err |
14254 | rm -f conftest.er1 | |
14255 | cat conftest.err >&5 | |
00fdd9fc AJ |
14256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14257 | (exit $ac_status); } && | |
0ebeb530 JW |
14258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14259 | { (case "(($ac_try" in | |
14260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14261 | *) ac_try_echo=$ac_try;; | |
14262 | esac | |
14263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14264 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14265 | ac_status=$? |
14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14267 | (exit $ac_status); }; } && | |
14268 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14269 | { (case "(($ac_try" in |
14270 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14271 | *) ac_try_echo=$ac_try;; | |
14272 | esac | |
14273 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14274 | (eval "$ac_try") 2>&5 | |
00fdd9fc AJ |
14275 | ac_status=$? |
14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14277 | (exit $ac_status); }; }; then | |
14278 | ac_cv_lib_capi20_capi20_register=yes | |
14279 | else | |
14280 | echo "$as_me: failed program was:" >&5 | |
14281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14282 | ||
fc6ffb29 | 14283 | ac_cv_lib_capi20_capi20_register=no |
00fdd9fc | 14284 | fi |
fc6ffb29 | 14285 | |
0ebeb530 | 14286 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 14287 | conftest$ac_exeext conftest.$ac_ext |
00fdd9fc AJ |
14288 | LIBS=$ac_check_lib_save_LIBS |
14289 | fi | |
fc6ffb29 AJ |
14290 | { echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5 |
14291 | echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; } | |
00fdd9fc AJ |
14292 | if test $ac_cv_lib_capi20_capi20_register = yes; then |
14293 | ||
00fdd9fc AJ |
14294 | cat >>confdefs.h <<\_ACEOF |
14295 | #define HAVE_CAPI4LINUX 1 | |
14296 | _ACEOF | |
14297 | ||
00fdd9fc AJ |
14298 | fi |
14299 | ||
00fdd9fc AJ |
14300 | fi |
14301 | ||
00fdd9fc | 14302 | |
fc09423d AJ |
14303 | EXTRACFLAGS="" |
14304 | ||
4f8c37b4 AJ |
14305 | if test "x${GCC}" = "xyes" |
14306 | then | |
d17b2327 | 14307 | EXTRACFLAGS="-Wall -pipe" |
c509bc4d | 14308 | |
fc6ffb29 AJ |
14309 | { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5 |
14310 | echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; } | |
f5818d2f AJ |
14311 | if test "${ac_cv_c_gcc_strength_bug+set}" = set; then |
14312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f8c37b4 AJ |
14313 | else |
14314 | if test "$cross_compiling" = yes; then | |
14315 | ac_cv_c_gcc_strength_bug="yes" | |
14316 | else | |
f5818d2f | 14317 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
14318 | /* confdefs.h. */ |
14319 | _ACEOF | |
14320 | cat confdefs.h >>conftest.$ac_ext | |
14321 | cat >>conftest.$ac_ext <<_ACEOF | |
14322 | /* end confdefs.h. */ | |
4f8c37b4 | 14323 | |
5aee80f6 | 14324 | int L[4] = {0,1,2,3}; |
4f8c37b4 | 14325 | int main(void) { |
d2e1c1a4 | 14326 | static int Array[3]; |
4f8c37b4 AJ |
14327 | unsigned int B = 3; |
14328 | int i; | |
d2e1c1a4 | 14329 | for(i=0; i<B; i++) Array[i] = i - 3; |
5aee80f6 EP |
14330 | for(i=0; i<4 - 1; i++) L[i] = L[i + 1]; |
14331 | L[i] = 4; | |
f5818d2f | 14332 | |
f41c2b21 DP |
14333 | exit( Array[1] != -2 || L[2] != 3); |
14334 | } | |
14335 | _ACEOF | |
14336 | rm -f conftest$ac_exeext | |
0ebeb530 JW |
14337 | if { (ac_try="$ac_link" |
14338 | case "(($ac_try" in | |
14339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14340 | *) ac_try_echo=$ac_try;; | |
14341 | esac | |
14342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14343 | (eval "$ac_link") 2>&5 | |
f41c2b21 DP |
14344 | ac_status=$? |
14345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14346 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
0ebeb530 JW |
14347 | { (case "(($ac_try" in |
14348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14349 | *) ac_try_echo=$ac_try;; | |
14350 | esac | |
14351 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14352 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
14353 | ac_status=$? |
14354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14355 | (exit $ac_status); }; }; then | |
14356 | ac_cv_c_gcc_strength_bug="no" | |
14357 | else | |
14358 | echo "$as_me: program exited with status $ac_status" >&5 | |
14359 | echo "$as_me: failed program was:" >&5 | |
14360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14361 | ||
14362 | ( exit $ac_status ) | |
14363 | ac_cv_c_gcc_strength_bug="yes" | |
14364 | fi | |
fc6ffb29 | 14365 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f41c2b21 | 14366 | fi |
fc6ffb29 AJ |
14367 | |
14368 | ||
f41c2b21 | 14369 | fi |
fc6ffb29 AJ |
14370 | { echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5 |
14371 | echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; } | |
f41c2b21 DP |
14372 | if test "$ac_cv_c_gcc_strength_bug" = "yes" |
14373 | then | |
14374 | EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce" | |
14375 | fi | |
14376 | ||
182d150a AJ |
14377 | |
14378 | { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5 | |
14379 | echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; } | |
14380 | if test "${ac_cv_cflags__fshort_wchar+set}" = set; then | |
f41c2b21 DP |
14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14382 | else | |
14383 | ac_wine_try_cflags_saved=$CFLAGS | |
14384 | CFLAGS="$CFLAGS -fshort-wchar" | |
14385 | cat >conftest.$ac_ext <<_ACEOF | |
14386 | /* confdefs.h. */ | |
14387 | _ACEOF | |
14388 | cat confdefs.h >>conftest.$ac_ext | |
14389 | cat >>conftest.$ac_ext <<_ACEOF | |
14390 | /* end confdefs.h. */ | |
14391 | ||
14392 | int | |
14393 | main () | |
14394 | { | |
14395 | ||
14396 | ; | |
14397 | return 0; | |
4f8c37b4 | 14398 | } |
f5818d2f | 14399 | _ACEOF |
f41c2b21 | 14400 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
14401 | if { (ac_try="$ac_link" |
14402 | case "(($ac_try" in | |
14403 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14404 | *) ac_try_echo=$ac_try;; | |
14405 | esac | |
14406 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14407 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 14408 | ac_status=$? |
f41c2b21 DP |
14409 | grep -v '^ *+' conftest.er1 >conftest.err |
14410 | rm -f conftest.er1 | |
14411 | cat conftest.err >&5 | |
daa2886c | 14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f41c2b21 | 14413 | (exit $ac_status); } && |
0ebeb530 JW |
14414 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14415 | { (case "(($ac_try" in | |
14416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14417 | *) ac_try_echo=$ac_try;; | |
14418 | esac | |
14419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14420 | (eval "$ac_try") 2>&5 | |
f41c2b21 DP |
14421 | ac_status=$? |
14422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14423 | (exit $ac_status); }; } && | |
14424 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14425 | { (case "(($ac_try" in |
14426 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14427 | *) ac_try_echo=$ac_try;; | |
14428 | esac | |
14429 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14430 | (eval "$ac_try") 2>&5 | |
f5818d2f | 14431 | ac_status=$? |
daa2886c | 14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 14433 | (exit $ac_status); }; }; then |
182d150a | 14434 | ac_cv_cflags__fshort_wchar=yes |
4f8c37b4 | 14435 | else |
f41c2b21 | 14436 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
14437 | sed 's/^/| /' conftest.$ac_ext >&5 |
14438 | ||
182d150a | 14439 | ac_cv_cflags__fshort_wchar=no |
4f8c37b4 | 14440 | fi |
fc6ffb29 | 14441 | |
0ebeb530 | 14442 | rm -f core conftest.err conftest.$ac_objext \ |
f41c2b21 DP |
14443 | conftest$ac_exeext conftest.$ac_ext |
14444 | CFLAGS=$ac_wine_try_cflags_saved | |
4f8c37b4 | 14445 | fi |
182d150a AJ |
14446 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5 |
14447 | echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; } | |
14448 | if test $ac_cv_cflags__fshort_wchar = yes; then | |
f41c2b21 DP |
14449 | |
14450 | cat >>confdefs.h <<\_ACEOF | |
14451 | #define CC_FLAG_SHORT_WCHAR "-fshort-wchar" | |
14452 | _ACEOF | |
14453 | ||
182d150a | 14454 | fi |
f9b94cb9 | 14455 | |
182d150a AJ |
14456 | { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5 |
14457 | echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; } | |
14458 | if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then | |
efca0f6a AJ |
14459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14460 | else | |
14461 | ac_wine_try_cflags_saved=$CFLAGS | |
14462 | CFLAGS="$CFLAGS -fno-strict-aliasing" | |
14463 | cat >conftest.$ac_ext <<_ACEOF | |
efca0f6a AJ |
14464 | /* confdefs.h. */ |
14465 | _ACEOF | |
14466 | cat confdefs.h >>conftest.$ac_ext | |
14467 | cat >>conftest.$ac_ext <<_ACEOF | |
14468 | /* end confdefs.h. */ | |
14469 | ||
14470 | int | |
14471 | main () | |
14472 | { | |
14473 | ||
14474 | ; | |
14475 | return 0; | |
14476 | } | |
14477 | _ACEOF | |
14478 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14479 | if { (ac_try="$ac_link" |
14480 | case "(($ac_try" in | |
14481 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14482 | *) ac_try_echo=$ac_try;; | |
14483 | esac | |
14484 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14485 | (eval "$ac_link") 2>conftest.er1 | |
efca0f6a | 14486 | ac_status=$? |
875927f6 AJ |
14487 | grep -v '^ *+' conftest.er1 >conftest.err |
14488 | rm -f conftest.er1 | |
14489 | cat conftest.err >&5 | |
efca0f6a AJ |
14490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14491 | (exit $ac_status); } && | |
0ebeb530 JW |
14492 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14493 | { (case "(($ac_try" in | |
14494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14495 | *) ac_try_echo=$ac_try;; | |
14496 | esac | |
14497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14498 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14499 | ac_status=$? |
14500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14501 | (exit $ac_status); }; } && | |
14502 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14503 | { (case "(($ac_try" in |
14504 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14505 | *) ac_try_echo=$ac_try;; | |
14506 | esac | |
14507 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14508 | (eval "$ac_try") 2>&5 | |
efca0f6a AJ |
14509 | ac_status=$? |
14510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14511 | (exit $ac_status); }; }; then | |
182d150a | 14512 | ac_cv_cflags__fno_strict_aliasing=yes |
efca0f6a AJ |
14513 | else |
14514 | echo "$as_me: failed program was:" >&5 | |
14515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14516 | ||
182d150a | 14517 | ac_cv_cflags__fno_strict_aliasing=no |
efca0f6a | 14518 | fi |
fc6ffb29 | 14519 | |
0ebeb530 | 14520 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 14521 | conftest$ac_exeext conftest.$ac_ext |
efca0f6a AJ |
14522 | CFLAGS=$ac_wine_try_cflags_saved |
14523 | fi | |
182d150a AJ |
14524 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5 |
14525 | echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; } | |
14526 | if test $ac_cv_cflags__fno_strict_aliasing = yes; then | |
14527 | EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing" | |
14528 | fi | |
efca0f6a | 14529 | |
182d150a AJ |
14530 | { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5 |
14531 | echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; } | |
14532 | if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then | |
f8cb48b5 AJ |
14533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14534 | else | |
14535 | ac_wine_try_cflags_saved=$CFLAGS | |
14536 | CFLAGS="$CFLAGS -Wdeclaration-after-statement" | |
14537 | cat >conftest.$ac_ext <<_ACEOF | |
14538 | /* confdefs.h. */ | |
14539 | _ACEOF | |
14540 | cat confdefs.h >>conftest.$ac_ext | |
14541 | cat >>conftest.$ac_ext <<_ACEOF | |
14542 | /* end confdefs.h. */ | |
14543 | ||
14544 | int | |
14545 | main () | |
14546 | { | |
14547 | ||
14548 | ; | |
14549 | return 0; | |
14550 | } | |
14551 | _ACEOF | |
14552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14553 | if { (ac_try="$ac_link" |
14554 | case "(($ac_try" in | |
14555 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14556 | *) ac_try_echo=$ac_try;; | |
14557 | esac | |
14558 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14559 | (eval "$ac_link") 2>conftest.er1 | |
f8cb48b5 AJ |
14560 | ac_status=$? |
14561 | grep -v '^ *+' conftest.er1 >conftest.err | |
14562 | rm -f conftest.er1 | |
14563 | cat conftest.err >&5 | |
14564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14565 | (exit $ac_status); } && | |
0ebeb530 JW |
14566 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14567 | { (case "(($ac_try" in | |
14568 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14569 | *) ac_try_echo=$ac_try;; | |
14570 | esac | |
14571 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14572 | (eval "$ac_try") 2>&5 | |
f8cb48b5 AJ |
14573 | ac_status=$? |
14574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14575 | (exit $ac_status); }; } && | |
14576 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14577 | { (case "(($ac_try" in |
14578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14579 | *) ac_try_echo=$ac_try;; | |
14580 | esac | |
14581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14582 | (eval "$ac_try") 2>&5 | |
f8cb48b5 AJ |
14583 | ac_status=$? |
14584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14585 | (exit $ac_status); }; }; then | |
182d150a | 14586 | ac_cv_cflags__Wdeclaration_after_statement=yes |
f8cb48b5 AJ |
14587 | else |
14588 | echo "$as_me: failed program was:" >&5 | |
14589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14590 | ||
182d150a | 14591 | ac_cv_cflags__Wdeclaration_after_statement=no |
f8cb48b5 | 14592 | fi |
fc6ffb29 | 14593 | |
0ebeb530 | 14594 | rm -f core conftest.err conftest.$ac_objext \ |
f8cb48b5 AJ |
14595 | conftest$ac_exeext conftest.$ac_ext |
14596 | CFLAGS=$ac_wine_try_cflags_saved | |
14597 | fi | |
182d150a AJ |
14598 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5 |
14599 | echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; } | |
14600 | if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then | |
14601 | EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement" | |
14602 | fi | |
f8cb48b5 | 14603 | |
182d150a AJ |
14604 | { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5 |
14605 | echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; } | |
14606 | if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then | |
d75cc5aa AJ |
14607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14608 | else | |
14609 | ac_wine_try_cflags_saved=$CFLAGS | |
14610 | CFLAGS="$CFLAGS -Wwrite-strings" | |
14611 | cat >conftest.$ac_ext <<_ACEOF | |
14612 | /* confdefs.h. */ | |
14613 | _ACEOF | |
14614 | cat confdefs.h >>conftest.$ac_ext | |
14615 | cat >>conftest.$ac_ext <<_ACEOF | |
14616 | /* end confdefs.h. */ | |
14617 | ||
14618 | int | |
14619 | main () | |
14620 | { | |
14621 | ||
14622 | ; | |
14623 | return 0; | |
14624 | } | |
14625 | _ACEOF | |
14626 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14627 | if { (ac_try="$ac_link" | |
14628 | case "(($ac_try" in | |
14629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14630 | *) ac_try_echo=$ac_try;; | |
14631 | esac | |
14632 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14633 | (eval "$ac_link") 2>conftest.er1 | |
14634 | ac_status=$? | |
14635 | grep -v '^ *+' conftest.er1 >conftest.err | |
14636 | rm -f conftest.er1 | |
14637 | cat conftest.err >&5 | |
14638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14639 | (exit $ac_status); } && | |
14640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
14641 | { (case "(($ac_try" in | |
14642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14643 | *) ac_try_echo=$ac_try;; | |
14644 | esac | |
14645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14646 | (eval "$ac_try") 2>&5 | |
14647 | ac_status=$? | |
14648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14649 | (exit $ac_status); }; } && | |
14650 | { ac_try='test -s conftest$ac_exeext' | |
14651 | { (case "(($ac_try" in | |
14652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14653 | *) ac_try_echo=$ac_try;; | |
14654 | esac | |
14655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14656 | (eval "$ac_try") 2>&5 | |
14657 | ac_status=$? | |
14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14659 | (exit $ac_status); }; }; then | |
182d150a | 14660 | ac_cv_cflags__Wwrite_strings=yes |
d75cc5aa AJ |
14661 | else |
14662 | echo "$as_me: failed program was:" >&5 | |
14663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14664 | ||
182d150a | 14665 | ac_cv_cflags__Wwrite_strings=no |
d75cc5aa AJ |
14666 | fi |
14667 | ||
14668 | rm -f core conftest.err conftest.$ac_objext \ | |
14669 | conftest$ac_exeext conftest.$ac_ext | |
14670 | CFLAGS=$ac_wine_try_cflags_saved | |
14671 | fi | |
182d150a AJ |
14672 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5 |
14673 | echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; } | |
14674 | if test $ac_cv_cflags__Wwrite_strings = yes; then | |
14675 | EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings" | |
14676 | fi | |
14677 | ||
d75cc5aa | 14678 | |
4d52d379 | 14679 | saved_CFLAGS="$CFLAGS" |
c509bc4d | 14680 | CFLAGS="$CFLAGS -Wpointer-arith -Werror" |
fc6ffb29 AJ |
14681 | { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5 |
14682 | echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; } | |
c509bc4d MM |
14683 | if test "${ac_cv_c_string_h_warnings+set}" = set; then |
14684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14685 | else | |
14686 | cat >conftest.$ac_ext <<_ACEOF | |
c509bc4d MM |
14687 | /* confdefs.h. */ |
14688 | _ACEOF | |
14689 | cat confdefs.h >>conftest.$ac_ext | |
14690 | cat >>conftest.$ac_ext <<_ACEOF | |
14691 | /* end confdefs.h. */ | |
14692 | #include <string.h> | |
14693 | int | |
14694 | main () | |
14695 | { | |
14696 | ||
14697 | ; | |
14698 | return 0; | |
14699 | } | |
14700 | _ACEOF | |
14701 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
14702 | if { (ac_try="$ac_compile" |
14703 | case "(($ac_try" in | |
14704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14705 | *) ac_try_echo=$ac_try;; | |
14706 | esac | |
14707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14708 | (eval "$ac_compile") 2>conftest.er1 | |
c509bc4d | 14709 | ac_status=$? |
875927f6 AJ |
14710 | grep -v '^ *+' conftest.er1 >conftest.err |
14711 | rm -f conftest.er1 | |
14712 | cat conftest.err >&5 | |
c509bc4d MM |
14713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14714 | (exit $ac_status); } && | |
0ebeb530 JW |
14715 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14716 | { (case "(($ac_try" in | |
14717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14718 | *) ac_try_echo=$ac_try;; | |
14719 | esac | |
14720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14721 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14722 | ac_status=$? |
14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14724 | (exit $ac_status); }; } && | |
14725 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
14726 | { (case "(($ac_try" in |
14727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14728 | *) ac_try_echo=$ac_try;; | |
14729 | esac | |
14730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14731 | (eval "$ac_try") 2>&5 | |
c509bc4d MM |
14732 | ac_status=$? |
14733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14734 | (exit $ac_status); }; }; then | |
14735 | ac_cv_c_string_h_warnings=no | |
14736 | else | |
14737 | echo "$as_me: failed program was:" >&5 | |
14738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14739 | ||
fc6ffb29 | 14740 | ac_cv_c_string_h_warnings=yes |
c509bc4d | 14741 | fi |
fc6ffb29 | 14742 | |
0ebeb530 | 14743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
c509bc4d | 14744 | fi |
fc6ffb29 AJ |
14745 | { echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5 |
14746 | echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; } | |
4d52d379 | 14747 | CFLAGS="$saved_CFLAGS" |
c509bc4d MM |
14748 | if test "$ac_cv_c_string_h_warnings" = "no" |
14749 | then | |
fc09423d | 14750 | EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith" |
c509bc4d | 14751 | fi |
b7443722 MM |
14752 | |
14753 | BUILTINFLAG="" | |
14754 | ||
14755 | saved_CFLAGS="$CFLAGS" | |
14756 | CFLAGS="$CFLAGS -Werror" | |
fc6ffb29 AJ |
14757 | { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5 |
14758 | echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; } | |
b7443722 MM |
14759 | if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then |
14760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14761 | else | |
14762 | cat >conftest.$ac_ext <<_ACEOF | |
14763 | /* confdefs.h. */ | |
14764 | _ACEOF | |
14765 | cat confdefs.h >>conftest.$ac_ext | |
14766 | cat >>conftest.$ac_ext <<_ACEOF | |
14767 | /* end confdefs.h. */ | |
14768 | ||
14769 | int | |
14770 | main () | |
14771 | { | |
14772 | int iswlower(unsigned short); | |
14773 | ; | |
14774 | return 0; | |
14775 | } | |
14776 | _ACEOF | |
14777 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
14778 | if { (ac_try="$ac_compile" |
14779 | case "(($ac_try" in | |
14780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14781 | *) ac_try_echo=$ac_try;; | |
14782 | esac | |
14783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14784 | (eval "$ac_compile") 2>conftest.er1 | |
b7443722 MM |
14785 | ac_status=$? |
14786 | grep -v '^ *+' conftest.er1 >conftest.err | |
14787 | rm -f conftest.er1 | |
14788 | cat conftest.err >&5 | |
14789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14790 | (exit $ac_status); } && | |
0ebeb530 JW |
14791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14792 | { (case "(($ac_try" in | |
14793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14794 | *) ac_try_echo=$ac_try;; | |
14795 | esac | |
14796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14797 | (eval "$ac_try") 2>&5 | |
b7443722 MM |
14798 | ac_status=$? |
14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14800 | (exit $ac_status); }; } && | |
14801 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
14802 | { (case "(($ac_try" in |
14803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14804 | *) ac_try_echo=$ac_try;; | |
14805 | esac | |
14806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14807 | (eval "$ac_try") 2>&5 | |
b7443722 MM |
14808 | ac_status=$? |
14809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14810 | (exit $ac_status); }; }; then | |
14811 | ac_cv_c_builtin_wchar_ctype=no | |
14812 | else | |
14813 | echo "$as_me: failed program was:" >&5 | |
14814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14815 | ||
fc6ffb29 | 14816 | ac_cv_c_builtin_wchar_ctype=yes |
b7443722 | 14817 | fi |
fc6ffb29 | 14818 | |
0ebeb530 | 14819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b7443722 | 14820 | fi |
fc6ffb29 AJ |
14821 | { echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5 |
14822 | echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; } | |
b7443722 MM |
14823 | CFLAGS="$saved_CFLAGS" |
14824 | if test "$ac_cv_c_builtin_wchar_ctype" = "yes" | |
14825 | then | |
a26dabe3 | 14826 | BUILTINFLAG="-fno-builtin" |
b7443722 | 14827 | fi |
4f8c37b4 AJ |
14828 | fi |
14829 | ||
daa2886c | 14830 | |
fc6ffb29 AJ |
14831 | { echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5 |
14832 | echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; } | |
84555cc7 AJ |
14833 | if test "${ac_cv_asm_func_def+set}" = set; then |
14834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14835 | else | |
14836 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
14837 | /* confdefs.h. */ |
14838 | _ACEOF | |
14839 | cat confdefs.h >>conftest.$ac_ext | |
14840 | cat >>conftest.$ac_ext <<_ACEOF | |
14841 | /* end confdefs.h. */ | |
520852c7 | 14842 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); } |
c77cbbcd | 14843 | |
f5818d2f AJ |
14844 | int |
14845 | main () | |
14846 | { | |
c77cbbcd | 14847 | |
f5818d2f AJ |
14848 | ; |
14849 | return 0; | |
14850 | } | |
14851 | _ACEOF | |
14852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14853 | if { (ac_try="$ac_link" |
14854 | case "(($ac_try" in | |
14855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14856 | *) ac_try_echo=$ac_try;; | |
14857 | esac | |
14858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14859 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 14860 | ac_status=$? |
875927f6 AJ |
14861 | grep -v '^ *+' conftest.er1 >conftest.err |
14862 | rm -f conftest.er1 | |
14863 | cat conftest.err >&5 | |
daa2886c | 14864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 14865 | (exit $ac_status); } && |
0ebeb530 JW |
14866 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14867 | { (case "(($ac_try" in | |
14868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14869 | *) ac_try_echo=$ac_try;; | |
14870 | esac | |
14871 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14872 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14873 | ac_status=$? |
14874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14875 | (exit $ac_status); }; } && | |
14876 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14877 | { (case "(($ac_try" in |
14878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14879 | *) ac_try_echo=$ac_try;; | |
14880 | esac | |
14881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14882 | (eval "$ac_try") 2>&5 | |
f5818d2f | 14883 | ac_status=$? |
daa2886c | 14884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 14885 | (exit $ac_status); }; }; then |
84555cc7 | 14886 | ac_cv_asm_func_def=".def" |
c77cbbcd | 14887 | else |
f5818d2f | 14888 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
14889 | sed 's/^/| /' conftest.$ac_ext >&5 |
14890 | ||
fc6ffb29 | 14891 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
14892 | /* confdefs.h. */ |
14893 | _ACEOF | |
14894 | cat confdefs.h >>conftest.$ac_ext | |
14895 | cat >>conftest.$ac_ext <<_ACEOF | |
14896 | /* end confdefs.h. */ | |
520852c7 | 14897 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); } |
c77cbbcd | 14898 | |
84555cc7 AJ |
14899 | int |
14900 | main () | |
14901 | { | |
daa2886c | 14902 | |
84555cc7 AJ |
14903 | ; |
14904 | return 0; | |
14905 | } | |
14906 | _ACEOF | |
14907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14908 | if { (ac_try="$ac_link" |
14909 | case "(($ac_try" in | |
14910 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14911 | *) ac_try_echo=$ac_try;; | |
14912 | esac | |
14913 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14914 | (eval "$ac_link") 2>conftest.er1 | |
84555cc7 | 14915 | ac_status=$? |
875927f6 AJ |
14916 | grep -v '^ *+' conftest.er1 >conftest.err |
14917 | rm -f conftest.er1 | |
14918 | cat conftest.err >&5 | |
84555cc7 AJ |
14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14920 | (exit $ac_status); } && | |
0ebeb530 JW |
14921 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14922 | { (case "(($ac_try" in | |
14923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14924 | *) ac_try_echo=$ac_try;; | |
14925 | esac | |
14926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14927 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14928 | ac_status=$? |
14929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14930 | (exit $ac_status); }; } && | |
14931 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14932 | { (case "(($ac_try" in |
14933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14934 | *) ac_try_echo=$ac_try;; | |
14935 | esac | |
14936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14937 | (eval "$ac_try") 2>&5 | |
84555cc7 AJ |
14938 | ac_status=$? |
14939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14940 | (exit $ac_status); }; }; then | |
14941 | ac_cv_asm_func_def=".type @function" | |
57807fa1 | 14942 | else |
84555cc7 | 14943 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
14944 | sed 's/^/| /' conftest.$ac_ext >&5 |
14945 | ||
fc6ffb29 | 14946 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
14947 | /* confdefs.h. */ |
14948 | _ACEOF | |
14949 | cat confdefs.h >>conftest.$ac_ext | |
14950 | cat >>conftest.$ac_ext <<_ACEOF | |
14951 | /* end confdefs.h. */ | |
520852c7 | 14952 | void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); } |
57807fa1 | 14953 | |
57807fa1 GM |
14954 | int |
14955 | main () | |
14956 | { | |
14957 | ||
14958 | ; | |
14959 | return 0; | |
14960 | } | |
14961 | _ACEOF | |
14962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
14963 | if { (ac_try="$ac_link" |
14964 | case "(($ac_try" in | |
14965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14966 | *) ac_try_echo=$ac_try;; | |
14967 | esac | |
14968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14969 | (eval "$ac_link") 2>conftest.er1 | |
57807fa1 | 14970 | ac_status=$? |
875927f6 AJ |
14971 | grep -v '^ *+' conftest.er1 >conftest.err |
14972 | rm -f conftest.er1 | |
14973 | cat conftest.err >&5 | |
57807fa1 GM |
14974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14975 | (exit $ac_status); } && | |
0ebeb530 JW |
14976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
14977 | { (case "(($ac_try" in | |
14978 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14979 | *) ac_try_echo=$ac_try;; | |
14980 | esac | |
14981 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14982 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
14983 | ac_status=$? |
14984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14985 | (exit $ac_status); }; } && | |
14986 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
14987 | { (case "(($ac_try" in |
14988 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
14989 | *) ac_try_echo=$ac_try;; | |
14990 | esac | |
14991 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
14992 | (eval "$ac_try") 2>&5 | |
57807fa1 GM |
14993 | ac_status=$? |
14994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14995 | (exit $ac_status); }; }; then | |
84555cc7 | 14996 | ac_cv_asm_func_def=".type 2" |
57807fa1 GM |
14997 | else |
14998 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
14999 | sed 's/^/| /' conftest.$ac_ext >&5 |
15000 | ||
fc6ffb29 | 15001 | ac_cv_asm_func_def="unknown" |
57807fa1 | 15002 | fi |
fc6ffb29 | 15003 | |
0ebeb530 | 15004 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15005 | conftest$ac_exeext conftest.$ac_ext |
57807fa1 | 15006 | fi |
fc6ffb29 | 15007 | |
0ebeb530 | 15008 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15009 | conftest$ac_exeext conftest.$ac_ext |
84555cc7 | 15010 | fi |
fc6ffb29 | 15011 | |
0ebeb530 | 15012 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15013 | conftest$ac_exeext conftest.$ac_ext |
84555cc7 | 15014 | fi |
fc6ffb29 AJ |
15015 | { echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5 |
15016 | echo "${ECHO_T}$ac_cv_asm_func_def" >&6; } | |
57807fa1 | 15017 | |
57807fa1 | 15018 | |
84555cc7 AJ |
15019 | |
15020 | case "$ac_cv_asm_func_def" in | |
15021 | ".def") | |
15022 | cat >>confdefs.h <<\_ACEOF | |
15023 | #define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef" | |
15024 | _ACEOF | |
15025 | ;; | |
15026 | ".type @function") | |
15027 | cat >>confdefs.h <<\_ACEOF | |
15028 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function" | |
15029 | _ACEOF | |
15030 | ;; | |
15031 | ".type 2") | |
15032 | cat >>confdefs.h <<\_ACEOF | |
15033 | #define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2" | |
15034 | _ACEOF | |
15035 | ;; | |
15036 | *) | |
15037 | cat >>confdefs.h <<\_ACEOF | |
15038 | #define __ASM_FUNC(name) "" | |
15039 | _ACEOF | |
15040 | ;; | |
15041 | esac | |
57807fa1 GM |
15042 | |
15043 | ||
fc6ffb29 AJ |
15044 | { echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5 |
15045 | echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; } | |
f5818d2f AJ |
15046 | if test "${ac_cv_c_extern_prefix+set}" = set; then |
15047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8cc3a5e4 | 15048 | else |
84555cc7 | 15049 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
15050 | /* confdefs.h. */ |
15051 | _ACEOF | |
15052 | cat confdefs.h >>conftest.$ac_ext | |
15053 | cat >>conftest.$ac_ext <<_ACEOF | |
15054 | /* end confdefs.h. */ | |
520852c7 | 15055 | void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); } |
8cc3a5e4 | 15056 | extern int ac_test; |
f5818d2f AJ |
15057 | int |
15058 | main () | |
15059 | { | |
8cc3a5e4 | 15060 | if (ac_test) return 1 |
f5818d2f AJ |
15061 | ; |
15062 | return 0; | |
15063 | } | |
15064 | _ACEOF | |
fa3a5360 | 15065 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
15066 | if { (ac_try="$ac_link" |
15067 | case "(($ac_try" in | |
15068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15069 | *) ac_try_echo=$ac_try;; | |
15070 | esac | |
15071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15072 | (eval "$ac_link") 2>conftest.er1 | |
fa3a5360 | 15073 | ac_status=$? |
875927f6 AJ |
15074 | grep -v '^ *+' conftest.er1 >conftest.err |
15075 | rm -f conftest.er1 | |
15076 | cat conftest.err >&5 | |
fa3a5360 AJ |
15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15078 | (exit $ac_status); } && | |
0ebeb530 JW |
15079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
15080 | { (case "(($ac_try" in | |
15081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15082 | *) ac_try_echo=$ac_try;; | |
15083 | esac | |
15084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15085 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
15086 | ac_status=$? |
15087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15088 | (exit $ac_status); }; } && | |
15089 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
15090 | { (case "(($ac_try" in |
15091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15092 | *) ac_try_echo=$ac_try;; | |
15093 | esac | |
15094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15095 | (eval "$ac_try") 2>&5 | |
fa3a5360 AJ |
15096 | ac_status=$? |
15097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15098 | (exit $ac_status); }; }; then | |
15099 | ac_cv_c_extern_prefix="yes" | |
15100 | else | |
15101 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
15102 | sed 's/^/| /' conftest.$ac_ext >&5 |
15103 | ||
fc6ffb29 | 15104 | ac_cv_c_extern_prefix="no" |
fa3a5360 | 15105 | fi |
fc6ffb29 | 15106 | |
0ebeb530 | 15107 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15108 | conftest$ac_exeext conftest.$ac_ext |
fa3a5360 | 15109 | fi |
fc6ffb29 AJ |
15110 | { echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5 |
15111 | echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; } | |
84555cc7 AJ |
15112 | |
15113 | ||
15114 | ||
fa3a5360 AJ |
15115 | if test "$ac_cv_c_extern_prefix" = "yes" |
15116 | then | |
84555cc7 AJ |
15117 | cat >>confdefs.h <<\_ACEOF |
15118 | #define __ASM_NAME(name) "_" name | |
15119 | _ACEOF | |
fa3a5360 | 15120 | |
84555cc7 AJ |
15121 | else |
15122 | cat >>confdefs.h <<\_ACEOF | |
15123 | #define __ASM_NAME(name) name | |
fa3a5360 AJ |
15124 | _ACEOF |
15125 | ||
15126 | fi | |
15127 | ||
15128 | ||
7bf07d15 AJ |
15129 | DLLEXT="" |
15130 | ||
fc09423d | 15131 | DLLFLAGS="-D_REENTRANT" |
7bf07d15 | 15132 | |
7bf07d15 AJ |
15133 | LDSHARED="" |
15134 | ||
f41c2b21 | 15135 | LDDLLFLAGS="" |
6ac34ac6 | 15136 | |
ada5e652 AJ |
15137 | LIBEXT="so" |
15138 | ||
15139 | IMPLIBEXT="def" | |
15140 | ||
13a93b4a AJ |
15141 | LIBWINE_LDFLAGS="" |
15142 | ||
7bf07d15 | 15143 | |
fc01b729 AJ |
15144 | case $host_os in |
15145 | cygwin*|mingw32*) | |
ada5e652 AJ |
15146 | if test -n "$ac_tool_prefix"; then |
15147 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
15148 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
fc6ffb29 AJ |
15149 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ada5e652 AJ |
15151 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
15152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15153 | else | |
15154 | if test -n "$DLLTOOL"; then | |
15155 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
15156 | else | |
15157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15158 | for as_dir in $PATH | |
15159 | do | |
15160 | IFS=$as_save_IFS | |
15161 | test -z "$as_dir" && as_dir=. | |
15162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 15163 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ada5e652 AJ |
15164 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
15165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15166 | break 2 | |
15167 | fi | |
15168 | done | |
15169 | done | |
fc6ffb29 | 15170 | IFS=$as_save_IFS |
ada5e652 AJ |
15171 | |
15172 | fi | |
15173 | fi | |
15174 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
15175 | if test -n "$DLLTOOL"; then | |
fc6ffb29 AJ |
15176 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
15177 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
ada5e652 | 15178 | else |
fc6ffb29 AJ |
15179 | { echo "$as_me:$LINENO: result: no" >&5 |
15180 | echo "${ECHO_T}no" >&6; } | |
ada5e652 AJ |
15181 | fi |
15182 | ||
fc6ffb29 | 15183 | |
ada5e652 AJ |
15184 | fi |
15185 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
15186 | ac_ct_DLLTOOL=$DLLTOOL | |
15187 | # Extract the first word of "dlltool", so it can be a program name with args. | |
15188 | set dummy dlltool; ac_word=$2 | |
fc6ffb29 AJ |
15189 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
ada5e652 AJ |
15191 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
15192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15193 | else | |
15194 | if test -n "$ac_ct_DLLTOOL"; then | |
15195 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
15196 | else | |
15197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15198 | for as_dir in $PATH | |
15199 | do | |
15200 | IFS=$as_save_IFS | |
15201 | test -z "$as_dir" && as_dir=. | |
15202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 15203 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
ada5e652 AJ |
15204 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
15205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15206 | break 2 | |
15207 | fi | |
15208 | done | |
15209 | done | |
fc6ffb29 | 15210 | IFS=$as_save_IFS |
ada5e652 | 15211 | |
ada5e652 AJ |
15212 | fi |
15213 | fi | |
15214 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
15215 | if test -n "$ac_ct_DLLTOOL"; then | |
fc6ffb29 AJ |
15216 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
15217 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } | |
ada5e652 | 15218 | else |
fc6ffb29 AJ |
15219 | { echo "$as_me:$LINENO: result: no" >&5 |
15220 | echo "${ECHO_T}no" >&6; } | |
ada5e652 AJ |
15221 | fi |
15222 | ||
fc6ffb29 AJ |
15223 | if test "x$ac_ct_DLLTOOL" = x; then |
15224 | DLLTOOL="false" | |
15225 | else | |
15226 | case $cross_compiling:$ac_tool_warned in | |
15227 | yes:) | |
15228 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
15229 | whose name does not start with the host triplet. If you think this | |
15230 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
15231 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
15232 | whose name does not start with the host triplet. If you think this | |
15233 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
15234 | ac_tool_warned=yes ;; | |
15235 | esac | |
15236 | DLLTOOL=$ac_ct_DLLTOOL | |
15237 | fi | |
fa3a5360 | 15238 | else |
73482144 | 15239 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
fa3a5360 | 15240 | fi |
73482144 AJ |
15241 | |
15242 | if test -n "$ac_tool_prefix"; then | |
15243 | # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. | |
15244 | set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 | |
fc6ffb29 AJ |
15245 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
73482144 AJ |
15247 | if test "${ac_cv_prog_DLLWRAP+set}" = set; then |
15248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fa3a5360 | 15249 | else |
73482144 AJ |
15250 | if test -n "$DLLWRAP"; then |
15251 | ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. | |
15252 | else | |
15253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15254 | for as_dir in $PATH | |
15255 | do | |
15256 | IFS=$as_save_IFS | |
15257 | test -z "$as_dir" && as_dir=. | |
15258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 15259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
73482144 AJ |
15260 | ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
15261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15262 | break 2 | |
15263 | fi | |
15264 | done | |
15265 | done | |
fc6ffb29 | 15266 | IFS=$as_save_IFS |
e24bcc77 | 15267 | |
fa3a5360 | 15268 | fi |
73482144 AJ |
15269 | fi |
15270 | DLLWRAP=$ac_cv_prog_DLLWRAP | |
15271 | if test -n "$DLLWRAP"; then | |
fc6ffb29 AJ |
15272 | { echo "$as_me:$LINENO: result: $DLLWRAP" >&5 |
15273 | echo "${ECHO_T}$DLLWRAP" >&6; } | |
73482144 | 15274 | else |
fc6ffb29 AJ |
15275 | { echo "$as_me:$LINENO: result: no" >&5 |
15276 | echo "${ECHO_T}no" >&6; } | |
73482144 | 15277 | fi |
8cc3a5e4 | 15278 | |
fc6ffb29 | 15279 | |
73482144 AJ |
15280 | fi |
15281 | if test -z "$ac_cv_prog_DLLWRAP"; then | |
15282 | ac_ct_DLLWRAP=$DLLWRAP | |
15283 | # Extract the first word of "dllwrap", so it can be a program name with args. | |
15284 | set dummy dllwrap; ac_word=$2 | |
fc6ffb29 AJ |
15285 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
15286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
73482144 | 15287 | if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then |
fa3a5360 AJ |
15288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15289 | else | |
73482144 AJ |
15290 | if test -n "$ac_ct_DLLWRAP"; then |
15291 | ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. | |
15292 | else | |
15293 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15294 | for as_dir in $PATH | |
15295 | do | |
15296 | IFS=$as_save_IFS | |
15297 | test -z "$as_dir" && as_dir=. | |
15298 | for ac_exec_ext in '' $ac_executable_extensions; do | |
fc6ffb29 | 15299 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
73482144 AJ |
15300 | ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
15301 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
15302 | break 2 | |
15303 | fi | |
15304 | done | |
15305 | done | |
fc6ffb29 | 15306 | IFS=$as_save_IFS |
73482144 | 15307 | |
73482144 AJ |
15308 | fi |
15309 | fi | |
15310 | ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP | |
15311 | if test -n "$ac_ct_DLLWRAP"; then | |
fc6ffb29 AJ |
15312 | { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5 |
15313 | echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; } | |
73482144 | 15314 | else |
fc6ffb29 AJ |
15315 | { echo "$as_me:$LINENO: result: no" >&5 |
15316 | echo "${ECHO_T}no" >&6; } | |
8cc3a5e4 AJ |
15317 | fi |
15318 | ||
fc6ffb29 AJ |
15319 | if test "x$ac_ct_DLLWRAP" = x; then |
15320 | DLLWRAP="false" | |
15321 | else | |
15322 | case $cross_compiling:$ac_tool_warned in | |
15323 | yes:) | |
15324 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
15325 | whose name does not start with the host triplet. If you think this | |
15326 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
15327 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
15328 | whose name does not start with the host triplet. If you think this | |
15329 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
15330 | ac_tool_warned=yes ;; | |
15331 | esac | |
e533e972 AJ |
15332 | DLLWRAP=$ac_ct_DLLWRAP |
15333 | fi | |
15334 | else | |
15335 | DLLWRAP="$ac_cv_prog_DLLWRAP" | |
15336 | fi | |
15337 | ||
15338 | if test "$DLLWRAP" = "false"; then | |
15339 | LIBEXT="a" | |
15340 | else | |
15341 | LIBEXT="dll" | |
15342 | fi | |
15343 | IMPLIBEXT="a" | |
15344 | WIN16_FILES="" | |
15345 | WIN16_INSTALL="" | |
15346 | ;; | |
42b81ea0 AJ |
15347 | darwin*|macosx*) |
15348 | DLLEXT=".so" | |
15349 | LIBEXT="dylib" | |
15350 | DLLFLAGS="$DLLFLAGS -fPIC" | |
15351 | LDDLLFLAGS="-bundle -multiply_defined suppress" | |
13a93b4a | 15352 | LIBWINE_LDFLAGS="-multiply_defined suppress" |
42b81ea0 AJ |
15353 | LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)" |
15354 | STRIP="$STRIP -u -r" | |
15355 | COREFOUNDATIONLIB="-framework CoreFoundation" | |
15356 | ||
15357 | IOKITLIB="-framework IOKit -framework CoreFoundation" | |
15358 | ||
6735eb2e AJ |
15359 | DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation" |
15360 | ||
42b81ea0 AJ |
15361 | LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000" |
15362 | ||
15363 | if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes" | |
15364 | then | |
15365 | COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices" | |
15366 | ||
15367 | fi | |
15368 | case $host_cpu in | |
15369 | *powerpc*) | |
15370 | LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;; | |
15371 | esac | |
15372 | ;; | |
e533e972 | 15373 | *) |
42b81ea0 AJ |
15374 | DLLFLAGS="$DLLFLAGS -fPIC" |
15375 | DLLEXT=".so" | |
15376 | { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5 | |
e533e972 AJ |
15377 | echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; } |
15378 | if test "${ac_cv_c_dll_gnuelf+set}" = set; then | |
15379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15380 | else | |
15381 | ac_wine_try_cflags_saved=$CFLAGS | |
15382 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic" | |
15383 | cat >conftest.$ac_ext <<_ACEOF | |
15384 | void myfunc() {} | |
15385 | _ACEOF | |
15386 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15387 | if { (ac_try="$ac_link" | |
15388 | case "(($ac_try" in | |
15389 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15390 | *) ac_try_echo=$ac_try;; | |
15391 | esac | |
15392 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15393 | (eval "$ac_link") 2>conftest.er1 | |
15394 | ac_status=$? | |
15395 | grep -v '^ *+' conftest.er1 >conftest.err | |
15396 | rm -f conftest.er1 | |
15397 | cat conftest.err >&5 | |
15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15399 | (exit $ac_status); } && | |
15400 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15401 | { (case "(($ac_try" in | |
15402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15403 | *) ac_try_echo=$ac_try;; | |
15404 | esac | |
15405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15406 | (eval "$ac_try") 2>&5 | |
15407 | ac_status=$? | |
15408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15409 | (exit $ac_status); }; } && | |
15410 | { ac_try='test -s conftest$ac_exeext' | |
15411 | { (case "(($ac_try" in | |
15412 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15413 | *) ac_try_echo=$ac_try;; | |
15414 | esac | |
15415 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15416 | (eval "$ac_try") 2>&5 | |
15417 | ac_status=$? | |
15418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15419 | (exit $ac_status); }; }; then | |
15420 | ac_cv_c_dll_gnuelf="yes" | |
73482144 | 15421 | else |
e533e972 AJ |
15422 | echo "$as_me: failed program was:" >&5 |
15423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
73482144 | 15424 | |
e533e972 AJ |
15425 | ac_cv_c_dll_gnuelf="no" |
15426 | fi | |
daa2886c | 15427 | |
e533e972 AJ |
15428 | rm -f core conftest.err conftest.$ac_objext \ |
15429 | conftest$ac_exeext conftest.$ac_ext | |
15430 | CFLAGS=$ac_wine_try_cflags_saved | |
15431 | fi | |
15432 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5 | |
15433 | echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; } | |
42b81ea0 AJ |
15434 | if test "$ac_cv_c_dll_gnuelf" = "yes" |
15435 | then | |
15436 | LDSHARED="\$(CC) -shared" | |
15437 | LDDLLFLAGS="-shared -Wl,-Bsymbolic" | |
182d150a AJ |
15438 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5 |
15439 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; } | |
15440 | if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then | |
f5818d2f | 15441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
93a5b868 | 15442 | else |
e533e972 AJ |
15443 | ac_wine_try_cflags_saved=$CFLAGS |
15444 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1" | |
15445 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
15446 | /* confdefs.h. */ |
15447 | _ACEOF | |
15448 | cat confdefs.h >>conftest.$ac_ext | |
15449 | cat >>conftest.$ac_ext <<_ACEOF | |
15450 | /* end confdefs.h. */ | |
fa3a5360 | 15451 | |
e24bcc77 AJ |
15452 | int |
15453 | main () | |
15454 | { | |
e533e972 | 15455 | |
f5818d2f AJ |
15456 | ; |
15457 | return 0; | |
15458 | } | |
15459 | _ACEOF | |
15460 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
15461 | if { (ac_try="$ac_link" |
15462 | case "(($ac_try" in | |
15463 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15464 | *) ac_try_echo=$ac_try;; | |
15465 | esac | |
15466 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15467 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 15468 | ac_status=$? |
875927f6 AJ |
15469 | grep -v '^ *+' conftest.er1 >conftest.err |
15470 | rm -f conftest.er1 | |
15471 | cat conftest.err >&5 | |
daa2886c | 15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 15473 | (exit $ac_status); } && |
0ebeb530 JW |
15474 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
15475 | { (case "(($ac_try" in | |
15476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15477 | *) ac_try_echo=$ac_try;; | |
15478 | esac | |
15479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15480 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
15481 | ac_status=$? |
15482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15483 | (exit $ac_status); }; } && | |
15484 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
15485 | { (case "(($ac_try" in |
15486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15487 | *) ac_try_echo=$ac_try;; | |
15488 | esac | |
15489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15490 | (eval "$ac_try") 2>&5 | |
f5818d2f | 15491 | ac_status=$? |
daa2886c | 15492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 15493 | (exit $ac_status); }; }; then |
182d150a | 15494 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes |
93a5b868 | 15495 | else |
f5818d2f | 15496 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
15497 | sed 's/^/| /' conftest.$ac_ext >&5 |
15498 | ||
182d150a | 15499 | ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no |
93a5b868 | 15500 | fi |
fc6ffb29 | 15501 | |
0ebeb530 | 15502 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15503 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 15504 | CFLAGS=$ac_wine_try_cflags_saved |
93a5b868 | 15505 | fi |
182d150a AJ |
15506 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5 |
15507 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; } | |
15508 | if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then | |
15509 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)" | |
15510 | else | |
15511 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5 | |
15512 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; } | |
15513 | if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then | |
f5818d2f | 15514 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
0623a6f3 | 15515 | else |
e533e972 AJ |
15516 | ac_wine_try_cflags_saved=$CFLAGS |
15517 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1" | |
f5818d2f | 15518 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
15519 | /* confdefs.h. */ |
15520 | _ACEOF | |
15521 | cat confdefs.h >>conftest.$ac_ext | |
15522 | cat >>conftest.$ac_ext <<_ACEOF | |
15523 | /* end confdefs.h. */ | |
0623a6f3 | 15524 | |
f5818d2f AJ |
15525 | int |
15526 | main () | |
15527 | { | |
e533e972 | 15528 | |
f5818d2f AJ |
15529 | ; |
15530 | return 0; | |
15531 | } | |
15532 | _ACEOF | |
15533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
15534 | if { (ac_try="$ac_link" |
15535 | case "(($ac_try" in | |
15536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15537 | *) ac_try_echo=$ac_try;; | |
15538 | esac | |
15539 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15540 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 15541 | ac_status=$? |
875927f6 AJ |
15542 | grep -v '^ *+' conftest.er1 >conftest.err |
15543 | rm -f conftest.er1 | |
15544 | cat conftest.err >&5 | |
daa2886c | 15545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 15546 | (exit $ac_status); } && |
0ebeb530 JW |
15547 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
15548 | { (case "(($ac_try" in | |
15549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15550 | *) ac_try_echo=$ac_try;; | |
15551 | esac | |
15552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15553 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
15554 | ac_status=$? |
15555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15556 | (exit $ac_status); }; } && | |
15557 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
15558 | { (case "(($ac_try" in |
15559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15560 | *) ac_try_echo=$ac_try;; | |
15561 | esac | |
15562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15563 | (eval "$ac_try") 2>&5 | |
f5818d2f | 15564 | ac_status=$? |
daa2886c | 15565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 15566 | (exit $ac_status); }; }; then |
182d150a | 15567 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes |
0623a6f3 | 15568 | else |
f5818d2f | 15569 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
15570 | sed 's/^/| /' conftest.$ac_ext >&5 |
15571 | ||
182d150a | 15572 | ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no |
0623a6f3 | 15573 | fi |
fc6ffb29 | 15574 | |
0ebeb530 | 15575 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15576 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 15577 | CFLAGS=$ac_wine_try_cflags_saved |
fa3a5360 | 15578 | fi |
182d150a AJ |
15579 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5 |
15580 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; } | |
15581 | if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then | |
15582 | LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)" | |
15583 | fi | |
15584 | ||
15585 | fi | |
15586 | ||
266c609d | 15587 | |
182d150a AJ |
15588 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5 |
15589 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; } | |
15590 | if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then | |
266c609d AJ |
15591 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15592 | else | |
e533e972 AJ |
15593 | ac_wine_try_cflags_saved=$CFLAGS |
15594 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs" | |
15595 | cat >conftest.$ac_ext <<_ACEOF | |
266c609d AJ |
15596 | /* confdefs.h. */ |
15597 | _ACEOF | |
15598 | cat confdefs.h >>conftest.$ac_ext | |
15599 | cat >>conftest.$ac_ext <<_ACEOF | |
15600 | /* end confdefs.h. */ | |
266c609d AJ |
15601 | |
15602 | int | |
15603 | main () | |
15604 | { | |
e533e972 | 15605 | |
266c609d AJ |
15606 | ; |
15607 | return 0; | |
15608 | } | |
15609 | _ACEOF | |
15610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
15611 | if { (ac_try="$ac_link" |
15612 | case "(($ac_try" in | |
15613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15614 | *) ac_try_echo=$ac_try;; | |
15615 | esac | |
15616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15617 | (eval "$ac_link") 2>conftest.er1 | |
266c609d AJ |
15618 | ac_status=$? |
15619 | grep -v '^ *+' conftest.er1 >conftest.err | |
15620 | rm -f conftest.er1 | |
15621 | cat conftest.err >&5 | |
15622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15623 | (exit $ac_status); } && | |
0ebeb530 JW |
15624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
15625 | { (case "(($ac_try" in | |
15626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15627 | *) ac_try_echo=$ac_try;; | |
15628 | esac | |
15629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15630 | (eval "$ac_try") 2>&5 | |
266c609d AJ |
15631 | ac_status=$? |
15632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15633 | (exit $ac_status); }; } && | |
15634 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
15635 | { (case "(($ac_try" in |
15636 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15637 | *) ac_try_echo=$ac_try;; | |
15638 | esac | |
15639 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15640 | (eval "$ac_try") 2>&5 | |
266c609d AJ |
15641 | ac_status=$? |
15642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15643 | (exit $ac_status); }; }; then | |
182d150a | 15644 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes |
266c609d AJ |
15645 | else |
15646 | echo "$as_me: failed program was:" >&5 | |
15647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15648 | ||
182d150a | 15649 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no |
266c609d | 15650 | fi |
fc6ffb29 | 15651 | |
0ebeb530 | 15652 | rm -f core conftest.err conftest.$ac_objext \ |
266c609d | 15653 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 15654 | CFLAGS=$ac_wine_try_cflags_saved |
266c609d | 15655 | fi |
182d150a AJ |
15656 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5 |
15657 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; } | |
15658 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then | |
15659 | LDDLLFLAGS="$LDDLLFLAGS,-z,defs" | |
15660 | fi | |
fa3a5360 | 15661 | |
182d150a AJ |
15662 | |
15663 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5 | |
15664 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; } | |
15665 | if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then | |
f5818d2f | 15666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7e6ae4ba | 15667 | else |
67e8dc68 | 15668 | ac_wine_try_cflags_saved=$CFLAGS |
e533e972 | 15669 | CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" |
67e8dc68 | 15670 | cat >conftest.$ac_ext <<_ACEOF |
e533e972 AJ |
15671 | /* confdefs.h. */ |
15672 | _ACEOF | |
15673 | cat confdefs.h >>conftest.$ac_ext | |
15674 | cat >>conftest.$ac_ext <<_ACEOF | |
15675 | /* end confdefs.h. */ | |
15676 | ||
15677 | int | |
15678 | main () | |
15679 | { | |
15680 | ||
15681 | ; | |
15682 | return 0; | |
15683 | } | |
f5818d2f AJ |
15684 | _ACEOF |
15685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
15686 | if { (ac_try="$ac_link" |
15687 | case "(($ac_try" in | |
15688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15689 | *) ac_try_echo=$ac_try;; | |
15690 | esac | |
15691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15692 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 15693 | ac_status=$? |
875927f6 AJ |
15694 | grep -v '^ *+' conftest.er1 >conftest.err |
15695 | rm -f conftest.er1 | |
15696 | cat conftest.err >&5 | |
daa2886c | 15697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 15698 | (exit $ac_status); } && |
0ebeb530 JW |
15699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
15700 | { (case "(($ac_try" in | |
15701 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15702 | *) ac_try_echo=$ac_try;; | |
15703 | esac | |
15704 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15705 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
15706 | ac_status=$? |
15707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15708 | (exit $ac_status); }; } && | |
15709 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
15710 | { (case "(($ac_try" in |
15711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15712 | *) ac_try_echo=$ac_try;; | |
15713 | esac | |
15714 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15715 | (eval "$ac_try") 2>&5 | |
f5818d2f | 15716 | ac_status=$? |
daa2886c | 15717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 15718 | (exit $ac_status); }; }; then |
182d150a | 15719 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes |
7e6ae4ba | 15720 | else |
f5818d2f | 15721 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
15722 | sed 's/^/| /' conftest.$ac_ext >&5 |
15723 | ||
182d150a | 15724 | ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no |
7e6ae4ba | 15725 | fi |
fc6ffb29 | 15726 | |
0ebeb530 | 15727 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15728 | conftest$ac_exeext conftest.$ac_ext |
67e8dc68 | 15729 | CFLAGS=$ac_wine_try_cflags_saved |
f5818d2f | 15730 | fi |
182d150a AJ |
15731 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5 |
15732 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; } | |
15733 | if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then | |
15734 | LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini" | |
15735 | fi | |
15736 | ||
e533e972 | 15737 | |
182d150a AJ |
15738 | echo '{ global: *; };' >conftest.map |
15739 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5 | |
15740 | echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; } | |
15741 | if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then | |
0ebeb530 JW |
15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15743 | else | |
182d150a | 15744 | ac_wine_try_cflags_saved=$CFLAGS |
e533e972 | 15745 | CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map" |
0ebeb530 JW |
15746 | cat >conftest.$ac_ext <<_ACEOF |
15747 | /* confdefs.h. */ | |
15748 | _ACEOF | |
15749 | cat confdefs.h >>conftest.$ac_ext | |
15750 | cat >>conftest.$ac_ext <<_ACEOF | |
15751 | /* end confdefs.h. */ | |
15752 | ||
15753 | int | |
15754 | main () | |
15755 | { | |
15756 | ||
15757 | ; | |
15758 | return 0; | |
15759 | } | |
15760 | _ACEOF | |
15761 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15762 | if { (ac_try="$ac_link" | |
15763 | case "(($ac_try" in | |
15764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15765 | *) ac_try_echo=$ac_try;; | |
15766 | esac | |
15767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15768 | (eval "$ac_link") 2>conftest.er1 | |
15769 | ac_status=$? | |
15770 | grep -v '^ *+' conftest.er1 >conftest.err | |
15771 | rm -f conftest.er1 | |
15772 | cat conftest.err >&5 | |
15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15774 | (exit $ac_status); } && | |
15775 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15776 | { (case "(($ac_try" in | |
15777 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15778 | *) ac_try_echo=$ac_try;; | |
15779 | esac | |
15780 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15781 | (eval "$ac_try") 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); }; } && | |
15785 | { ac_try='test -s conftest$ac_exeext' | |
15786 | { (case "(($ac_try" in | |
15787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15788 | *) ac_try_echo=$ac_try;; | |
15789 | esac | |
15790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15791 | (eval "$ac_try") 2>&5 | |
15792 | ac_status=$? | |
15793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15794 | (exit $ac_status); }; }; then | |
182d150a | 15795 | ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes |
0ebeb530 JW |
15796 | else |
15797 | echo "$as_me: failed program was:" >&5 | |
15798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15799 | ||
182d150a | 15800 | ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no |
0ebeb530 JW |
15801 | fi |
15802 | ||
15803 | rm -f core conftest.err conftest.$ac_objext \ | |
15804 | conftest$ac_exeext conftest.$ac_ext | |
15805 | CFLAGS=$ac_wine_try_cflags_saved | |
15806 | fi | |
182d150a AJ |
15807 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5 |
15808 | echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; } | |
15809 | if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then | |
15810 | LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)" | |
15811 | fi | |
15812 | ||
15813 | rm -f conftest.map | |
e533e972 | 15814 | |
182d150a AJ |
15815 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5 |
15816 | echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; } | |
15817 | if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then | |
0ebeb530 JW |
15818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15819 | else | |
15820 | ac_wine_try_cflags_saved=$CFLAGS | |
e533e972 | 15821 | CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic" |
0ebeb530 JW |
15822 | cat >conftest.$ac_ext <<_ACEOF |
15823 | /* confdefs.h. */ | |
15824 | _ACEOF | |
15825 | cat confdefs.h >>conftest.$ac_ext | |
15826 | cat >>conftest.$ac_ext <<_ACEOF | |
15827 | /* end confdefs.h. */ | |
15828 | ||
15829 | int | |
15830 | main () | |
15831 | { | |
15832 | ||
15833 | ; | |
15834 | return 0; | |
15835 | } | |
15836 | _ACEOF | |
15837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15838 | if { (ac_try="$ac_link" | |
15839 | case "(($ac_try" in | |
15840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15841 | *) ac_try_echo=$ac_try;; | |
15842 | esac | |
15843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15844 | (eval "$ac_link") 2>conftest.er1 | |
15845 | ac_status=$? | |
15846 | grep -v '^ *+' conftest.er1 >conftest.err | |
15847 | rm -f conftest.er1 | |
15848 | cat conftest.err >&5 | |
15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15850 | (exit $ac_status); } && | |
15851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
15852 | { (case "(($ac_try" in | |
15853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15854 | *) ac_try_echo=$ac_try;; | |
15855 | esac | |
15856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15857 | (eval "$ac_try") 2>&5 | |
15858 | ac_status=$? | |
15859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15860 | (exit $ac_status); }; } && | |
15861 | { ac_try='test -s conftest$ac_exeext' | |
15862 | { (case "(($ac_try" in | |
15863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15864 | *) ac_try_echo=$ac_try;; | |
15865 | esac | |
15866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15867 | (eval "$ac_try") 2>&5 | |
15868 | ac_status=$? | |
15869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15870 | (exit $ac_status); }; }; then | |
182d150a | 15871 | ac_cv_cflags__fPIC__Wl___export_dynamic=yes |
0ebeb530 JW |
15872 | else |
15873 | echo "$as_me: failed program was:" >&5 | |
15874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15875 | ||
182d150a | 15876 | ac_cv_cflags__fPIC__Wl___export_dynamic=no |
0ebeb530 JW |
15877 | fi |
15878 | ||
15879 | rm -f core conftest.err conftest.$ac_objext \ | |
15880 | conftest$ac_exeext conftest.$ac_ext | |
15881 | CFLAGS=$ac_wine_try_cflags_saved | |
15882 | fi | |
182d150a AJ |
15883 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5 |
15884 | echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; } | |
15885 | if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then | |
15886 | LDEXECFLAGS="-Wl,--export-dynamic" | |
15887 | ||
15888 | fi | |
e533e972 | 15889 | |
0ebeb530 | 15890 | |
182d150a AJ |
15891 | as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh` |
15892 | { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5 | |
15893 | echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; } | |
15894 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
f2abe47d AJ |
15895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15896 | else | |
15897 | ac_wine_try_cflags_saved=$CFLAGS | |
e533e972 | 15898 | CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib" |
f2abe47d | 15899 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
15900 | /* confdefs.h. */ |
15901 | _ACEOF | |
15902 | cat confdefs.h >>conftest.$ac_ext | |
15903 | cat >>conftest.$ac_ext <<_ACEOF | |
15904 | /* end confdefs.h. */ | |
f2abe47d AJ |
15905 | |
15906 | int | |
15907 | main () | |
15908 | { | |
15909 | ||
15910 | ; | |
15911 | return 0; | |
15912 | } | |
15913 | _ACEOF | |
15914 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
15915 | if { (ac_try="$ac_link" |
15916 | case "(($ac_try" in | |
15917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15918 | *) ac_try_echo=$ac_try;; | |
15919 | esac | |
15920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15921 | (eval "$ac_link") 2>conftest.er1 | |
f2abe47d | 15922 | ac_status=$? |
875927f6 AJ |
15923 | grep -v '^ *+' conftest.er1 >conftest.err |
15924 | rm -f conftest.er1 | |
15925 | cat conftest.err >&5 | |
f2abe47d AJ |
15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15927 | (exit $ac_status); } && | |
0ebeb530 JW |
15928 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
15929 | { (case "(($ac_try" in | |
15930 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15931 | *) ac_try_echo=$ac_try;; | |
15932 | esac | |
15933 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15934 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
15935 | ac_status=$? |
15936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15937 | (exit $ac_status); }; } && | |
15938 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
15939 | { (case "(($ac_try" in |
15940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15941 | *) ac_try_echo=$ac_try;; | |
15942 | esac | |
15943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15944 | (eval "$ac_try") 2>&5 | |
f2abe47d AJ |
15945 | ac_status=$? |
15946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15947 | (exit $ac_status); }; }; then | |
182d150a | 15948 | eval "$as_ac_var=yes" |
f2abe47d AJ |
15949 | else |
15950 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
15951 | sed 's/^/| /' conftest.$ac_ext >&5 |
15952 | ||
182d150a | 15953 | eval "$as_ac_var=no" |
f2abe47d | 15954 | fi |
fc6ffb29 | 15955 | |
0ebeb530 | 15956 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 15957 | conftest$ac_exeext conftest.$ac_ext |
f2abe47d AJ |
15958 | CFLAGS=$ac_wine_try_cflags_saved |
15959 | fi | |
182d150a AJ |
15960 | ac_res=`eval echo '${'$as_ac_var'}'` |
15961 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
15962 | echo "${ECHO_T}$ac_res" >&6; } | |
15963 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13a93b4a | 15964 | LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`" |
182d150a | 15965 | fi |
e533e972 | 15966 | |
4d52d379 | 15967 | |
42b81ea0 AJ |
15968 | case $host_cpu in |
15969 | *i[3456789]86* | x86_64) | |
182d150a AJ |
15970 | { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5 |
15971 | echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; } | |
15972 | if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then | |
36048242 AJ |
15973 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15974 | else | |
15975 | ac_wine_try_cflags_saved=$CFLAGS | |
e533e972 | 15976 | CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400" |
36048242 AJ |
15977 | cat >conftest.$ac_ext <<_ACEOF |
15978 | /* confdefs.h. */ | |
15979 | _ACEOF | |
15980 | cat confdefs.h >>conftest.$ac_ext | |
15981 | cat >>conftest.$ac_ext <<_ACEOF | |
15982 | /* end confdefs.h. */ | |
15983 | ||
15984 | int | |
15985 | main () | |
15986 | { | |
15987 | ||
15988 | ; | |
15989 | return 0; | |
15990 | } | |
15991 | _ACEOF | |
15992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
15993 | if { (ac_try="$ac_link" |
15994 | case "(($ac_try" in | |
15995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
15996 | *) ac_try_echo=$ac_try;; | |
15997 | esac | |
15998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
15999 | (eval "$ac_link") 2>conftest.er1 | |
36048242 AJ |
16000 | ac_status=$? |
16001 | grep -v '^ *+' conftest.er1 >conftest.err | |
16002 | rm -f conftest.er1 | |
16003 | cat conftest.err >&5 | |
16004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16005 | (exit $ac_status); } && | |
0ebeb530 JW |
16006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
16007 | { (case "(($ac_try" in | |
16008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16009 | *) ac_try_echo=$ac_try;; | |
16010 | esac | |
16011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16012 | (eval "$ac_try") 2>&5 | |
36048242 AJ |
16013 | ac_status=$? |
16014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16015 | (exit $ac_status); }; } && | |
16016 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
16017 | { (case "(($ac_try" in |
16018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16019 | *) ac_try_echo=$ac_try;; | |
16020 | esac | |
16021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16022 | (eval "$ac_try") 2>&5 | |
36048242 AJ |
16023 | ac_status=$? |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16025 | (exit $ac_status); }; }; then | |
182d150a | 16026 | ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes |
36048242 AJ |
16027 | else |
16028 | echo "$as_me: failed program was:" >&5 | |
16029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16030 | ||
182d150a | 16031 | ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no |
36048242 | 16032 | fi |
fc6ffb29 | 16033 | |
0ebeb530 | 16034 | rm -f core conftest.err conftest.$ac_objext \ |
36048242 AJ |
16035 | conftest$ac_exeext conftest.$ac_ext |
16036 | CFLAGS=$ac_wine_try_cflags_saved | |
16037 | fi | |
182d150a AJ |
16038 | { echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5 |
16039 | echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; } | |
16040 | if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then | |
16041 | LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" | |
16042 | fi | |
16043 | ||
42b81ea0 AJ |
16044 | ;; |
16045 | esac | |
36048242 | 16046 | |
42b81ea0 AJ |
16047 | else |
16048 | { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5 | |
e533e972 AJ |
16049 | echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; } |
16050 | if test "${ac_cv_c_dll_unixware+set}" = set; then | |
440ff6db AJ |
16051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16052 | else | |
e533e972 AJ |
16053 | ac_wine_try_cflags_saved=$CFLAGS |
16054 | CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic" | |
440ff6db | 16055 | cat >conftest.$ac_ext <<_ACEOF |
e533e972 | 16056 | void myfunc() {} |
440ff6db AJ |
16057 | _ACEOF |
16058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
16059 | if { (ac_try="$ac_link" |
16060 | case "(($ac_try" in | |
16061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16062 | *) ac_try_echo=$ac_try;; | |
16063 | esac | |
16064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16065 | (eval "$ac_link") 2>conftest.er1 | |
440ff6db AJ |
16066 | ac_status=$? |
16067 | grep -v '^ *+' conftest.er1 >conftest.err | |
16068 | rm -f conftest.er1 | |
16069 | cat conftest.err >&5 | |
16070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16071 | (exit $ac_status); } && | |
0ebeb530 JW |
16072 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
16073 | { (case "(($ac_try" in | |
16074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16075 | *) ac_try_echo=$ac_try;; | |
16076 | esac | |
16077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16078 | (eval "$ac_try") 2>&5 | |
440ff6db AJ |
16079 | ac_status=$? |
16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16081 | (exit $ac_status); }; } && | |
16082 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
16083 | { (case "(($ac_try" in |
16084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16085 | *) ac_try_echo=$ac_try;; | |
16086 | esac | |
16087 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16088 | (eval "$ac_try") 2>&5 | |
440ff6db AJ |
16089 | ac_status=$? |
16090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16091 | (exit $ac_status); }; }; then | |
e533e972 | 16092 | ac_cv_c_dll_unixware="yes" |
440ff6db AJ |
16093 | else |
16094 | echo "$as_me: failed program was:" >&5 | |
16095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16096 | ||
e533e972 | 16097 | ac_cv_c_dll_unixware="no" |
440ff6db | 16098 | fi |
fc6ffb29 | 16099 | |
0ebeb530 | 16100 | rm -f core conftest.err conftest.$ac_objext \ |
440ff6db AJ |
16101 | conftest$ac_exeext conftest.$ac_ext |
16102 | CFLAGS=$ac_wine_try_cflags_saved | |
440ff6db | 16103 | fi |
e533e972 AJ |
16104 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5 |
16105 | echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; } | |
42b81ea0 AJ |
16106 | if test "$ac_cv_c_dll_unixware" = "yes" |
16107 | then | |
16108 | LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)" | |
16109 | LDDLLFLAGS="-Wl,-G,-B,symbolic" | |
e533e972 | 16110 | |
42b81ea0 AJ |
16111 | else |
16112 | { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5 | |
e533e972 AJ |
16113 | echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; } |
16114 | if test "${ac_cv_c_dll_hpux+set}" = set; then | |
16115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16116 | else | |
16117 | ac_wine_try_cflags_saved=$CFLAGS | |
16118 | CFLAGS="$CFLAGS -shared" | |
16119 | cat >conftest.$ac_ext <<_ACEOF | |
16120 | void myfunc() {} | |
ef2d04d4 AJ |
16121 | _ACEOF |
16122 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
16123 | if { (ac_try="$ac_link" |
16124 | case "(($ac_try" in | |
16125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16126 | *) ac_try_echo=$ac_try;; | |
16127 | esac | |
16128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16129 | (eval "$ac_link") 2>conftest.er1 | |
ef2d04d4 | 16130 | ac_status=$? |
875927f6 AJ |
16131 | grep -v '^ *+' conftest.er1 >conftest.err |
16132 | rm -f conftest.er1 | |
16133 | cat conftest.err >&5 | |
ef2d04d4 AJ |
16134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16135 | (exit $ac_status); } && | |
0ebeb530 JW |
16136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
16137 | { (case "(($ac_try" in | |
16138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16139 | *) ac_try_echo=$ac_try;; | |
16140 | esac | |
16141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16142 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
16143 | ac_status=$? |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16145 | (exit $ac_status); }; } && | |
16146 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
16147 | { (case "(($ac_try" in |
16148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16149 | *) ac_try_echo=$ac_try;; | |
16150 | esac | |
16151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16152 | (eval "$ac_try") 2>&5 | |
ef2d04d4 AJ |
16153 | ac_status=$? |
16154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16155 | (exit $ac_status); }; }; then | |
e533e972 | 16156 | ac_cv_c_dll_hpux="yes" |
ef2d04d4 AJ |
16157 | else |
16158 | echo "$as_me: failed program was:" >&5 | |
16159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16160 | ||
e533e972 | 16161 | ac_cv_c_dll_hpux="no" |
ef2d04d4 | 16162 | fi |
fc6ffb29 | 16163 | |
0ebeb530 | 16164 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 16165 | conftest$ac_exeext conftest.$ac_ext |
ef2d04d4 AJ |
16166 | CFLAGS=$ac_wine_try_cflags_saved |
16167 | fi | |
e533e972 AJ |
16168 | { echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5 |
16169 | echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; } | |
42b81ea0 AJ |
16170 | if test "$ac_cv_c_dll_hpux" = "yes" |
16171 | then | |
16172 | LIBEXT="sl" | |
16173 | DLLEXT=".sl" | |
16174 | LDDLLFLAGS="-shared -fPIC" | |
16175 | LDSHARED="\$(CC) -shared" | |
e533e972 AJ |
16176 | fi |
16177 | fi | |
42b81ea0 | 16178 | fi |
e533e972 AJ |
16179 | |
16180 | CROSSTEST="" | |
16181 | ||
16182 | if test "$cross_compiling" = "no" | |
16183 | then | |
5af9402e | 16184 | for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw32-gcc mingw-gcc |
e533e972 AJ |
16185 | do |
16186 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16187 | set dummy $ac_prog; ac_word=$2 | |
16188 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16189 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16190 | if test "${ac_cv_prog_CROSSCC+set}" = set; then | |
16191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16192 | else | |
16193 | if test -n "$CROSSCC"; then | |
16194 | ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test. | |
16195 | else | |
16196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16197 | for as_dir in $PATH | |
16198 | do | |
16199 | IFS=$as_save_IFS | |
16200 | test -z "$as_dir" && as_dir=. | |
16201 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16203 | ac_cv_prog_CROSSCC="$ac_prog" | |
16204 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16205 | break 2 | |
16206 | fi | |
16207 | done | |
16208 | done | |
16209 | IFS=$as_save_IFS | |
16210 | ||
16211 | fi | |
16212 | fi | |
16213 | CROSSCC=$ac_cv_prog_CROSSCC | |
16214 | if test -n "$CROSSCC"; then | |
16215 | { echo "$as_me:$LINENO: result: $CROSSCC" >&5 | |
16216 | echo "${ECHO_T}$CROSSCC" >&6; } | |
16217 | else | |
16218 | { echo "$as_me:$LINENO: result: no" >&5 | |
16219 | echo "${ECHO_T}no" >&6; } | |
16220 | fi | |
16221 | ||
16222 | ||
16223 | test -n "$CROSSCC" && break | |
16224 | done | |
16225 | test -n "$CROSSCC" || CROSSCC="false" | |
16226 | ||
5af9402e | 16227 | for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw32-dlltool mingw-dlltool |
e533e972 AJ |
16228 | do |
16229 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16230 | set dummy $ac_prog; ac_word=$2 | |
16231 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16232 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16233 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
16234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16235 | else | |
16236 | if test -n "$DLLTOOL"; then | |
16237 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
16238 | else | |
16239 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16240 | for as_dir in $PATH | |
16241 | do | |
16242 | IFS=$as_save_IFS | |
16243 | test -z "$as_dir" && as_dir=. | |
16244 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16245 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16246 | ac_cv_prog_DLLTOOL="$ac_prog" | |
16247 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16248 | break 2 | |
16249 | fi | |
16250 | done | |
16251 | done | |
16252 | IFS=$as_save_IFS | |
16253 | ||
16254 | fi | |
16255 | fi | |
16256 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
16257 | if test -n "$DLLTOOL"; then | |
16258 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
16259 | echo "${ECHO_T}$DLLTOOL" >&6; } | |
16260 | else | |
16261 | { echo "$as_me:$LINENO: result: no" >&5 | |
16262 | echo "${ECHO_T}no" >&6; } | |
16263 | fi | |
16264 | ||
16265 | ||
16266 | test -n "$DLLTOOL" && break | |
16267 | done | |
16268 | test -n "$DLLTOOL" || DLLTOOL="false" | |
16269 | ||
5af9402e | 16270 | for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw32-windres mingw-windres |
e533e972 AJ |
16271 | do |
16272 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
16273 | set dummy $ac_prog; ac_word=$2 | |
16274 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16275 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16276 | if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then | |
16277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16278 | else | |
16279 | if test -n "$CROSSWINDRES"; then | |
16280 | ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test. | |
16281 | else | |
16282 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16283 | for as_dir in $PATH | |
16284 | do | |
16285 | IFS=$as_save_IFS | |
16286 | test -z "$as_dir" && as_dir=. | |
16287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16288 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16289 | ac_cv_prog_CROSSWINDRES="$ac_prog" | |
16290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16291 | break 2 | |
16292 | fi | |
16293 | done | |
16294 | done | |
16295 | IFS=$as_save_IFS | |
16296 | ||
16297 | fi | |
16298 | fi | |
16299 | CROSSWINDRES=$ac_cv_prog_CROSSWINDRES | |
16300 | if test -n "$CROSSWINDRES"; then | |
16301 | { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5 | |
16302 | echo "${ECHO_T}$CROSSWINDRES" >&6; } | |
16303 | else | |
16304 | { echo "$as_me:$LINENO: result: no" >&5 | |
16305 | echo "${ECHO_T}no" >&6; } | |
16306 | fi | |
16307 | ||
16308 | ||
16309 | test -n "$CROSSWINDRES" && break | |
16310 | done | |
16311 | test -n "$CROSSWINDRES" || CROSSWINDRES="false" | |
16312 | ||
16313 | if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi | |
16314 | fi | |
16315 | ;; | |
16316 | esac | |
16317 | ||
16318 | if test "$LIBEXT" = "a"; then | |
16319 | { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries. | |
16320 | It is currently not possible to build Wine without shared library | |
16321 | (.so) support to allow transparent switch between .so and .dll files. | |
16322 | If you are using Linux, you will need a newer binutils. | |
16323 | " >&5 | |
16324 | echo "$as_me: error: could not find a way to build shared libraries. | |
16325 | It is currently not possible to build Wine without shared library | |
16326 | (.so) support to allow transparent switch between .so and .dll files. | |
16327 | If you are using Linux, you will need a newer binutils. | |
16328 | " >&2;} | |
16329 | { (exit 1); exit 1; }; } | |
16330 | fi | |
16331 | ||
16332 | case $build_os in | |
16333 | cygwin*|mingw32*) | |
16334 | LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\"" | |
16335 | ;; | |
16336 | darwin*|macosx*) | |
16337 | LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\"" | |
16338 | ;; | |
16339 | *) | |
16340 | LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\"" | |
16341 | ;; | |
16342 | esac | |
16343 | ||
16344 | case $host_os in | |
16345 | mingw32*) | |
16346 | CRTLIBS="-lmsvcrt" | |
16347 | ||
16348 | SOCKETLIBS="-lws2_32" | |
16349 | ||
16350 | ;; | |
16351 | esac | |
16352 | ||
16353 | MAIN_BINARY="wine-pthread" | |
16354 | case $host_cpu in | |
16355 | *i[3456789]86*) | |
16356 | case $host_os in | |
16357 | linux* | k*bsd*-gnu) | |
16358 | MAIN_BINARY="wine-glibc" | |
16359 | ||
16360 | EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader" | |
16361 | ;; | |
16362 | esac | |
16363 | ;; | |
16364 | esac | |
16365 | ||
16366 | ||
16367 | if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib" | |
16368 | then | |
16369 | # Extract the first word of "ldd", so it can be a program name with args. | |
16370 | set dummy ldd; ac_word=$2 | |
16371 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
16372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
16373 | if test "${ac_cv_path_LDD+set}" = set; then | |
16374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16375 | else | |
16376 | case $LDD in | |
16377 | [\\/]* | ?:[\\/]*) | |
16378 | ac_cv_path_LDD="$LDD" # Let the user override the test with a path. | |
16379 | ;; | |
16380 | *) | |
16381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16382 | as_dummy="/sbin:/usr/sbin:$PATH" | |
16383 | for as_dir in $as_dummy | |
16384 | do | |
16385 | IFS=$as_save_IFS | |
16386 | test -z "$as_dir" && as_dir=. | |
16387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then | |
16389 | ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" | |
16390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
16391 | break 2 | |
16392 | fi | |
16393 | done | |
16394 | done | |
16395 | IFS=$as_save_IFS | |
16396 | ||
16397 | test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true" | |
16398 | ;; | |
16399 | esac | |
16400 | fi | |
16401 | LDD=$ac_cv_path_LDD | |
16402 | if test -n "$LDD"; then | |
16403 | { echo "$as_me:$LINENO: result: $LDD" >&5 | |
16404 | echo "${ECHO_T}$LDD" >&6; } | |
16405 | else | |
16406 | { echo "$as_me:$LINENO: result: no" >&5 | |
16407 | echo "${ECHO_T}no" >&6; } | |
16408 | fi | |
c6d44be3 | 16409 | |
c6d44be3 | 16410 | |
e533e972 AJ |
16411 | { echo "$as_me:$LINENO: checking for -lX11 soname" >&5 |
16412 | echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; } | |
16413 | if test "${ac_cv_lib_soname_X11+set}" = set; then | |
5ed59015 AJ |
16414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16415 | else | |
e533e972 AJ |
16416 | ac_get_soname_save_LIBS=$LIBS |
16417 | LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS" | |
16418 | cat >conftest.$ac_ext <<_ACEOF | |
5ed59015 AJ |
16419 | /* confdefs.h. */ |
16420 | _ACEOF | |
16421 | cat confdefs.h >>conftest.$ac_ext | |
16422 | cat >>conftest.$ac_ext <<_ACEOF | |
16423 | /* end confdefs.h. */ | |
16424 | ||
e533e972 AJ |
16425 | /* Override any GCC internal prototype to avoid an error. |
16426 | Use char because int might match the return type of a GCC | |
16427 | builtin and then its argument prototype would still apply. */ | |
16428 | #ifdef __cplusplus | |
16429 | extern "C" | |
16430 | #endif | |
16431 | char XCreateWindow (); | |
5ed59015 AJ |
16432 | int |
16433 | main () | |
16434 | { | |
e533e972 | 16435 | return XCreateWindow (); |
5ed59015 AJ |
16436 | ; |
16437 | return 0; | |
16438 | } | |
16439 | _ACEOF | |
16440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
16441 | if { (ac_try="$ac_link" |
16442 | case "(($ac_try" in | |
16443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16444 | *) ac_try_echo=$ac_try;; | |
16445 | esac | |
16446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16447 | (eval "$ac_link") 2>conftest.er1 | |
5ed59015 AJ |
16448 | ac_status=$? |
16449 | grep -v '^ *+' conftest.er1 >conftest.err | |
16450 | rm -f conftest.er1 | |
16451 | cat conftest.err >&5 | |
16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16453 | (exit $ac_status); } && | |
0ebeb530 JW |
16454 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
16455 | { (case "(($ac_try" in | |
16456 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16457 | *) ac_try_echo=$ac_try;; | |
16458 | esac | |
16459 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16460 | (eval "$ac_try") 2>&5 | |
5ed59015 AJ |
16461 | ac_status=$? |
16462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16463 | (exit $ac_status); }; } && | |
16464 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
16465 | { (case "(($ac_try" in |
16466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16467 | *) ac_try_echo=$ac_try;; | |
16468 | esac | |
16469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16470 | (eval "$ac_try") 2>&5 | |
5ed59015 AJ |
16471 | ac_status=$? |
16472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16473 | (exit $ac_status); }; }; then | |
e533e972 AJ |
16474 | case "$LIBEXT" in |
16475 | dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep libX11\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; | |
16476 | so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
16477 | esac | |
16478 | if test "x$ac_cv_lib_soname_X11" = "x" | |
16479 | then | |
16480 | ac_cv_lib_soname_X11="libX11.$LIBEXT" | |
16481 | fi | |
5ed59015 AJ |
16482 | else |
16483 | echo "$as_me: failed program was:" >&5 | |
16484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16485 | ||
e533e972 | 16486 | ac_cv_lib_soname_X11="libX11.$LIBEXT" |
5ed59015 | 16487 | fi |
fc6ffb29 | 16488 | |
0ebeb530 | 16489 | rm -f core conftest.err conftest.$ac_objext \ |
5ed59015 | 16490 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 16491 | LIBS=$ac_get_soname_save_LIBS |
5ed59015 | 16492 | fi |
e533e972 AJ |
16493 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5 |
16494 | echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; } | |
16495 | if test "${ac_cv_lib_soname_X11+set}" = set; then | |
5ed59015 | 16496 | |
e533e972 AJ |
16497 | cat >>confdefs.h <<_ACEOF |
16498 | #define SONAME_LIBX11 "$ac_cv_lib_soname_X11" | |
16499 | _ACEOF | |
1fd32cfa | 16500 | |
e533e972 | 16501 | fi |
5ed59015 | 16502 | |
e533e972 AJ |
16503 | { echo "$as_me:$LINENO: checking for -lXext soname" >&5 |
16504 | echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; } | |
16505 | if test "${ac_cv_lib_soname_Xext+set}" = set; then | |
c6d44be3 AJ |
16506 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16507 | else | |
e533e972 AJ |
16508 | ac_get_soname_save_LIBS=$LIBS |
16509 | LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS" | |
16510 | cat >conftest.$ac_ext <<_ACEOF | |
c6d44be3 AJ |
16511 | /* confdefs.h. */ |
16512 | _ACEOF | |
16513 | cat confdefs.h >>conftest.$ac_ext | |
16514 | cat >>conftest.$ac_ext <<_ACEOF | |
16515 | /* end confdefs.h. */ | |
b1abca8a | 16516 | |
e533e972 AJ |
16517 | /* Override any GCC internal prototype to avoid an error. |
16518 | Use char because int might match the return type of a GCC | |
16519 | builtin and then its argument prototype would still apply. */ | |
16520 | #ifdef __cplusplus | |
16521 | extern "C" | |
16522 | #endif | |
16523 | char XextCreateExtension (); | |
b1abca8a AJ |
16524 | int |
16525 | main () | |
16526 | { | |
e533e972 | 16527 | return XextCreateExtension (); |
b1abca8a AJ |
16528 | ; |
16529 | return 0; | |
16530 | } | |
c6d44be3 | 16531 | _ACEOF |
b1abca8a | 16532 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
16533 | if { (ac_try="$ac_link" |
16534 | case "(($ac_try" in | |
16535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16536 | *) ac_try_echo=$ac_try;; | |
16537 | esac | |
16538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16539 | (eval "$ac_link") 2>conftest.er1 | |
c6d44be3 | 16540 | ac_status=$? |
b1abca8a AJ |
16541 | grep -v '^ *+' conftest.er1 >conftest.err |
16542 | rm -f conftest.er1 | |
16543 | cat conftest.err >&5 | |
c6d44be3 | 16544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
b1abca8a | 16545 | (exit $ac_status); } && |
0ebeb530 JW |
16546 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
16547 | { (case "(($ac_try" in | |
16548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16549 | *) ac_try_echo=$ac_try;; | |
16550 | esac | |
16551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16552 | (eval "$ac_try") 2>&5 | |
b1abca8a AJ |
16553 | ac_status=$? |
16554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16555 | (exit $ac_status); }; } && | |
16556 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
16557 | { (case "(($ac_try" in |
16558 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16559 | *) ac_try_echo=$ac_try;; | |
16560 | esac | |
16561 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16562 | (eval "$ac_try") 2>&5 | |
c6d44be3 AJ |
16563 | ac_status=$? |
16564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16565 | (exit $ac_status); }; }; then | |
e533e972 AJ |
16566 | case "$LIBEXT" in |
16567 | dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep libXext\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; | |
16568 | so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
16569 | esac | |
16570 | if test "x$ac_cv_lib_soname_Xext" = "x" | |
16571 | then | |
16572 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" | |
16573 | fi | |
c6d44be3 | 16574 | else |
b1abca8a | 16575 | echo "$as_me: failed program was:" >&5 |
c6d44be3 AJ |
16576 | sed 's/^/| /' conftest.$ac_ext >&5 |
16577 | ||
e533e972 | 16578 | ac_cv_lib_soname_Xext="libXext.$LIBEXT" |
c6d44be3 | 16579 | fi |
fc6ffb29 | 16580 | |
0ebeb530 | 16581 | rm -f core conftest.err conftest.$ac_objext \ |
b1abca8a | 16582 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 16583 | LIBS=$ac_get_soname_save_LIBS |
c6d44be3 | 16584 | fi |
e533e972 AJ |
16585 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5 |
16586 | echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; } | |
16587 | if test "${ac_cv_lib_soname_Xext+set}" = set; then | |
c6d44be3 | 16588 | |
e533e972 AJ |
16589 | cat >>confdefs.h <<_ACEOF |
16590 | #define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext" | |
f5818d2f | 16591 | _ACEOF |
fc6ffb29 | 16592 | |
f5818d2f | 16593 | fi |
794bf0fd | 16594 | |
e533e972 AJ |
16595 | { echo "$as_me:$LINENO: checking for -lXi soname" >&5 |
16596 | echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; } | |
16597 | if test "${ac_cv_lib_soname_Xi+set}" = set; then | |
794bf0fd PH |
16598 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16599 | else | |
e533e972 AJ |
16600 | ac_get_soname_save_LIBS=$LIBS |
16601 | LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
16602 | cat >conftest.$ac_ext <<_ACEOF | |
16603 | /* confdefs.h. */ | |
794bf0fd | 16604 | _ACEOF |
e533e972 AJ |
16605 | cat confdefs.h >>conftest.$ac_ext |
16606 | cat >>conftest.$ac_ext <<_ACEOF | |
16607 | /* end confdefs.h. */ | |
16608 | ||
16609 | /* Override any GCC internal prototype to avoid an error. | |
16610 | Use char because int might match the return type of a GCC | |
16611 | builtin and then its argument prototype would still apply. */ | |
16612 | #ifdef __cplusplus | |
16613 | extern "C" | |
16614 | #endif | |
16615 | char XOpenDevice (); | |
16616 | int | |
16617 | main () | |
16618 | { | |
16619 | return XOpenDevice (); | |
16620 | ; | |
16621 | return 0; | |
16622 | } | |
421e8b92 WB |
16623 | _ACEOF |
16624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
16625 | if { (ac_try="$ac_link" |
16626 | case "(($ac_try" in | |
16627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16628 | *) ac_try_echo=$ac_try;; | |
16629 | esac | |
16630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16631 | (eval "$ac_link") 2>conftest.er1 | |
421e8b92 WB |
16632 | ac_status=$? |
16633 | grep -v '^ *+' conftest.er1 >conftest.err | |
16634 | rm -f conftest.er1 | |
16635 | cat conftest.err >&5 | |
16636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16637 | (exit $ac_status); } && | |
0ebeb530 JW |
16638 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
16639 | { (case "(($ac_try" in | |
16640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16641 | *) ac_try_echo=$ac_try;; | |
16642 | esac | |
16643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16644 | (eval "$ac_try") 2>&5 | |
421e8b92 WB |
16645 | ac_status=$? |
16646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16647 | (exit $ac_status); }; } && | |
16648 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
16649 | { (case "(($ac_try" in |
16650 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16651 | *) ac_try_echo=$ac_try;; | |
16652 | esac | |
16653 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16654 | (eval "$ac_try") 2>&5 | |
421e8b92 WB |
16655 | ac_status=$? |
16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16657 | (exit $ac_status); }; }; then | |
e533e972 AJ |
16658 | case "$LIBEXT" in |
16659 | dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep libXi\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; | |
16660 | so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
16661 | esac | |
16662 | if test "x$ac_cv_lib_soname_Xi" = "x" | |
16663 | then | |
16664 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" | |
16665 | fi | |
421e8b92 WB |
16666 | else |
16667 | echo "$as_me: failed program was:" >&5 | |
16668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16669 | ||
e533e972 | 16670 | ac_cv_lib_soname_Xi="libXi.$LIBEXT" |
421e8b92 | 16671 | fi |
fc6ffb29 | 16672 | |
0ebeb530 | 16673 | rm -f core conftest.err conftest.$ac_objext \ |
421e8b92 | 16674 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 16675 | LIBS=$ac_get_soname_save_LIBS |
c3c587eb | 16676 | fi |
e533e972 AJ |
16677 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5 |
16678 | echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; } | |
16679 | if test "${ac_cv_lib_soname_Xi+set}" = set; then | |
c3c587eb | 16680 | |
e533e972 AJ |
16681 | cat >>confdefs.h <<_ACEOF |
16682 | #define SONAME_LIBXI "$ac_cv_lib_soname_Xi" | |
16683 | _ACEOF | |
fc6ffb29 | 16684 | |
7d00b050 AJ |
16685 | fi |
16686 | ||
16687 | { echo "$as_me:$LINENO: checking for -lXinerama soname" >&5 | |
16688 | echo $ECHO_N "checking for -lXinerama soname... $ECHO_C" >&6; } | |
16689 | if test "${ac_cv_lib_soname_Xinerama+set}" = set; then | |
16690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16691 | else | |
16692 | ac_get_soname_save_LIBS=$LIBS | |
16693 | LIBS="-lXinerama $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
16694 | cat >conftest.$ac_ext <<_ACEOF | |
16695 | /* confdefs.h. */ | |
16696 | _ACEOF | |
16697 | cat confdefs.h >>conftest.$ac_ext | |
16698 | cat >>conftest.$ac_ext <<_ACEOF | |
16699 | /* end confdefs.h. */ | |
16700 | ||
16701 | /* Override any GCC internal prototype to avoid an error. | |
16702 | Use char because int might match the return type of a GCC | |
16703 | builtin and then its argument prototype would still apply. */ | |
16704 | #ifdef __cplusplus | |
16705 | extern "C" | |
16706 | #endif | |
16707 | char XineramaQueryScreens (); | |
16708 | int | |
16709 | main () | |
16710 | { | |
16711 | return XineramaQueryScreens (); | |
16712 | ; | |
16713 | return 0; | |
16714 | } | |
16715 | _ACEOF | |
16716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16717 | if { (ac_try="$ac_link" | |
16718 | case "(($ac_try" in | |
16719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16720 | *) ac_try_echo=$ac_try;; | |
16721 | esac | |
16722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16723 | (eval "$ac_link") 2>conftest.er1 | |
16724 | ac_status=$? | |
16725 | grep -v '^ *+' conftest.er1 >conftest.err | |
16726 | rm -f conftest.er1 | |
16727 | cat conftest.err >&5 | |
16728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16729 | (exit $ac_status); } && | |
16730 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16731 | { (case "(($ac_try" in | |
16732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16733 | *) ac_try_echo=$ac_try;; | |
16734 | esac | |
16735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16736 | (eval "$ac_try") 2>&5 | |
16737 | ac_status=$? | |
16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16739 | (exit $ac_status); }; } && | |
16740 | { ac_try='test -s conftest$ac_exeext' | |
16741 | { (case "(($ac_try" in | |
16742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16743 | *) ac_try_echo=$ac_try;; | |
16744 | esac | |
16745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16746 | (eval "$ac_try") 2>&5 | |
16747 | ac_status=$? | |
16748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16749 | (exit $ac_status); }; }; then | |
16750 | case "$LIBEXT" in | |
16751 | dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep libXinerama\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; | |
16752 | so) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep libXinerama\\.so | sed -e "s/^.*\(libXinerama\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
16753 | esac | |
16754 | if test "x$ac_cv_lib_soname_Xinerama" = "x" | |
16755 | then | |
16756 | ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT" | |
16757 | fi | |
16758 | else | |
16759 | echo "$as_me: failed program was:" >&5 | |
16760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16761 | ||
16762 | ac_cv_lib_soname_Xinerama="libXinerama.$LIBEXT" | |
16763 | fi | |
16764 | ||
16765 | rm -f core conftest.err conftest.$ac_objext \ | |
16766 | conftest$ac_exeext conftest.$ac_ext | |
16767 | LIBS=$ac_get_soname_save_LIBS | |
16768 | fi | |
16769 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xinerama" >&5 | |
16770 | echo "${ECHO_T}$ac_cv_lib_soname_Xinerama" >&6; } | |
16771 | if test "${ac_cv_lib_soname_Xinerama+set}" = set; then | |
16772 | ||
16773 | cat >>confdefs.h <<_ACEOF | |
16774 | #define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama" | |
16775 | _ACEOF | |
16776 | ||
c3c587eb AJ |
16777 | fi |
16778 | ||
e533e972 AJ |
16779 | { echo "$as_me:$LINENO: checking for -lXrender soname" >&5 |
16780 | echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; } | |
16781 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then | |
21ee3295 AJ |
16782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16783 | else | |
e533e972 AJ |
16784 | ac_get_soname_save_LIBS=$LIBS |
16785 | LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
16786 | cat >conftest.$ac_ext <<_ACEOF | |
16787 | /* confdefs.h. */ | |
16788 | _ACEOF | |
16789 | cat confdefs.h >>conftest.$ac_ext | |
16790 | cat >>conftest.$ac_ext <<_ACEOF | |
16791 | /* end confdefs.h. */ | |
21ee3295 | 16792 | |
e533e972 AJ |
16793 | /* Override any GCC internal prototype to avoid an error. |
16794 | Use char because int might match the return type of a GCC | |
16795 | builtin and then its argument prototype would still apply. */ | |
16796 | #ifdef __cplusplus | |
16797 | extern "C" | |
16798 | #endif | |
16799 | char XRenderQueryExtension (); | |
16800 | int | |
16801 | main () | |
16802 | { | |
16803 | return XRenderQueryExtension (); | |
16804 | ; | |
16805 | return 0; | |
16806 | } | |
16807 | _ACEOF | |
16808 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16809 | if { (ac_try="$ac_link" | |
16810 | case "(($ac_try" in | |
16811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16812 | *) ac_try_echo=$ac_try;; | |
fa3a5360 | 16813 | esac |
e533e972 AJ |
16814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
16815 | (eval "$ac_link") 2>conftest.er1 | |
16816 | ac_status=$? | |
16817 | grep -v '^ *+' conftest.er1 >conftest.err | |
16818 | rm -f conftest.er1 | |
16819 | cat conftest.err >&5 | |
16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16821 | (exit $ac_status); } && | |
16822 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16823 | { (case "(($ac_try" in | |
16824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16825 | *) ac_try_echo=$ac_try;; | |
16826 | esac | |
16827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16828 | (eval "$ac_try") 2>&5 | |
16829 | ac_status=$? | |
16830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16831 | (exit $ac_status); }; } && | |
16832 | { ac_try='test -s conftest$ac_exeext' | |
16833 | { (case "(($ac_try" in | |
16834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16835 | *) ac_try_echo=$ac_try;; | |
fc01b729 | 16836 | esac |
e533e972 AJ |
16837 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
16838 | (eval "$ac_try") 2>&5 | |
16839 | ac_status=$? | |
16840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16841 | (exit $ac_status); }; }; then | |
16842 | case "$LIBEXT" in | |
16843 | dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep libXrender\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; | |
16844 | so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
16845 | esac | |
16846 | if test "x$ac_cv_lib_soname_Xrender" = "x" | |
16847 | then | |
16848 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" | |
16849 | fi | |
16850 | else | |
16851 | echo "$as_me: failed program was:" >&5 | |
16852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fc01b729 | 16853 | |
e533e972 AJ |
16854 | ac_cv_lib_soname_Xrender="libXrender.$LIBEXT" |
16855 | fi | |
546839f4 | 16856 | |
e533e972 AJ |
16857 | rm -f core conftest.err conftest.$ac_objext \ |
16858 | conftest$ac_exeext conftest.$ac_ext | |
16859 | LIBS=$ac_get_soname_save_LIBS | |
16860 | fi | |
16861 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5 | |
16862 | echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; } | |
16863 | if test "${ac_cv_lib_soname_Xrender+set}" = set; then | |
546839f4 | 16864 | |
e533e972 AJ |
16865 | cat >>confdefs.h <<_ACEOF |
16866 | #define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender" | |
16867 | _ACEOF | |
daa2886c | 16868 | |
e533e972 | 16869 | fi |
daa2886c | 16870 | |
e533e972 AJ |
16871 | { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5 |
16872 | echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; } | |
16873 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then | |
67e8dc68 AJ |
16874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16875 | else | |
e533e972 AJ |
16876 | ac_get_soname_save_LIBS=$LIBS |
16877 | LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" | |
16878 | cat >conftest.$ac_ext <<_ACEOF | |
16879 | /* confdefs.h. */ | |
16880 | _ACEOF | |
16881 | cat confdefs.h >>conftest.$ac_ext | |
16882 | cat >>conftest.$ac_ext <<_ACEOF | |
16883 | /* end confdefs.h. */ | |
67e8dc68 | 16884 | |
e533e972 AJ |
16885 | /* Override any GCC internal prototype to avoid an error. |
16886 | Use char because int might match the return type of a GCC | |
16887 | builtin and then its argument prototype would still apply. */ | |
16888 | #ifdef __cplusplus | |
16889 | extern "C" | |
16890 | #endif | |
16891 | char XRRQueryExtension (); | |
16892 | int | |
16893 | main () | |
16894 | { | |
16895 | return XRRQueryExtension (); | |
16896 | ; | |
16897 | return 0; | |
16898 | } | |
16899 | _ACEOF | |
16900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16901 | if { (ac_try="$ac_link" | |
16902 | case "(($ac_try" in | |
16903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16904 | *) ac_try_echo=$ac_try;; | |
67e8dc68 | 16905 | esac |
e533e972 AJ |
16906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
16907 | (eval "$ac_link") 2>conftest.er1 | |
16908 | ac_status=$? | |
16909 | grep -v '^ *+' conftest.er1 >conftest.err | |
16910 | rm -f conftest.er1 | |
16911 | cat conftest.err >&5 | |
16912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16913 | (exit $ac_status); } && | |
16914 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
16915 | { (case "(($ac_try" in | |
16916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16917 | *) ac_try_echo=$ac_try;; | |
16918 | esac | |
16919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16920 | (eval "$ac_try") 2>&5 | |
16921 | ac_status=$? | |
16922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16923 | (exit $ac_status); }; } && | |
16924 | { ac_try='test -s conftest$ac_exeext' | |
16925 | { (case "(($ac_try" in | |
16926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16927 | *) ac_try_echo=$ac_try;; | |
16928 | esac | |
16929 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16930 | (eval "$ac_try") 2>&5 | |
16931 | ac_status=$? | |
16932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16933 | (exit $ac_status); }; }; then | |
16934 | case "$LIBEXT" in | |
16935 | dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep libXrandr\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; | |
16936 | so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
16937 | esac | |
16938 | if test "x$ac_cv_lib_soname_Xrandr" = "x" | |
16939 | then | |
16940 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" | |
16941 | fi | |
67e8dc68 | 16942 | else |
e533e972 AJ |
16943 | echo "$as_me: failed program was:" >&5 |
16944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16945 | ||
16946 | ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT" | |
16947 | fi | |
16948 | ||
16949 | rm -f core conftest.err conftest.$ac_objext \ | |
16950 | conftest$ac_exeext conftest.$ac_ext | |
16951 | LIBS=$ac_get_soname_save_LIBS | |
67e8dc68 | 16952 | fi |
e533e972 AJ |
16953 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5 |
16954 | echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; } | |
16955 | if test "${ac_cv_lib_soname_Xrandr+set}" = set; then | |
16956 | ||
16957 | cat >>confdefs.h <<_ACEOF | |
16958 | #define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr" | |
16959 | _ACEOF | |
67e8dc68 | 16960 | |
e533e972 | 16961 | fi |
fc6ffb29 | 16962 | |
e533e972 AJ |
16963 | { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5 |
16964 | echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; } | |
16965 | if test "${ac_cv_lib_soname_freetype+set}" = set; then | |
67e8dc68 AJ |
16966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16967 | else | |
16968 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 16969 | LIBS="-lfreetype $X_LIBS $LIBS" |
67e8dc68 | 16970 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
16971 | /* confdefs.h. */ |
16972 | _ACEOF | |
16973 | cat confdefs.h >>conftest.$ac_ext | |
16974 | cat >>conftest.$ac_ext <<_ACEOF | |
16975 | /* end confdefs.h. */ | |
fa3a5360 | 16976 | |
fc6ffb29 AJ |
16977 | /* Override any GCC internal prototype to avoid an error. |
16978 | Use char because int might match the return type of a GCC | |
16979 | builtin and then its argument prototype would still apply. */ | |
67e8dc68 AJ |
16980 | #ifdef __cplusplus |
16981 | extern "C" | |
16982 | #endif | |
e533e972 | 16983 | char FT_Init_FreeType (); |
67e8dc68 AJ |
16984 | int |
16985 | main () | |
16986 | { | |
e533e972 | 16987 | return FT_Init_FreeType (); |
67e8dc68 AJ |
16988 | ; |
16989 | return 0; | |
16990 | } | |
16991 | _ACEOF | |
16992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
16993 | if { (ac_try="$ac_link" |
16994 | case "(($ac_try" in | |
16995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16996 | *) ac_try_echo=$ac_try;; | |
16997 | esac | |
16998 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16999 | (eval "$ac_link") 2>conftest.er1 | |
67e8dc68 | 17000 | ac_status=$? |
875927f6 AJ |
17001 | grep -v '^ *+' conftest.er1 >conftest.err |
17002 | rm -f conftest.er1 | |
17003 | cat conftest.err >&5 | |
67e8dc68 AJ |
17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17005 | (exit $ac_status); } && | |
0ebeb530 JW |
17006 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17007 | { (case "(($ac_try" in | |
17008 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17009 | *) ac_try_echo=$ac_try;; | |
17010 | esac | |
17011 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17012 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17013 | ac_status=$? |
17014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17015 | (exit $ac_status); }; } && | |
17016 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17017 | { (case "(($ac_try" in |
17018 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17019 | *) ac_try_echo=$ac_try;; | |
17020 | esac | |
17021 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17022 | (eval "$ac_try") 2>&5 | |
67e8dc68 AJ |
17023 | ac_status=$? |
17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17025 | (exit $ac_status); }; }; then | |
bdbffd97 | 17026 | case "$LIBEXT" in |
e533e972 AJ |
17027 | dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep libfreetype\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17028 | so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17029 | esac |
e533e972 | 17030 | if test "x$ac_cv_lib_soname_freetype" = "x" |
67e8dc68 | 17031 | then |
e533e972 | 17032 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
67e8dc68 AJ |
17033 | fi |
17034 | else | |
17035 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17036 | sed 's/^/| /' conftest.$ac_ext >&5 |
17037 | ||
e533e972 | 17038 | ac_cv_lib_soname_freetype="libfreetype.$LIBEXT" |
67e8dc68 | 17039 | fi |
fc6ffb29 | 17040 | |
0ebeb530 | 17041 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17042 | conftest$ac_exeext conftest.$ac_ext |
67e8dc68 AJ |
17043 | LIBS=$ac_get_soname_save_LIBS |
17044 | fi | |
e533e972 AJ |
17045 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5 |
17046 | echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; } | |
17047 | if test "${ac_cv_lib_soname_freetype+set}" = set; then | |
30de3e8e | 17048 | |
67e8dc68 | 17049 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17050 | #define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype" |
67e8dc68 | 17051 | _ACEOF |
30de3e8e | 17052 | |
67e8dc68 | 17053 | fi |
0adad95d | 17054 | |
e533e972 AJ |
17055 | { echo "$as_me:$LINENO: checking for -lGL soname" >&5 |
17056 | echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; } | |
17057 | if test "${ac_cv_lib_soname_GL+set}" = set; then | |
67e8dc68 AJ |
17058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17059 | else | |
17060 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17061 | LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS" |
67e8dc68 | 17062 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
17063 | /* confdefs.h. */ |
17064 | _ACEOF | |
17065 | cat confdefs.h >>conftest.$ac_ext | |
17066 | cat >>conftest.$ac_ext <<_ACEOF | |
17067 | /* end confdefs.h. */ | |
67e8dc68 | 17068 | |
fc6ffb29 AJ |
17069 | /* Override any GCC internal prototype to avoid an error. |
17070 | Use char because int might match the return type of a GCC | |
17071 | builtin and then its argument prototype would still apply. */ | |
67e8dc68 AJ |
17072 | #ifdef __cplusplus |
17073 | extern "C" | |
17074 | #endif | |
e533e972 | 17075 | char glXQueryExtension (); |
67e8dc68 AJ |
17076 | int |
17077 | main () | |
17078 | { | |
e533e972 | 17079 | return glXQueryExtension (); |
67e8dc68 AJ |
17080 | ; |
17081 | return 0; | |
17082 | } | |
17083 | _ACEOF | |
17084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17085 | if { (ac_try="$ac_link" |
17086 | case "(($ac_try" in | |
17087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17088 | *) ac_try_echo=$ac_try;; | |
17089 | esac | |
17090 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17091 | (eval "$ac_link") 2>conftest.er1 | |
67e8dc68 | 17092 | ac_status=$? |
875927f6 AJ |
17093 | grep -v '^ *+' conftest.er1 >conftest.err |
17094 | rm -f conftest.er1 | |
17095 | cat conftest.err >&5 | |
67e8dc68 AJ |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17097 | (exit $ac_status); } && | |
0ebeb530 JW |
17098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17099 | { (case "(($ac_try" in | |
17100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17101 | *) ac_try_echo=$ac_try;; | |
17102 | esac | |
17103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17104 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17105 | ac_status=$? |
17106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17107 | (exit $ac_status); }; } && | |
17108 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17109 | { (case "(($ac_try" in |
17110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17111 | *) ac_try_echo=$ac_try;; | |
17112 | esac | |
17113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17114 | (eval "$ac_try") 2>&5 | |
67e8dc68 AJ |
17115 | ac_status=$? |
17116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17117 | (exit $ac_status); }; }; then | |
bdbffd97 | 17118 | case "$LIBEXT" in |
e533e972 AJ |
17119 | dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep libGL\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17120 | so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17121 | esac |
e533e972 | 17122 | if test "x$ac_cv_lib_soname_GL" = "x" |
67e8dc68 | 17123 | then |
e533e972 | 17124 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
67e8dc68 AJ |
17125 | fi |
17126 | else | |
17127 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17128 | sed 's/^/| /' conftest.$ac_ext >&5 |
17129 | ||
e533e972 | 17130 | ac_cv_lib_soname_GL="libGL.$LIBEXT" |
67e8dc68 | 17131 | fi |
fc6ffb29 | 17132 | |
0ebeb530 | 17133 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17134 | conftest$ac_exeext conftest.$ac_ext |
67e8dc68 AJ |
17135 | LIBS=$ac_get_soname_save_LIBS |
17136 | fi | |
e533e972 AJ |
17137 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5 |
17138 | echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; } | |
17139 | if test "${ac_cv_lib_soname_GL+set}" = set; then | |
30de3e8e | 17140 | |
67e8dc68 | 17141 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17142 | #define SONAME_LIBGL "$ac_cv_lib_soname_GL" |
67e8dc68 | 17143 | _ACEOF |
30de3e8e | 17144 | |
2eebf3c7 AS |
17145 | fi |
17146 | ||
e533e972 AJ |
17147 | { echo "$as_me:$LINENO: checking for -lhal soname" >&5 |
17148 | echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; } | |
17149 | if test "${ac_cv_lib_soname_hal+set}" = set; then | |
67e8dc68 AJ |
17150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17151 | else | |
17152 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17153 | LIBS="-lhal $LIBS" |
67e8dc68 | 17154 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
17155 | /* confdefs.h. */ |
17156 | _ACEOF | |
17157 | cat confdefs.h >>conftest.$ac_ext | |
17158 | cat >>conftest.$ac_ext <<_ACEOF | |
17159 | /* end confdefs.h. */ | |
67e8dc68 | 17160 | |
fc6ffb29 AJ |
17161 | /* Override any GCC internal prototype to avoid an error. |
17162 | Use char because int might match the return type of a GCC | |
17163 | builtin and then its argument prototype would still apply. */ | |
67e8dc68 AJ |
17164 | #ifdef __cplusplus |
17165 | extern "C" | |
17166 | #endif | |
e533e972 | 17167 | char libhal_ctx_new (); |
67e8dc68 AJ |
17168 | int |
17169 | main () | |
17170 | { | |
e533e972 | 17171 | return libhal_ctx_new (); |
67e8dc68 AJ |
17172 | ; |
17173 | return 0; | |
17174 | } | |
17175 | _ACEOF | |
17176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17177 | if { (ac_try="$ac_link" |
17178 | case "(($ac_try" in | |
17179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17180 | *) ac_try_echo=$ac_try;; | |
17181 | esac | |
17182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17183 | (eval "$ac_link") 2>conftest.er1 | |
67e8dc68 | 17184 | ac_status=$? |
875927f6 AJ |
17185 | grep -v '^ *+' conftest.er1 >conftest.err |
17186 | rm -f conftest.er1 | |
17187 | cat conftest.err >&5 | |
67e8dc68 AJ |
17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17189 | (exit $ac_status); } && | |
0ebeb530 JW |
17190 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17191 | { (case "(($ac_try" in | |
17192 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17193 | *) ac_try_echo=$ac_try;; | |
17194 | esac | |
17195 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17196 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17197 | ac_status=$? |
17198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17199 | (exit $ac_status); }; } && | |
17200 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17201 | { (case "(($ac_try" in |
17202 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17203 | *) ac_try_echo=$ac_try;; | |
17204 | esac | |
17205 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17206 | (eval "$ac_try") 2>&5 | |
67e8dc68 AJ |
17207 | ac_status=$? |
17208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17209 | (exit $ac_status); }; }; then | |
bdbffd97 | 17210 | case "$LIBEXT" in |
e533e972 AJ |
17211 | dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep libhal\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17212 | so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17213 | esac |
e533e972 | 17214 | if test "x$ac_cv_lib_soname_hal" = "x" |
67e8dc68 | 17215 | then |
e533e972 | 17216 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
67e8dc68 AJ |
17217 | fi |
17218 | else | |
17219 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17220 | sed 's/^/| /' conftest.$ac_ext >&5 |
17221 | ||
e533e972 | 17222 | ac_cv_lib_soname_hal="libhal.$LIBEXT" |
67e8dc68 | 17223 | fi |
fc6ffb29 | 17224 | |
0ebeb530 | 17225 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17226 | conftest$ac_exeext conftest.$ac_ext |
67e8dc68 AJ |
17227 | LIBS=$ac_get_soname_save_LIBS |
17228 | fi | |
e533e972 AJ |
17229 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5 |
17230 | echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; } | |
17231 | if test "${ac_cv_lib_soname_hal+set}" = set; then | |
30de3e8e | 17232 | |
67e8dc68 | 17233 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17234 | #define SONAME_LIBHAL "$ac_cv_lib_soname_hal" |
67e8dc68 | 17235 | _ACEOF |
30de3e8e | 17236 | |
67e8dc68 AJ |
17237 | fi |
17238 | ||
e533e972 AJ |
17239 | { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5 |
17240 | echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; } | |
17241 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then | |
c7c9f939 MM |
17242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17243 | else | |
17244 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17245 | LIBS="-ltxc_dxtn $LIBS" |
c7c9f939 MM |
17246 | cat >conftest.$ac_ext <<_ACEOF |
17247 | /* confdefs.h. */ | |
17248 | _ACEOF | |
17249 | cat confdefs.h >>conftest.$ac_ext | |
17250 | cat >>conftest.$ac_ext <<_ACEOF | |
17251 | /* end confdefs.h. */ | |
17252 | ||
fc6ffb29 AJ |
17253 | /* Override any GCC internal prototype to avoid an error. |
17254 | Use char because int might match the return type of a GCC | |
17255 | builtin and then its argument prototype would still apply. */ | |
c7c9f939 MM |
17256 | #ifdef __cplusplus |
17257 | extern "C" | |
17258 | #endif | |
e533e972 | 17259 | char fetch_2d_texel_rgba_dxt1 (); |
c7c9f939 MM |
17260 | int |
17261 | main () | |
17262 | { | |
e533e972 | 17263 | return fetch_2d_texel_rgba_dxt1 (); |
c7c9f939 MM |
17264 | ; |
17265 | return 0; | |
17266 | } | |
17267 | _ACEOF | |
17268 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17269 | if { (ac_try="$ac_link" |
17270 | case "(($ac_try" in | |
17271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17272 | *) ac_try_echo=$ac_try;; | |
17273 | esac | |
17274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17275 | (eval "$ac_link") 2>conftest.er1 | |
c7c9f939 MM |
17276 | ac_status=$? |
17277 | grep -v '^ *+' conftest.er1 >conftest.err | |
17278 | rm -f conftest.er1 | |
17279 | cat conftest.err >&5 | |
17280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17281 | (exit $ac_status); } && | |
0ebeb530 JW |
17282 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17283 | { (case "(($ac_try" in | |
17284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17285 | *) ac_try_echo=$ac_try;; | |
17286 | esac | |
17287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17288 | (eval "$ac_try") 2>&5 | |
c7c9f939 MM |
17289 | ac_status=$? |
17290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17291 | (exit $ac_status); }; } && | |
17292 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17293 | { (case "(($ac_try" in |
17294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17295 | *) ac_try_echo=$ac_try;; | |
17296 | esac | |
17297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17298 | (eval "$ac_try") 2>&5 | |
c7c9f939 MM |
17299 | ac_status=$? |
17300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17301 | (exit $ac_status); }; }; then | |
bdbffd97 | 17302 | case "$LIBEXT" in |
e533e972 AJ |
17303 | dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17304 | so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17305 | esac |
e533e972 | 17306 | if test "x$ac_cv_lib_soname_txc_dxtn" = "x" |
c7c9f939 | 17307 | then |
e533e972 | 17308 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
c7c9f939 MM |
17309 | fi |
17310 | else | |
17311 | echo "$as_me: failed program was:" >&5 | |
17312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17313 | ||
e533e972 | 17314 | ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT" |
c7c9f939 | 17315 | fi |
fc6ffb29 | 17316 | |
0ebeb530 | 17317 | rm -f core conftest.err conftest.$ac_objext \ |
c7c9f939 MM |
17318 | conftest$ac_exeext conftest.$ac_ext |
17319 | LIBS=$ac_get_soname_save_LIBS | |
17320 | fi | |
e533e972 AJ |
17321 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5 |
17322 | echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; } | |
17323 | if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then | |
30de3e8e | 17324 | |
c7c9f939 | 17325 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17326 | #define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn" |
c7c9f939 | 17327 | _ACEOF |
30de3e8e | 17328 | |
c7c9f939 MM |
17329 | fi |
17330 | ||
e533e972 AJ |
17331 | { echo "$as_me:$LINENO: checking for -lcups soname" >&5 |
17332 | echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; } | |
17333 | if test "${ac_cv_lib_soname_cups+set}" = set; then | |
67e8dc68 AJ |
17334 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17335 | else | |
17336 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17337 | LIBS="-lcups $LIBS" |
67e8dc68 | 17338 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
17339 | /* confdefs.h. */ |
17340 | _ACEOF | |
17341 | cat confdefs.h >>conftest.$ac_ext | |
17342 | cat >>conftest.$ac_ext <<_ACEOF | |
17343 | /* end confdefs.h. */ | |
67e8dc68 | 17344 | |
fc6ffb29 AJ |
17345 | /* Override any GCC internal prototype to avoid an error. |
17346 | Use char because int might match the return type of a GCC | |
17347 | builtin and then its argument prototype would still apply. */ | |
67e8dc68 AJ |
17348 | #ifdef __cplusplus |
17349 | extern "C" | |
17350 | #endif | |
e533e972 | 17351 | char cupsGetDefault (); |
67e8dc68 AJ |
17352 | int |
17353 | main () | |
17354 | { | |
e533e972 | 17355 | return cupsGetDefault (); |
67e8dc68 AJ |
17356 | ; |
17357 | return 0; | |
17358 | } | |
17359 | _ACEOF | |
17360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17361 | if { (ac_try="$ac_link" |
17362 | case "(($ac_try" in | |
17363 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17364 | *) ac_try_echo=$ac_try;; | |
17365 | esac | |
17366 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17367 | (eval "$ac_link") 2>conftest.er1 | |
67e8dc68 | 17368 | ac_status=$? |
875927f6 AJ |
17369 | grep -v '^ *+' conftest.er1 >conftest.err |
17370 | rm -f conftest.er1 | |
17371 | cat conftest.err >&5 | |
67e8dc68 AJ |
17372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17373 | (exit $ac_status); } && | |
0ebeb530 JW |
17374 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17375 | { (case "(($ac_try" in | |
17376 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17377 | *) ac_try_echo=$ac_try;; | |
17378 | esac | |
17379 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17380 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17381 | ac_status=$? |
17382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17383 | (exit $ac_status); }; } && | |
17384 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17385 | { (case "(($ac_try" in |
17386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17387 | *) ac_try_echo=$ac_try;; | |
17388 | esac | |
17389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17390 | (eval "$ac_try") 2>&5 | |
67e8dc68 AJ |
17391 | ac_status=$? |
17392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17393 | (exit $ac_status); }; }; then | |
bdbffd97 | 17394 | case "$LIBEXT" in |
e533e972 AJ |
17395 | dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep libcups\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17396 | so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17397 | esac |
e533e972 | 17398 | if test "x$ac_cv_lib_soname_cups" = "x" |
67e8dc68 | 17399 | then |
e533e972 | 17400 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
67e8dc68 AJ |
17401 | fi |
17402 | else | |
17403 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17404 | sed 's/^/| /' conftest.$ac_ext >&5 |
17405 | ||
e533e972 | 17406 | ac_cv_lib_soname_cups="libcups.$LIBEXT" |
67e8dc68 | 17407 | fi |
fc6ffb29 | 17408 | |
0ebeb530 | 17409 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17410 | conftest$ac_exeext conftest.$ac_ext |
67e8dc68 AJ |
17411 | LIBS=$ac_get_soname_save_LIBS |
17412 | fi | |
e533e972 AJ |
17413 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5 |
17414 | echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; } | |
17415 | if test "${ac_cv_lib_soname_cups+set}" = set; then | |
30de3e8e | 17416 | |
67e8dc68 | 17417 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17418 | #define SONAME_LIBCUPS "$ac_cv_lib_soname_cups" |
67e8dc68 | 17419 | _ACEOF |
30de3e8e | 17420 | |
67e8dc68 | 17421 | fi |
f061f767 | 17422 | |
e533e972 AJ |
17423 | { echo "$as_me:$LINENO: checking for -ljack soname" >&5 |
17424 | echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; } | |
17425 | if test "${ac_cv_lib_soname_jack+set}" = set; then | |
56ab2b3e LU |
17426 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17427 | else | |
17428 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17429 | LIBS="-ljack $LIBS" |
56ab2b3e | 17430 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
17431 | /* confdefs.h. */ |
17432 | _ACEOF | |
17433 | cat confdefs.h >>conftest.$ac_ext | |
17434 | cat >>conftest.$ac_ext <<_ACEOF | |
17435 | /* end confdefs.h. */ | |
56ab2b3e | 17436 | |
fc6ffb29 AJ |
17437 | /* Override any GCC internal prototype to avoid an error. |
17438 | Use char because int might match the return type of a GCC | |
17439 | builtin and then its argument prototype would still apply. */ | |
56ab2b3e LU |
17440 | #ifdef __cplusplus |
17441 | extern "C" | |
17442 | #endif | |
e533e972 | 17443 | char jack_client_new (); |
56ab2b3e LU |
17444 | int |
17445 | main () | |
17446 | { | |
e533e972 | 17447 | return jack_client_new (); |
56ab2b3e LU |
17448 | ; |
17449 | return 0; | |
17450 | } | |
17451 | _ACEOF | |
17452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17453 | if { (ac_try="$ac_link" |
17454 | case "(($ac_try" in | |
17455 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17456 | *) ac_try_echo=$ac_try;; | |
17457 | esac | |
17458 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17459 | (eval "$ac_link") 2>conftest.er1 | |
56ab2b3e | 17460 | ac_status=$? |
875927f6 AJ |
17461 | grep -v '^ *+' conftest.er1 >conftest.err |
17462 | rm -f conftest.er1 | |
17463 | cat conftest.err >&5 | |
56ab2b3e LU |
17464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17465 | (exit $ac_status); } && | |
0ebeb530 JW |
17466 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17467 | { (case "(($ac_try" in | |
17468 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17469 | *) ac_try_echo=$ac_try;; | |
17470 | esac | |
17471 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17472 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17473 | ac_status=$? |
17474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17475 | (exit $ac_status); }; } && | |
17476 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17477 | { (case "(($ac_try" in |
17478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17479 | *) ac_try_echo=$ac_try;; | |
17480 | esac | |
17481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17482 | (eval "$ac_try") 2>&5 | |
56ab2b3e LU |
17483 | ac_status=$? |
17484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17485 | (exit $ac_status); }; }; then | |
bdbffd97 | 17486 | case "$LIBEXT" in |
e533e972 AJ |
17487 | dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep libjack\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjack\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17488 | so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17489 | esac |
e533e972 | 17490 | if test "x$ac_cv_lib_soname_jack" = "x" |
56ab2b3e | 17491 | then |
e533e972 | 17492 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
56ab2b3e LU |
17493 | fi |
17494 | else | |
17495 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17496 | sed 's/^/| /' conftest.$ac_ext >&5 |
17497 | ||
e533e972 | 17498 | ac_cv_lib_soname_jack="libjack.$LIBEXT" |
56ab2b3e | 17499 | fi |
fc6ffb29 | 17500 | |
0ebeb530 | 17501 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17502 | conftest$ac_exeext conftest.$ac_ext |
56ab2b3e LU |
17503 | LIBS=$ac_get_soname_save_LIBS |
17504 | fi | |
e533e972 AJ |
17505 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5 |
17506 | echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; } | |
17507 | if test "${ac_cv_lib_soname_jack+set}" = set; then | |
30de3e8e | 17508 | |
56ab2b3e | 17509 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17510 | #define SONAME_LIBJACK "$ac_cv_lib_soname_jack" |
56ab2b3e | 17511 | _ACEOF |
30de3e8e | 17512 | |
00068989 AJ |
17513 | fi |
17514 | ||
e533e972 AJ |
17515 | { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5 |
17516 | echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; } | |
17517 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then | |
00068989 AJ |
17518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17519 | else | |
17520 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17521 | LIBS="-lfontconfig $LIBS" |
00068989 AJ |
17522 | cat >conftest.$ac_ext <<_ACEOF |
17523 | /* confdefs.h. */ | |
17524 | _ACEOF | |
17525 | cat confdefs.h >>conftest.$ac_ext | |
17526 | cat >>conftest.$ac_ext <<_ACEOF | |
17527 | /* end confdefs.h. */ | |
17528 | ||
fc6ffb29 AJ |
17529 | /* Override any GCC internal prototype to avoid an error. |
17530 | Use char because int might match the return type of a GCC | |
17531 | builtin and then its argument prototype would still apply. */ | |
00068989 AJ |
17532 | #ifdef __cplusplus |
17533 | extern "C" | |
17534 | #endif | |
e533e972 | 17535 | char FcInit (); |
00068989 AJ |
17536 | int |
17537 | main () | |
17538 | { | |
e533e972 | 17539 | return FcInit (); |
00068989 AJ |
17540 | ; |
17541 | return 0; | |
17542 | } | |
17543 | _ACEOF | |
17544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17545 | if { (ac_try="$ac_link" |
17546 | case "(($ac_try" in | |
17547 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17548 | *) ac_try_echo=$ac_try;; | |
17549 | esac | |
17550 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17551 | (eval "$ac_link") 2>conftest.er1 | |
00068989 AJ |
17552 | ac_status=$? |
17553 | grep -v '^ *+' conftest.er1 >conftest.err | |
17554 | rm -f conftest.er1 | |
17555 | cat conftest.err >&5 | |
17556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17557 | (exit $ac_status); } && | |
0ebeb530 JW |
17558 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17559 | { (case "(($ac_try" in | |
17560 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17561 | *) ac_try_echo=$ac_try;; | |
17562 | esac | |
17563 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17564 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
17565 | ac_status=$? |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17567 | (exit $ac_status); }; } && | |
17568 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17569 | { (case "(($ac_try" in |
17570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17571 | *) ac_try_echo=$ac_try;; | |
17572 | esac | |
17573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17574 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
17575 | ac_status=$? |
17576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17577 | (exit $ac_status); }; }; then | |
bdbffd97 | 17578 | case "$LIBEXT" in |
e533e972 AJ |
17579 | dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep libfontconfig\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17580 | so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17581 | esac |
e533e972 | 17582 | if test "x$ac_cv_lib_soname_fontconfig" = "x" |
00068989 | 17583 | then |
e533e972 | 17584 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
00068989 AJ |
17585 | fi |
17586 | else | |
17587 | echo "$as_me: failed program was:" >&5 | |
17588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17589 | ||
e533e972 | 17590 | ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT" |
00068989 | 17591 | fi |
fc6ffb29 | 17592 | |
0ebeb530 | 17593 | rm -f core conftest.err conftest.$ac_objext \ |
00068989 AJ |
17594 | conftest$ac_exeext conftest.$ac_ext |
17595 | LIBS=$ac_get_soname_save_LIBS | |
17596 | fi | |
e533e972 AJ |
17597 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5 |
17598 | echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; } | |
17599 | if test "${ac_cv_lib_soname_fontconfig+set}" = set; then | |
00068989 AJ |
17600 | |
17601 | cat >>confdefs.h <<_ACEOF | |
e533e972 | 17602 | #define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig" |
00068989 AJ |
17603 | _ACEOF |
17604 | ||
17605 | fi | |
17606 | ||
e533e972 AJ |
17607 | { echo "$as_me:$LINENO: checking for -lssl soname" >&5 |
17608 | echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; } | |
17609 | if test "${ac_cv_lib_soname_ssl+set}" = set; then | |
00068989 AJ |
17610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17611 | else | |
17612 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17613 | LIBS="-lssl $LIBS" |
00068989 AJ |
17614 | cat >conftest.$ac_ext <<_ACEOF |
17615 | /* confdefs.h. */ | |
17616 | _ACEOF | |
17617 | cat confdefs.h >>conftest.$ac_ext | |
17618 | cat >>conftest.$ac_ext <<_ACEOF | |
17619 | /* end confdefs.h. */ | |
17620 | ||
fc6ffb29 AJ |
17621 | /* Override any GCC internal prototype to avoid an error. |
17622 | Use char because int might match the return type of a GCC | |
17623 | builtin and then its argument prototype would still apply. */ | |
00068989 AJ |
17624 | #ifdef __cplusplus |
17625 | extern "C" | |
17626 | #endif | |
e533e972 | 17627 | char SSL_library_init (); |
00068989 AJ |
17628 | int |
17629 | main () | |
17630 | { | |
e533e972 | 17631 | return SSL_library_init (); |
00068989 AJ |
17632 | ; |
17633 | return 0; | |
17634 | } | |
17635 | _ACEOF | |
17636 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17637 | if { (ac_try="$ac_link" |
17638 | case "(($ac_try" in | |
17639 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17640 | *) ac_try_echo=$ac_try;; | |
17641 | esac | |
17642 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17643 | (eval "$ac_link") 2>conftest.er1 | |
00068989 AJ |
17644 | ac_status=$? |
17645 | grep -v '^ *+' conftest.er1 >conftest.err | |
17646 | rm -f conftest.er1 | |
17647 | cat conftest.err >&5 | |
17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17649 | (exit $ac_status); } && | |
0ebeb530 JW |
17650 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17651 | { (case "(($ac_try" in | |
17652 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17653 | *) ac_try_echo=$ac_try;; | |
17654 | esac | |
17655 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17656 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
17657 | ac_status=$? |
17658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17659 | (exit $ac_status); }; } && | |
17660 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17661 | { (case "(($ac_try" in |
17662 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17663 | *) ac_try_echo=$ac_try;; | |
17664 | esac | |
17665 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17666 | (eval "$ac_try") 2>&5 | |
00068989 AJ |
17667 | ac_status=$? |
17668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17669 | (exit $ac_status); }; }; then | |
bdbffd97 | 17670 | case "$LIBEXT" in |
e533e972 AJ |
17671 | dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep libssl\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17672 | so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17673 | esac |
e533e972 | 17674 | if test "x$ac_cv_lib_soname_ssl" = "x" |
00068989 | 17675 | then |
e533e972 | 17676 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
00068989 AJ |
17677 | fi |
17678 | else | |
17679 | echo "$as_me: failed program was:" >&5 | |
17680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17681 | ||
e533e972 | 17682 | ac_cv_lib_soname_ssl="libssl.$LIBEXT" |
00068989 | 17683 | fi |
fc6ffb29 | 17684 | |
0ebeb530 | 17685 | rm -f core conftest.err conftest.$ac_objext \ |
00068989 AJ |
17686 | conftest$ac_exeext conftest.$ac_ext |
17687 | LIBS=$ac_get_soname_save_LIBS | |
17688 | fi | |
e533e972 AJ |
17689 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5 |
17690 | echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; } | |
17691 | if test "${ac_cv_lib_soname_ssl+set}" = set; then | |
00068989 AJ |
17692 | |
17693 | cat >>confdefs.h <<_ACEOF | |
e533e972 | 17694 | #define SONAME_LIBSSL "$ac_cv_lib_soname_ssl" |
00068989 AJ |
17695 | _ACEOF |
17696 | ||
56ab2b3e LU |
17697 | fi |
17698 | ||
e533e972 AJ |
17699 | { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5 |
17700 | echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; } | |
17701 | if test "${ac_cv_lib_soname_crypto+set}" = set; then | |
eac96b56 CC |
17702 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17703 | else | |
17704 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17705 | LIBS="-lcrypto $LIBS" |
eac96b56 CC |
17706 | cat >conftest.$ac_ext <<_ACEOF |
17707 | /* confdefs.h. */ | |
17708 | _ACEOF | |
17709 | cat confdefs.h >>conftest.$ac_ext | |
17710 | cat >>conftest.$ac_ext <<_ACEOF | |
17711 | /* end confdefs.h. */ | |
17712 | ||
fc6ffb29 AJ |
17713 | /* Override any GCC internal prototype to avoid an error. |
17714 | Use char because int might match the return type of a GCC | |
17715 | builtin and then its argument prototype would still apply. */ | |
eac96b56 CC |
17716 | #ifdef __cplusplus |
17717 | extern "C" | |
17718 | #endif | |
e533e972 | 17719 | char BIO_new_socket (); |
eac96b56 CC |
17720 | int |
17721 | main () | |
17722 | { | |
e533e972 | 17723 | return BIO_new_socket (); |
eac96b56 CC |
17724 | ; |
17725 | return 0; | |
17726 | } | |
17727 | _ACEOF | |
17728 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17729 | if { (ac_try="$ac_link" |
17730 | case "(($ac_try" in | |
17731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17732 | *) ac_try_echo=$ac_try;; | |
17733 | esac | |
17734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17735 | (eval "$ac_link") 2>conftest.er1 | |
eac96b56 CC |
17736 | ac_status=$? |
17737 | grep -v '^ *+' conftest.er1 >conftest.err | |
17738 | rm -f conftest.er1 | |
17739 | cat conftest.err >&5 | |
17740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17741 | (exit $ac_status); } && | |
0ebeb530 JW |
17742 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17743 | { (case "(($ac_try" in | |
17744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17745 | *) ac_try_echo=$ac_try;; | |
17746 | esac | |
17747 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17748 | (eval "$ac_try") 2>&5 | |
eac96b56 CC |
17749 | ac_status=$? |
17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17751 | (exit $ac_status); }; } && | |
17752 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17753 | { (case "(($ac_try" in |
17754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17755 | *) ac_try_echo=$ac_try;; | |
17756 | esac | |
17757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17758 | (eval "$ac_try") 2>&5 | |
eac96b56 CC |
17759 | ac_status=$? |
17760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17761 | (exit $ac_status); }; }; then | |
bdbffd97 | 17762 | case "$LIBEXT" in |
e533e972 AJ |
17763 | dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep libcrypto\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17764 | so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17765 | esac |
e533e972 | 17766 | if test "x$ac_cv_lib_soname_crypto" = "x" |
eac96b56 | 17767 | then |
e533e972 | 17768 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
eac96b56 CC |
17769 | fi |
17770 | else | |
17771 | echo "$as_me: failed program was:" >&5 | |
17772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17773 | ||
e533e972 | 17774 | ac_cv_lib_soname_crypto="libcrypto.$LIBEXT" |
eac96b56 | 17775 | fi |
fc6ffb29 | 17776 | |
0ebeb530 | 17777 | rm -f core conftest.err conftest.$ac_objext \ |
eac96b56 CC |
17778 | conftest$ac_exeext conftest.$ac_ext |
17779 | LIBS=$ac_get_soname_save_LIBS | |
17780 | fi | |
e533e972 AJ |
17781 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5 |
17782 | echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; } | |
17783 | if test "${ac_cv_lib_soname_crypto+set}" = set; then | |
30de3e8e | 17784 | |
eac96b56 | 17785 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17786 | #define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto" |
eac96b56 | 17787 | _ACEOF |
30de3e8e | 17788 | |
eac96b56 CC |
17789 | fi |
17790 | ||
e533e972 AJ |
17791 | { echo "$as_me:$LINENO: checking for -lncurses soname" >&5 |
17792 | echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; } | |
17793 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then | |
f061f767 MM |
17794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17795 | else | |
17796 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17797 | LIBS="-lncurses $LIBS" |
f061f767 | 17798 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
17799 | /* confdefs.h. */ |
17800 | _ACEOF | |
17801 | cat confdefs.h >>conftest.$ac_ext | |
17802 | cat >>conftest.$ac_ext <<_ACEOF | |
17803 | /* end confdefs.h. */ | |
f061f767 | 17804 | |
fc6ffb29 AJ |
17805 | /* Override any GCC internal prototype to avoid an error. |
17806 | Use char because int might match the return type of a GCC | |
17807 | builtin and then its argument prototype would still apply. */ | |
f061f767 MM |
17808 | #ifdef __cplusplus |
17809 | extern "C" | |
17810 | #endif | |
e533e972 | 17811 | char waddch (); |
f061f767 MM |
17812 | int |
17813 | main () | |
17814 | { | |
e533e972 | 17815 | return waddch (); |
f061f767 MM |
17816 | ; |
17817 | return 0; | |
17818 | } | |
17819 | _ACEOF | |
17820 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17821 | if { (ac_try="$ac_link" |
17822 | case "(($ac_try" in | |
17823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17824 | *) ac_try_echo=$ac_try;; | |
17825 | esac | |
17826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17827 | (eval "$ac_link") 2>conftest.er1 | |
f061f767 | 17828 | ac_status=$? |
875927f6 AJ |
17829 | grep -v '^ *+' conftest.er1 >conftest.err |
17830 | rm -f conftest.er1 | |
17831 | cat conftest.err >&5 | |
f061f767 MM |
17832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17833 | (exit $ac_status); } && | |
0ebeb530 JW |
17834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17835 | { (case "(($ac_try" in | |
17836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17837 | *) ac_try_echo=$ac_try;; | |
17838 | esac | |
17839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17840 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17841 | ac_status=$? |
17842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17843 | (exit $ac_status); }; } && | |
17844 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17845 | { (case "(($ac_try" in |
17846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17847 | *) ac_try_echo=$ac_try;; | |
17848 | esac | |
17849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17850 | (eval "$ac_try") 2>&5 | |
f061f767 MM |
17851 | ac_status=$? |
17852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17853 | (exit $ac_status); }; }; then | |
bdbffd97 | 17854 | case "$LIBEXT" in |
e533e972 AJ |
17855 | dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep libncurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17856 | so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17857 | esac |
e533e972 | 17858 | if test "x$ac_cv_lib_soname_ncurses" = "x" |
f061f767 | 17859 | then |
e533e972 | 17860 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
f061f767 MM |
17861 | fi |
17862 | else | |
17863 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17864 | sed 's/^/| /' conftest.$ac_ext >&5 |
17865 | ||
e533e972 | 17866 | ac_cv_lib_soname_ncurses="libncurses.$LIBEXT" |
f061f767 | 17867 | fi |
fc6ffb29 | 17868 | |
0ebeb530 | 17869 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17870 | conftest$ac_exeext conftest.$ac_ext |
f061f767 MM |
17871 | LIBS=$ac_get_soname_save_LIBS |
17872 | fi | |
e533e972 AJ |
17873 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5 |
17874 | echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; } | |
17875 | if test "${ac_cv_lib_soname_ncurses+set}" = set; then | |
30de3e8e | 17876 | |
f061f767 | 17877 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17878 | #define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses" |
f061f767 | 17879 | _ACEOF |
30de3e8e | 17880 | |
f061f767 | 17881 | fi |
4691b185 | 17882 | |
e533e972 AJ |
17883 | { echo "$as_me:$LINENO: checking for -lcurses soname" >&5 |
17884 | echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; } | |
17885 | if test "${ac_cv_lib_soname_curses+set}" = set; then | |
4691b185 CM |
17886 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17887 | else | |
17888 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17889 | LIBS="-lcurses $LIBS" |
4691b185 | 17890 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
17891 | /* confdefs.h. */ |
17892 | _ACEOF | |
17893 | cat confdefs.h >>conftest.$ac_ext | |
17894 | cat >>conftest.$ac_ext <<_ACEOF | |
17895 | /* end confdefs.h. */ | |
4691b185 | 17896 | |
fc6ffb29 AJ |
17897 | /* Override any GCC internal prototype to avoid an error. |
17898 | Use char because int might match the return type of a GCC | |
17899 | builtin and then its argument prototype would still apply. */ | |
4691b185 CM |
17900 | #ifdef __cplusplus |
17901 | extern "C" | |
17902 | #endif | |
e533e972 | 17903 | char waddch (); |
4691b185 CM |
17904 | int |
17905 | main () | |
17906 | { | |
e533e972 | 17907 | return waddch (); |
4691b185 CM |
17908 | ; |
17909 | return 0; | |
17910 | } | |
17911 | _ACEOF | |
17912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
17913 | if { (ac_try="$ac_link" |
17914 | case "(($ac_try" in | |
17915 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17916 | *) ac_try_echo=$ac_try;; | |
17917 | esac | |
17918 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17919 | (eval "$ac_link") 2>conftest.er1 | |
4691b185 | 17920 | ac_status=$? |
875927f6 AJ |
17921 | grep -v '^ *+' conftest.er1 >conftest.err |
17922 | rm -f conftest.er1 | |
17923 | cat conftest.err >&5 | |
4691b185 CM |
17924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17925 | (exit $ac_status); } && | |
0ebeb530 JW |
17926 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17927 | { (case "(($ac_try" in | |
17928 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17929 | *) ac_try_echo=$ac_try;; | |
17930 | esac | |
17931 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17932 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
17933 | ac_status=$? |
17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17935 | (exit $ac_status); }; } && | |
17936 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
17937 | { (case "(($ac_try" in |
17938 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
17939 | *) ac_try_echo=$ac_try;; | |
17940 | esac | |
17941 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
17942 | (eval "$ac_try") 2>&5 | |
4691b185 CM |
17943 | ac_status=$? |
17944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17945 | (exit $ac_status); }; }; then | |
bdbffd97 | 17946 | case "$LIBEXT" in |
e533e972 AJ |
17947 | dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep libcurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
17948 | so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 17949 | esac |
e533e972 | 17950 | if test "x$ac_cv_lib_soname_curses" = "x" |
4691b185 | 17951 | then |
e533e972 | 17952 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
4691b185 CM |
17953 | fi |
17954 | else | |
17955 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
17956 | sed 's/^/| /' conftest.$ac_ext >&5 |
17957 | ||
e533e972 | 17958 | ac_cv_lib_soname_curses="libcurses.$LIBEXT" |
4691b185 | 17959 | fi |
fc6ffb29 | 17960 | |
0ebeb530 | 17961 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 17962 | conftest$ac_exeext conftest.$ac_ext |
4691b185 CM |
17963 | LIBS=$ac_get_soname_save_LIBS |
17964 | fi | |
e533e972 AJ |
17965 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5 |
17966 | echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; } | |
17967 | if test "${ac_cv_lib_soname_curses+set}" = set; then | |
30de3e8e | 17968 | |
4691b185 | 17969 | cat >>confdefs.h <<_ACEOF |
e533e972 | 17970 | #define SONAME_LIBCURSES "$ac_cv_lib_soname_curses" |
4691b185 | 17971 | _ACEOF |
30de3e8e | 17972 | |
4691b185 | 17973 | fi |
852c7ae4 | 17974 | |
e533e972 AJ |
17975 | { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5 |
17976 | echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; } | |
17977 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then | |
6e12807b HD |
17978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17979 | else | |
17980 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 17981 | LIBS="-ljpeg $LIBS" |
6e12807b | 17982 | cat >conftest.$ac_ext <<_ACEOF |
6e12807b HD |
17983 | /* confdefs.h. */ |
17984 | _ACEOF | |
17985 | cat confdefs.h >>conftest.$ac_ext | |
17986 | cat >>conftest.$ac_ext <<_ACEOF | |
17987 | /* end confdefs.h. */ | |
17988 | ||
fc6ffb29 AJ |
17989 | /* Override any GCC internal prototype to avoid an error. |
17990 | Use char because int might match the return type of a GCC | |
17991 | builtin and then its argument prototype would still apply. */ | |
6e12807b HD |
17992 | #ifdef __cplusplus |
17993 | extern "C" | |
17994 | #endif | |
e533e972 | 17995 | char jpeg_start_decompress (); |
6e12807b HD |
17996 | int |
17997 | main () | |
17998 | { | |
e533e972 | 17999 | return jpeg_start_decompress (); |
6e12807b HD |
18000 | ; |
18001 | return 0; | |
18002 | } | |
18003 | _ACEOF | |
18004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18005 | if { (ac_try="$ac_link" |
18006 | case "(($ac_try" in | |
18007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18008 | *) ac_try_echo=$ac_try;; | |
18009 | esac | |
18010 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18011 | (eval "$ac_link") 2>conftest.er1 | |
6e12807b | 18012 | ac_status=$? |
875927f6 AJ |
18013 | grep -v '^ *+' conftest.er1 >conftest.err |
18014 | rm -f conftest.er1 | |
18015 | cat conftest.err >&5 | |
6e12807b HD |
18016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18017 | (exit $ac_status); } && | |
0ebeb530 JW |
18018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18019 | { (case "(($ac_try" in | |
18020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18021 | *) ac_try_echo=$ac_try;; | |
18022 | esac | |
18023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18024 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18025 | ac_status=$? |
18026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18027 | (exit $ac_status); }; } && | |
18028 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18029 | { (case "(($ac_try" in |
18030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18031 | *) ac_try_echo=$ac_try;; | |
18032 | esac | |
18033 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18034 | (eval "$ac_try") 2>&5 | |
6e12807b HD |
18035 | ac_status=$? |
18036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18037 | (exit $ac_status); }; }; then | |
bdbffd97 | 18038 | case "$LIBEXT" in |
e533e972 AJ |
18039 | dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep libjpeg\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
18040 | so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 18041 | esac |
e533e972 | 18042 | if test "x$ac_cv_lib_soname_jpeg" = "x" |
6e12807b | 18043 | then |
e533e972 | 18044 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
6e12807b HD |
18045 | fi |
18046 | else | |
18047 | echo "$as_me: failed program was:" >&5 | |
18048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18049 | ||
e533e972 | 18050 | ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT" |
6e12807b | 18051 | fi |
fc6ffb29 | 18052 | |
0ebeb530 | 18053 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18054 | conftest$ac_exeext conftest.$ac_ext |
6e12807b HD |
18055 | LIBS=$ac_get_soname_save_LIBS |
18056 | fi | |
e533e972 AJ |
18057 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5 |
18058 | echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; } | |
18059 | if test "${ac_cv_lib_soname_jpeg+set}" = set; then | |
30de3e8e | 18060 | |
6e12807b | 18061 | cat >>confdefs.h <<_ACEOF |
e533e972 | 18062 | #define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg" |
6e12807b | 18063 | _ACEOF |
30de3e8e | 18064 | |
852c7ae4 | 18065 | fi |
9557d1bf | 18066 | |
e533e972 AJ |
18067 | { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5 |
18068 | echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; } | |
18069 | if test "${ac_cv_lib_soname_capi20+set}" = set; then | |
9557d1bf MM |
18070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18071 | else | |
18072 | ac_get_soname_save_LIBS=$LIBS | |
e533e972 | 18073 | LIBS="-lcapi20 $LIBS" |
9557d1bf | 18074 | cat >conftest.$ac_ext <<_ACEOF |
9557d1bf MM |
18075 | /* confdefs.h. */ |
18076 | _ACEOF | |
18077 | cat confdefs.h >>conftest.$ac_ext | |
18078 | cat >>conftest.$ac_ext <<_ACEOF | |
18079 | /* end confdefs.h. */ | |
18080 | ||
fc6ffb29 AJ |
18081 | /* Override any GCC internal prototype to avoid an error. |
18082 | Use char because int might match the return type of a GCC | |
18083 | builtin and then its argument prototype would still apply. */ | |
9557d1bf MM |
18084 | #ifdef __cplusplus |
18085 | extern "C" | |
18086 | #endif | |
e533e972 | 18087 | char capi20_isinstalled (); |
9557d1bf MM |
18088 | int |
18089 | main () | |
18090 | { | |
e533e972 | 18091 | return capi20_isinstalled (); |
9557d1bf MM |
18092 | ; |
18093 | return 0; | |
18094 | } | |
18095 | _ACEOF | |
18096 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18097 | if { (ac_try="$ac_link" |
18098 | case "(($ac_try" in | |
18099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18100 | *) ac_try_echo=$ac_try;; | |
18101 | esac | |
18102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18103 | (eval "$ac_link") 2>conftest.er1 | |
9557d1bf | 18104 | ac_status=$? |
875927f6 AJ |
18105 | grep -v '^ *+' conftest.er1 >conftest.err |
18106 | rm -f conftest.er1 | |
18107 | cat conftest.err >&5 | |
9557d1bf MM |
18108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18109 | (exit $ac_status); } && | |
0ebeb530 JW |
18110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18111 | { (case "(($ac_try" in | |
18112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18113 | *) ac_try_echo=$ac_try;; | |
18114 | esac | |
18115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18116 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18117 | ac_status=$? |
18118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18119 | (exit $ac_status); }; } && | |
18120 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18121 | { (case "(($ac_try" in |
18122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18123 | *) ac_try_echo=$ac_try;; | |
18124 | esac | |
18125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18126 | (eval "$ac_try") 2>&5 | |
9557d1bf MM |
18127 | ac_status=$? |
18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18129 | (exit $ac_status); }; }; then | |
bdbffd97 | 18130 | case "$LIBEXT" in |
e533e972 AJ |
18131 | dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep libcapi20\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;; |
18132 | so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;; | |
bdbffd97 | 18133 | esac |
e533e972 | 18134 | if test "x$ac_cv_lib_soname_capi20" = "x" |
9557d1bf | 18135 | then |
e533e972 | 18136 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
9557d1bf MM |
18137 | fi |
18138 | else | |
18139 | echo "$as_me: failed program was:" >&5 | |
18140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18141 | ||
e533e972 | 18142 | ac_cv_lib_soname_capi20="libcapi20.$LIBEXT" |
9557d1bf | 18143 | fi |
fc6ffb29 | 18144 | |
0ebeb530 | 18145 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18146 | conftest$ac_exeext conftest.$ac_ext |
9557d1bf MM |
18147 | LIBS=$ac_get_soname_save_LIBS |
18148 | fi | |
e533e972 AJ |
18149 | { echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5 |
18150 | echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; } | |
18151 | if test "${ac_cv_lib_soname_capi20+set}" = set; then | |
30de3e8e | 18152 | |
9557d1bf | 18153 | cat >>confdefs.h <<_ACEOF |
e533e972 | 18154 | #define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20" |
9557d1bf | 18155 | _ACEOF |
30de3e8e | 18156 | |
9557d1bf MM |
18157 | fi |
18158 | ||
e533e972 AJ |
18159 | fi |
18160 | ||
18161 | ||
18162 | ||
18163 | ||
18164 | ||
18165 | ||
18166 | ||
18167 | ||
18168 | ||
18169 | ||
18170 | ||
18171 | ||
18172 | ||
18173 | ||
18174 | ||
18175 | ||
18176 | ||
18177 | ||
18178 | ||
18179 | ||
18180 | ||
18181 | ||
18182 | ||
18183 | ||
18184 | ||
18185 | ||
18186 | ||
18187 | ||
18188 | ||
18189 | ||
18190 | ||
18191 | ||
18192 | ||
18193 | ||
18194 | ||
18195 | ||
18196 | ||
18197 | ||
18198 | ||
18199 | ||
18200 | ||
18201 | ||
18202 | ||
18203 | ||
18204 | ||
18205 | ||
18206 | ||
18207 | ||
18208 | ||
18209 | ||
18210 | ||
18211 | ||
18212 | ||
18213 | ||
18214 | ||
18215 | ||
18216 | ||
18217 | ||
18218 | ||
18219 | ||
18220 | ||
18221 | ||
18222 | ||
18223 | ||
18224 | ||
18225 | ||
18226 | ||
18227 | ||
18228 | ||
e533e972 AJ |
18229 | |
18230 | ||
18231 | ||
18232 | for ac_func in \ | |
e533e972 AJ |
18233 | _pclose \ |
18234 | _popen \ | |
18235 | _snprintf \ | |
18236 | _spawnvp \ | |
18237 | _stricmp \ | |
18238 | _strnicmp \ | |
18239 | _vsnprintf \ | |
18240 | asctime_r \ | |
18241 | chsize \ | |
18242 | clone \ | |
18243 | connect \ | |
18244 | dlopen \ | |
18245 | epoll_create \ | |
18246 | ffs \ | |
18247 | finite \ | |
18248 | fork \ | |
18249 | fpclass \ | |
18250 | fstatfs \ | |
18251 | fstatvfs \ | |
18252 | ftruncate \ | |
18253 | futimes \ | |
18254 | futimesat \ | |
18255 | getaddrinfo \ | |
18256 | gethostbyname \ | |
18257 | getnameinfo \ | |
18258 | getnetbyname \ | |
18259 | getopt_long \ | |
18260 | getpagesize \ | |
18261 | getprotobyname \ | |
18262 | getprotobynumber \ | |
18263 | getpwuid \ | |
18264 | getservbyport \ | |
18265 | gettid \ | |
18266 | gettimeofday \ | |
18267 | getuid \ | |
18268 | inet_aton \ | |
18269 | inet_network \ | |
18270 | kqueue \ | |
18271 | lstat \ | |
18272 | memmove \ | |
18273 | mmap \ | |
18274 | pclose \ | |
18275 | poll \ | |
18276 | popen \ | |
18277 | prctl \ | |
18278 | pread \ | |
18279 | pwrite \ | |
18280 | readlink \ | |
18281 | rfork \ | |
18282 | sched_yield \ | |
18283 | select \ | |
18284 | sendmsg \ | |
18285 | setrlimit \ | |
18286 | settimeofday \ | |
18287 | sigaltstack \ | |
18288 | sigprocmask \ | |
18289 | snprintf \ | |
18290 | spawnvp \ | |
18291 | statfs \ | |
18292 | statvfs \ | |
18293 | strcasecmp \ | |
18294 | strerror \ | |
18295 | strncasecmp \ | |
18296 | tcgetattr \ | |
18297 | timegm \ | |
18298 | usleep \ | |
18299 | vsnprintf \ | |
18300 | wait4 \ | |
18301 | waitpid \ | |
18302 | ||
18303 | do | |
18304 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18305 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18306 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18307 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
9557d1bf MM |
18308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18309 | else | |
9557d1bf | 18310 | cat >conftest.$ac_ext <<_ACEOF |
9557d1bf MM |
18311 | /* confdefs.h. */ |
18312 | _ACEOF | |
18313 | cat confdefs.h >>conftest.$ac_ext | |
18314 | cat >>conftest.$ac_ext <<_ACEOF | |
18315 | /* end confdefs.h. */ | |
e533e972 AJ |
18316 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18318 | #define $ac_func innocuous_$ac_func | |
18319 | ||
18320 | /* System header to define __stub macros and hopefully few prototypes, | |
18321 | which can conflict with char $ac_func (); below. | |
18322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18323 | <limits.h> exists even on freestanding compilers. */ | |
18324 | ||
18325 | #ifdef __STDC__ | |
18326 | # include <limits.h> | |
18327 | #else | |
18328 | # include <assert.h> | |
18329 | #endif | |
18330 | ||
18331 | #undef $ac_func | |
9557d1bf | 18332 | |
fc6ffb29 AJ |
18333 | /* Override any GCC internal prototype to avoid an error. |
18334 | Use char because int might match the return type of a GCC | |
18335 | builtin and then its argument prototype would still apply. */ | |
9557d1bf MM |
18336 | #ifdef __cplusplus |
18337 | extern "C" | |
18338 | #endif | |
e533e972 AJ |
18339 | char $ac_func (); |
18340 | /* The GNU C library defines this for functions which it implements | |
18341 | to always fail with ENOSYS. Some functions are actually named | |
18342 | something starting with __ and the normal name is an alias. */ | |
18343 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
18344 | choke me | |
18345 | #endif | |
18346 | ||
9557d1bf MM |
18347 | int |
18348 | main () | |
18349 | { | |
e533e972 | 18350 | return $ac_func (); |
9557d1bf MM |
18351 | ; |
18352 | return 0; | |
18353 | } | |
18354 | _ACEOF | |
18355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18356 | if { (ac_try="$ac_link" |
18357 | case "(($ac_try" in | |
18358 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18359 | *) ac_try_echo=$ac_try;; | |
18360 | esac | |
18361 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18362 | (eval "$ac_link") 2>conftest.er1 | |
9557d1bf | 18363 | ac_status=$? |
875927f6 AJ |
18364 | grep -v '^ *+' conftest.er1 >conftest.err |
18365 | rm -f conftest.er1 | |
18366 | cat conftest.err >&5 | |
9557d1bf MM |
18367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18368 | (exit $ac_status); } && | |
0ebeb530 JW |
18369 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18370 | { (case "(($ac_try" in | |
18371 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18372 | *) ac_try_echo=$ac_try;; | |
18373 | esac | |
18374 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18375 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18376 | ac_status=$? |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18378 | (exit $ac_status); }; } && | |
18379 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18380 | { (case "(($ac_try" in |
18381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18382 | *) ac_try_echo=$ac_try;; | |
18383 | esac | |
18384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18385 | (eval "$ac_try") 2>&5 | |
9557d1bf MM |
18386 | ac_status=$? |
18387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18388 | (exit $ac_status); }; }; then | |
e533e972 | 18389 | eval "$as_ac_var=yes" |
9557d1bf MM |
18390 | else |
18391 | echo "$as_me: failed program was:" >&5 | |
18392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18393 | ||
e533e972 | 18394 | eval "$as_ac_var=no" |
9557d1bf | 18395 | fi |
fc6ffb29 | 18396 | |
0ebeb530 | 18397 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18398 | conftest$ac_exeext conftest.$ac_ext |
9557d1bf | 18399 | fi |
e533e972 AJ |
18400 | ac_res=`eval echo '${'$as_ac_var'}'` |
18401 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18402 | echo "${ECHO_T}$ac_res" >&6; } | |
18403 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18404 | cat >>confdefs.h <<_ACEOF | |
18405 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9557d1bf | 18406 | _ACEOF |
30de3e8e | 18407 | |
9557d1bf | 18408 | fi |
e533e972 | 18409 | done |
e82dfab2 | 18410 | |
e533e972 AJ |
18411 | |
18412 | if test "$ac_cv_func_dlopen" = no | |
18413 | then | |
18414 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
18415 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
18416 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
e82dfab2 HD |
18417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18418 | else | |
e533e972 AJ |
18419 | ac_check_lib_save_LIBS=$LIBS |
18420 | LIBS="-ldl $LIBS" | |
18421 | cat >conftest.$ac_ext <<_ACEOF | |
e82dfab2 HD |
18422 | /* confdefs.h. */ |
18423 | _ACEOF | |
18424 | cat confdefs.h >>conftest.$ac_ext | |
18425 | cat >>conftest.$ac_ext <<_ACEOF | |
18426 | /* end confdefs.h. */ | |
18427 | ||
fc6ffb29 AJ |
18428 | /* Override any GCC internal prototype to avoid an error. |
18429 | Use char because int might match the return type of a GCC | |
18430 | builtin and then its argument prototype would still apply. */ | |
e82dfab2 HD |
18431 | #ifdef __cplusplus |
18432 | extern "C" | |
18433 | #endif | |
e533e972 | 18434 | char dlopen (); |
e82dfab2 HD |
18435 | int |
18436 | main () | |
18437 | { | |
e533e972 | 18438 | return dlopen (); |
e82dfab2 HD |
18439 | ; |
18440 | return 0; | |
18441 | } | |
18442 | _ACEOF | |
18443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18444 | if { (ac_try="$ac_link" |
18445 | case "(($ac_try" in | |
18446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18447 | *) ac_try_echo=$ac_try;; | |
18448 | esac | |
18449 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18450 | (eval "$ac_link") 2>conftest.er1 | |
e82dfab2 HD |
18451 | ac_status=$? |
18452 | grep -v '^ *+' conftest.er1 >conftest.err | |
18453 | rm -f conftest.er1 | |
18454 | cat conftest.err >&5 | |
18455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18456 | (exit $ac_status); } && | |
0ebeb530 JW |
18457 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18458 | { (case "(($ac_try" in | |
18459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18460 | *) ac_try_echo=$ac_try;; | |
18461 | esac | |
18462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18463 | (eval "$ac_try") 2>&5 | |
e82dfab2 HD |
18464 | ac_status=$? |
18465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18466 | (exit $ac_status); }; } && | |
18467 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18468 | { (case "(($ac_try" in |
18469 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18470 | *) ac_try_echo=$ac_try;; | |
18471 | esac | |
18472 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18473 | (eval "$ac_try") 2>&5 | |
e82dfab2 HD |
18474 | ac_status=$? |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); }; }; then | |
e533e972 | 18477 | ac_cv_lib_dl_dlopen=yes |
e82dfab2 HD |
18478 | else |
18479 | echo "$as_me: failed program was:" >&5 | |
18480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18481 | ||
e533e972 | 18482 | ac_cv_lib_dl_dlopen=no |
e82dfab2 | 18483 | fi |
fc6ffb29 | 18484 | |
0ebeb530 | 18485 | rm -f core conftest.err conftest.$ac_objext \ |
e82dfab2 | 18486 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 18487 | LIBS=$ac_check_lib_save_LIBS |
e82dfab2 | 18488 | fi |
e533e972 AJ |
18489 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
18490 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
18491 | if test $ac_cv_lib_dl_dlopen = yes; then | |
18492 | cat >>confdefs.h <<\_ACEOF | |
18493 | #define HAVE_DLOPEN 1 | |
e82dfab2 | 18494 | _ACEOF |
e533e972 | 18495 | LIBDL="-ldl" |
30de3e8e | 18496 | |
e82dfab2 HD |
18497 | fi |
18498 | ||
e533e972 AJ |
18499 | fi |
18500 | ac_wine_check_funcs_save_LIBS="$LIBS" | |
18501 | LIBS="$LIBS $LIBDL" | |
18502 | ||
18503 | for ac_func in dladdr | |
18504 | do | |
18505 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18506 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18507 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } | |
18508 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then | |
f5818d2f | 18509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1bb94039 | 18510 | else |
f5818d2f | 18511 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
18512 | /* confdefs.h. */ |
18513 | _ACEOF | |
18514 | cat confdefs.h >>conftest.$ac_ext | |
18515 | cat >>conftest.$ac_ext <<_ACEOF | |
18516 | /* end confdefs.h. */ | |
e533e972 AJ |
18517 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18518 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18519 | #define $ac_func innocuous_$ac_func | |
18520 | ||
18521 | /* System header to define __stub macros and hopefully few prototypes, | |
18522 | which can conflict with char $ac_func (); below. | |
18523 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18524 | <limits.h> exists even on freestanding compilers. */ | |
18525 | ||
18526 | #ifdef __STDC__ | |
18527 | # include <limits.h> | |
18528 | #else | |
18529 | # include <assert.h> | |
18530 | #endif | |
18531 | ||
18532 | #undef $ac_func | |
82776020 | 18533 | |
fc6ffb29 AJ |
18534 | /* Override any GCC internal prototype to avoid an error. |
18535 | Use char because int might match the return type of a GCC | |
18536 | builtin and then its argument prototype would still apply. */ | |
82776020 AJ |
18537 | #ifdef __cplusplus |
18538 | extern "C" | |
18539 | #endif | |
e533e972 AJ |
18540 | char $ac_func (); |
18541 | /* The GNU C library defines this for functions which it implements | |
18542 | to always fail with ENOSYS. Some functions are actually named | |
18543 | something starting with __ and the normal name is an alias. */ | |
18544 | #if defined __stub_$ac_func || defined __stub___$ac_func | |
18545 | choke me | |
18546 | #endif | |
18547 | ||
f5818d2f AJ |
18548 | int |
18549 | main () | |
18550 | { | |
e533e972 | 18551 | return $ac_func (); |
f5818d2f AJ |
18552 | ; |
18553 | return 0; | |
18554 | } | |
18555 | _ACEOF | |
18556 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18557 | if { (ac_try="$ac_link" |
18558 | case "(($ac_try" in | |
18559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18560 | *) ac_try_echo=$ac_try;; | |
18561 | esac | |
18562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18563 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 18564 | ac_status=$? |
875927f6 AJ |
18565 | grep -v '^ *+' conftest.er1 >conftest.err |
18566 | rm -f conftest.er1 | |
18567 | cat conftest.err >&5 | |
daa2886c | 18568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18569 | (exit $ac_status); } && |
0ebeb530 JW |
18570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18571 | { (case "(($ac_try" in | |
18572 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18573 | *) ac_try_echo=$ac_try;; | |
18574 | esac | |
18575 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18576 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18577 | ac_status=$? |
18578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18579 | (exit $ac_status); }; } && | |
18580 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18581 | { (case "(($ac_try" in |
18582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18583 | *) ac_try_echo=$ac_try;; | |
18584 | esac | |
18585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18586 | (eval "$ac_try") 2>&5 | |
f5818d2f | 18587 | ac_status=$? |
daa2886c | 18588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18589 | (exit $ac_status); }; }; then |
e533e972 | 18590 | eval "$as_ac_var=yes" |
f5818d2f AJ |
18591 | else |
18592 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
18593 | sed 's/^/| /' conftest.$ac_ext >&5 |
18594 | ||
e533e972 | 18595 | eval "$as_ac_var=no" |
f5818d2f | 18596 | fi |
fc6ffb29 | 18597 | |
0ebeb530 | 18598 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18599 | conftest$ac_exeext conftest.$ac_ext |
f5818d2f | 18600 | fi |
e533e972 AJ |
18601 | ac_res=`eval echo '${'$as_ac_var'}'` |
18602 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
18603 | echo "${ECHO_T}$ac_res" >&6; } | |
18604 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18605 | cat >>confdefs.h <<_ACEOF | |
18606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
daa2886c | 18607 | _ACEOF |
30de3e8e | 18608 | |
1bb94039 | 18609 | fi |
e533e972 | 18610 | done |
1bb94039 | 18611 | |
e533e972 AJ |
18612 | LIBS="$ac_wine_check_funcs_save_LIBS" |
18613 | ||
18614 | if test "$ac_cv_func_poll" = no | |
18615 | then | |
18616 | { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5 | |
18617 | echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; } | |
18618 | if test "${ac_cv_lib_poll_poll+set}" = set; then | |
f5818d2f | 18619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1bb94039 | 18620 | else |
e533e972 AJ |
18621 | ac_check_lib_save_LIBS=$LIBS |
18622 | LIBS="-lpoll $LIBS" | |
18623 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
18624 | /* confdefs.h. */ |
18625 | _ACEOF | |
18626 | cat confdefs.h >>conftest.$ac_ext | |
18627 | cat >>conftest.$ac_ext <<_ACEOF | |
18628 | /* end confdefs.h. */ | |
1bb94039 | 18629 | |
fc6ffb29 AJ |
18630 | /* Override any GCC internal prototype to avoid an error. |
18631 | Use char because int might match the return type of a GCC | |
18632 | builtin and then its argument prototype would still apply. */ | |
82776020 AJ |
18633 | #ifdef __cplusplus |
18634 | extern "C" | |
18635 | #endif | |
e533e972 | 18636 | char poll (); |
f5818d2f AJ |
18637 | int |
18638 | main () | |
18639 | { | |
e533e972 | 18640 | return poll (); |
f5818d2f AJ |
18641 | ; |
18642 | return 0; | |
18643 | } | |
18644 | _ACEOF | |
18645 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18646 | if { (ac_try="$ac_link" |
18647 | case "(($ac_try" in | |
18648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18649 | *) ac_try_echo=$ac_try;; | |
18650 | esac | |
18651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18652 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 18653 | ac_status=$? |
875927f6 AJ |
18654 | grep -v '^ *+' conftest.er1 >conftest.err |
18655 | rm -f conftest.er1 | |
18656 | cat conftest.err >&5 | |
daa2886c | 18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18658 | (exit $ac_status); } && |
0ebeb530 JW |
18659 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18660 | { (case "(($ac_try" in | |
18661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18662 | *) ac_try_echo=$ac_try;; | |
18663 | esac | |
18664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18665 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18666 | ac_status=$? |
18667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18668 | (exit $ac_status); }; } && | |
18669 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18670 | { (case "(($ac_try" in |
18671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18672 | *) ac_try_echo=$ac_try;; | |
18673 | esac | |
18674 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18675 | (eval "$ac_try") 2>&5 | |
f5818d2f | 18676 | ac_status=$? |
daa2886c | 18677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18678 | (exit $ac_status); }; }; then |
e533e972 | 18679 | ac_cv_lib_poll_poll=yes |
1bb94039 | 18680 | else |
f5818d2f | 18681 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
18682 | sed 's/^/| /' conftest.$ac_ext >&5 |
18683 | ||
e533e972 | 18684 | ac_cv_lib_poll_poll=no |
1bb94039 | 18685 | fi |
fc6ffb29 | 18686 | |
0ebeb530 | 18687 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18688 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 18689 | LIBS=$ac_check_lib_save_LIBS |
1bb94039 | 18690 | fi |
e533e972 AJ |
18691 | { echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5 |
18692 | echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; } | |
18693 | if test $ac_cv_lib_poll_poll = yes; then | |
18694 | cat >>confdefs.h <<\_ACEOF | |
18695 | #define HAVE_POLL 1 | |
f5818d2f | 18696 | _ACEOF |
e533e972 | 18697 | LIBPOLL="-lpoll" |
30de3e8e | 18698 | |
1bb94039 | 18699 | fi |
1bb94039 | 18700 | |
e533e972 AJ |
18701 | fi |
18702 | ||
18703 | if test "$ac_cv_func_gethostbyname" = no | |
18704 | then | |
18705 | ||
18706 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
18707 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } | |
18708 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
f5818d2f AJ |
18709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18710 | else | |
e533e972 AJ |
18711 | ac_check_lib_save_LIBS=$LIBS |
18712 | LIBS="-lnsl $LIBS" | |
18713 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
18714 | /* confdefs.h. */ |
18715 | _ACEOF | |
18716 | cat confdefs.h >>conftest.$ac_ext | |
18717 | cat >>conftest.$ac_ext <<_ACEOF | |
18718 | /* end confdefs.h. */ | |
875927f6 | 18719 | |
fc6ffb29 AJ |
18720 | /* Override any GCC internal prototype to avoid an error. |
18721 | Use char because int might match the return type of a GCC | |
18722 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
18723 | #ifdef __cplusplus |
18724 | extern "C" | |
18725 | #endif | |
e533e972 | 18726 | char gethostbyname (); |
e24bcc77 AJ |
18727 | int |
18728 | main () | |
18729 | { | |
e533e972 | 18730 | return gethostbyname (); |
f5818d2f AJ |
18731 | ; |
18732 | return 0; | |
18733 | } | |
18734 | _ACEOF | |
18735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18736 | if { (ac_try="$ac_link" |
18737 | case "(($ac_try" in | |
18738 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18739 | *) ac_try_echo=$ac_try;; | |
18740 | esac | |
18741 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18742 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 18743 | ac_status=$? |
875927f6 AJ |
18744 | grep -v '^ *+' conftest.er1 >conftest.err |
18745 | rm -f conftest.er1 | |
18746 | cat conftest.err >&5 | |
daa2886c | 18747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18748 | (exit $ac_status); } && |
0ebeb530 JW |
18749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18750 | { (case "(($ac_try" in | |
18751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18752 | *) ac_try_echo=$ac_try;; | |
18753 | esac | |
18754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18755 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18756 | ac_status=$? |
18757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18758 | (exit $ac_status); }; } && | |
18759 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18760 | { (case "(($ac_try" in |
18761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18762 | *) ac_try_echo=$ac_try;; | |
18763 | esac | |
18764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18765 | (eval "$ac_try") 2>&5 | |
f5818d2f | 18766 | ac_status=$? |
daa2886c | 18767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18768 | (exit $ac_status); }; }; then |
e533e972 | 18769 | ac_cv_lib_nsl_gethostbyname=yes |
f5818d2f AJ |
18770 | else |
18771 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
18772 | sed 's/^/| /' conftest.$ac_ext >&5 |
18773 | ||
e533e972 | 18774 | ac_cv_lib_nsl_gethostbyname=no |
f5818d2f | 18775 | fi |
fc6ffb29 | 18776 | |
0ebeb530 | 18777 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18778 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 18779 | LIBS=$ac_check_lib_save_LIBS |
f5818d2f | 18780 | fi |
e533e972 AJ |
18781 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
18782 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } | |
18783 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
18784 | cat >>confdefs.h <<_ACEOF | |
18785 | #define HAVE_LIBNSL 1 | |
f5818d2f | 18786 | _ACEOF |
30de3e8e | 18787 | |
e533e972 | 18788 | LIBS="-lnsl $LIBS" |
30de3e8e | 18789 | |
1bb94039 | 18790 | fi |
daa2886c | 18791 | |
e533e972 | 18792 | fi |
1bb94039 | 18793 | |
e533e972 AJ |
18794 | if test "$ac_cv_func_connect" = no |
18795 | then | |
1bb94039 | 18796 | |
e533e972 AJ |
18797 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
18798 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } | |
18799 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
f5818d2f AJ |
18800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18801 | else | |
e533e972 AJ |
18802 | ac_check_lib_save_LIBS=$LIBS |
18803 | LIBS="-lsocket $LIBS" | |
18804 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
18805 | /* confdefs.h. */ |
18806 | _ACEOF | |
18807 | cat confdefs.h >>conftest.$ac_ext | |
18808 | cat >>conftest.$ac_ext <<_ACEOF | |
18809 | /* end confdefs.h. */ | |
875927f6 | 18810 | |
fc6ffb29 AJ |
18811 | /* Override any GCC internal prototype to avoid an error. |
18812 | Use char because int might match the return type of a GCC | |
18813 | builtin and then its argument prototype would still apply. */ | |
f5818d2f AJ |
18814 | #ifdef __cplusplus |
18815 | extern "C" | |
18816 | #endif | |
e533e972 | 18817 | char connect (); |
e24bcc77 AJ |
18818 | int |
18819 | main () | |
18820 | { | |
e533e972 | 18821 | return connect (); |
f5818d2f AJ |
18822 | ; |
18823 | return 0; | |
18824 | } | |
18825 | _ACEOF | |
18826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
18827 | if { (ac_try="$ac_link" |
18828 | case "(($ac_try" in | |
18829 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18830 | *) ac_try_echo=$ac_try;; | |
18831 | esac | |
18832 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18833 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 18834 | ac_status=$? |
875927f6 AJ |
18835 | grep -v '^ *+' conftest.er1 >conftest.err |
18836 | rm -f conftest.er1 | |
18837 | cat conftest.err >&5 | |
daa2886c | 18838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18839 | (exit $ac_status); } && |
0ebeb530 JW |
18840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
18841 | { (case "(($ac_try" in | |
18842 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18843 | *) ac_try_echo=$ac_try;; | |
18844 | esac | |
18845 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18846 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
18847 | ac_status=$? |
18848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18849 | (exit $ac_status); }; } && | |
18850 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
18851 | { (case "(($ac_try" in |
18852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18853 | *) ac_try_echo=$ac_try;; | |
18854 | esac | |
18855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18856 | (eval "$ac_try") 2>&5 | |
f5818d2f | 18857 | ac_status=$? |
daa2886c | 18858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 18859 | (exit $ac_status); }; }; then |
e533e972 | 18860 | ac_cv_lib_socket_connect=yes |
f5818d2f AJ |
18861 | else |
18862 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
18863 | sed 's/^/| /' conftest.$ac_ext >&5 |
18864 | ||
e533e972 | 18865 | ac_cv_lib_socket_connect=no |
f5818d2f | 18866 | fi |
fc6ffb29 | 18867 | |
0ebeb530 | 18868 | rm -f core conftest.err conftest.$ac_objext \ |
875927f6 | 18869 | conftest$ac_exeext conftest.$ac_ext |
e533e972 | 18870 | LIBS=$ac_check_lib_save_LIBS |
f5818d2f | 18871 | fi |
e533e972 AJ |
18872 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
18873 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } | |
18874 | if test $ac_cv_lib_socket_connect = yes; then | |
daa2886c | 18875 | cat >>confdefs.h <<_ACEOF |
e533e972 | 18876 | #define HAVE_LIBSOCKET 1 |
daa2886c | 18877 | _ACEOF |
7e6ae4ba | 18878 | |
e533e972 AJ |
18879 | LIBS="-lsocket $LIBS" |
18880 | ||
e2991ea7 | 18881 | fi |
e2991ea7 | 18882 | |
e533e972 | 18883 | fi |
daa2886c | 18884 | |
e533e972 | 18885 | if test "$ac_cv_func_inet_aton" = no |
1089260f | 18886 | then |
e533e972 AJ |
18887 | |
18888 | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 | |
18889 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } | |
18890 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then | |
1089260f AJ |
18891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18892 | else | |
18893 | ac_check_lib_save_LIBS=$LIBS | |
e533e972 | 18894 | LIBS="-lresolv $LIBS" |
1089260f AJ |
18895 | cat >conftest.$ac_ext <<_ACEOF |
18896 | /* confdefs.h. */ | |
18897 | _ACEOF | |
18898 | cat confdefs.h >>conftest.$ac_ext | |
18899 | cat >>conftest.$ac_ext <<_ACEOF | |
18900 | /* end confdefs.h. */ | |
18901 | ||
18902 | /* Override any GCC internal prototype to avoid an error. | |
18903 | Use char because int might match the return type of a GCC | |
18904 | builtin and then its argument prototype would still apply. */ | |
18905 | #ifdef __cplusplus | |
18906 | extern "C" | |
18907 | #endif | |
e533e972 | 18908 | char inet_aton (); |
1089260f AJ |
18909 | int |
18910 | main () | |
18911 | { | |
e533e972 | 18912 | return inet_aton (); |
1089260f AJ |
18913 | ; |
18914 | return 0; | |
18915 | } | |
18916 | _ACEOF | |
18917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18918 | if { (ac_try="$ac_link" | |
18919 | case "(($ac_try" in | |
18920 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18921 | *) ac_try_echo=$ac_try;; | |
18922 | esac | |
18923 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18924 | (eval "$ac_link") 2>conftest.er1 | |
18925 | ac_status=$? | |
18926 | grep -v '^ *+' conftest.er1 >conftest.err | |
18927 | rm -f conftest.er1 | |
18928 | cat conftest.err >&5 | |
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18930 | (exit $ac_status); } && | |
18931 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
18932 | { (case "(($ac_try" in | |
18933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18934 | *) ac_try_echo=$ac_try;; | |
18935 | esac | |
18936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18937 | (eval "$ac_try") 2>&5 | |
18938 | ac_status=$? | |
18939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18940 | (exit $ac_status); }; } && | |
18941 | { ac_try='test -s conftest$ac_exeext' | |
18942 | { (case "(($ac_try" in | |
18943 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
18944 | *) ac_try_echo=$ac_try;; | |
18945 | esac | |
18946 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
18947 | (eval "$ac_try") 2>&5 | |
18948 | ac_status=$? | |
18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18950 | (exit $ac_status); }; }; then | |
e533e972 | 18951 | ac_cv_lib_resolv_inet_aton=yes |
1089260f AJ |
18952 | else |
18953 | echo "$as_me: failed program was:" >&5 | |
18954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18955 | ||
e533e972 | 18956 | ac_cv_lib_resolv_inet_aton=no |
1089260f AJ |
18957 | fi |
18958 | ||
18959 | rm -f core conftest.err conftest.$ac_objext \ | |
18960 | conftest$ac_exeext conftest.$ac_ext | |
18961 | LIBS=$ac_check_lib_save_LIBS | |
18962 | fi | |
e533e972 AJ |
18963 | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
18964 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } | |
18965 | if test $ac_cv_lib_resolv_inet_aton = yes; then | |
18966 | cat >>confdefs.h <<_ACEOF | |
18967 | #define HAVE_LIBRESOLV 1 | |
1089260f | 18968 | _ACEOF |
e533e972 AJ |
18969 | |
18970 | LIBS="-lresolv $LIBS" | |
1089260f AJ |
18971 | |
18972 | fi | |
18973 | ||
18974 | fi | |
daa2886c AJ |
18975 | |
18976 | ||
fc6ffb29 AJ |
18977 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
18978 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } | |
f41c2b21 | 18979 | if test "${ac_cv_c_const+set}" = set; then |
f5818d2f AJ |
18980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18981 | else | |
18982 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
18983 | /* confdefs.h. */ |
18984 | _ACEOF | |
18985 | cat confdefs.h >>conftest.$ac_ext | |
18986 | cat >>conftest.$ac_ext <<_ACEOF | |
18987 | /* end confdefs.h. */ | |
f41c2b21 | 18988 | |
f5818d2f AJ |
18989 | int |
18990 | main () | |
18991 | { | |
f41c2b21 DP |
18992 | /* FIXME: Include the comments suggested by Paul. */ |
18993 | #ifndef __cplusplus | |
18994 | /* Ultrix mips cc rejects this. */ | |
18995 | typedef int charset[2]; | |
18996 | const charset x; | |
18997 | /* SunOS 4.1.1 cc rejects this. */ | |
18998 | char const *const *ccp; | |
18999 | char **p; | |
19000 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
19001 | struct point {int x, y;}; | |
19002 | static struct point const zero = {0,0}; | |
19003 | /* AIX XL C 1.02.0.0 rejects this. | |
19004 | It does not let you subtract one const X* pointer from another in | |
19005 | an arm of an if-expression whose if-part is not a constant | |
19006 | expression */ | |
19007 | const char *g = "string"; | |
19008 | ccp = &g + (g ? g-g : 0); | |
19009 | /* HPUX 7.0 cc rejects these. */ | |
19010 | ++ccp; | |
19011 | p = (char**) ccp; | |
19012 | ccp = (char const *const *) p; | |
19013 | { /* SCO 3.2v4 cc rejects this. */ | |
19014 | char *t; | |
19015 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
19016 | ||
19017 | *t++ = 0; | |
fc6ffb29 | 19018 | if (s) return 0; |
f41c2b21 DP |
19019 | } |
19020 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
19021 | int x[] = {25, 17}; | |
19022 | const int *foo = &x[0]; | |
19023 | ++foo; | |
19024 | } | |
19025 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
19026 | typedef const int *iptr; | |
19027 | iptr p = 0; | |
19028 | ++p; | |
19029 | } | |
19030 | { /* AIX XL C 1.02.0.0 rejects this saying | |
19031 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
19032 | struct s { int j; const int *ap[3]; }; | |
19033 | struct s *b; b->j = 5; | |
19034 | } | |
19035 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
19036 | const int foo = 10; | |
fc6ffb29 | 19037 | if (!foo) return 0; |
f41c2b21 | 19038 | } |
fc6ffb29 | 19039 | return !x[0] && !zero.x; |
f41c2b21 DP |
19040 | #endif |
19041 | ||
f5818d2f AJ |
19042 | ; |
19043 | return 0; | |
19044 | } | |
19045 | _ACEOF | |
19046 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19047 | if { (ac_try="$ac_compile" |
19048 | case "(($ac_try" in | |
19049 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19050 | *) ac_try_echo=$ac_try;; | |
19051 | esac | |
19052 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19053 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 19054 | ac_status=$? |
875927f6 AJ |
19055 | grep -v '^ *+' conftest.er1 >conftest.err |
19056 | rm -f conftest.er1 | |
19057 | cat conftest.err >&5 | |
daa2886c | 19058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19059 | (exit $ac_status); } && |
0ebeb530 JW |
19060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19061 | { (case "(($ac_try" in | |
19062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19063 | *) ac_try_echo=$ac_try;; | |
19064 | esac | |
19065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19066 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19067 | ac_status=$? |
19068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19069 | (exit $ac_status); }; } && | |
19070 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19071 | { (case "(($ac_try" in |
19072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19073 | *) ac_try_echo=$ac_try;; | |
19074 | esac | |
19075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19076 | (eval "$ac_try") 2>&5 | |
f5818d2f | 19077 | ac_status=$? |
daa2886c | 19078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19079 | (exit $ac_status); }; }; then |
f41c2b21 | 19080 | ac_cv_c_const=yes |
f5818d2f AJ |
19081 | else |
19082 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
19083 | sed 's/^/| /' conftest.$ac_ext >&5 |
19084 | ||
fc6ffb29 | 19085 | ac_cv_c_const=no |
c7c217b3 | 19086 | fi |
fc6ffb29 | 19087 | |
0ebeb530 | 19088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 19089 | fi |
fc6ffb29 AJ |
19090 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
19091 | echo "${ECHO_T}$ac_cv_c_const" >&6; } | |
f41c2b21 | 19092 | if test $ac_cv_c_const = no; then |
5769d1de | 19093 | |
f41c2b21 DP |
19094 | cat >>confdefs.h <<\_ACEOF |
19095 | #define const | |
5769d1de AJ |
19096 | _ACEOF |
19097 | ||
5769d1de | 19098 | fi |
f41c2b21 | 19099 | |
fc6ffb29 AJ |
19100 | { echo "$as_me:$LINENO: checking for inline" >&5 |
19101 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } | |
f41c2b21 | 19102 | if test "${ac_cv_c_inline+set}" = set; then |
5769d1de AJ |
19103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19104 | else | |
f41c2b21 DP |
19105 | ac_cv_c_inline=no |
19106 | for ac_kw in inline __inline__ __inline; do | |
5769d1de | 19107 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
19108 | /* confdefs.h. */ |
19109 | _ACEOF | |
19110 | cat confdefs.h >>conftest.$ac_ext | |
f41c2b21 DP |
19111 | cat >>conftest.$ac_ext <<_ACEOF |
19112 | /* end confdefs.h. */ | |
19113 | #ifndef __cplusplus | |
19114 | typedef int foo_t; | |
19115 | static $ac_kw foo_t static_foo () {return 0; } | |
19116 | $ac_kw foo_t foo () {return 0; } | |
19117 | #endif | |
19118 | ||
5769d1de AJ |
19119 | _ACEOF |
19120 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19121 | if { (ac_try="$ac_compile" |
19122 | case "(($ac_try" in | |
19123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19124 | *) ac_try_echo=$ac_try;; | |
19125 | esac | |
19126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19127 | (eval "$ac_compile") 2>conftest.er1 | |
5769d1de | 19128 | ac_status=$? |
875927f6 AJ |
19129 | grep -v '^ *+' conftest.er1 >conftest.err |
19130 | rm -f conftest.er1 | |
19131 | cat conftest.err >&5 | |
5769d1de AJ |
19132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19133 | (exit $ac_status); } && | |
0ebeb530 JW |
19134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19135 | { (case "(($ac_try" in | |
19136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19137 | *) ac_try_echo=$ac_try;; | |
19138 | esac | |
19139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19140 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19141 | ac_status=$? |
19142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19143 | (exit $ac_status); }; } && | |
19144 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19145 | { (case "(($ac_try" in |
19146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19147 | *) ac_try_echo=$ac_try;; | |
19148 | esac | |
19149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19150 | (eval "$ac_try") 2>&5 | |
5769d1de AJ |
19151 | ac_status=$? |
19152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19153 | (exit $ac_status); }; }; then | |
fc6ffb29 | 19154 | ac_cv_c_inline=$ac_kw |
f5818d2f | 19155 | else |
5769d1de | 19156 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
19157 | sed 's/^/| /' conftest.$ac_ext >&5 |
19158 | ||
fc6ffb29 | 19159 | |
5769d1de | 19160 | fi |
fc6ffb29 | 19161 | |
0ebeb530 | 19162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
fc6ffb29 | 19163 | test "$ac_cv_c_inline" != no && break |
f41c2b21 | 19164 | done |
f5818d2f | 19165 | |
f41c2b21 | 19166 | fi |
fc6ffb29 AJ |
19167 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
19168 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } | |
c7c217b3 | 19169 | |
5769d1de | 19170 | |
f41c2b21 DP |
19171 | case $ac_cv_c_inline in |
19172 | inline | yes) ;; | |
19173 | *) | |
19174 | case $ac_cv_c_inline in | |
19175 | no) ac_val=;; | |
19176 | *) ac_val=$ac_cv_c_inline;; | |
19177 | esac | |
19178 | cat >>confdefs.h <<_ACEOF | |
19179 | #ifndef __cplusplus | |
19180 | #define inline $ac_val | |
19181 | #endif | |
19182 | _ACEOF | |
19183 | ;; | |
19184 | esac | |
c7c217b3 | 19185 | |
fc6ffb29 AJ |
19186 | { echo "$as_me:$LINENO: checking for mode_t" >&5 |
19187 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; } | |
f41c2b21 | 19188 | if test "${ac_cv_type_mode_t+set}" = set; then |
f5818d2f AJ |
19189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19190 | else | |
19191 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
19192 | /* confdefs.h. */ |
19193 | _ACEOF | |
19194 | cat confdefs.h >>conftest.$ac_ext | |
19195 | cat >>conftest.$ac_ext <<_ACEOF | |
19196 | /* end confdefs.h. */ | |
f5818d2f | 19197 | $ac_includes_default |
fc6ffb29 | 19198 | typedef mode_t ac__type_new_; |
f5818d2f AJ |
19199 | int |
19200 | main () | |
19201 | { | |
fc6ffb29 | 19202 | if ((ac__type_new_ *) 0) |
f5818d2f | 19203 | return 0; |
fc6ffb29 | 19204 | if (sizeof (ac__type_new_)) |
f5818d2f AJ |
19205 | return 0; |
19206 | ; | |
19207 | return 0; | |
19208 | } | |
19209 | _ACEOF | |
19210 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19211 | if { (ac_try="$ac_compile" |
19212 | case "(($ac_try" in | |
19213 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19214 | *) ac_try_echo=$ac_try;; | |
19215 | esac | |
19216 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19217 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 19218 | ac_status=$? |
875927f6 AJ |
19219 | grep -v '^ *+' conftest.er1 >conftest.err |
19220 | rm -f conftest.er1 | |
19221 | cat conftest.err >&5 | |
daa2886c | 19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19223 | (exit $ac_status); } && |
0ebeb530 JW |
19224 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19225 | { (case "(($ac_try" in | |
19226 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19227 | *) ac_try_echo=$ac_try;; | |
19228 | esac | |
19229 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19230 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19231 | ac_status=$? |
19232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19233 | (exit $ac_status); }; } && | |
19234 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19235 | { (case "(($ac_try" in |
19236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19237 | *) ac_try_echo=$ac_try;; | |
19238 | esac | |
19239 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19240 | (eval "$ac_try") 2>&5 | |
f5818d2f | 19241 | ac_status=$? |
daa2886c | 19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19243 | (exit $ac_status); }; }; then |
f41c2b21 | 19244 | ac_cv_type_mode_t=yes |
f5818d2f AJ |
19245 | else |
19246 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
19247 | sed 's/^/| /' conftest.$ac_ext >&5 |
19248 | ||
fc6ffb29 | 19249 | ac_cv_type_mode_t=no |
f5818d2f | 19250 | fi |
fc6ffb29 | 19251 | |
0ebeb530 | 19252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 19253 | fi |
fc6ffb29 AJ |
19254 | { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
19255 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6; } | |
f41c2b21 | 19256 | if test $ac_cv_type_mode_t = yes; then |
f5818d2f | 19257 | |
f41c2b21 DP |
19258 | cat >>confdefs.h <<_ACEOF |
19259 | #define HAVE_MODE_T 1 | |
19260 | _ACEOF | |
19261 | ||
19262 | ||
19263 | fi | |
fc6ffb29 AJ |
19264 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
19265 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } | |
f41c2b21 | 19266 | if test "${ac_cv_type_off_t+set}" = set; then |
f5818d2f AJ |
19267 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19268 | else | |
f41c2b21 | 19269 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
19270 | /* confdefs.h. */ |
19271 | _ACEOF | |
19272 | cat confdefs.h >>conftest.$ac_ext | |
19273 | cat >>conftest.$ac_ext <<_ACEOF | |
19274 | /* end confdefs.h. */ | |
f5818d2f | 19275 | $ac_includes_default |
fc6ffb29 | 19276 | typedef off_t ac__type_new_; |
f5818d2f AJ |
19277 | int |
19278 | main () | |
19279 | { | |
fc6ffb29 | 19280 | if ((ac__type_new_ *) 0) |
f41c2b21 | 19281 | return 0; |
fc6ffb29 | 19282 | if (sizeof (ac__type_new_)) |
f41c2b21 | 19283 | return 0; |
f5818d2f AJ |
19284 | ; |
19285 | return 0; | |
19286 | } | |
19287 | _ACEOF | |
19288 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19289 | if { (ac_try="$ac_compile" |
19290 | case "(($ac_try" in | |
19291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19292 | *) ac_try_echo=$ac_try;; | |
19293 | esac | |
19294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19295 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 19296 | ac_status=$? |
875927f6 AJ |
19297 | grep -v '^ *+' conftest.er1 >conftest.err |
19298 | rm -f conftest.er1 | |
19299 | cat conftest.err >&5 | |
daa2886c | 19300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19301 | (exit $ac_status); } && |
0ebeb530 JW |
19302 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19303 | { (case "(($ac_try" in | |
19304 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19305 | *) ac_try_echo=$ac_try;; | |
19306 | esac | |
19307 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19308 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19309 | ac_status=$? |
19310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19311 | (exit $ac_status); }; } && | |
19312 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19313 | { (case "(($ac_try" in |
19314 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19315 | *) ac_try_echo=$ac_try;; | |
19316 | esac | |
19317 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19318 | (eval "$ac_try") 2>&5 | |
f5818d2f | 19319 | ac_status=$? |
daa2886c | 19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19321 | (exit $ac_status); }; }; then |
f41c2b21 DP |
19322 | ac_cv_type_off_t=yes |
19323 | else | |
19324 | echo "$as_me: failed program was:" >&5 | |
19325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19326 | ||
fc6ffb29 | 19327 | ac_cv_type_off_t=no |
f41c2b21 | 19328 | fi |
fc6ffb29 | 19329 | |
0ebeb530 | 19330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f41c2b21 | 19331 | fi |
fc6ffb29 AJ |
19332 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
19333 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } | |
f41c2b21 DP |
19334 | if test $ac_cv_type_off_t = yes; then |
19335 | ||
19336 | cat >>confdefs.h <<_ACEOF | |
19337 | #define HAVE_OFF_T 1 | |
19338 | _ACEOF | |
19339 | ||
19340 | ||
19341 | fi | |
fc6ffb29 AJ |
19342 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
19343 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } | |
f41c2b21 DP |
19344 | if test "${ac_cv_type_pid_t+set}" = set; then |
19345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19346 | else | |
19347 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
19348 | /* confdefs.h. */ |
19349 | _ACEOF | |
19350 | cat confdefs.h >>conftest.$ac_ext | |
19351 | cat >>conftest.$ac_ext <<_ACEOF | |
19352 | /* end confdefs.h. */ | |
f5818d2f | 19353 | $ac_includes_default |
fc6ffb29 | 19354 | typedef pid_t ac__type_new_; |
f5818d2f AJ |
19355 | int |
19356 | main () | |
19357 | { | |
fc6ffb29 | 19358 | if ((ac__type_new_ *) 0) |
f41c2b21 | 19359 | return 0; |
fc6ffb29 | 19360 | if (sizeof (ac__type_new_)) |
f41c2b21 | 19361 | return 0; |
f5818d2f AJ |
19362 | ; |
19363 | return 0; | |
19364 | } | |
19365 | _ACEOF | |
19366 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19367 | if { (ac_try="$ac_compile" |
19368 | case "(($ac_try" in | |
19369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19370 | *) ac_try_echo=$ac_try;; | |
19371 | esac | |
19372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19373 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 19374 | ac_status=$? |
875927f6 AJ |
19375 | grep -v '^ *+' conftest.er1 >conftest.err |
19376 | rm -f conftest.er1 | |
19377 | cat conftest.err >&5 | |
daa2886c | 19378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19379 | (exit $ac_status); } && |
0ebeb530 JW |
19380 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19381 | { (case "(($ac_try" in | |
19382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19383 | *) ac_try_echo=$ac_try;; | |
19384 | esac | |
19385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19386 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19387 | ac_status=$? |
19388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19389 | (exit $ac_status); }; } && | |
19390 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19391 | { (case "(($ac_try" in |
19392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19393 | *) ac_try_echo=$ac_try;; | |
19394 | esac | |
19395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19396 | (eval "$ac_try") 2>&5 | |
f5818d2f | 19397 | ac_status=$? |
daa2886c | 19398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19399 | (exit $ac_status); }; }; then |
f41c2b21 | 19400 | ac_cv_type_pid_t=yes |
f5818d2f AJ |
19401 | else |
19402 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
19403 | sed 's/^/| /' conftest.$ac_ext >&5 |
19404 | ||
fc6ffb29 | 19405 | ac_cv_type_pid_t=no |
f5818d2f | 19406 | fi |
fc6ffb29 | 19407 | |
0ebeb530 | 19408 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f41c2b21 | 19409 | fi |
fc6ffb29 AJ |
19410 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19411 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } | |
f41c2b21 | 19412 | if test $ac_cv_type_pid_t = yes; then |
e24bcc77 | 19413 | |
f41c2b21 DP |
19414 | cat >>confdefs.h <<_ACEOF |
19415 | #define HAVE_PID_T 1 | |
19416 | _ACEOF | |
19417 | ||
19418 | ||
19419 | fi | |
fc6ffb29 AJ |
19420 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
19421 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } | |
f41c2b21 DP |
19422 | if test "${ac_cv_type_size_t+set}" = set; then |
19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19424 | else | |
19425 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
19426 | /* confdefs.h. */ |
19427 | _ACEOF | |
19428 | cat confdefs.h >>conftest.$ac_ext | |
19429 | cat >>conftest.$ac_ext <<_ACEOF | |
19430 | /* end confdefs.h. */ | |
daa2886c | 19431 | $ac_includes_default |
fc6ffb29 | 19432 | typedef size_t ac__type_new_; |
daa2886c AJ |
19433 | int |
19434 | main () | |
19435 | { | |
fc6ffb29 | 19436 | if ((ac__type_new_ *) 0) |
f41c2b21 | 19437 | return 0; |
fc6ffb29 | 19438 | if (sizeof (ac__type_new_)) |
f41c2b21 | 19439 | return 0; |
daa2886c AJ |
19440 | ; |
19441 | return 0; | |
19442 | } | |
19443 | _ACEOF | |
19444 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19445 | if { (ac_try="$ac_compile" |
19446 | case "(($ac_try" in | |
19447 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19448 | *) ac_try_echo=$ac_try;; | |
19449 | esac | |
19450 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19451 | (eval "$ac_compile") 2>conftest.er1 | |
daa2886c | 19452 | ac_status=$? |
875927f6 AJ |
19453 | grep -v '^ *+' conftest.er1 >conftest.err |
19454 | rm -f conftest.er1 | |
19455 | cat conftest.err >&5 | |
daa2886c AJ |
19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19457 | (exit $ac_status); } && | |
0ebeb530 JW |
19458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19459 | { (case "(($ac_try" in | |
19460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19461 | *) ac_try_echo=$ac_try;; | |
19462 | esac | |
19463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19464 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19465 | ac_status=$? |
19466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19467 | (exit $ac_status); }; } && | |
19468 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19469 | { (case "(($ac_try" in |
19470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19471 | *) ac_try_echo=$ac_try;; | |
19472 | esac | |
19473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19474 | (eval "$ac_try") 2>&5 | |
daa2886c AJ |
19475 | ac_status=$? |
19476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19477 | (exit $ac_status); }; }; then | |
f41c2b21 DP |
19478 | ac_cv_type_size_t=yes |
19479 | else | |
19480 | echo "$as_me: failed program was:" >&5 | |
19481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19482 | ||
fc6ffb29 | 19483 | ac_cv_type_size_t=no |
f41c2b21 | 19484 | fi |
fc6ffb29 | 19485 | |
0ebeb530 | 19486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f41c2b21 | 19487 | fi |
fc6ffb29 AJ |
19488 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
19489 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } | |
f41c2b21 DP |
19490 | if test $ac_cv_type_size_t = yes; then |
19491 | ||
19492 | cat >>confdefs.h <<_ACEOF | |
19493 | #define HAVE_SIZE_T 1 | |
19494 | _ACEOF | |
19495 | ||
19496 | ||
19497 | fi | |
fc6ffb29 AJ |
19498 | { echo "$as_me:$LINENO: checking for ssize_t" >&5 |
19499 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; } | |
f41c2b21 DP |
19500 | if test "${ac_cv_type_ssize_t+set}" = set; then |
19501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19502 | else | |
19503 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
19504 | /* confdefs.h. */ |
19505 | _ACEOF | |
19506 | cat confdefs.h >>conftest.$ac_ext | |
19507 | cat >>conftest.$ac_ext <<_ACEOF | |
19508 | /* end confdefs.h. */ | |
f5818d2f | 19509 | $ac_includes_default |
fc6ffb29 | 19510 | typedef ssize_t ac__type_new_; |
f5818d2f AJ |
19511 | int |
19512 | main () | |
19513 | { | |
fc6ffb29 | 19514 | if ((ac__type_new_ *) 0) |
f41c2b21 | 19515 | return 0; |
fc6ffb29 | 19516 | if (sizeof (ac__type_new_)) |
f41c2b21 | 19517 | return 0; |
f5818d2f AJ |
19518 | ; |
19519 | return 0; | |
19520 | } | |
19521 | _ACEOF | |
19522 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19523 | if { (ac_try="$ac_compile" |
19524 | case "(($ac_try" in | |
19525 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19526 | *) ac_try_echo=$ac_try;; | |
19527 | esac | |
19528 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19529 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 19530 | ac_status=$? |
875927f6 AJ |
19531 | grep -v '^ *+' conftest.er1 >conftest.err |
19532 | rm -f conftest.er1 | |
19533 | cat conftest.err >&5 | |
daa2886c | 19534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19535 | (exit $ac_status); } && |
0ebeb530 JW |
19536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19537 | { (case "(($ac_try" in | |
19538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19539 | *) ac_try_echo=$ac_try;; | |
19540 | esac | |
19541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19542 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19543 | ac_status=$? |
19544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19545 | (exit $ac_status); }; } && | |
19546 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19547 | { (case "(($ac_try" in |
19548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19549 | *) ac_try_echo=$ac_try;; | |
19550 | esac | |
19551 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19552 | (eval "$ac_try") 2>&5 | |
f5818d2f | 19553 | ac_status=$? |
daa2886c | 19554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19555 | (exit $ac_status); }; }; then |
f41c2b21 | 19556 | ac_cv_type_ssize_t=yes |
f5818d2f AJ |
19557 | else |
19558 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
19559 | sed 's/^/| /' conftest.$ac_ext >&5 |
19560 | ||
fc6ffb29 | 19561 | ac_cv_type_ssize_t=no |
f5818d2f | 19562 | fi |
fc6ffb29 | 19563 | |
0ebeb530 | 19564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
daa2886c | 19565 | fi |
fc6ffb29 AJ |
19566 | { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
19567 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; } | |
f41c2b21 DP |
19568 | if test $ac_cv_type_ssize_t = yes; then |
19569 | ||
19570 | cat >>confdefs.h <<_ACEOF | |
19571 | #define HAVE_SSIZE_T 1 | |
19572 | _ACEOF | |
19573 | ||
19574 | ||
f5818d2f | 19575 | fi |
fc6ffb29 AJ |
19576 | { echo "$as_me:$LINENO: checking for long long" >&5 |
19577 | echo $ECHO_N "checking for long long... $ECHO_C" >&6; } | |
f41c2b21 DP |
19578 | if test "${ac_cv_type_long_long+set}" = set; then |
19579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19580 | else | |
f5818d2f | 19581 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
19582 | /* confdefs.h. */ |
19583 | _ACEOF | |
19584 | cat confdefs.h >>conftest.$ac_ext | |
19585 | cat >>conftest.$ac_ext <<_ACEOF | |
19586 | /* end confdefs.h. */ | |
f5818d2f | 19587 | $ac_includes_default |
fc6ffb29 | 19588 | typedef long long ac__type_new_; |
f5818d2f AJ |
19589 | int |
19590 | main () | |
19591 | { | |
fc6ffb29 | 19592 | if ((ac__type_new_ *) 0) |
f41c2b21 | 19593 | return 0; |
fc6ffb29 | 19594 | if (sizeof (ac__type_new_)) |
f41c2b21 | 19595 | return 0; |
f5818d2f AJ |
19596 | ; |
19597 | return 0; | |
19598 | } | |
19599 | _ACEOF | |
19600 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19601 | if { (ac_try="$ac_compile" |
19602 | case "(($ac_try" in | |
19603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19604 | *) ac_try_echo=$ac_try;; | |
19605 | esac | |
19606 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19607 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 19608 | ac_status=$? |
875927f6 AJ |
19609 | grep -v '^ *+' conftest.er1 >conftest.err |
19610 | rm -f conftest.er1 | |
19611 | cat conftest.err >&5 | |
daa2886c | 19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19613 | (exit $ac_status); } && |
0ebeb530 JW |
19614 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19615 | { (case "(($ac_try" in | |
19616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19617 | *) ac_try_echo=$ac_try;; | |
19618 | esac | |
19619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19620 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
19621 | ac_status=$? |
19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19623 | (exit $ac_status); }; } && | |
19624 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19625 | { (case "(($ac_try" in |
19626 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19627 | *) ac_try_echo=$ac_try;; | |
19628 | esac | |
19629 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19630 | (eval "$ac_try") 2>&5 | |
f5818d2f | 19631 | ac_status=$? |
daa2886c | 19632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 19633 | (exit $ac_status); }; }; then |
f41c2b21 | 19634 | ac_cv_type_long_long=yes |
f5818d2f AJ |
19635 | else |
19636 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
19637 | sed 's/^/| /' conftest.$ac_ext >&5 |
19638 | ||
fc6ffb29 | 19639 | ac_cv_type_long_long=no |
f5818d2f | 19640 | fi |
fc6ffb29 | 19641 | |
0ebeb530 | 19642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 19643 | fi |
fc6ffb29 AJ |
19644 | { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
19645 | echo "${ECHO_T}$ac_cv_type_long_long" >&6; } | |
f41c2b21 DP |
19646 | if test $ac_cv_type_long_long = yes; then |
19647 | ||
daa2886c | 19648 | cat >>confdefs.h <<_ACEOF |
f41c2b21 | 19649 | #define HAVE_LONG_LONG 1 |
daa2886c AJ |
19650 | _ACEOF |
19651 | ||
19652 | ||
13af4891 | 19653 | fi |
fc6ffb29 AJ |
19654 | { echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5 |
19655 | echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; } | |
13af4891 AJ |
19656 | if test "${ac_cv_type_fsblkcnt_t+set}" = set; then |
19657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19658 | else | |
19659 | cat >conftest.$ac_ext <<_ACEOF | |
19660 | /* confdefs.h. */ | |
19661 | _ACEOF | |
19662 | cat confdefs.h >>conftest.$ac_ext | |
19663 | cat >>conftest.$ac_ext <<_ACEOF | |
19664 | /* end confdefs.h. */ | |
19665 | $ac_includes_default | |
fc6ffb29 | 19666 | typedef fsblkcnt_t ac__type_new_; |
13af4891 AJ |
19667 | int |
19668 | main () | |
19669 | { | |
fc6ffb29 | 19670 | if ((ac__type_new_ *) 0) |
13af4891 | 19671 | return 0; |
fc6ffb29 | 19672 | if (sizeof (ac__type_new_)) |
13af4891 AJ |
19673 | return 0; |
19674 | ; | |
19675 | return 0; | |
19676 | } | |
19677 | _ACEOF | |
19678 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19679 | if { (ac_try="$ac_compile" |
19680 | case "(($ac_try" in | |
19681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19682 | *) ac_try_echo=$ac_try;; | |
19683 | esac | |
19684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19685 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
19686 | ac_status=$? |
19687 | grep -v '^ *+' conftest.er1 >conftest.err | |
19688 | rm -f conftest.er1 | |
19689 | cat conftest.err >&5 | |
19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19691 | (exit $ac_status); } && | |
0ebeb530 JW |
19692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19693 | { (case "(($ac_try" in | |
19694 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19695 | *) ac_try_echo=$ac_try;; | |
19696 | esac | |
19697 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19698 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
19699 | ac_status=$? |
19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19701 | (exit $ac_status); }; } && | |
19702 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19703 | { (case "(($ac_try" in |
19704 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19705 | *) ac_try_echo=$ac_try;; | |
19706 | esac | |
19707 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19708 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
19709 | ac_status=$? |
19710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19711 | (exit $ac_status); }; }; then | |
19712 | ac_cv_type_fsblkcnt_t=yes | |
19713 | else | |
19714 | echo "$as_me: failed program was:" >&5 | |
19715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19716 | ||
fc6ffb29 | 19717 | ac_cv_type_fsblkcnt_t=no |
13af4891 | 19718 | fi |
fc6ffb29 | 19719 | |
0ebeb530 | 19720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 19721 | fi |
fc6ffb29 AJ |
19722 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5 |
19723 | echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; } | |
13af4891 AJ |
19724 | if test $ac_cv_type_fsblkcnt_t = yes; then |
19725 | ||
19726 | cat >>confdefs.h <<_ACEOF | |
19727 | #define HAVE_FSBLKCNT_T 1 | |
19728 | _ACEOF | |
19729 | ||
19730 | ||
19731 | fi | |
fc6ffb29 AJ |
19732 | { echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5 |
19733 | echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; } | |
13af4891 AJ |
19734 | if test "${ac_cv_type_fsfilcnt_t+set}" = set; then |
19735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19736 | else | |
19737 | cat >conftest.$ac_ext <<_ACEOF | |
19738 | /* confdefs.h. */ | |
19739 | _ACEOF | |
19740 | cat confdefs.h >>conftest.$ac_ext | |
19741 | cat >>conftest.$ac_ext <<_ACEOF | |
19742 | /* end confdefs.h. */ | |
19743 | $ac_includes_default | |
fc6ffb29 | 19744 | typedef fsfilcnt_t ac__type_new_; |
13af4891 AJ |
19745 | int |
19746 | main () | |
19747 | { | |
fc6ffb29 | 19748 | if ((ac__type_new_ *) 0) |
13af4891 | 19749 | return 0; |
fc6ffb29 | 19750 | if (sizeof (ac__type_new_)) |
13af4891 AJ |
19751 | return 0; |
19752 | ; | |
19753 | return 0; | |
19754 | } | |
19755 | _ACEOF | |
19756 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19757 | if { (ac_try="$ac_compile" |
19758 | case "(($ac_try" in | |
19759 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19760 | *) ac_try_echo=$ac_try;; | |
19761 | esac | |
19762 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19763 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
19764 | ac_status=$? |
19765 | grep -v '^ *+' conftest.er1 >conftest.err | |
19766 | rm -f conftest.er1 | |
19767 | cat conftest.err >&5 | |
19768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19769 | (exit $ac_status); } && | |
0ebeb530 JW |
19770 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19771 | { (case "(($ac_try" in | |
19772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19773 | *) ac_try_echo=$ac_try;; | |
19774 | esac | |
19775 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19776 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
19777 | ac_status=$? |
19778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19779 | (exit $ac_status); }; } && | |
19780 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19781 | { (case "(($ac_try" in |
19782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19783 | *) ac_try_echo=$ac_try;; | |
19784 | esac | |
19785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19786 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
19787 | ac_status=$? |
19788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19789 | (exit $ac_status); }; }; then | |
19790 | ac_cv_type_fsfilcnt_t=yes | |
19791 | else | |
19792 | echo "$as_me: failed program was:" >&5 | |
19793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19794 | ||
fc6ffb29 | 19795 | ac_cv_type_fsfilcnt_t=no |
13af4891 | 19796 | fi |
fc6ffb29 | 19797 | |
0ebeb530 | 19798 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 19799 | fi |
fc6ffb29 AJ |
19800 | { echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5 |
19801 | echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; } | |
13af4891 AJ |
19802 | if test $ac_cv_type_fsfilcnt_t = yes; then |
19803 | ||
19804 | cat >>confdefs.h <<_ACEOF | |
19805 | #define HAVE_FSFILCNT_T 1 | |
19806 | _ACEOF | |
19807 | ||
19808 | ||
10a6c560 PM |
19809 | fi |
19810 | ||
fc6ffb29 AJ |
19811 | { echo "$as_me:$LINENO: checking for sigset_t" >&5 |
19812 | echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; } | |
10a6c560 PM |
19813 | if test "${ac_cv_type_sigset_t+set}" = set; then |
19814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19815 | else | |
19816 | cat >conftest.$ac_ext <<_ACEOF | |
19817 | /* confdefs.h. */ | |
19818 | _ACEOF | |
19819 | cat confdefs.h >>conftest.$ac_ext | |
19820 | cat >>conftest.$ac_ext <<_ACEOF | |
19821 | /* end confdefs.h. */ | |
19822 | #include <signal.h> | |
19823 | ||
fc6ffb29 | 19824 | typedef sigset_t ac__type_new_; |
10a6c560 PM |
19825 | int |
19826 | main () | |
19827 | { | |
fc6ffb29 | 19828 | if ((ac__type_new_ *) 0) |
10a6c560 | 19829 | return 0; |
fc6ffb29 | 19830 | if (sizeof (ac__type_new_)) |
10a6c560 PM |
19831 | return 0; |
19832 | ; | |
19833 | return 0; | |
19834 | } | |
19835 | _ACEOF | |
19836 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19837 | if { (ac_try="$ac_compile" |
19838 | case "(($ac_try" in | |
19839 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19840 | *) ac_try_echo=$ac_try;; | |
19841 | esac | |
19842 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19843 | (eval "$ac_compile") 2>conftest.er1 | |
10a6c560 PM |
19844 | ac_status=$? |
19845 | grep -v '^ *+' conftest.er1 >conftest.err | |
19846 | rm -f conftest.er1 | |
19847 | cat conftest.err >&5 | |
19848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19849 | (exit $ac_status); } && | |
0ebeb530 JW |
19850 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19851 | { (case "(($ac_try" in | |
19852 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19853 | *) ac_try_echo=$ac_try;; | |
19854 | esac | |
19855 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19856 | (eval "$ac_try") 2>&5 | |
10a6c560 PM |
19857 | ac_status=$? |
19858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19859 | (exit $ac_status); }; } && | |
19860 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19861 | { (case "(($ac_try" in |
19862 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19863 | *) ac_try_echo=$ac_try;; | |
19864 | esac | |
19865 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19866 | (eval "$ac_try") 2>&5 | |
10a6c560 PM |
19867 | ac_status=$? |
19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19869 | (exit $ac_status); }; }; then | |
19870 | ac_cv_type_sigset_t=yes | |
19871 | else | |
19872 | echo "$as_me: failed program was:" >&5 | |
19873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19874 | ||
fc6ffb29 | 19875 | ac_cv_type_sigset_t=no |
10a6c560 | 19876 | fi |
fc6ffb29 | 19877 | |
0ebeb530 | 19878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
10a6c560 | 19879 | fi |
fc6ffb29 AJ |
19880 | { echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5 |
19881 | echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; } | |
10a6c560 PM |
19882 | if test $ac_cv_type_sigset_t = yes; then |
19883 | ||
19884 | cat >>confdefs.h <<_ACEOF | |
19885 | #define HAVE_SIGSET_T 1 | |
19886 | _ACEOF | |
19887 | ||
19888 | ||
b8b15f3e GP |
19889 | fi |
19890 | ||
fc6ffb29 AJ |
19891 | { echo "$as_me:$LINENO: checking for request_sense" >&5 |
19892 | echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; } | |
b8b15f3e GP |
19893 | if test "${ac_cv_type_request_sense+set}" = set; then |
19894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19895 | else | |
19896 | cat >conftest.$ac_ext <<_ACEOF | |
19897 | /* confdefs.h. */ | |
19898 | _ACEOF | |
19899 | cat confdefs.h >>conftest.$ac_ext | |
19900 | cat >>conftest.$ac_ext <<_ACEOF | |
19901 | /* end confdefs.h. */ | |
19902 | #include <linux/cdrom.h> | |
19903 | ||
fc6ffb29 | 19904 | typedef request_sense ac__type_new_; |
b8b15f3e GP |
19905 | int |
19906 | main () | |
19907 | { | |
fc6ffb29 | 19908 | if ((ac__type_new_ *) 0) |
b8b15f3e | 19909 | return 0; |
fc6ffb29 | 19910 | if (sizeof (ac__type_new_)) |
b8b15f3e GP |
19911 | return 0; |
19912 | ; | |
19913 | return 0; | |
19914 | } | |
19915 | _ACEOF | |
19916 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19917 | if { (ac_try="$ac_compile" |
19918 | case "(($ac_try" in | |
19919 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19920 | *) ac_try_echo=$ac_try;; | |
19921 | esac | |
19922 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19923 | (eval "$ac_compile") 2>conftest.er1 | |
b8b15f3e GP |
19924 | ac_status=$? |
19925 | grep -v '^ *+' conftest.er1 >conftest.err | |
19926 | rm -f conftest.er1 | |
19927 | cat conftest.err >&5 | |
19928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19929 | (exit $ac_status); } && | |
0ebeb530 JW |
19930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19931 | { (case "(($ac_try" in | |
19932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19933 | *) ac_try_echo=$ac_try;; | |
19934 | esac | |
19935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19936 | (eval "$ac_try") 2>&5 | |
b8b15f3e GP |
19937 | ac_status=$? |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19939 | (exit $ac_status); }; } && | |
19940 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
19941 | { (case "(($ac_try" in |
19942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19943 | *) ac_try_echo=$ac_try;; | |
19944 | esac | |
19945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19946 | (eval "$ac_try") 2>&5 | |
b8b15f3e GP |
19947 | ac_status=$? |
19948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19949 | (exit $ac_status); }; }; then | |
19950 | ac_cv_type_request_sense=yes | |
19951 | else | |
19952 | echo "$as_me: failed program was:" >&5 | |
19953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19954 | ||
fc6ffb29 | 19955 | ac_cv_type_request_sense=no |
b8b15f3e | 19956 | fi |
fc6ffb29 | 19957 | |
0ebeb530 | 19958 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b8b15f3e | 19959 | fi |
fc6ffb29 AJ |
19960 | { echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5 |
19961 | echo "${ECHO_T}$ac_cv_type_request_sense" >&6; } | |
b8b15f3e GP |
19962 | if test $ac_cv_type_request_sense = yes; then |
19963 | ||
19964 | cat >>confdefs.h <<_ACEOF | |
19965 | #define HAVE_REQUEST_SENSE 1 | |
19966 | _ACEOF | |
19967 | ||
19968 | ||
f41c2b21 DP |
19969 | fi |
19970 | ||
c7c217b3 | 19971 | |
fc6ffb29 AJ |
19972 | { echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5 |
19973 | echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; } | |
e491e8f8 DR |
19974 | if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then |
19975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19976 | else | |
19977 | cat >conftest.$ac_ext <<_ACEOF | |
19978 | /* confdefs.h. */ | |
19979 | _ACEOF | |
19980 | cat confdefs.h >>conftest.$ac_ext | |
19981 | cat >>conftest.$ac_ext <<_ACEOF | |
19982 | /* end confdefs.h. */ | |
19983 | #ifdef HAVE_LINUX_INPUT_H | |
19984 | #include <linux/input.h> | |
19985 | #endif | |
19986 | ||
19987 | int | |
19988 | main () | |
19989 | { | |
19990 | static struct ff_effect ac_aggr; | |
19991 | if (ac_aggr.direction) | |
19992 | return 0; | |
19993 | ; | |
19994 | return 0; | |
19995 | } | |
19996 | _ACEOF | |
19997 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
19998 | if { (ac_try="$ac_compile" |
19999 | case "(($ac_try" in | |
20000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20001 | *) ac_try_echo=$ac_try;; | |
20002 | esac | |
20003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20004 | (eval "$ac_compile") 2>conftest.er1 | |
e491e8f8 DR |
20005 | ac_status=$? |
20006 | grep -v '^ *+' conftest.er1 >conftest.err | |
20007 | rm -f conftest.er1 | |
20008 | cat conftest.err >&5 | |
20009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20010 | (exit $ac_status); } && | |
0ebeb530 JW |
20011 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20012 | { (case "(($ac_try" in | |
20013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20014 | *) ac_try_echo=$ac_try;; | |
20015 | esac | |
20016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20017 | (eval "$ac_try") 2>&5 | |
e491e8f8 DR |
20018 | ac_status=$? |
20019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20020 | (exit $ac_status); }; } && | |
20021 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20022 | { (case "(($ac_try" in |
20023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20024 | *) ac_try_echo=$ac_try;; | |
20025 | esac | |
20026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20027 | (eval "$ac_try") 2>&5 | |
e491e8f8 DR |
20028 | ac_status=$? |
20029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20030 | (exit $ac_status); }; }; then | |
20031 | ac_cv_member_struct_ff_effect_direction=yes | |
20032 | else | |
20033 | echo "$as_me: failed program was:" >&5 | |
20034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20035 | ||
fc6ffb29 | 20036 | cat >conftest.$ac_ext <<_ACEOF |
e491e8f8 DR |
20037 | /* confdefs.h. */ |
20038 | _ACEOF | |
20039 | cat confdefs.h >>conftest.$ac_ext | |
20040 | cat >>conftest.$ac_ext <<_ACEOF | |
20041 | /* end confdefs.h. */ | |
20042 | #ifdef HAVE_LINUX_INPUT_H | |
20043 | #include <linux/input.h> | |
20044 | #endif | |
20045 | ||
20046 | int | |
20047 | main () | |
20048 | { | |
20049 | static struct ff_effect ac_aggr; | |
20050 | if (sizeof ac_aggr.direction) | |
20051 | return 0; | |
20052 | ; | |
20053 | return 0; | |
20054 | } | |
20055 | _ACEOF | |
20056 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20057 | if { (ac_try="$ac_compile" |
20058 | case "(($ac_try" in | |
20059 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20060 | *) ac_try_echo=$ac_try;; | |
20061 | esac | |
20062 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20063 | (eval "$ac_compile") 2>conftest.er1 | |
e491e8f8 DR |
20064 | ac_status=$? |
20065 | grep -v '^ *+' conftest.er1 >conftest.err | |
20066 | rm -f conftest.er1 | |
20067 | cat conftest.err >&5 | |
20068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20069 | (exit $ac_status); } && | |
0ebeb530 JW |
20070 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20071 | { (case "(($ac_try" in | |
20072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20073 | *) ac_try_echo=$ac_try;; | |
20074 | esac | |
20075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20076 | (eval "$ac_try") 2>&5 | |
e491e8f8 DR |
20077 | ac_status=$? |
20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20079 | (exit $ac_status); }; } && | |
20080 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20081 | { (case "(($ac_try" in |
20082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20083 | *) ac_try_echo=$ac_try;; | |
20084 | esac | |
20085 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20086 | (eval "$ac_try") 2>&5 | |
e491e8f8 DR |
20087 | ac_status=$? |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20089 | (exit $ac_status); }; }; then | |
20090 | ac_cv_member_struct_ff_effect_direction=yes | |
20091 | else | |
20092 | echo "$as_me: failed program was:" >&5 | |
20093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20094 | ||
fc6ffb29 | 20095 | ac_cv_member_struct_ff_effect_direction=no |
e491e8f8 | 20096 | fi |
fc6ffb29 | 20097 | |
0ebeb530 | 20098 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e491e8f8 | 20099 | fi |
fc6ffb29 | 20100 | |
0ebeb530 | 20101 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
e491e8f8 | 20102 | fi |
fc6ffb29 AJ |
20103 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5 |
20104 | echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; } | |
e491e8f8 DR |
20105 | if test $ac_cv_member_struct_ff_effect_direction = yes; then |
20106 | ||
20107 | cat >>confdefs.h <<_ACEOF | |
20108 | #define HAVE_STRUCT_FF_EFFECT_DIRECTION 1 | |
20109 | _ACEOF | |
20110 | ||
20111 | ||
20112 | fi | |
20113 | ||
20114 | ||
fc6ffb29 AJ |
20115 | { echo "$as_me:$LINENO: checking for sigaddset" >&5 |
20116 | echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; } | |
10a6c560 PM |
20117 | if test "${wine_cv_have_sigaddset+set}" = set; then |
20118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20119 | else | |
20120 | cat >conftest.$ac_ext <<_ACEOF | |
20121 | /* confdefs.h. */ | |
20122 | _ACEOF | |
20123 | cat confdefs.h >>conftest.$ac_ext | |
20124 | cat >>conftest.$ac_ext <<_ACEOF | |
20125 | /* end confdefs.h. */ | |
20126 | #include <signal.h> | |
20127 | int | |
20128 | main () | |
20129 | { | |
20130 | sigset_t set; sigaddset(&set,SIGTERM); | |
20131 | ; | |
20132 | return 0; | |
20133 | } | |
20134 | _ACEOF | |
20135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
20136 | if { (ac_try="$ac_link" |
20137 | case "(($ac_try" in | |
20138 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20139 | *) ac_try_echo=$ac_try;; | |
20140 | esac | |
20141 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20142 | (eval "$ac_link") 2>conftest.er1 | |
10a6c560 PM |
20143 | ac_status=$? |
20144 | grep -v '^ *+' conftest.er1 >conftest.err | |
20145 | rm -f conftest.er1 | |
20146 | cat conftest.err >&5 | |
20147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20148 | (exit $ac_status); } && | |
0ebeb530 JW |
20149 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20150 | { (case "(($ac_try" in | |
20151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20152 | *) ac_try_echo=$ac_try;; | |
20153 | esac | |
20154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20155 | (eval "$ac_try") 2>&5 | |
10a6c560 PM |
20156 | ac_status=$? |
20157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20158 | (exit $ac_status); }; } && | |
20159 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
20160 | { (case "(($ac_try" in |
20161 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20162 | *) ac_try_echo=$ac_try;; | |
20163 | esac | |
20164 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20165 | (eval "$ac_try") 2>&5 | |
10a6c560 PM |
20166 | ac_status=$? |
20167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20168 | (exit $ac_status); }; }; then | |
20169 | wine_cv_have_sigaddset=yes | |
20170 | else | |
20171 | echo "$as_me: failed program was:" >&5 | |
20172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20173 | ||
fc6ffb29 | 20174 | wine_cv_have_sigaddset=no |
10a6c560 | 20175 | fi |
fc6ffb29 | 20176 | |
0ebeb530 | 20177 | rm -f core conftest.err conftest.$ac_objext \ |
10a6c560 PM |
20178 | conftest$ac_exeext conftest.$ac_ext |
20179 | fi | |
fc6ffb29 AJ |
20180 | { echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5 |
20181 | echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; } | |
10a6c560 PM |
20182 | if test "$wine_cv_have_sigaddset" = "yes" |
20183 | then | |
20184 | ||
20185 | cat >>confdefs.h <<\_ACEOF | |
20186 | #define HAVE_SIGADDSET 1 | |
20187 | _ACEOF | |
20188 | ||
20189 | fi | |
20190 | ||
daa2886c | 20191 | |
fc6ffb29 AJ |
20192 | { echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5 |
20193 | echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; } | |
f5818d2f AJ |
20194 | if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then |
20195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ff7a61f8 | 20196 | else |
f5818d2f | 20197 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
20198 | /* confdefs.h. */ |
20199 | _ACEOF | |
20200 | cat confdefs.h >>conftest.$ac_ext | |
20201 | cat >>conftest.$ac_ext <<_ACEOF | |
20202 | /* end confdefs.h. */ | |
ff7a61f8 RK |
20203 | |
20204 | #include <netdb.h> | |
f5818d2f AJ |
20205 | |
20206 | int | |
20207 | main () | |
20208 | { | |
ff7a61f8 RK |
20209 | |
20210 | char *name=NULL; | |
20211 | struct hostent he; | |
20212 | struct hostent *result; | |
20213 | char *buf=NULL; | |
20214 | int bufsize=0; | |
20215 | int res,errnr; | |
20216 | char *addr=NULL; | |
20217 | int addrlen=0; | |
20218 | int addrtype=0; | |
20219 | res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr); | |
20220 | res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr); | |
f5818d2f AJ |
20221 | |
20222 | ; | |
20223 | return 0; | |
20224 | } | |
20225 | _ACEOF | |
dfd315b4 | 20226 | rm -f conftest.$ac_objext conftest$ac_exeext |
0ebeb530 JW |
20227 | if { (ac_try="$ac_link" |
20228 | case "(($ac_try" in | |
20229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20230 | *) ac_try_echo=$ac_try;; | |
20231 | esac | |
20232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20233 | (eval "$ac_link") 2>conftest.er1 | |
f5818d2f | 20234 | ac_status=$? |
875927f6 AJ |
20235 | grep -v '^ *+' conftest.er1 >conftest.err |
20236 | rm -f conftest.er1 | |
20237 | cat conftest.err >&5 | |
daa2886c | 20238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20239 | (exit $ac_status); } && |
0ebeb530 JW |
20240 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20241 | { (case "(($ac_try" in | |
20242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20243 | *) ac_try_echo=$ac_try;; | |
20244 | esac | |
20245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20246 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
20247 | ac_status=$? |
20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20249 | (exit $ac_status); }; } && | |
dfd315b4 | 20250 | { ac_try='test -s conftest$ac_exeext' |
0ebeb530 JW |
20251 | { (case "(($ac_try" in |
20252 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20253 | *) ac_try_echo=$ac_try;; | |
20254 | esac | |
20255 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20256 | (eval "$ac_try") 2>&5 | |
f5818d2f | 20257 | ac_status=$? |
daa2886c | 20258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20259 | (exit $ac_status); }; }; then |
ff7a61f8 RK |
20260 | wine_cv_linux_gethostbyname_r_6=yes |
20261 | else | |
f5818d2f | 20262 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
20263 | sed 's/^/| /' conftest.$ac_ext >&5 |
20264 | ||
fc6ffb29 | 20265 | wine_cv_linux_gethostbyname_r_6=no |
f5818d2f | 20266 | |
ff7a61f8 | 20267 | fi |
fc6ffb29 | 20268 | |
0ebeb530 | 20269 | rm -f core conftest.err conftest.$ac_objext \ |
dfd315b4 | 20270 | conftest$ac_exeext conftest.$ac_ext |
ff7a61f8 | 20271 | |
f5818d2f | 20272 | fi |
fc6ffb29 AJ |
20273 | { echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5 |
20274 | echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; } | |
ff7a61f8 RK |
20275 | if test "$wine_cv_linux_gethostbyname_r_6" = "yes" |
20276 | then | |
f5818d2f | 20277 | |
daa2886c | 20278 | cat >>confdefs.h <<\_ACEOF |
ff7a61f8 | 20279 | #define HAVE_LINUX_GETHOSTBYNAME_R_6 1 |
daa2886c | 20280 | _ACEOF |
ff7a61f8 RK |
20281 | |
20282 | fi | |
20283 | ||
028e9a17 MM |
20284 | if test "$ac_cv_header_linux_joystick_h" = "yes" |
20285 | then | |
fc6ffb29 AJ |
20286 | { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5 |
20287 | echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; } | |
f5818d2f AJ |
20288 | if test "${wine_cv_linux_joystick_22_api+set}" = set; then |
20289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
028e9a17 | 20290 | else |
f5818d2f | 20291 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
20292 | /* confdefs.h. */ |
20293 | _ACEOF | |
20294 | cat confdefs.h >>conftest.$ac_ext | |
20295 | cat >>conftest.$ac_ext <<_ACEOF | |
20296 | /* end confdefs.h. */ | |
028e9a17 MM |
20297 | |
20298 | #include <sys/ioctl.h> | |
20299 | #include <linux/joystick.h> | |
20300 | ||
20301 | struct js_event blub; | |
605a9c39 MM |
20302 | #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON) |
20303 | #error "no 2.2 header" | |
20304 | #endif | |
f5818d2f AJ |
20305 | |
20306 | int | |
20307 | main () | |
20308 | { | |
028e9a17 | 20309 | /*empty*/ |
f5818d2f AJ |
20310 | ; |
20311 | return 0; | |
20312 | } | |
20313 | _ACEOF | |
20314 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20315 | if { (ac_try="$ac_compile" |
20316 | case "(($ac_try" in | |
20317 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20318 | *) ac_try_echo=$ac_try;; | |
20319 | esac | |
20320 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20321 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 20322 | ac_status=$? |
875927f6 AJ |
20323 | grep -v '^ *+' conftest.er1 >conftest.err |
20324 | rm -f conftest.er1 | |
20325 | cat conftest.err >&5 | |
daa2886c | 20326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20327 | (exit $ac_status); } && |
0ebeb530 JW |
20328 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20329 | { (case "(($ac_try" in | |
20330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20331 | *) ac_try_echo=$ac_try;; | |
20332 | esac | |
20333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20334 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
20335 | ac_status=$? |
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20337 | (exit $ac_status); }; } && | |
20338 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20339 | { (case "(($ac_try" in |
20340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20341 | *) ac_try_echo=$ac_try;; | |
20342 | esac | |
20343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20344 | (eval "$ac_try") 2>&5 | |
f5818d2f | 20345 | ac_status=$? |
daa2886c | 20346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20347 | (exit $ac_status); }; }; then |
028e9a17 MM |
20348 | wine_cv_linux_joystick_22_api=yes |
20349 | else | |
f5818d2f | 20350 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
20351 | sed 's/^/| /' conftest.$ac_ext >&5 |
20352 | ||
fc6ffb29 | 20353 | wine_cv_linux_joystick_22_api=no |
028e9a17 | 20354 | fi |
fc6ffb29 | 20355 | |
0ebeb530 | 20356 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
028e9a17 | 20357 | |
f5818d2f | 20358 | fi |
fc6ffb29 AJ |
20359 | { echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5 |
20360 | echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; } | |
87d224ac | 20361 | if test "$wine_cv_linux_joystick_22_api" = "yes" |
028e9a17 | 20362 | then |
f5818d2f | 20363 | |
daa2886c | 20364 | cat >>confdefs.h <<\_ACEOF |
028e9a17 | 20365 | #define HAVE_LINUX_22_JOYSTICK_API 1 |
daa2886c | 20366 | _ACEOF |
028e9a17 MM |
20367 | |
20368 | fi | |
20369 | fi | |
20370 | ||
daa2886c | 20371 | |
fc6ffb29 AJ |
20372 | { echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5 |
20373 | echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; } | |
5537dbbf | 20374 | if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then |
f5818d2f | 20375 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c7c217b3 | 20376 | else |
f5818d2f | 20377 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
20378 | /* confdefs.h. */ |
20379 | _ACEOF | |
20380 | cat confdefs.h >>conftest.$ac_ext | |
20381 | cat >>conftest.$ac_ext <<_ACEOF | |
20382 | /* end confdefs.h. */ | |
f5818d2f AJ |
20383 | #include <sys/types.h> |
20384 | #ifdef HAVE_SYS_PARAM_H | |
20385 | # include <sys/param.h> | |
20386 | #endif | |
55b74483 | 20387 | #ifdef HAVE_SYS_MOUNT_H |
f5818d2f | 20388 | # include <sys/mount.h> |
55b74483 RM |
20389 | #endif |
20390 | #ifdef HAVE_SYS_VFS_H | |
20391 | # include <sys/vfs.h> | |
20392 | #endif | |
20393 | #ifdef HAVE_SYS_STATFS_H | |
20394 | # include <sys/statfs.h> | |
f5818d2f | 20395 | #endif |
5537dbbf | 20396 | |
f5818d2f AJ |
20397 | int |
20398 | main () | |
20399 | { | |
5537dbbf AJ |
20400 | static struct statfs ac_aggr; |
20401 | if (ac_aggr.f_bfree) | |
20402 | return 0; | |
f5818d2f AJ |
20403 | ; |
20404 | return 0; | |
20405 | } | |
20406 | _ACEOF | |
20407 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20408 | if { (ac_try="$ac_compile" |
20409 | case "(($ac_try" in | |
20410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20411 | *) ac_try_echo=$ac_try;; | |
20412 | esac | |
20413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20414 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 20415 | ac_status=$? |
875927f6 AJ |
20416 | grep -v '^ *+' conftest.er1 >conftest.err |
20417 | rm -f conftest.er1 | |
20418 | cat conftest.err >&5 | |
daa2886c | 20419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20420 | (exit $ac_status); } && |
0ebeb530 JW |
20421 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20422 | { (case "(($ac_try" in | |
20423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20424 | *) ac_try_echo=$ac_try;; | |
20425 | esac | |
20426 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20427 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
20428 | ac_status=$? |
20429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20430 | (exit $ac_status); }; } && | |
20431 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20432 | { (case "(($ac_try" in |
20433 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20434 | *) ac_try_echo=$ac_try;; | |
20435 | esac | |
20436 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20437 | (eval "$ac_try") 2>&5 | |
f5818d2f | 20438 | ac_status=$? |
daa2886c | 20439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20440 | (exit $ac_status); }; }; then |
5537dbbf | 20441 | ac_cv_member_struct_statfs_f_bfree=yes |
f5818d2f AJ |
20442 | else |
20443 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
20444 | sed 's/^/| /' conftest.$ac_ext >&5 |
20445 | ||
fc6ffb29 | 20446 | cat >conftest.$ac_ext <<_ACEOF |
5537dbbf AJ |
20447 | /* confdefs.h. */ |
20448 | _ACEOF | |
20449 | cat confdefs.h >>conftest.$ac_ext | |
20450 | cat >>conftest.$ac_ext <<_ACEOF | |
20451 | /* end confdefs.h. */ | |
20452 | #include <sys/types.h> | |
20453 | #ifdef HAVE_SYS_PARAM_H | |
20454 | # include <sys/param.h> | |
20455 | #endif | |
55b74483 | 20456 | #ifdef HAVE_SYS_MOUNT_H |
5537dbbf | 20457 | # include <sys/mount.h> |
55b74483 RM |
20458 | #endif |
20459 | #ifdef HAVE_SYS_VFS_H | |
20460 | # include <sys/vfs.h> | |
20461 | #endif | |
20462 | #ifdef HAVE_SYS_STATFS_H | |
20463 | # include <sys/statfs.h> | |
5537dbbf | 20464 | #endif |
f5818d2f | 20465 | |
5537dbbf AJ |
20466 | int |
20467 | main () | |
20468 | { | |
20469 | static struct statfs ac_aggr; | |
20470 | if (sizeof ac_aggr.f_bfree) | |
20471 | return 0; | |
20472 | ; | |
20473 | return 0; | |
20474 | } | |
daa2886c | 20475 | _ACEOF |
5537dbbf | 20476 | rm -f conftest.$ac_objext |
0ebeb530 JW |
20477 | if { (ac_try="$ac_compile" |
20478 | case "(($ac_try" in | |
20479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20480 | *) ac_try_echo=$ac_try;; | |
20481 | esac | |
20482 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20483 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 20484 | ac_status=$? |
875927f6 AJ |
20485 | grep -v '^ *+' conftest.er1 >conftest.err |
20486 | rm -f conftest.er1 | |
20487 | cat conftest.err >&5 | |
5537dbbf AJ |
20488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20489 | (exit $ac_status); } && | |
0ebeb530 JW |
20490 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20491 | { (case "(($ac_try" in | |
20492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20493 | *) ac_try_echo=$ac_try;; | |
20494 | esac | |
20495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20496 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
20497 | ac_status=$? |
20498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20499 | (exit $ac_status); }; } && | |
20500 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20501 | { (case "(($ac_try" in |
20502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20503 | *) ac_try_echo=$ac_try;; | |
20504 | esac | |
20505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20506 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
20507 | ac_status=$? |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20509 | (exit $ac_status); }; }; then | |
20510 | ac_cv_member_struct_statfs_f_bfree=yes | |
20511 | else | |
20512 | echo "$as_me: failed program was:" >&5 | |
20513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c7c217b3 | 20514 | |
fc6ffb29 | 20515 | ac_cv_member_struct_statfs_f_bfree=no |
c7c217b3 | 20516 | fi |
fc6ffb29 | 20517 | |
0ebeb530 | 20518 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5537dbbf | 20519 | fi |
fc6ffb29 | 20520 | |
0ebeb530 | 20521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5537dbbf | 20522 | fi |
fc6ffb29 AJ |
20523 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5 |
20524 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; } | |
5537dbbf | 20525 | if test $ac_cv_member_struct_statfs_f_bfree = yes; then |
c7c217b3 | 20526 | |
5537dbbf AJ |
20527 | cat >>confdefs.h <<_ACEOF |
20528 | #define HAVE_STRUCT_STATFS_F_BFREE 1 | |
20529 | _ACEOF | |
daa2886c AJ |
20530 | |
20531 | ||
5537dbbf | 20532 | fi |
fc6ffb29 AJ |
20533 | { echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5 |
20534 | echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; } | |
5537dbbf | 20535 | if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then |
f5818d2f | 20536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
dadf78ff | 20537 | else |
f5818d2f | 20538 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
20539 | /* confdefs.h. */ |
20540 | _ACEOF | |
20541 | cat confdefs.h >>conftest.$ac_ext | |
20542 | cat >>conftest.$ac_ext <<_ACEOF | |
20543 | /* end confdefs.h. */ | |
f5818d2f AJ |
20544 | #include <sys/types.h> |
20545 | #ifdef HAVE_SYS_PARAM_H | |
20546 | # include <sys/param.h> | |
20547 | #endif | |
55b74483 | 20548 | #ifdef HAVE_SYS_MOUNT_H |
f5818d2f | 20549 | # include <sys/mount.h> |
55b74483 RM |
20550 | #endif |
20551 | #ifdef HAVE_SYS_VFS_H | |
20552 | # include <sys/vfs.h> | |
20553 | #endif | |
20554 | #ifdef HAVE_SYS_STATFS_H | |
20555 | # include <sys/statfs.h> | |
f5818d2f | 20556 | #endif |
5537dbbf | 20557 | |
f5818d2f AJ |
20558 | int |
20559 | main () | |
20560 | { | |
5537dbbf AJ |
20561 | static struct statfs ac_aggr; |
20562 | if (ac_aggr.f_bavail) | |
20563 | return 0; | |
f5818d2f AJ |
20564 | ; |
20565 | return 0; | |
20566 | } | |
20567 | _ACEOF | |
20568 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20569 | if { (ac_try="$ac_compile" |
20570 | case "(($ac_try" in | |
20571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20572 | *) ac_try_echo=$ac_try;; | |
20573 | esac | |
20574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20575 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 20576 | ac_status=$? |
875927f6 AJ |
20577 | grep -v '^ *+' conftest.er1 >conftest.err |
20578 | rm -f conftest.er1 | |
20579 | cat conftest.err >&5 | |
daa2886c | 20580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20581 | (exit $ac_status); } && |
0ebeb530 JW |
20582 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20583 | { (case "(($ac_try" in | |
20584 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20585 | *) ac_try_echo=$ac_try;; | |
20586 | esac | |
20587 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20588 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
20589 | ac_status=$? |
20590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20591 | (exit $ac_status); }; } && | |
20592 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20593 | { (case "(($ac_try" in |
20594 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20595 | *) ac_try_echo=$ac_try;; | |
20596 | esac | |
20597 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20598 | (eval "$ac_try") 2>&5 | |
f5818d2f | 20599 | ac_status=$? |
daa2886c | 20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 20601 | (exit $ac_status); }; }; then |
5537dbbf | 20602 | ac_cv_member_struct_statfs_f_bavail=yes |
f5818d2f AJ |
20603 | else |
20604 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
20605 | sed 's/^/| /' conftest.$ac_ext >&5 |
20606 | ||
fc6ffb29 | 20607 | cat >conftest.$ac_ext <<_ACEOF |
5537dbbf AJ |
20608 | /* confdefs.h. */ |
20609 | _ACEOF | |
20610 | cat confdefs.h >>conftest.$ac_ext | |
20611 | cat >>conftest.$ac_ext <<_ACEOF | |
20612 | /* end confdefs.h. */ | |
20613 | #include <sys/types.h> | |
20614 | #ifdef HAVE_SYS_PARAM_H | |
20615 | # include <sys/param.h> | |
20616 | #endif | |
55b74483 | 20617 | #ifdef HAVE_SYS_MOUNT_H |
5537dbbf | 20618 | # include <sys/mount.h> |
55b74483 RM |
20619 | #endif |
20620 | #ifdef HAVE_SYS_VFS_H | |
20621 | # include <sys/vfs.h> | |
20622 | #endif | |
20623 | #ifdef HAVE_SYS_STATFS_H | |
20624 | # include <sys/statfs.h> | |
5537dbbf AJ |
20625 | #endif |
20626 | ||
20627 | int | |
20628 | main () | |
20629 | { | |
20630 | static struct statfs ac_aggr; | |
20631 | if (sizeof ac_aggr.f_bavail) | |
20632 | return 0; | |
20633 | ; | |
20634 | return 0; | |
20635 | } | |
20636 | _ACEOF | |
20637 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20638 | if { (ac_try="$ac_compile" |
20639 | case "(($ac_try" in | |
20640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20641 | *) ac_try_echo=$ac_try;; | |
20642 | esac | |
20643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20644 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 20645 | ac_status=$? |
875927f6 AJ |
20646 | grep -v '^ *+' conftest.er1 >conftest.err |
20647 | rm -f conftest.er1 | |
20648 | cat conftest.err >&5 | |
5537dbbf AJ |
20649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20650 | (exit $ac_status); } && | |
0ebeb530 JW |
20651 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20652 | { (case "(($ac_try" in | |
20653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20654 | *) ac_try_echo=$ac_try;; | |
20655 | esac | |
20656 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20657 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
20658 | ac_status=$? |
20659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20660 | (exit $ac_status); }; } && | |
20661 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20662 | { (case "(($ac_try" in |
20663 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20664 | *) ac_try_echo=$ac_try;; | |
20665 | esac | |
20666 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20667 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
20668 | ac_status=$? |
20669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20670 | (exit $ac_status); }; }; then | |
20671 | ac_cv_member_struct_statfs_f_bavail=yes | |
20672 | else | |
20673 | echo "$as_me: failed program was:" >&5 | |
20674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20675 | ||
fc6ffb29 | 20676 | ac_cv_member_struct_statfs_f_bavail=no |
5537dbbf | 20677 | fi |
fc6ffb29 | 20678 | |
0ebeb530 | 20679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 20680 | fi |
fc6ffb29 | 20681 | |
0ebeb530 | 20682 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 20683 | fi |
fc6ffb29 AJ |
20684 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5 |
20685 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; } | |
5537dbbf | 20686 | if test $ac_cv_member_struct_statfs_f_bavail = yes; then |
f5818d2f | 20687 | |
5537dbbf AJ |
20688 | cat >>confdefs.h <<_ACEOF |
20689 | #define HAVE_STRUCT_STATFS_F_BAVAIL 1 | |
daa2886c | 20690 | _ACEOF |
dadf78ff | 20691 | |
dadf78ff | 20692 | |
13af4891 | 20693 | fi |
fc6ffb29 AJ |
20694 | { echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5 |
20695 | echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; } | |
13af4891 AJ |
20696 | if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then |
20697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20698 | else | |
20699 | cat >conftest.$ac_ext <<_ACEOF | |
20700 | /* confdefs.h. */ | |
20701 | _ACEOF | |
20702 | cat confdefs.h >>conftest.$ac_ext | |
20703 | cat >>conftest.$ac_ext <<_ACEOF | |
20704 | /* end confdefs.h. */ | |
20705 | #include <sys/types.h> | |
20706 | #ifdef HAVE_SYS_PARAM_H | |
20707 | # include <sys/param.h> | |
20708 | #endif | |
55b74483 | 20709 | #ifdef HAVE_SYS_MOUNT_H |
13af4891 | 20710 | # include <sys/mount.h> |
55b74483 RM |
20711 | #endif |
20712 | #ifdef HAVE_SYS_VFS_H | |
20713 | # include <sys/vfs.h> | |
20714 | #endif | |
20715 | #ifdef HAVE_SYS_STATFS_H | |
20716 | # include <sys/statfs.h> | |
13af4891 AJ |
20717 | #endif |
20718 | ||
20719 | int | |
20720 | main () | |
20721 | { | |
20722 | static struct statfs ac_aggr; | |
20723 | if (ac_aggr.f_frsize) | |
20724 | return 0; | |
20725 | ; | |
20726 | return 0; | |
20727 | } | |
20728 | _ACEOF | |
20729 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20730 | if { (ac_try="$ac_compile" |
20731 | case "(($ac_try" in | |
20732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20733 | *) ac_try_echo=$ac_try;; | |
20734 | esac | |
20735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20736 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
20737 | ac_status=$? |
20738 | grep -v '^ *+' conftest.er1 >conftest.err | |
20739 | rm -f conftest.er1 | |
20740 | cat conftest.err >&5 | |
20741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20742 | (exit $ac_status); } && | |
0ebeb530 JW |
20743 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20744 | { (case "(($ac_try" in | |
20745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20746 | *) ac_try_echo=$ac_try;; | |
20747 | esac | |
20748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20749 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20750 | ac_status=$? |
20751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20752 | (exit $ac_status); }; } && | |
20753 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20754 | { (case "(($ac_try" in |
20755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20756 | *) ac_try_echo=$ac_try;; | |
20757 | esac | |
20758 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20759 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20760 | ac_status=$? |
20761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20762 | (exit $ac_status); }; }; then | |
20763 | ac_cv_member_struct_statfs_f_frsize=yes | |
20764 | else | |
20765 | echo "$as_me: failed program was:" >&5 | |
20766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20767 | ||
fc6ffb29 | 20768 | cat >conftest.$ac_ext <<_ACEOF |
13af4891 AJ |
20769 | /* confdefs.h. */ |
20770 | _ACEOF | |
20771 | cat confdefs.h >>conftest.$ac_ext | |
20772 | cat >>conftest.$ac_ext <<_ACEOF | |
20773 | /* end confdefs.h. */ | |
20774 | #include <sys/types.h> | |
20775 | #ifdef HAVE_SYS_PARAM_H | |
20776 | # include <sys/param.h> | |
20777 | #endif | |
55b74483 | 20778 | #ifdef HAVE_SYS_MOUNT_H |
13af4891 | 20779 | # include <sys/mount.h> |
55b74483 RM |
20780 | #endif |
20781 | #ifdef HAVE_SYS_VFS_H | |
20782 | # include <sys/vfs.h> | |
20783 | #endif | |
20784 | #ifdef HAVE_SYS_STATFS_H | |
20785 | # include <sys/statfs.h> | |
13af4891 AJ |
20786 | #endif |
20787 | ||
20788 | int | |
20789 | main () | |
20790 | { | |
20791 | static struct statfs ac_aggr; | |
20792 | if (sizeof ac_aggr.f_frsize) | |
20793 | return 0; | |
20794 | ; | |
20795 | return 0; | |
20796 | } | |
20797 | _ACEOF | |
20798 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20799 | if { (ac_try="$ac_compile" |
20800 | case "(($ac_try" in | |
20801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20802 | *) ac_try_echo=$ac_try;; | |
20803 | esac | |
20804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20805 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
20806 | ac_status=$? |
20807 | grep -v '^ *+' conftest.er1 >conftest.err | |
20808 | rm -f conftest.er1 | |
20809 | cat conftest.err >&5 | |
20810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20811 | (exit $ac_status); } && | |
0ebeb530 JW |
20812 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20813 | { (case "(($ac_try" in | |
20814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20815 | *) ac_try_echo=$ac_try;; | |
20816 | esac | |
20817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20818 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20819 | ac_status=$? |
20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20821 | (exit $ac_status); }; } && | |
20822 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20823 | { (case "(($ac_try" in |
20824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20825 | *) ac_try_echo=$ac_try;; | |
20826 | esac | |
20827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20828 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20829 | ac_status=$? |
20830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20831 | (exit $ac_status); }; }; then | |
20832 | ac_cv_member_struct_statfs_f_frsize=yes | |
20833 | else | |
20834 | echo "$as_me: failed program was:" >&5 | |
20835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20836 | ||
fc6ffb29 | 20837 | ac_cv_member_struct_statfs_f_frsize=no |
13af4891 | 20838 | fi |
fc6ffb29 | 20839 | |
0ebeb530 | 20840 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 20841 | fi |
fc6ffb29 | 20842 | |
0ebeb530 | 20843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 20844 | fi |
fc6ffb29 AJ |
20845 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5 |
20846 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; } | |
13af4891 AJ |
20847 | if test $ac_cv_member_struct_statfs_f_frsize = yes; then |
20848 | ||
20849 | cat >>confdefs.h <<_ACEOF | |
20850 | #define HAVE_STRUCT_STATFS_F_FRSIZE 1 | |
20851 | _ACEOF | |
20852 | ||
20853 | ||
20854 | fi | |
fc6ffb29 AJ |
20855 | { echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5 |
20856 | echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; } | |
13af4891 AJ |
20857 | if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then |
20858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20859 | else | |
20860 | cat >conftest.$ac_ext <<_ACEOF | |
20861 | /* confdefs.h. */ | |
20862 | _ACEOF | |
20863 | cat confdefs.h >>conftest.$ac_ext | |
20864 | cat >>conftest.$ac_ext <<_ACEOF | |
20865 | /* end confdefs.h. */ | |
20866 | #include <sys/types.h> | |
20867 | #ifdef HAVE_SYS_PARAM_H | |
20868 | # include <sys/param.h> | |
20869 | #endif | |
55b74483 | 20870 | #ifdef HAVE_SYS_MOUNT_H |
13af4891 | 20871 | # include <sys/mount.h> |
55b74483 RM |
20872 | #endif |
20873 | #ifdef HAVE_SYS_VFS_H | |
20874 | # include <sys/vfs.h> | |
20875 | #endif | |
20876 | #ifdef HAVE_SYS_STATFS_H | |
20877 | # include <sys/statfs.h> | |
13af4891 AJ |
20878 | #endif |
20879 | ||
20880 | int | |
20881 | main () | |
20882 | { | |
20883 | static struct statfs ac_aggr; | |
20884 | if (ac_aggr.f_ffree) | |
20885 | return 0; | |
20886 | ; | |
20887 | return 0; | |
20888 | } | |
20889 | _ACEOF | |
20890 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20891 | if { (ac_try="$ac_compile" |
20892 | case "(($ac_try" in | |
20893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20894 | *) ac_try_echo=$ac_try;; | |
20895 | esac | |
20896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20897 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
20898 | ac_status=$? |
20899 | grep -v '^ *+' conftest.er1 >conftest.err | |
20900 | rm -f conftest.er1 | |
20901 | cat conftest.err >&5 | |
20902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20903 | (exit $ac_status); } && | |
0ebeb530 JW |
20904 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20905 | { (case "(($ac_try" in | |
20906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20907 | *) ac_try_echo=$ac_try;; | |
20908 | esac | |
20909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20910 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20911 | ac_status=$? |
20912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20913 | (exit $ac_status); }; } && | |
20914 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20915 | { (case "(($ac_try" in |
20916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20917 | *) ac_try_echo=$ac_try;; | |
20918 | esac | |
20919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20920 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20921 | ac_status=$? |
20922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20923 | (exit $ac_status); }; }; then | |
20924 | ac_cv_member_struct_statfs_f_ffree=yes | |
20925 | else | |
20926 | echo "$as_me: failed program was:" >&5 | |
20927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20928 | ||
fc6ffb29 | 20929 | cat >conftest.$ac_ext <<_ACEOF |
13af4891 AJ |
20930 | /* confdefs.h. */ |
20931 | _ACEOF | |
20932 | cat confdefs.h >>conftest.$ac_ext | |
20933 | cat >>conftest.$ac_ext <<_ACEOF | |
20934 | /* end confdefs.h. */ | |
20935 | #include <sys/types.h> | |
20936 | #ifdef HAVE_SYS_PARAM_H | |
20937 | # include <sys/param.h> | |
20938 | #endif | |
55b74483 | 20939 | #ifdef HAVE_SYS_MOUNT_H |
13af4891 | 20940 | # include <sys/mount.h> |
55b74483 RM |
20941 | #endif |
20942 | #ifdef HAVE_SYS_VFS_H | |
20943 | # include <sys/vfs.h> | |
20944 | #endif | |
20945 | #ifdef HAVE_SYS_STATFS_H | |
20946 | # include <sys/statfs.h> | |
13af4891 AJ |
20947 | #endif |
20948 | ||
20949 | int | |
20950 | main () | |
20951 | { | |
20952 | static struct statfs ac_aggr; | |
20953 | if (sizeof ac_aggr.f_ffree) | |
20954 | return 0; | |
20955 | ; | |
20956 | return 0; | |
20957 | } | |
20958 | _ACEOF | |
20959 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
20960 | if { (ac_try="$ac_compile" |
20961 | case "(($ac_try" in | |
20962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20963 | *) ac_try_echo=$ac_try;; | |
20964 | esac | |
20965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20966 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
20967 | ac_status=$? |
20968 | grep -v '^ *+' conftest.er1 >conftest.err | |
20969 | rm -f conftest.er1 | |
20970 | cat conftest.err >&5 | |
20971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20972 | (exit $ac_status); } && | |
0ebeb530 JW |
20973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20974 | { (case "(($ac_try" in | |
20975 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20976 | *) ac_try_echo=$ac_try;; | |
20977 | esac | |
20978 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20979 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20980 | ac_status=$? |
20981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20982 | (exit $ac_status); }; } && | |
20983 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
20984 | { (case "(($ac_try" in |
20985 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
20986 | *) ac_try_echo=$ac_try;; | |
20987 | esac | |
20988 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
20989 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
20990 | ac_status=$? |
20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20992 | (exit $ac_status); }; }; then | |
20993 | ac_cv_member_struct_statfs_f_ffree=yes | |
20994 | else | |
20995 | echo "$as_me: failed program was:" >&5 | |
20996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20997 | ||
fc6ffb29 | 20998 | ac_cv_member_struct_statfs_f_ffree=no |
13af4891 | 20999 | fi |
fc6ffb29 | 21000 | |
0ebeb530 | 21001 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 21002 | fi |
fc6ffb29 | 21003 | |
0ebeb530 | 21004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 21005 | fi |
fc6ffb29 AJ |
21006 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5 |
21007 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; } | |
13af4891 AJ |
21008 | if test $ac_cv_member_struct_statfs_f_ffree = yes; then |
21009 | ||
21010 | cat >>confdefs.h <<_ACEOF | |
21011 | #define HAVE_STRUCT_STATFS_F_FFREE 1 | |
21012 | _ACEOF | |
21013 | ||
21014 | ||
21015 | fi | |
fc6ffb29 AJ |
21016 | { echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5 |
21017 | echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; } | |
13af4891 AJ |
21018 | if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then |
21019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21020 | else | |
21021 | cat >conftest.$ac_ext <<_ACEOF | |
21022 | /* confdefs.h. */ | |
21023 | _ACEOF | |
21024 | cat confdefs.h >>conftest.$ac_ext | |
21025 | cat >>conftest.$ac_ext <<_ACEOF | |
21026 | /* end confdefs.h. */ | |
21027 | #include <sys/types.h> | |
21028 | #ifdef HAVE_SYS_PARAM_H | |
21029 | # include <sys/param.h> | |
21030 | #endif | |
55b74483 | 21031 | #ifdef HAVE_SYS_MOUNT_H |
13af4891 | 21032 | # include <sys/mount.h> |
55b74483 RM |
21033 | #endif |
21034 | #ifdef HAVE_SYS_VFS_H | |
21035 | # include <sys/vfs.h> | |
21036 | #endif | |
21037 | #ifdef HAVE_SYS_STATFS_H | |
21038 | # include <sys/statfs.h> | |
13af4891 AJ |
21039 | #endif |
21040 | ||
21041 | int | |
21042 | main () | |
21043 | { | |
21044 | static struct statfs ac_aggr; | |
21045 | if (ac_aggr.f_favail) | |
21046 | return 0; | |
21047 | ; | |
21048 | return 0; | |
21049 | } | |
21050 | _ACEOF | |
21051 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21052 | if { (ac_try="$ac_compile" |
21053 | case "(($ac_try" in | |
21054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21055 | *) ac_try_echo=$ac_try;; | |
21056 | esac | |
21057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21058 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
21059 | ac_status=$? |
21060 | grep -v '^ *+' conftest.er1 >conftest.err | |
21061 | rm -f conftest.er1 | |
21062 | cat conftest.err >&5 | |
21063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21064 | (exit $ac_status); } && | |
0ebeb530 JW |
21065 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21066 | { (case "(($ac_try" in | |
21067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21068 | *) ac_try_echo=$ac_try;; | |
21069 | esac | |
21070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21071 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21072 | ac_status=$? |
21073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21074 | (exit $ac_status); }; } && | |
21075 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21076 | { (case "(($ac_try" in |
21077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21078 | *) ac_try_echo=$ac_try;; | |
21079 | esac | |
21080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21081 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21082 | ac_status=$? |
21083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21084 | (exit $ac_status); }; }; then | |
21085 | ac_cv_member_struct_statfs_f_favail=yes | |
21086 | else | |
21087 | echo "$as_me: failed program was:" >&5 | |
21088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21089 | ||
fc6ffb29 | 21090 | cat >conftest.$ac_ext <<_ACEOF |
13af4891 AJ |
21091 | /* confdefs.h. */ |
21092 | _ACEOF | |
21093 | cat confdefs.h >>conftest.$ac_ext | |
21094 | cat >>conftest.$ac_ext <<_ACEOF | |
21095 | /* end confdefs.h. */ | |
21096 | #include <sys/types.h> | |
21097 | #ifdef HAVE_SYS_PARAM_H | |
21098 | # include <sys/param.h> | |
21099 | #endif | |
55b74483 | 21100 | #ifdef HAVE_SYS_MOUNT_H |
13af4891 | 21101 | # include <sys/mount.h> |
55b74483 RM |
21102 | #endif |
21103 | #ifdef HAVE_SYS_VFS_H | |
21104 | # include <sys/vfs.h> | |
21105 | #endif | |
21106 | #ifdef HAVE_SYS_STATFS_H | |
21107 | # include <sys/statfs.h> | |
13af4891 AJ |
21108 | #endif |
21109 | ||
21110 | int | |
21111 | main () | |
21112 | { | |
21113 | static struct statfs ac_aggr; | |
21114 | if (sizeof ac_aggr.f_favail) | |
21115 | return 0; | |
21116 | ; | |
21117 | return 0; | |
21118 | } | |
21119 | _ACEOF | |
21120 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21121 | if { (ac_try="$ac_compile" |
21122 | case "(($ac_try" in | |
21123 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21124 | *) ac_try_echo=$ac_try;; | |
21125 | esac | |
21126 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21127 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
21128 | ac_status=$? |
21129 | grep -v '^ *+' conftest.er1 >conftest.err | |
21130 | rm -f conftest.er1 | |
21131 | cat conftest.err >&5 | |
21132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21133 | (exit $ac_status); } && | |
0ebeb530 JW |
21134 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21135 | { (case "(($ac_try" in | |
21136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21137 | *) ac_try_echo=$ac_try;; | |
21138 | esac | |
21139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21140 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21141 | ac_status=$? |
21142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21143 | (exit $ac_status); }; } && | |
21144 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21145 | { (case "(($ac_try" in |
21146 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21147 | *) ac_try_echo=$ac_try;; | |
21148 | esac | |
21149 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21150 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21151 | ac_status=$? |
21152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21153 | (exit $ac_status); }; }; then | |
21154 | ac_cv_member_struct_statfs_f_favail=yes | |
21155 | else | |
21156 | echo "$as_me: failed program was:" >&5 | |
21157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21158 | ||
fc6ffb29 | 21159 | ac_cv_member_struct_statfs_f_favail=no |
13af4891 | 21160 | fi |
fc6ffb29 | 21161 | |
0ebeb530 | 21162 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 21163 | fi |
fc6ffb29 | 21164 | |
0ebeb530 | 21165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 21166 | fi |
fc6ffb29 AJ |
21167 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5 |
21168 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; } | |
13af4891 AJ |
21169 | if test $ac_cv_member_struct_statfs_f_favail = yes; then |
21170 | ||
21171 | cat >>confdefs.h <<_ACEOF | |
21172 | #define HAVE_STRUCT_STATFS_F_FAVAIL 1 | |
21173 | _ACEOF | |
21174 | ||
21175 | ||
b859a686 | 21176 | fi |
fc6ffb29 AJ |
21177 | { echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5 |
21178 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; } | |
b859a686 AJ |
21179 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then |
21180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21181 | else | |
21182 | cat >conftest.$ac_ext <<_ACEOF | |
21183 | /* confdefs.h. */ | |
21184 | _ACEOF | |
21185 | cat confdefs.h >>conftest.$ac_ext | |
21186 | cat >>conftest.$ac_ext <<_ACEOF | |
21187 | /* end confdefs.h. */ | |
21188 | #include <sys/types.h> | |
21189 | #ifdef HAVE_SYS_PARAM_H | |
21190 | # include <sys/param.h> | |
21191 | #endif | |
55b74483 | 21192 | #ifdef HAVE_SYS_MOUNT_H |
b859a686 | 21193 | # include <sys/mount.h> |
55b74483 RM |
21194 | #endif |
21195 | #ifdef HAVE_SYS_VFS_H | |
21196 | # include <sys/vfs.h> | |
21197 | #endif | |
21198 | #ifdef HAVE_SYS_STATFS_H | |
21199 | # include <sys/statfs.h> | |
b859a686 AJ |
21200 | #endif |
21201 | ||
21202 | int | |
21203 | main () | |
21204 | { | |
21205 | static struct statfs ac_aggr; | |
21206 | if (ac_aggr.f_namelen) | |
21207 | return 0; | |
21208 | ; | |
21209 | return 0; | |
21210 | } | |
21211 | _ACEOF | |
21212 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21213 | if { (ac_try="$ac_compile" |
21214 | case "(($ac_try" in | |
21215 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21216 | *) ac_try_echo=$ac_try;; | |
21217 | esac | |
21218 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21219 | (eval "$ac_compile") 2>conftest.er1 | |
b859a686 AJ |
21220 | ac_status=$? |
21221 | grep -v '^ *+' conftest.er1 >conftest.err | |
21222 | rm -f conftest.er1 | |
21223 | cat conftest.err >&5 | |
21224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21225 | (exit $ac_status); } && | |
0ebeb530 JW |
21226 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21227 | { (case "(($ac_try" in | |
21228 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21229 | *) ac_try_echo=$ac_try;; | |
21230 | esac | |
21231 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21232 | (eval "$ac_try") 2>&5 | |
b859a686 AJ |
21233 | ac_status=$? |
21234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21235 | (exit $ac_status); }; } && | |
21236 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21237 | { (case "(($ac_try" in |
21238 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21239 | *) ac_try_echo=$ac_try;; | |
21240 | esac | |
21241 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21242 | (eval "$ac_try") 2>&5 | |
b859a686 AJ |
21243 | ac_status=$? |
21244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21245 | (exit $ac_status); }; }; then | |
21246 | ac_cv_member_struct_statfs_f_namelen=yes | |
21247 | else | |
21248 | echo "$as_me: failed program was:" >&5 | |
21249 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21250 | ||
fc6ffb29 | 21251 | cat >conftest.$ac_ext <<_ACEOF |
b859a686 AJ |
21252 | /* confdefs.h. */ |
21253 | _ACEOF | |
21254 | cat confdefs.h >>conftest.$ac_ext | |
21255 | cat >>conftest.$ac_ext <<_ACEOF | |
21256 | /* end confdefs.h. */ | |
21257 | #include <sys/types.h> | |
21258 | #ifdef HAVE_SYS_PARAM_H | |
21259 | # include <sys/param.h> | |
21260 | #endif | |
55b74483 | 21261 | #ifdef HAVE_SYS_MOUNT_H |
b859a686 | 21262 | # include <sys/mount.h> |
55b74483 RM |
21263 | #endif |
21264 | #ifdef HAVE_SYS_VFS_H | |
21265 | # include <sys/vfs.h> | |
21266 | #endif | |
21267 | #ifdef HAVE_SYS_STATFS_H | |
21268 | # include <sys/statfs.h> | |
b859a686 AJ |
21269 | #endif |
21270 | ||
21271 | int | |
21272 | main () | |
21273 | { | |
21274 | static struct statfs ac_aggr; | |
21275 | if (sizeof ac_aggr.f_namelen) | |
21276 | return 0; | |
21277 | ; | |
21278 | return 0; | |
21279 | } | |
21280 | _ACEOF | |
21281 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21282 | if { (ac_try="$ac_compile" |
21283 | case "(($ac_try" in | |
21284 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21285 | *) ac_try_echo=$ac_try;; | |
21286 | esac | |
21287 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21288 | (eval "$ac_compile") 2>conftest.er1 | |
b859a686 AJ |
21289 | ac_status=$? |
21290 | grep -v '^ *+' conftest.er1 >conftest.err | |
21291 | rm -f conftest.er1 | |
21292 | cat conftest.err >&5 | |
21293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21294 | (exit $ac_status); } && | |
0ebeb530 JW |
21295 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21296 | { (case "(($ac_try" in | |
21297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21298 | *) ac_try_echo=$ac_try;; | |
21299 | esac | |
21300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21301 | (eval "$ac_try") 2>&5 | |
b859a686 AJ |
21302 | ac_status=$? |
21303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21304 | (exit $ac_status); }; } && | |
21305 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21306 | { (case "(($ac_try" in |
21307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21308 | *) ac_try_echo=$ac_try;; | |
21309 | esac | |
21310 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21311 | (eval "$ac_try") 2>&5 | |
b859a686 AJ |
21312 | ac_status=$? |
21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21314 | (exit $ac_status); }; }; then | |
21315 | ac_cv_member_struct_statfs_f_namelen=yes | |
21316 | else | |
21317 | echo "$as_me: failed program was:" >&5 | |
21318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21319 | ||
fc6ffb29 | 21320 | ac_cv_member_struct_statfs_f_namelen=no |
b859a686 | 21321 | fi |
fc6ffb29 | 21322 | |
0ebeb530 | 21323 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b859a686 | 21324 | fi |
fc6ffb29 | 21325 | |
0ebeb530 | 21326 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
b859a686 | 21327 | fi |
fc6ffb29 AJ |
21328 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5 |
21329 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; } | |
b859a686 AJ |
21330 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then |
21331 | ||
21332 | cat >>confdefs.h <<_ACEOF | |
21333 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1 | |
21334 | _ACEOF | |
21335 | ||
21336 | ||
13af4891 AJ |
21337 | fi |
21338 | ||
21339 | ||
fc6ffb29 AJ |
21340 | { echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5 |
21341 | echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; } | |
13af4891 AJ |
21342 | if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then |
21343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21344 | else | |
21345 | cat >conftest.$ac_ext <<_ACEOF | |
21346 | /* confdefs.h. */ | |
21347 | _ACEOF | |
21348 | cat confdefs.h >>conftest.$ac_ext | |
21349 | cat >>conftest.$ac_ext <<_ACEOF | |
21350 | /* end confdefs.h. */ | |
21351 | #ifdef HAVE_SYS_STATVFS_H | |
21352 | #include <sys/statvfs.h> | |
21353 | #endif | |
21354 | ||
21355 | int | |
21356 | main () | |
21357 | { | |
21358 | static struct statvfs ac_aggr; | |
21359 | if (ac_aggr.f_blocks) | |
21360 | return 0; | |
21361 | ; | |
21362 | return 0; | |
21363 | } | |
21364 | _ACEOF | |
21365 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21366 | if { (ac_try="$ac_compile" |
21367 | case "(($ac_try" in | |
21368 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21369 | *) ac_try_echo=$ac_try;; | |
21370 | esac | |
21371 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21372 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
21373 | ac_status=$? |
21374 | grep -v '^ *+' conftest.er1 >conftest.err | |
21375 | rm -f conftest.er1 | |
21376 | cat conftest.err >&5 | |
21377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21378 | (exit $ac_status); } && | |
0ebeb530 JW |
21379 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21380 | { (case "(($ac_try" in | |
21381 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21382 | *) ac_try_echo=$ac_try;; | |
21383 | esac | |
21384 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21385 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21386 | ac_status=$? |
21387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21388 | (exit $ac_status); }; } && | |
21389 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21390 | { (case "(($ac_try" in |
21391 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21392 | *) ac_try_echo=$ac_try;; | |
21393 | esac | |
21394 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21395 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21396 | ac_status=$? |
21397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21398 | (exit $ac_status); }; }; then | |
21399 | ac_cv_member_struct_statvfs_f_blocks=yes | |
21400 | else | |
21401 | echo "$as_me: failed program was:" >&5 | |
21402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21403 | ||
fc6ffb29 | 21404 | cat >conftest.$ac_ext <<_ACEOF |
13af4891 AJ |
21405 | /* confdefs.h. */ |
21406 | _ACEOF | |
21407 | cat confdefs.h >>conftest.$ac_ext | |
21408 | cat >>conftest.$ac_ext <<_ACEOF | |
21409 | /* end confdefs.h. */ | |
21410 | #ifdef HAVE_SYS_STATVFS_H | |
21411 | #include <sys/statvfs.h> | |
21412 | #endif | |
21413 | ||
21414 | int | |
21415 | main () | |
21416 | { | |
21417 | static struct statvfs ac_aggr; | |
21418 | if (sizeof ac_aggr.f_blocks) | |
21419 | return 0; | |
21420 | ; | |
21421 | return 0; | |
21422 | } | |
21423 | _ACEOF | |
21424 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21425 | if { (ac_try="$ac_compile" |
21426 | case "(($ac_try" in | |
21427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21428 | *) ac_try_echo=$ac_try;; | |
21429 | esac | |
21430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21431 | (eval "$ac_compile") 2>conftest.er1 | |
13af4891 AJ |
21432 | ac_status=$? |
21433 | grep -v '^ *+' conftest.er1 >conftest.err | |
21434 | rm -f conftest.er1 | |
21435 | cat conftest.err >&5 | |
21436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21437 | (exit $ac_status); } && | |
0ebeb530 JW |
21438 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21439 | { (case "(($ac_try" in | |
21440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21441 | *) ac_try_echo=$ac_try;; | |
21442 | esac | |
21443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21444 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21445 | ac_status=$? |
21446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21447 | (exit $ac_status); }; } && | |
21448 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21449 | { (case "(($ac_try" in |
21450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21451 | *) ac_try_echo=$ac_try;; | |
21452 | esac | |
21453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21454 | (eval "$ac_try") 2>&5 | |
13af4891 AJ |
21455 | ac_status=$? |
21456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21457 | (exit $ac_status); }; }; then | |
21458 | ac_cv_member_struct_statvfs_f_blocks=yes | |
21459 | else | |
21460 | echo "$as_me: failed program was:" >&5 | |
21461 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21462 | ||
fc6ffb29 | 21463 | ac_cv_member_struct_statvfs_f_blocks=no |
13af4891 | 21464 | fi |
fc6ffb29 | 21465 | |
0ebeb530 | 21466 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 21467 | fi |
fc6ffb29 | 21468 | |
0ebeb530 | 21469 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
13af4891 | 21470 | fi |
fc6ffb29 AJ |
21471 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5 |
21472 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; } | |
13af4891 AJ |
21473 | if test $ac_cv_member_struct_statvfs_f_blocks = yes; then |
21474 | ||
21475 | cat >>confdefs.h <<_ACEOF | |
21476 | #define HAVE_STRUCT_STATVFS_F_BLOCKS 1 | |
21477 | _ACEOF | |
21478 | ||
21479 | ||
5537dbbf | 21480 | fi |
daa2886c AJ |
21481 | |
21482 | ||
fc6ffb29 AJ |
21483 | { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5 |
21484 | echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; } | |
5537dbbf | 21485 | if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then |
f5818d2f | 21486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
829fe323 | 21487 | else |
f5818d2f | 21488 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
21489 | /* confdefs.h. */ |
21490 | _ACEOF | |
21491 | cat confdefs.h >>conftest.$ac_ext | |
21492 | cat >>conftest.$ac_ext <<_ACEOF | |
21493 | /* end confdefs.h. */ | |
829fe323 | 21494 | #include <sys/types.h> |
63ae7fee PS |
21495 | #ifdef HAVE_SYS_SOCKET_H |
21496 | # include <sys/socket.h> | |
21497 | #endif | |
5537dbbf AJ |
21498 | #ifdef HAVE_SYS_UN_H |
21499 | # include <sys/un.h> | |
21500 | #endif | |
21501 | ||
f5818d2f AJ |
21502 | int |
21503 | main () | |
21504 | { | |
5537dbbf AJ |
21505 | static struct msghdr ac_aggr; |
21506 | if (ac_aggr.msg_accrights) | |
21507 | return 0; | |
f5818d2f AJ |
21508 | ; |
21509 | return 0; | |
21510 | } | |
21511 | _ACEOF | |
21512 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21513 | if { (ac_try="$ac_compile" |
21514 | case "(($ac_try" in | |
21515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21516 | *) ac_try_echo=$ac_try;; | |
21517 | esac | |
21518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21519 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 21520 | ac_status=$? |
875927f6 AJ |
21521 | grep -v '^ *+' conftest.er1 >conftest.err |
21522 | rm -f conftest.er1 | |
21523 | cat conftest.err >&5 | |
daa2886c | 21524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 21525 | (exit $ac_status); } && |
0ebeb530 JW |
21526 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21527 | { (case "(($ac_try" in | |
21528 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21529 | *) ac_try_echo=$ac_try;; | |
21530 | esac | |
21531 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21532 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
21533 | ac_status=$? |
21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21535 | (exit $ac_status); }; } && | |
21536 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21537 | { (case "(($ac_try" in |
21538 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21539 | *) ac_try_echo=$ac_try;; | |
21540 | esac | |
21541 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21542 | (eval "$ac_try") 2>&5 | |
f5818d2f | 21543 | ac_status=$? |
daa2886c | 21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 21545 | (exit $ac_status); }; }; then |
5537dbbf | 21546 | ac_cv_member_struct_msghdr_msg_accrights=yes |
f5818d2f AJ |
21547 | else |
21548 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
21549 | sed 's/^/| /' conftest.$ac_ext >&5 |
21550 | ||
fc6ffb29 | 21551 | cat >conftest.$ac_ext <<_ACEOF |
5537dbbf AJ |
21552 | /* confdefs.h. */ |
21553 | _ACEOF | |
21554 | cat confdefs.h >>conftest.$ac_ext | |
21555 | cat >>conftest.$ac_ext <<_ACEOF | |
21556 | /* end confdefs.h. */ | |
21557 | #include <sys/types.h> | |
21558 | #ifdef HAVE_SYS_SOCKET_H | |
21559 | # include <sys/socket.h> | |
21560 | #endif | |
21561 | #ifdef HAVE_SYS_UN_H | |
21562 | # include <sys/un.h> | |
21563 | #endif | |
f5818d2f | 21564 | |
5537dbbf AJ |
21565 | int |
21566 | main () | |
21567 | { | |
21568 | static struct msghdr ac_aggr; | |
21569 | if (sizeof ac_aggr.msg_accrights) | |
21570 | return 0; | |
21571 | ; | |
21572 | return 0; | |
21573 | } | |
daa2886c | 21574 | _ACEOF |
5537dbbf | 21575 | rm -f conftest.$ac_objext |
0ebeb530 JW |
21576 | if { (ac_try="$ac_compile" |
21577 | case "(($ac_try" in | |
21578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21579 | *) ac_try_echo=$ac_try;; | |
21580 | esac | |
21581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21582 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 21583 | ac_status=$? |
875927f6 AJ |
21584 | grep -v '^ *+' conftest.er1 >conftest.err |
21585 | rm -f conftest.er1 | |
21586 | cat conftest.err >&5 | |
5537dbbf AJ |
21587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21588 | (exit $ac_status); } && | |
0ebeb530 JW |
21589 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21590 | { (case "(($ac_try" in | |
21591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21592 | *) ac_try_echo=$ac_try;; | |
21593 | esac | |
21594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21595 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
21596 | ac_status=$? |
21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21598 | (exit $ac_status); }; } && | |
21599 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21600 | { (case "(($ac_try" in |
21601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21602 | *) ac_try_echo=$ac_try;; | |
21603 | esac | |
21604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21605 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
21606 | ac_status=$? |
21607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21608 | (exit $ac_status); }; }; then | |
21609 | ac_cv_member_struct_msghdr_msg_accrights=yes | |
21610 | else | |
21611 | echo "$as_me: failed program was:" >&5 | |
21612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
829fe323 | 21613 | |
fc6ffb29 | 21614 | ac_cv_member_struct_msghdr_msg_accrights=no |
5537dbbf | 21615 | fi |
fc6ffb29 | 21616 | |
0ebeb530 | 21617 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5537dbbf | 21618 | fi |
fc6ffb29 | 21619 | |
0ebeb530 | 21620 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
829fe323 | 21621 | fi |
fc6ffb29 AJ |
21622 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5 |
21623 | echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; } | |
5537dbbf | 21624 | if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then |
829fe323 | 21625 | |
5537dbbf AJ |
21626 | cat >>confdefs.h <<_ACEOF |
21627 | #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1 | |
21628 | _ACEOF | |
daa2886c AJ |
21629 | |
21630 | ||
5537dbbf | 21631 | fi |
fc6ffb29 AJ |
21632 | { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5 |
21633 | echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; } | |
5537dbbf | 21634 | if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then |
f5818d2f | 21635 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2d33ab91 | 21636 | else |
f5818d2f | 21637 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
21638 | /* confdefs.h. */ |
21639 | _ACEOF | |
21640 | cat confdefs.h >>conftest.$ac_ext | |
21641 | cat >>conftest.$ac_ext <<_ACEOF | |
21642 | /* end confdefs.h. */ | |
2d33ab91 | 21643 | #include <sys/types.h> |
63ae7fee PS |
21644 | #ifdef HAVE_SYS_SOCKET_H |
21645 | # include <sys/socket.h> | |
21646 | #endif | |
5537dbbf AJ |
21647 | #ifdef HAVE_SYS_UN_H |
21648 | # include <sys/un.h> | |
21649 | #endif | |
21650 | ||
f5818d2f AJ |
21651 | int |
21652 | main () | |
21653 | { | |
5537dbbf AJ |
21654 | static struct sockaddr ac_aggr; |
21655 | if (ac_aggr.sa_len) | |
21656 | return 0; | |
f5818d2f AJ |
21657 | ; |
21658 | return 0; | |
21659 | } | |
21660 | _ACEOF | |
21661 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21662 | if { (ac_try="$ac_compile" |
21663 | case "(($ac_try" in | |
21664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21665 | *) ac_try_echo=$ac_try;; | |
21666 | esac | |
21667 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21668 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 21669 | ac_status=$? |
875927f6 AJ |
21670 | grep -v '^ *+' conftest.er1 >conftest.err |
21671 | rm -f conftest.er1 | |
21672 | cat conftest.err >&5 | |
daa2886c | 21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 21674 | (exit $ac_status); } && |
0ebeb530 JW |
21675 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21676 | { (case "(($ac_try" in | |
21677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21678 | *) ac_try_echo=$ac_try;; | |
21679 | esac | |
21680 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21681 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
21682 | ac_status=$? |
21683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21684 | (exit $ac_status); }; } && | |
21685 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21686 | { (case "(($ac_try" in |
21687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21688 | *) ac_try_echo=$ac_try;; | |
21689 | esac | |
21690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21691 | (eval "$ac_try") 2>&5 | |
f5818d2f | 21692 | ac_status=$? |
daa2886c | 21693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 21694 | (exit $ac_status); }; }; then |
5537dbbf | 21695 | ac_cv_member_struct_sockaddr_sa_len=yes |
09da966c | 21696 | else |
f5818d2f | 21697 | echo "$as_me: failed program was:" >&5 |
e24bcc77 AJ |
21698 | sed 's/^/| /' conftest.$ac_ext >&5 |
21699 | ||
fc6ffb29 | 21700 | cat >conftest.$ac_ext <<_ACEOF |
5537dbbf AJ |
21701 | /* confdefs.h. */ |
21702 | _ACEOF | |
21703 | cat confdefs.h >>conftest.$ac_ext | |
21704 | cat >>conftest.$ac_ext <<_ACEOF | |
21705 | /* end confdefs.h. */ | |
21706 | #include <sys/types.h> | |
21707 | #ifdef HAVE_SYS_SOCKET_H | |
21708 | # include <sys/socket.h> | |
21709 | #endif | |
21710 | #ifdef HAVE_SYS_UN_H | |
21711 | # include <sys/un.h> | |
21712 | #endif | |
09da966c | 21713 | |
5537dbbf AJ |
21714 | int |
21715 | main () | |
21716 | { | |
21717 | static struct sockaddr ac_aggr; | |
21718 | if (sizeof ac_aggr.sa_len) | |
21719 | return 0; | |
21720 | ; | |
21721 | return 0; | |
21722 | } | |
daa2886c | 21723 | _ACEOF |
5537dbbf | 21724 | rm -f conftest.$ac_objext |
0ebeb530 JW |
21725 | if { (ac_try="$ac_compile" |
21726 | case "(($ac_try" in | |
21727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21728 | *) ac_try_echo=$ac_try;; | |
21729 | esac | |
21730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21731 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 21732 | ac_status=$? |
875927f6 AJ |
21733 | grep -v '^ *+' conftest.er1 >conftest.err |
21734 | rm -f conftest.er1 | |
21735 | cat conftest.err >&5 | |
5537dbbf AJ |
21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21737 | (exit $ac_status); } && | |
0ebeb530 JW |
21738 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21739 | { (case "(($ac_try" in | |
21740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21741 | *) ac_try_echo=$ac_try;; | |
21742 | esac | |
21743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21744 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
21745 | ac_status=$? |
21746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21747 | (exit $ac_status); }; } && | |
21748 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21749 | { (case "(($ac_try" in |
21750 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21751 | *) ac_try_echo=$ac_try;; | |
21752 | esac | |
21753 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21754 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
21755 | ac_status=$? |
21756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21757 | (exit $ac_status); }; }; then | |
21758 | ac_cv_member_struct_sockaddr_sa_len=yes | |
21759 | else | |
21760 | echo "$as_me: failed program was:" >&5 | |
21761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
09da966c | 21762 | |
fc6ffb29 | 21763 | ac_cv_member_struct_sockaddr_sa_len=no |
5537dbbf | 21764 | fi |
fc6ffb29 | 21765 | |
0ebeb530 | 21766 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5537dbbf | 21767 | fi |
fc6ffb29 | 21768 | |
0ebeb530 | 21769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
09da966c | 21770 | fi |
fc6ffb29 AJ |
21771 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5 |
21772 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; } | |
5537dbbf | 21773 | if test $ac_cv_member_struct_sockaddr_sa_len = yes; then |
09da966c | 21774 | |
5537dbbf AJ |
21775 | cat >>confdefs.h <<_ACEOF |
21776 | #define HAVE_STRUCT_SOCKADDR_SA_LEN 1 | |
21777 | _ACEOF | |
daa2886c AJ |
21778 | |
21779 | ||
5537dbbf | 21780 | fi |
fc6ffb29 AJ |
21781 | { echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5 |
21782 | echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; } | |
5537dbbf | 21783 | if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then |
f5818d2f | 21784 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
09da966c | 21785 | else |
f5818d2f | 21786 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
21787 | /* confdefs.h. */ |
21788 | _ACEOF | |
21789 | cat confdefs.h >>conftest.$ac_ext | |
21790 | cat >>conftest.$ac_ext <<_ACEOF | |
21791 | /* end confdefs.h. */ | |
09da966c | 21792 | #include <sys/types.h> |
63ae7fee PS |
21793 | #ifdef HAVE_SYS_SOCKET_H |
21794 | # include <sys/socket.h> | |
21795 | #endif | |
21796 | #ifdef HAVE_SYS_UN_H | |
21797 | # include <sys/un.h> | |
21798 | #endif | |
5537dbbf | 21799 | |
f5818d2f AJ |
21800 | int |
21801 | main () | |
21802 | { | |
5537dbbf AJ |
21803 | static struct sockaddr_un ac_aggr; |
21804 | if (ac_aggr.sun_len) | |
21805 | return 0; | |
f5818d2f AJ |
21806 | ; |
21807 | return 0; | |
21808 | } | |
21809 | _ACEOF | |
21810 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21811 | if { (ac_try="$ac_compile" |
21812 | case "(($ac_try" in | |
21813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21814 | *) ac_try_echo=$ac_try;; | |
21815 | esac | |
21816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21817 | (eval "$ac_compile") 2>conftest.er1 | |
f5818d2f | 21818 | ac_status=$? |
875927f6 AJ |
21819 | grep -v '^ *+' conftest.er1 >conftest.err |
21820 | rm -f conftest.er1 | |
21821 | cat conftest.err >&5 | |
daa2886c | 21822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 21823 | (exit $ac_status); } && |
0ebeb530 JW |
21824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21825 | { (case "(($ac_try" in | |
21826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21827 | *) ac_try_echo=$ac_try;; | |
21828 | esac | |
21829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21830 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
21831 | ac_status=$? |
21832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21833 | (exit $ac_status); }; } && | |
21834 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21835 | { (case "(($ac_try" in |
21836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21837 | *) ac_try_echo=$ac_try;; | |
21838 | esac | |
21839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21840 | (eval "$ac_try") 2>&5 | |
f5818d2f | 21841 | ac_status=$? |
daa2886c | 21842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
f5818d2f | 21843 | (exit $ac_status); }; }; then |
5537dbbf | 21844 | ac_cv_member_struct_sockaddr_un_sun_len=yes |
f5818d2f AJ |
21845 | else |
21846 | echo "$as_me: failed program was:" >&5 | |
e24bcc77 AJ |
21847 | sed 's/^/| /' conftest.$ac_ext >&5 |
21848 | ||
fc6ffb29 | 21849 | cat >conftest.$ac_ext <<_ACEOF |
5537dbbf AJ |
21850 | /* confdefs.h. */ |
21851 | _ACEOF | |
21852 | cat confdefs.h >>conftest.$ac_ext | |
21853 | cat >>conftest.$ac_ext <<_ACEOF | |
21854 | /* end confdefs.h. */ | |
21855 | #include <sys/types.h> | |
21856 | #ifdef HAVE_SYS_SOCKET_H | |
21857 | # include <sys/socket.h> | |
21858 | #endif | |
21859 | #ifdef HAVE_SYS_UN_H | |
21860 | # include <sys/un.h> | |
21861 | #endif | |
21862 | ||
21863 | int | |
21864 | main () | |
21865 | { | |
21866 | static struct sockaddr_un ac_aggr; | |
21867 | if (sizeof ac_aggr.sun_len) | |
21868 | return 0; | |
21869 | ; | |
21870 | return 0; | |
21871 | } | |
21872 | _ACEOF | |
21873 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21874 | if { (ac_try="$ac_compile" |
21875 | case "(($ac_try" in | |
21876 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21877 | *) ac_try_echo=$ac_try;; | |
21878 | esac | |
21879 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21880 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 21881 | ac_status=$? |
875927f6 AJ |
21882 | grep -v '^ *+' conftest.er1 >conftest.err |
21883 | rm -f conftest.er1 | |
21884 | cat conftest.err >&5 | |
5537dbbf AJ |
21885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21886 | (exit $ac_status); } && | |
0ebeb530 JW |
21887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21888 | { (case "(($ac_try" in | |
21889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21890 | *) ac_try_echo=$ac_try;; | |
21891 | esac | |
21892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21893 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
21894 | ac_status=$? |
21895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21896 | (exit $ac_status); }; } && | |
21897 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21898 | { (case "(($ac_try" in |
21899 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21900 | *) ac_try_echo=$ac_try;; | |
21901 | esac | |
21902 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21903 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
21904 | ac_status=$? |
21905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21906 | (exit $ac_status); }; }; then | |
21907 | ac_cv_member_struct_sockaddr_un_sun_len=yes | |
21908 | else | |
21909 | echo "$as_me: failed program was:" >&5 | |
21910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21911 | ||
fc6ffb29 | 21912 | ac_cv_member_struct_sockaddr_un_sun_len=no |
f5818d2f | 21913 | fi |
fc6ffb29 | 21914 | |
0ebeb530 | 21915 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
f5818d2f | 21916 | fi |
fc6ffb29 | 21917 | |
0ebeb530 | 21918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5537dbbf | 21919 | fi |
fc6ffb29 AJ |
21920 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5 |
21921 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; } | |
5537dbbf | 21922 | if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then |
f5818d2f | 21923 | |
5537dbbf AJ |
21924 | cat >>confdefs.h <<_ACEOF |
21925 | #define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1 | |
21926 | _ACEOF | |
21927 | ||
21928 | ||
21929 | fi | |
21930 | ||
21931 | ||
fc6ffb29 AJ |
21932 | { echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5 |
21933 | echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; } | |
ea64a36a DT |
21934 | if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then |
21935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21936 | else | |
21937 | cat >conftest.$ac_ext <<_ACEOF | |
21938 | /* confdefs.h. */ | |
21939 | _ACEOF | |
21940 | cat confdefs.h >>conftest.$ac_ext | |
21941 | cat >>conftest.$ac_ext <<_ACEOF | |
21942 | /* end confdefs.h. */ | |
21943 | #include <sys/types.h> | |
21944 | #ifdef HAVE_SCSI_SG_H | |
21945 | #include <scsi/sg.h> | |
21946 | #endif | |
21947 | ||
21948 | int | |
21949 | main () | |
21950 | { | |
21951 | static scsireq_t ac_aggr; | |
21952 | if (ac_aggr.cmd) | |
21953 | return 0; | |
21954 | ; | |
21955 | return 0; | |
21956 | } | |
21957 | _ACEOF | |
21958 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
21959 | if { (ac_try="$ac_compile" |
21960 | case "(($ac_try" in | |
21961 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21962 | *) ac_try_echo=$ac_try;; | |
21963 | esac | |
21964 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21965 | (eval "$ac_compile") 2>conftest.er1 | |
ea64a36a DT |
21966 | ac_status=$? |
21967 | grep -v '^ *+' conftest.er1 >conftest.err | |
21968 | rm -f conftest.er1 | |
21969 | cat conftest.err >&5 | |
21970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21971 | (exit $ac_status); } && | |
0ebeb530 JW |
21972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21973 | { (case "(($ac_try" in | |
21974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21975 | *) ac_try_echo=$ac_try;; | |
21976 | esac | |
21977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21978 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
21979 | ac_status=$? |
21980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21981 | (exit $ac_status); }; } && | |
21982 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
21983 | { (case "(($ac_try" in |
21984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21985 | *) ac_try_echo=$ac_try;; | |
21986 | esac | |
21987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21988 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
21989 | ac_status=$? |
21990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21991 | (exit $ac_status); }; }; then | |
21992 | ac_cv_member_scsireq_t_cmd=yes | |
21993 | else | |
21994 | echo "$as_me: failed program was:" >&5 | |
21995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21996 | ||
fc6ffb29 | 21997 | cat >conftest.$ac_ext <<_ACEOF |
ea64a36a DT |
21998 | /* confdefs.h. */ |
21999 | _ACEOF | |
22000 | cat confdefs.h >>conftest.$ac_ext | |
22001 | cat >>conftest.$ac_ext <<_ACEOF | |
22002 | /* end confdefs.h. */ | |
22003 | #include <sys/types.h> | |
22004 | #ifdef HAVE_SCSI_SG_H | |
22005 | #include <scsi/sg.h> | |
22006 | #endif | |
22007 | ||
22008 | int | |
22009 | main () | |
22010 | { | |
22011 | static scsireq_t ac_aggr; | |
22012 | if (sizeof ac_aggr.cmd) | |
22013 | return 0; | |
22014 | ; | |
22015 | return 0; | |
22016 | } | |
22017 | _ACEOF | |
22018 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22019 | if { (ac_try="$ac_compile" |
22020 | case "(($ac_try" in | |
22021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22022 | *) ac_try_echo=$ac_try;; | |
22023 | esac | |
22024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22025 | (eval "$ac_compile") 2>conftest.er1 | |
ea64a36a DT |
22026 | ac_status=$? |
22027 | grep -v '^ *+' conftest.er1 >conftest.err | |
22028 | rm -f conftest.er1 | |
22029 | cat conftest.err >&5 | |
22030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22031 | (exit $ac_status); } && | |
0ebeb530 JW |
22032 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22033 | { (case "(($ac_try" in | |
22034 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22035 | *) ac_try_echo=$ac_try;; | |
22036 | esac | |
22037 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22038 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
22039 | ac_status=$? |
22040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22041 | (exit $ac_status); }; } && | |
22042 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22043 | { (case "(($ac_try" in |
22044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22045 | *) ac_try_echo=$ac_try;; | |
22046 | esac | |
22047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22048 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
22049 | ac_status=$? |
22050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22051 | (exit $ac_status); }; }; then | |
22052 | ac_cv_member_scsireq_t_cmd=yes | |
22053 | else | |
22054 | echo "$as_me: failed program was:" >&5 | |
22055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22056 | ||
fc6ffb29 | 22057 | ac_cv_member_scsireq_t_cmd=no |
ea64a36a | 22058 | fi |
fc6ffb29 | 22059 | |
0ebeb530 | 22060 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea64a36a | 22061 | fi |
fc6ffb29 | 22062 | |
0ebeb530 | 22063 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea64a36a | 22064 | fi |
fc6ffb29 AJ |
22065 | { echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5 |
22066 | echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; } | |
ea64a36a DT |
22067 | if test $ac_cv_member_scsireq_t_cmd = yes; then |
22068 | ||
22069 | cat >>confdefs.h <<_ACEOF | |
22070 | #define HAVE_SCSIREQ_T_CMD 1 | |
22071 | _ACEOF | |
22072 | ||
22073 | ||
22074 | fi | |
fc6ffb29 AJ |
22075 | { echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5 |
22076 | echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; } | |
ea64a36a DT |
22077 | if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then |
22078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22079 | else | |
22080 | cat >conftest.$ac_ext <<_ACEOF | |
22081 | /* confdefs.h. */ | |
22082 | _ACEOF | |
22083 | cat confdefs.h >>conftest.$ac_ext | |
22084 | cat >>conftest.$ac_ext <<_ACEOF | |
22085 | /* end confdefs.h. */ | |
22086 | #include <sys/types.h> | |
22087 | #ifdef HAVE_SCSI_SG_H | |
22088 | #include <scsi/sg.h> | |
22089 | #endif | |
22090 | ||
22091 | int | |
22092 | main () | |
22093 | { | |
22094 | static sg_io_hdr_t ac_aggr; | |
22095 | if (ac_aggr.interface_id) | |
22096 | return 0; | |
22097 | ; | |
22098 | return 0; | |
22099 | } | |
22100 | _ACEOF | |
22101 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22102 | if { (ac_try="$ac_compile" |
22103 | case "(($ac_try" in | |
22104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22105 | *) ac_try_echo=$ac_try;; | |
22106 | esac | |
22107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22108 | (eval "$ac_compile") 2>conftest.er1 | |
ea64a36a DT |
22109 | ac_status=$? |
22110 | grep -v '^ *+' conftest.er1 >conftest.err | |
22111 | rm -f conftest.er1 | |
22112 | cat conftest.err >&5 | |
22113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22114 | (exit $ac_status); } && | |
0ebeb530 JW |
22115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22116 | { (case "(($ac_try" in | |
22117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22118 | *) ac_try_echo=$ac_try;; | |
22119 | esac | |
22120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22121 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
22122 | ac_status=$? |
22123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22124 | (exit $ac_status); }; } && | |
22125 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22126 | { (case "(($ac_try" in |
22127 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22128 | *) ac_try_echo=$ac_try;; | |
22129 | esac | |
22130 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22131 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
22132 | ac_status=$? |
22133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22134 | (exit $ac_status); }; }; then | |
22135 | ac_cv_member_sg_io_hdr_t_interface_id=yes | |
22136 | else | |
22137 | echo "$as_me: failed program was:" >&5 | |
22138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22139 | ||
fc6ffb29 | 22140 | cat >conftest.$ac_ext <<_ACEOF |
ea64a36a DT |
22141 | /* confdefs.h. */ |
22142 | _ACEOF | |
22143 | cat confdefs.h >>conftest.$ac_ext | |
22144 | cat >>conftest.$ac_ext <<_ACEOF | |
22145 | /* end confdefs.h. */ | |
22146 | #include <sys/types.h> | |
22147 | #ifdef HAVE_SCSI_SG_H | |
22148 | #include <scsi/sg.h> | |
22149 | #endif | |
22150 | ||
22151 | int | |
22152 | main () | |
22153 | { | |
22154 | static sg_io_hdr_t ac_aggr; | |
22155 | if (sizeof ac_aggr.interface_id) | |
22156 | return 0; | |
22157 | ; | |
22158 | return 0; | |
22159 | } | |
22160 | _ACEOF | |
22161 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22162 | if { (ac_try="$ac_compile" |
22163 | case "(($ac_try" in | |
22164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22165 | *) ac_try_echo=$ac_try;; | |
22166 | esac | |
22167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22168 | (eval "$ac_compile") 2>conftest.er1 | |
ea64a36a DT |
22169 | ac_status=$? |
22170 | grep -v '^ *+' conftest.er1 >conftest.err | |
22171 | rm -f conftest.er1 | |
22172 | cat conftest.err >&5 | |
22173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22174 | (exit $ac_status); } && | |
0ebeb530 JW |
22175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22176 | { (case "(($ac_try" in | |
22177 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22178 | *) ac_try_echo=$ac_try;; | |
22179 | esac | |
22180 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22181 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
22182 | ac_status=$? |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22184 | (exit $ac_status); }; } && | |
22185 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22186 | { (case "(($ac_try" in |
22187 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22188 | *) ac_try_echo=$ac_try;; | |
22189 | esac | |
22190 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22191 | (eval "$ac_try") 2>&5 | |
ea64a36a DT |
22192 | ac_status=$? |
22193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22194 | (exit $ac_status); }; }; then | |
22195 | ac_cv_member_sg_io_hdr_t_interface_id=yes | |
22196 | else | |
22197 | echo "$as_me: failed program was:" >&5 | |
22198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22199 | ||
fc6ffb29 | 22200 | ac_cv_member_sg_io_hdr_t_interface_id=no |
ea64a36a | 22201 | fi |
fc6ffb29 | 22202 | |
0ebeb530 | 22203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea64a36a | 22204 | fi |
fc6ffb29 | 22205 | |
0ebeb530 | 22206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ea64a36a | 22207 | fi |
fc6ffb29 AJ |
22208 | { echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5 |
22209 | echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; } | |
ea64a36a DT |
22210 | if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then |
22211 | ||
22212 | cat >>confdefs.h <<_ACEOF | |
22213 | #define HAVE_SG_IO_HDR_T_INTERFACE_ID 1 | |
22214 | _ACEOF | |
22215 | ||
22216 | ||
22217 | fi | |
22218 | ||
22219 | ||
fc6ffb29 AJ |
22220 | { echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5 |
22221 | echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; } | |
5537dbbf AJ |
22222 | if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then |
22223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22224 | else | |
22225 | cat >conftest.$ac_ext <<_ACEOF | |
5537dbbf AJ |
22226 | /* confdefs.h. */ |
22227 | _ACEOF | |
22228 | cat confdefs.h >>conftest.$ac_ext | |
22229 | cat >>conftest.$ac_ext <<_ACEOF | |
22230 | /* end confdefs.h. */ | |
22231 | #include <signal.h> | |
22232 | ||
22233 | int | |
22234 | main () | |
22235 | { | |
22236 | static siginfo_t ac_aggr; | |
22237 | if (ac_aggr.si_fd) | |
22238 | return 0; | |
22239 | ; | |
22240 | return 0; | |
22241 | } | |
22242 | _ACEOF | |
22243 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22244 | if { (ac_try="$ac_compile" |
22245 | case "(($ac_try" in | |
22246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22247 | *) ac_try_echo=$ac_try;; | |
22248 | esac | |
22249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22250 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 22251 | ac_status=$? |
875927f6 AJ |
22252 | grep -v '^ *+' conftest.er1 >conftest.err |
22253 | rm -f conftest.er1 | |
22254 | cat conftest.err >&5 | |
5537dbbf AJ |
22255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22256 | (exit $ac_status); } && | |
0ebeb530 JW |
22257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22258 | { (case "(($ac_try" in | |
22259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22260 | *) ac_try_echo=$ac_try;; | |
22261 | esac | |
22262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22263 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
22264 | ac_status=$? |
22265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22266 | (exit $ac_status); }; } && | |
22267 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22268 | { (case "(($ac_try" in |
22269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22270 | *) ac_try_echo=$ac_try;; | |
22271 | esac | |
22272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22273 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
22274 | ac_status=$? |
22275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22276 | (exit $ac_status); }; }; then | |
22277 | ac_cv_member_siginfo_t_si_fd=yes | |
22278 | else | |
22279 | echo "$as_me: failed program was:" >&5 | |
22280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22281 | ||
fc6ffb29 | 22282 | cat >conftest.$ac_ext <<_ACEOF |
5537dbbf | 22283 | /* confdefs.h. */ |
daa2886c | 22284 | _ACEOF |
5537dbbf AJ |
22285 | cat confdefs.h >>conftest.$ac_ext |
22286 | cat >>conftest.$ac_ext <<_ACEOF | |
22287 | /* end confdefs.h. */ | |
22288 | #include <signal.h> | |
2d33ab91 | 22289 | |
5537dbbf AJ |
22290 | int |
22291 | main () | |
22292 | { | |
22293 | static siginfo_t ac_aggr; | |
22294 | if (sizeof ac_aggr.si_fd) | |
22295 | return 0; | |
22296 | ; | |
22297 | return 0; | |
22298 | } | |
22299 | _ACEOF | |
22300 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22301 | if { (ac_try="$ac_compile" |
22302 | case "(($ac_try" in | |
22303 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22304 | *) ac_try_echo=$ac_try;; | |
22305 | esac | |
22306 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22307 | (eval "$ac_compile") 2>conftest.er1 | |
5537dbbf | 22308 | ac_status=$? |
875927f6 AJ |
22309 | grep -v '^ *+' conftest.er1 >conftest.err |
22310 | rm -f conftest.er1 | |
22311 | cat conftest.err >&5 | |
5537dbbf AJ |
22312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22313 | (exit $ac_status); } && | |
0ebeb530 JW |
22314 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22315 | { (case "(($ac_try" in | |
22316 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22317 | *) ac_try_echo=$ac_try;; | |
22318 | esac | |
22319 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22320 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
22321 | ac_status=$? |
22322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22323 | (exit $ac_status); }; } && | |
22324 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22325 | { (case "(($ac_try" in |
22326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22327 | *) ac_try_echo=$ac_try;; | |
22328 | esac | |
22329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22330 | (eval "$ac_try") 2>&5 | |
5537dbbf AJ |
22331 | ac_status=$? |
22332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22333 | (exit $ac_status); }; }; then | |
22334 | ac_cv_member_siginfo_t_si_fd=yes | |
22335 | else | |
22336 | echo "$as_me: failed program was:" >&5 | |
22337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22338 | ||
fc6ffb29 | 22339 | ac_cv_member_siginfo_t_si_fd=no |
5537dbbf | 22340 | fi |
fc6ffb29 | 22341 | |
0ebeb530 | 22342 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5537dbbf | 22343 | fi |
fc6ffb29 | 22344 | |
0ebeb530 | 22345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2d33ab91 | 22346 | fi |
fc6ffb29 AJ |
22347 | { echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5 |
22348 | echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; } | |
5537dbbf | 22349 | if test $ac_cv_member_siginfo_t_si_fd = yes; then |
2d33ab91 | 22350 | |
5537dbbf AJ |
22351 | cat >>confdefs.h <<_ACEOF |
22352 | #define HAVE_SIGINFO_T_SI_FD 1 | |
22353 | _ACEOF | |
22354 | ||
22355 | ||
22356 | fi | |
daa2886c AJ |
22357 | |
22358 | ||
fc6ffb29 AJ |
22359 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5 |
22360 | echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; } | |
36bdc64e GP |
22361 | if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then |
22362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22363 | else | |
22364 | cat >conftest.$ac_ext <<_ACEOF | |
22365 | /* confdefs.h. */ | |
22366 | _ACEOF | |
22367 | cat confdefs.h >>conftest.$ac_ext | |
22368 | cat >>conftest.$ac_ext <<_ACEOF | |
22369 | /* end confdefs.h. */ | |
368dab37 | 22370 | #include <sys/types.h> |
36bdc64e GP |
22371 | #ifdef HAVE_SYS_MTIO_H |
22372 | #include <sys/mtio.h> | |
22373 | #endif | |
22374 | ||
22375 | int | |
22376 | main () | |
22377 | { | |
22378 | static struct mtget ac_aggr; | |
22379 | if (ac_aggr.mt_blksiz) | |
22380 | return 0; | |
22381 | ; | |
22382 | return 0; | |
22383 | } | |
22384 | _ACEOF | |
22385 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22386 | if { (ac_try="$ac_compile" |
22387 | case "(($ac_try" in | |
22388 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22389 | *) ac_try_echo=$ac_try;; | |
22390 | esac | |
22391 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22392 | (eval "$ac_compile") 2>conftest.er1 | |
36bdc64e GP |
22393 | ac_status=$? |
22394 | grep -v '^ *+' conftest.er1 >conftest.err | |
22395 | rm -f conftest.er1 | |
22396 | cat conftest.err >&5 | |
22397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22398 | (exit $ac_status); } && | |
0ebeb530 JW |
22399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22400 | { (case "(($ac_try" in | |
22401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22402 | *) ac_try_echo=$ac_try;; | |
22403 | esac | |
22404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22405 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22406 | ac_status=$? |
22407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22408 | (exit $ac_status); }; } && | |
22409 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22410 | { (case "(($ac_try" in |
22411 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22412 | *) ac_try_echo=$ac_try;; | |
22413 | esac | |
22414 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22415 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22416 | ac_status=$? |
22417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22418 | (exit $ac_status); }; }; then | |
22419 | ac_cv_member_struct_mtget_mt_blksiz=yes | |
22420 | else | |
22421 | echo "$as_me: failed program was:" >&5 | |
22422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22423 | ||
fc6ffb29 | 22424 | cat >conftest.$ac_ext <<_ACEOF |
36bdc64e GP |
22425 | /* confdefs.h. */ |
22426 | _ACEOF | |
22427 | cat confdefs.h >>conftest.$ac_ext | |
22428 | cat >>conftest.$ac_ext <<_ACEOF | |
22429 | /* end confdefs.h. */ | |
368dab37 | 22430 | #include <sys/types.h> |
36bdc64e GP |
22431 | #ifdef HAVE_SYS_MTIO_H |
22432 | #include <sys/mtio.h> | |
22433 | #endif | |
22434 | ||
22435 | int | |
22436 | main () | |
22437 | { | |
22438 | static struct mtget ac_aggr; | |
22439 | if (sizeof ac_aggr.mt_blksiz) | |
22440 | return 0; | |
22441 | ; | |
22442 | return 0; | |
22443 | } | |
22444 | _ACEOF | |
22445 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22446 | if { (ac_try="$ac_compile" |
22447 | case "(($ac_try" in | |
22448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22449 | *) ac_try_echo=$ac_try;; | |
22450 | esac | |
22451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22452 | (eval "$ac_compile") 2>conftest.er1 | |
36bdc64e GP |
22453 | ac_status=$? |
22454 | grep -v '^ *+' conftest.er1 >conftest.err | |
22455 | rm -f conftest.er1 | |
22456 | cat conftest.err >&5 | |
22457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22458 | (exit $ac_status); } && | |
0ebeb530 JW |
22459 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22460 | { (case "(($ac_try" in | |
22461 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22462 | *) ac_try_echo=$ac_try;; | |
22463 | esac | |
22464 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22465 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22466 | ac_status=$? |
22467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22468 | (exit $ac_status); }; } && | |
22469 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22470 | { (case "(($ac_try" in |
22471 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22472 | *) ac_try_echo=$ac_try;; | |
22473 | esac | |
22474 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22475 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22476 | ac_status=$? |
22477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22478 | (exit $ac_status); }; }; then | |
22479 | ac_cv_member_struct_mtget_mt_blksiz=yes | |
22480 | else | |
22481 | echo "$as_me: failed program was:" >&5 | |
22482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22483 | ||
fc6ffb29 | 22484 | ac_cv_member_struct_mtget_mt_blksiz=no |
36bdc64e | 22485 | fi |
fc6ffb29 | 22486 | |
0ebeb530 | 22487 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
36bdc64e | 22488 | fi |
fc6ffb29 | 22489 | |
0ebeb530 | 22490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
36bdc64e | 22491 | fi |
fc6ffb29 AJ |
22492 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5 |
22493 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; } | |
36bdc64e GP |
22494 | if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then |
22495 | ||
22496 | cat >>confdefs.h <<_ACEOF | |
22497 | #define HAVE_STRUCT_MTGET_MT_BLKSIZ 1 | |
22498 | _ACEOF | |
22499 | ||
22500 | ||
22501 | fi | |
fc6ffb29 AJ |
22502 | { echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5 |
22503 | echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; } | |
36bdc64e GP |
22504 | if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then |
22505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22506 | else | |
22507 | cat >conftest.$ac_ext <<_ACEOF | |
22508 | /* confdefs.h. */ | |
22509 | _ACEOF | |
22510 | cat confdefs.h >>conftest.$ac_ext | |
22511 | cat >>conftest.$ac_ext <<_ACEOF | |
22512 | /* end confdefs.h. */ | |
368dab37 | 22513 | #include <sys/types.h> |
36bdc64e GP |
22514 | #ifdef HAVE_SYS_MTIO_H |
22515 | #include <sys/mtio.h> | |
22516 | #endif | |
22517 | ||
22518 | int | |
22519 | main () | |
22520 | { | |
22521 | static struct mtget ac_aggr; | |
22522 | if (ac_aggr.mt_gstat) | |
22523 | return 0; | |
22524 | ; | |
22525 | return 0; | |
22526 | } | |
22527 | _ACEOF | |
22528 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22529 | if { (ac_try="$ac_compile" |
22530 | case "(($ac_try" in | |
22531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22532 | *) ac_try_echo=$ac_try;; | |
22533 | esac | |
22534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22535 | (eval "$ac_compile") 2>conftest.er1 | |
36bdc64e GP |
22536 | ac_status=$? |
22537 | grep -v '^ *+' conftest.er1 >conftest.err | |
22538 | rm -f conftest.er1 | |
22539 | cat conftest.err >&5 | |
22540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22541 | (exit $ac_status); } && | |
0ebeb530 JW |
22542 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22543 | { (case "(($ac_try" in | |
22544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22545 | *) ac_try_echo=$ac_try;; | |
22546 | esac | |
22547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22548 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22549 | ac_status=$? |
22550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22551 | (exit $ac_status); }; } && | |
22552 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22553 | { (case "(($ac_try" in |
22554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22555 | *) ac_try_echo=$ac_try;; | |
22556 | esac | |
22557 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22558 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22559 | ac_status=$? |
22560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22561 | (exit $ac_status); }; }; then | |
22562 | ac_cv_member_struct_mtget_mt_gstat=yes | |
22563 | else | |
22564 | echo "$as_me: failed program was:" >&5 | |
22565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22566 | ||
fc6ffb29 | 22567 | cat >conftest.$ac_ext <<_ACEOF |
36bdc64e GP |
22568 | /* confdefs.h. */ |
22569 | _ACEOF | |
22570 | cat confdefs.h >>conftest.$ac_ext | |
22571 | cat >>conftest.$ac_ext <<_ACEOF | |
22572 | /* end confdefs.h. */ | |
368dab37 | 22573 | #include <sys/types.h> |
36bdc64e GP |
22574 | #ifdef HAVE_SYS_MTIO_H |
22575 | #include <sys/mtio.h> | |
22576 | #endif | |
22577 | ||
22578 | int | |
22579 | main () | |
22580 | { | |
22581 | static struct mtget ac_aggr; | |
22582 | if (sizeof ac_aggr.mt_gstat) | |
22583 | return 0; | |
22584 | ; | |
22585 | return 0; | |
22586 | } | |
22587 | _ACEOF | |
22588 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22589 | if { (ac_try="$ac_compile" |
22590 | case "(($ac_try" in | |
22591 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22592 | *) ac_try_echo=$ac_try;; | |
22593 | esac | |
22594 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22595 | (eval "$ac_compile") 2>conftest.er1 | |
36bdc64e GP |
22596 | ac_status=$? |
22597 | grep -v '^ *+' conftest.er1 >conftest.err | |
22598 | rm -f conftest.er1 | |
22599 | cat conftest.err >&5 | |
22600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22601 | (exit $ac_status); } && | |
0ebeb530 JW |
22602 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22603 | { (case "(($ac_try" in | |
22604 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22605 | *) ac_try_echo=$ac_try;; | |
22606 | esac | |
22607 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22608 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22609 | ac_status=$? |
22610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22611 | (exit $ac_status); }; } && | |
22612 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22613 | { (case "(($ac_try" in |
22614 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22615 | *) ac_try_echo=$ac_try;; | |
22616 | esac | |
22617 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22618 | (eval "$ac_try") 2>&5 | |
36bdc64e GP |
22619 | ac_status=$? |
22620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22621 | (exit $ac_status); }; }; then | |
22622 | ac_cv_member_struct_mtget_mt_gstat=yes | |
22623 | else | |
22624 | echo "$as_me: failed program was:" >&5 | |
22625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22626 | ||
fc6ffb29 | 22627 | ac_cv_member_struct_mtget_mt_gstat=no |
36bdc64e | 22628 | fi |
fc6ffb29 | 22629 | |
0ebeb530 | 22630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
36bdc64e | 22631 | fi |
fc6ffb29 | 22632 | |
0ebeb530 | 22633 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
36bdc64e | 22634 | fi |
fc6ffb29 AJ |
22635 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5 |
22636 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; } | |
36bdc64e GP |
22637 | if test $ac_cv_member_struct_mtget_mt_gstat = yes; then |
22638 | ||
22639 | cat >>confdefs.h <<_ACEOF | |
22640 | #define HAVE_STRUCT_MTGET_MT_GSTAT 1 | |
22641 | _ACEOF | |
22642 | ||
22643 | ||
571d9fb0 | 22644 | fi |
fc6ffb29 AJ |
22645 | { echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5 |
22646 | echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; } | |
571d9fb0 GP |
22647 | if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then |
22648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22649 | else | |
22650 | cat >conftest.$ac_ext <<_ACEOF | |
22651 | /* confdefs.h. */ | |
22652 | _ACEOF | |
22653 | cat confdefs.h >>conftest.$ac_ext | |
22654 | cat >>conftest.$ac_ext <<_ACEOF | |
22655 | /* end confdefs.h. */ | |
368dab37 | 22656 | #include <sys/types.h> |
571d9fb0 GP |
22657 | #ifdef HAVE_SYS_MTIO_H |
22658 | #include <sys/mtio.h> | |
22659 | #endif | |
22660 | ||
22661 | int | |
22662 | main () | |
22663 | { | |
22664 | static struct mtget ac_aggr; | |
22665 | if (ac_aggr.mt_blkno) | |
22666 | return 0; | |
22667 | ; | |
22668 | return 0; | |
22669 | } | |
22670 | _ACEOF | |
22671 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22672 | if { (ac_try="$ac_compile" |
22673 | case "(($ac_try" in | |
22674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22675 | *) ac_try_echo=$ac_try;; | |
22676 | esac | |
22677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22678 | (eval "$ac_compile") 2>conftest.er1 | |
571d9fb0 GP |
22679 | ac_status=$? |
22680 | grep -v '^ *+' conftest.er1 >conftest.err | |
22681 | rm -f conftest.er1 | |
22682 | cat conftest.err >&5 | |
22683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22684 | (exit $ac_status); } && | |
0ebeb530 JW |
22685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22686 | { (case "(($ac_try" in | |
22687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22688 | *) ac_try_echo=$ac_try;; | |
22689 | esac | |
22690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22691 | (eval "$ac_try") 2>&5 | |
571d9fb0 GP |
22692 | ac_status=$? |
22693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22694 | (exit $ac_status); }; } && | |
22695 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22696 | { (case "(($ac_try" in |
22697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22698 | *) ac_try_echo=$ac_try;; | |
22699 | esac | |
22700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22701 | (eval "$ac_try") 2>&5 | |
571d9fb0 GP |
22702 | ac_status=$? |
22703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22704 | (exit $ac_status); }; }; then | |
22705 | ac_cv_member_struct_mtget_mt_blkno=yes | |
22706 | else | |
22707 | echo "$as_me: failed program was:" >&5 | |
22708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22709 | ||
fc6ffb29 | 22710 | cat >conftest.$ac_ext <<_ACEOF |
571d9fb0 GP |
22711 | /* confdefs.h. */ |
22712 | _ACEOF | |
22713 | cat confdefs.h >>conftest.$ac_ext | |
22714 | cat >>conftest.$ac_ext <<_ACEOF | |
22715 | /* end confdefs.h. */ | |
368dab37 | 22716 | #include <sys/types.h> |
571d9fb0 GP |
22717 | #ifdef HAVE_SYS_MTIO_H |
22718 | #include <sys/mtio.h> | |
22719 | #endif | |
22720 | ||
22721 | int | |
22722 | main () | |
22723 | { | |
22724 | static struct mtget ac_aggr; | |
22725 | if (sizeof ac_aggr.mt_blkno) | |
22726 | return 0; | |
22727 | ; | |
22728 | return 0; | |
22729 | } | |
22730 | _ACEOF | |
22731 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22732 | if { (ac_try="$ac_compile" |
22733 | case "(($ac_try" in | |
22734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22735 | *) ac_try_echo=$ac_try;; | |
22736 | esac | |
22737 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22738 | (eval "$ac_compile") 2>conftest.er1 | |
571d9fb0 GP |
22739 | ac_status=$? |
22740 | grep -v '^ *+' conftest.er1 >conftest.err | |
22741 | rm -f conftest.er1 | |
22742 | cat conftest.err >&5 | |
22743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22744 | (exit $ac_status); } && | |
0ebeb530 JW |
22745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22746 | { (case "(($ac_try" in | |
22747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22748 | *) ac_try_echo=$ac_try;; | |
22749 | esac | |
22750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22751 | (eval "$ac_try") 2>&5 | |
571d9fb0 GP |
22752 | ac_status=$? |
22753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22754 | (exit $ac_status); }; } && | |
22755 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22756 | { (case "(($ac_try" in |
22757 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22758 | *) ac_try_echo=$ac_try;; | |
22759 | esac | |
22760 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22761 | (eval "$ac_try") 2>&5 | |
571d9fb0 GP |
22762 | ac_status=$? |
22763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22764 | (exit $ac_status); }; }; then | |
22765 | ac_cv_member_struct_mtget_mt_blkno=yes | |
22766 | else | |
22767 | echo "$as_me: failed program was:" >&5 | |
22768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22769 | ||
fc6ffb29 | 22770 | ac_cv_member_struct_mtget_mt_blkno=no |
571d9fb0 | 22771 | fi |
fc6ffb29 | 22772 | |
0ebeb530 | 22773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
571d9fb0 | 22774 | fi |
fc6ffb29 | 22775 | |
0ebeb530 | 22776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
571d9fb0 | 22777 | fi |
fc6ffb29 AJ |
22778 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5 |
22779 | echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; } | |
571d9fb0 GP |
22780 | if test $ac_cv_member_struct_mtget_mt_blkno = yes; then |
22781 | ||
22782 | cat >>confdefs.h <<_ACEOF | |
22783 | #define HAVE_STRUCT_MTGET_MT_BLKNO 1 | |
22784 | _ACEOF | |
22785 | ||
22786 | ||
36bdc64e GP |
22787 | fi |
22788 | ||
22789 | ||
fc6ffb29 AJ |
22790 | { echo "$as_me:$LINENO: checking for struct option.name" >&5 |
22791 | echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; } | |
db89a54b AJ |
22792 | if test "${ac_cv_member_struct_option_name+set}" = set; then |
22793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22794 | else | |
22795 | cat >conftest.$ac_ext <<_ACEOF | |
db89a54b AJ |
22796 | /* confdefs.h. */ |
22797 | _ACEOF | |
22798 | cat confdefs.h >>conftest.$ac_ext | |
22799 | cat >>conftest.$ac_ext <<_ACEOF | |
22800 | /* end confdefs.h. */ | |
22801 | #ifdef HAVE_GETOPT_H | |
22802 | #include <getopt.h> | |
22803 | #endif | |
22804 | ||
22805 | int | |
22806 | main () | |
22807 | { | |
22808 | static struct option ac_aggr; | |
22809 | if (ac_aggr.name) | |
22810 | return 0; | |
22811 | ; | |
22812 | return 0; | |
22813 | } | |
22814 | _ACEOF | |
22815 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22816 | if { (ac_try="$ac_compile" |
22817 | case "(($ac_try" in | |
22818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22819 | *) ac_try_echo=$ac_try;; | |
22820 | esac | |
22821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22822 | (eval "$ac_compile") 2>conftest.er1 | |
db89a54b | 22823 | ac_status=$? |
875927f6 AJ |
22824 | grep -v '^ *+' conftest.er1 >conftest.err |
22825 | rm -f conftest.er1 | |
22826 | cat conftest.err >&5 | |
db89a54b AJ |
22827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22828 | (exit $ac_status); } && | |
0ebeb530 JW |
22829 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22830 | { (case "(($ac_try" in | |
22831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22832 | *) ac_try_echo=$ac_try;; | |
22833 | esac | |
22834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22835 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
22836 | ac_status=$? |
22837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22838 | (exit $ac_status); }; } && | |
22839 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22840 | { (case "(($ac_try" in |
22841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22842 | *) ac_try_echo=$ac_try;; | |
22843 | esac | |
22844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22845 | (eval "$ac_try") 2>&5 | |
db89a54b AJ |
22846 | ac_status=$? |
22847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22848 | (exit $ac_status); }; }; then | |
22849 | ac_cv_member_struct_option_name=yes | |
22850 | else | |
22851 | echo "$as_me: failed program was:" >&5 | |
22852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22853 | ||
fc6ffb29 | 22854 | cat >conftest.$ac_ext <<_ACEOF |
db89a54b AJ |
22855 | /* confdefs.h. */ |
22856 | _ACEOF | |
22857 | cat confdefs.h >>conftest.$ac_ext | |
22858 | cat >>conftest.$ac_ext <<_ACEOF | |
22859 | /* end confdefs.h. */ | |
22860 | #ifdef HAVE_GETOPT_H | |
22861 | #include <getopt.h> | |
22862 | #endif | |
22863 | ||
22864 | int | |
22865 | main () | |
22866 | { | |
22867 | static struct option ac_aggr; | |
22868 | if (sizeof ac_aggr.name) | |
22869 | return 0; | |
22870 | ; | |
22871 | return 0; | |
22872 | } | |
22873 | _ACEOF | |
22874 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22875 | if { (ac_try="$ac_compile" |
22876 | case "(($ac_try" in | |
22877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22878 | *) ac_try_echo=$ac_try;; | |
22879 | esac | |
22880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22881 | (eval "$ac_compile") 2>conftest.er1 | |
db89a54b | 22882 | ac_status=$? |
875927f6 AJ |
22883 | grep -v '^ *+' conftest.er1 >conftest.err |
22884 | rm -f conftest.er1 | |
22885 | cat conftest.err >&5 | |
db89a54b AJ |
22886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22887 | (exit $ac_status); } && | |
0ebeb530 JW |
22888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22889 | { (case "(($ac_try" in | |
22890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22891 | *) ac_try_echo=$ac_try;; | |
22892 | esac | |
22893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22894 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
22895 | ac_status=$? |
22896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22897 | (exit $ac_status); }; } && | |
22898 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22899 | { (case "(($ac_try" in |
22900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22901 | *) ac_try_echo=$ac_try;; | |
22902 | esac | |
22903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22904 | (eval "$ac_try") 2>&5 | |
db89a54b AJ |
22905 | ac_status=$? |
22906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22907 | (exit $ac_status); }; }; then | |
22908 | ac_cv_member_struct_option_name=yes | |
22909 | else | |
22910 | echo "$as_me: failed program was:" >&5 | |
22911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22912 | ||
fc6ffb29 | 22913 | ac_cv_member_struct_option_name=no |
db89a54b | 22914 | fi |
fc6ffb29 | 22915 | |
0ebeb530 | 22916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
db89a54b | 22917 | fi |
fc6ffb29 | 22918 | |
0ebeb530 | 22919 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
db89a54b | 22920 | fi |
fc6ffb29 AJ |
22921 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5 |
22922 | echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; } | |
db89a54b AJ |
22923 | if test $ac_cv_member_struct_option_name = yes; then |
22924 | ||
22925 | cat >>confdefs.h <<_ACEOF | |
22926 | #define HAVE_STRUCT_OPTION_NAME 1 | |
22927 | _ACEOF | |
22928 | ||
22929 | ||
22930 | fi | |
22931 | ||
22932 | ||
fc6ffb29 AJ |
22933 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
22934 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } | |
d6507196 PR |
22935 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
22936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22937 | else | |
22938 | cat >conftest.$ac_ext <<_ACEOF | |
d6507196 PR |
22939 | /* confdefs.h. */ |
22940 | _ACEOF | |
22941 | cat confdefs.h >>conftest.$ac_ext | |
22942 | cat >>conftest.$ac_ext <<_ACEOF | |
22943 | /* end confdefs.h. */ | |
22944 | $ac_includes_default | |
22945 | int | |
22946 | main () | |
22947 | { | |
22948 | static struct stat ac_aggr; | |
22949 | if (ac_aggr.st_blocks) | |
22950 | return 0; | |
22951 | ; | |
22952 | return 0; | |
22953 | } | |
22954 | _ACEOF | |
22955 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
22956 | if { (ac_try="$ac_compile" |
22957 | case "(($ac_try" in | |
22958 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22959 | *) ac_try_echo=$ac_try;; | |
22960 | esac | |
22961 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22962 | (eval "$ac_compile") 2>conftest.er1 | |
d6507196 | 22963 | ac_status=$? |
875927f6 AJ |
22964 | grep -v '^ *+' conftest.er1 >conftest.err |
22965 | rm -f conftest.er1 | |
22966 | cat conftest.err >&5 | |
d6507196 PR |
22967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22968 | (exit $ac_status); } && | |
0ebeb530 JW |
22969 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22970 | { (case "(($ac_try" in | |
22971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22972 | *) ac_try_echo=$ac_try;; | |
22973 | esac | |
22974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22975 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
22976 | ac_status=$? |
22977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22978 | (exit $ac_status); }; } && | |
22979 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
22980 | { (case "(($ac_try" in |
22981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
22982 | *) ac_try_echo=$ac_try;; | |
22983 | esac | |
22984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
22985 | (eval "$ac_try") 2>&5 | |
d6507196 PR |
22986 | ac_status=$? |
22987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22988 | (exit $ac_status); }; }; then | |
22989 | ac_cv_member_struct_stat_st_blocks=yes | |
22990 | else | |
22991 | echo "$as_me: failed program was:" >&5 | |
22992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22993 | ||
fc6ffb29 | 22994 | cat >conftest.$ac_ext <<_ACEOF |
d6507196 PR |
22995 | /* confdefs.h. */ |
22996 | _ACEOF | |
22997 | cat confdefs.h >>conftest.$ac_ext | |
22998 | cat >>conftest.$ac_ext <<_ACEOF | |
22999 | /* end confdefs.h. */ | |
23000 | $ac_includes_default | |
23001 | int | |
23002 | main () | |
23003 | { | |
23004 | static struct stat ac_aggr; | |
23005 | if (sizeof ac_aggr.st_blocks) | |
23006 | return 0; | |
23007 | ; | |
23008 | return 0; | |
23009 | } | |
23010 | _ACEOF | |
23011 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
23012 | if { (ac_try="$ac_compile" |
23013 | case "(($ac_try" in | |
23014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23015 | *) ac_try_echo=$ac_try;; | |
23016 | esac | |
23017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23018 | (eval "$ac_compile") 2>conftest.er1 | |
d6507196 | 23019 | ac_status=$? |
875927f6 AJ |
23020 | grep -v '^ *+' conftest.er1 >conftest.err |
23021 | rm -f conftest.er1 | |
23022 | cat conftest.err >&5 | |
d6507196 PR |
23023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23024 | (exit $ac_status); } && | |
0ebeb530 JW |
23025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23026 | { (case "(($ac_try" in | |
23027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23028 | *) ac_try_echo=$ac_try;; | |
23029 | esac | |
23030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23031 | (eval "$ac_try") 2>&5 | |
875927f6 AJ |
23032 | ac_status=$? |
23033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23034 | (exit $ac_status); }; } && | |
23035 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
23036 | { (case "(($ac_try" in |
23037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23038 | *) ac_try_echo=$ac_try;; | |
23039 | esac | |
23040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23041 | (eval "$ac_try") 2>&5 | |
d6507196 PR |
23042 | ac_status=$? |
23043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23044 | (exit $ac_status); }; }; then | |
23045 | ac_cv_member_struct_stat_st_blocks=yes | |
23046 | else | |
23047 | echo "$as_me: failed program was:" >&5 | |
23048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23049 | ||
fc6ffb29 | 23050 | ac_cv_member_struct_stat_st_blocks=no |
d6507196 | 23051 | fi |
fc6ffb29 | 23052 | |
0ebeb530 | 23053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d6507196 | 23054 | fi |
fc6ffb29 | 23055 | |
0ebeb530 | 23056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d6507196 | 23057 | fi |
fc6ffb29 AJ |
23058 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
23059 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } | |
d6507196 PR |
23060 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
23061 | ||
23062 | cat >>confdefs.h <<_ACEOF | |
23063 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
23064 | _ACEOF | |
23065 | ||
23066 | ||
23067 | fi | |
23068 | ||
23069 | ||
fc6ffb29 AJ |
23070 | { echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5 |
23071 | echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; } | |
40a6a74a VL |
23072 | if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then |
23073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23074 | else | |
23075 | cat >conftest.$ac_ext <<_ACEOF | |
23076 | /* confdefs.h. */ | |
23077 | _ACEOF | |
23078 | cat confdefs.h >>conftest.$ac_ext | |
23079 | cat >>conftest.$ac_ext <<_ACEOF | |
23080 | /* end confdefs.h. */ | |
23081 | #ifdef HAVE_SYS_TYPES_H | |
23082 | #include <sys/types.h> | |
23083 | #endif | |
23084 | #ifdef HAVE_NETINET_IN_H | |
23085 | #include <netinet/in.h> | |
23086 | #endif | |
23087 | ||
23088 | int | |
23089 | main () | |
23090 | { | |
23091 | static struct sockaddr_in6 ac_aggr; | |
23092 | if (ac_aggr.sin6_scope_id) | |
23093 | return 0; | |
23094 | ; | |
23095 | return 0; | |
23096 | } | |
23097 | _ACEOF | |
23098 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
23099 | if { (ac_try="$ac_compile" |
23100 | case "(($ac_try" in | |
23101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23102 | *) ac_try_echo=$ac_try;; | |
23103 | esac | |
23104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23105 | (eval "$ac_compile") 2>conftest.er1 | |
40a6a74a VL |
23106 | ac_status=$? |
23107 | grep -v '^ *+' conftest.er1 >conftest.err | |
23108 | rm -f conftest.er1 | |
23109 | cat conftest.err >&5 | |
23110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23111 | (exit $ac_status); } && | |
0ebeb530 JW |
23112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23113 | { (case "(($ac_try" in | |
23114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23115 | *) ac_try_echo=$ac_try;; | |
23116 | esac | |
23117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23118 | (eval "$ac_try") 2>&5 | |
40a6a74a VL |
23119 | ac_status=$? |
23120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23121 | (exit $ac_status); }; } && | |
23122 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
23123 | { (case "(($ac_try" in |
23124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23125 | *) ac_try_echo=$ac_try;; | |
23126 | esac | |
23127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23128 | (eval "$ac_try") 2>&5 | |
40a6a74a VL |
23129 | ac_status=$? |
23130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23131 | (exit $ac_status); }; }; then | |
23132 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | |
23133 | else | |
23134 | echo "$as_me: failed program was:" >&5 | |
23135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23136 | ||
fc6ffb29 | 23137 | cat >conftest.$ac_ext <<_ACEOF |
40a6a74a VL |
23138 | /* confdefs.h. */ |
23139 | _ACEOF | |
23140 | cat confdefs.h >>conftest.$ac_ext | |
23141 | cat >>conftest.$ac_ext <<_ACEOF | |
23142 | /* end confdefs.h. */ | |
23143 | #ifdef HAVE_SYS_TYPES_H | |
23144 | #include <sys/types.h> | |
23145 | #endif | |
23146 | #ifdef HAVE_NETINET_IN_H | |
23147 | #include <netinet/in.h> | |
23148 | #endif | |
23149 | ||
23150 | int | |
23151 | main () | |
23152 | { | |
23153 | static struct sockaddr_in6 ac_aggr; | |
23154 | if (sizeof ac_aggr.sin6_scope_id) | |
23155 | return 0; | |
23156 | ; | |
23157 | return 0; | |
23158 | } | |
23159 | _ACEOF | |
23160 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
23161 | if { (ac_try="$ac_compile" |
23162 | case "(($ac_try" in | |
23163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23164 | *) ac_try_echo=$ac_try;; | |
23165 | esac | |
23166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23167 | (eval "$ac_compile") 2>conftest.er1 | |
40a6a74a VL |
23168 | ac_status=$? |
23169 | grep -v '^ *+' conftest.er1 >conftest.err | |
23170 | rm -f conftest.er1 | |
23171 | cat conftest.err >&5 | |
23172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23173 | (exit $ac_status); } && | |
0ebeb530 JW |
23174 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23175 | { (case "(($ac_try" in | |
23176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23177 | *) ac_try_echo=$ac_try;; | |
23178 | esac | |
23179 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23180 | (eval "$ac_try") 2>&5 | |
40a6a74a VL |
23181 | ac_status=$? |
23182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23183 | (exit $ac_status); }; } && | |
23184 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
23185 | { (case "(($ac_try" in |
23186 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23187 | *) ac_try_echo=$ac_try;; | |
23188 | esac | |
23189 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23190 | (eval "$ac_try") 2>&5 | |
40a6a74a VL |
23191 | ac_status=$? |
23192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23193 | (exit $ac_status); }; }; then | |
23194 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes | |
23195 | else | |
23196 | echo "$as_me: failed program was:" >&5 | |
23197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23198 | ||
fc6ffb29 | 23199 | ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no |
40a6a74a | 23200 | fi |
fc6ffb29 | 23201 | |
0ebeb530 | 23202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
40a6a74a | 23203 | fi |
fc6ffb29 | 23204 | |
0ebeb530 | 23205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
40a6a74a | 23206 | fi |
fc6ffb29 AJ |
23207 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5 |
23208 | echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; } | |
40a6a74a VL |
23209 | if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then |
23210 | ||
23211 | cat >>confdefs.h <<_ACEOF | |
23212 | #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1 | |
23213 | _ACEOF | |
23214 | ||
23215 | ||
23216 | fi | |
23217 | ||
23218 | ||
788e30f1 AJ |
23219 | { echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5 |
23220 | echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; } | |
23221 | if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then | |
23222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23223 | else | |
23224 | cat >conftest.$ac_ext <<_ACEOF | |
23225 | /* confdefs.h. */ | |
23226 | _ACEOF | |
23227 | cat confdefs.h >>conftest.$ac_ext | |
23228 | cat >>conftest.$ac_ext <<_ACEOF | |
23229 | /* end confdefs.h. */ | |
23230 | #ifdef HAVE_SYS_TYPES_H | |
23231 | #include <sys/types.h> | |
23232 | #endif | |
23233 | #ifdef HAVE_NETINET_IN_H | |
23234 | # include <netinet/in.h> | |
23235 | #endif | |
23236 | #ifdef HAVE_ARPA_NAMESER_H | |
23237 | # include <arpa/nameser.h> | |
23238 | #endif | |
23239 | ||
23240 | int | |
23241 | main () | |
23242 | { | |
23243 | static ns_msg ac_aggr; | |
23244 | if (ac_aggr._msg_ptr) | |
23245 | return 0; | |
23246 | ; | |
23247 | return 0; | |
23248 | } | |
23249 | _ACEOF | |
23250 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
23251 | if { (ac_try="$ac_compile" |
23252 | case "(($ac_try" in | |
23253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23254 | *) ac_try_echo=$ac_try;; | |
23255 | esac | |
23256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23257 | (eval "$ac_compile") 2>conftest.er1 | |
788e30f1 AJ |
23258 | ac_status=$? |
23259 | grep -v '^ *+' conftest.er1 >conftest.err | |
23260 | rm -f conftest.er1 | |
23261 | cat conftest.err >&5 | |
23262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23263 | (exit $ac_status); } && | |
0ebeb530 JW |
23264 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23265 | { (case "(($ac_try" in | |
23266 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23267 | *) ac_try_echo=$ac_try;; | |
23268 | esac | |
23269 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23270 | (eval "$ac_try") 2>&5 | |
788e30f1 AJ |
23271 | ac_status=$? |
23272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23273 | (exit $ac_status); }; } && | |
23274 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
23275 | { (case "(($ac_try" in |
23276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23277 | *) ac_try_echo=$ac_try;; | |
23278 | esac | |
23279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23280 | (eval "$ac_try") 2>&5 | |
788e30f1 AJ |
23281 | ac_status=$? |
23282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23283 | (exit $ac_status); }; }; then | |
23284 | ac_cv_member_ns_msg__msg_ptr=yes | |
23285 | else | |
23286 | echo "$as_me: failed program was:" >&5 | |
23287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23288 | ||
23289 | cat >conftest.$ac_ext <<_ACEOF | |
23290 | /* confdefs.h. */ | |
23291 | _ACEOF | |
23292 | cat confdefs.h >>conftest.$ac_ext | |
23293 | cat >>conftest.$ac_ext <<_ACEOF | |
23294 | /* end confdefs.h. */ | |
23295 | #ifdef HAVE_SYS_TYPES_H | |
23296 | #include <sys/types.h> | |
23297 | #endif | |
23298 | #ifdef HAVE_NETINET_IN_H | |
23299 | # include <netinet/in.h> | |
23300 | #endif | |
23301 | #ifdef HAVE_ARPA_NAMESER_H | |
23302 | # include <arpa/nameser.h> | |
23303 | #endif | |
23304 | ||
23305 | int | |
23306 | main () | |
23307 | { | |
23308 | static ns_msg ac_aggr; | |
23309 | if (sizeof ac_aggr._msg_ptr) | |
23310 | return 0; | |
23311 | ; | |
23312 | return 0; | |
23313 | } | |
23314 | _ACEOF | |
23315 | rm -f conftest.$ac_objext | |
0ebeb530 JW |
23316 | if { (ac_try="$ac_compile" |
23317 | case "(($ac_try" in | |
23318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23319 | *) ac_try_echo=$ac_try;; | |
23320 | esac | |
23321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23322 | (eval "$ac_compile") 2>conftest.er1 | |
788e30f1 AJ |
23323 | ac_status=$? |
23324 | grep -v '^ *+' conftest.er1 >conftest.err | |
23325 | rm -f conftest.er1 | |
23326 | cat conftest.err >&5 | |
23327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23328 | (exit $ac_status); } && | |
0ebeb530 JW |
23329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23330 | { (case "(($ac_try" in | |
23331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23332 | *) ac_try_echo=$ac_try;; | |
23333 | esac | |
23334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23335 | (eval "$ac_try") 2>&5 | |
788e30f1 AJ |
23336 | ac_status=$? |
23337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23338 | (exit $ac_status); }; } && | |
23339 | { ac_try='test -s conftest.$ac_objext' | |
0ebeb530 JW |
23340 | { (case "(($ac_try" in |
23341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23342 | *) ac_try_echo=$ac_try;; | |
23343 | esac | |
23344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23345 | (eval "$ac_try") 2>&5 | |
788e30f1 AJ |
23346 | ac_status=$? |
23347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23348 | (exit $ac_status); }; }; then | |
23349 | ac_cv_member_ns_msg__msg_ptr=yes | |
23350 | else | |
23351 | echo "$as_me: failed program was:" >&5 | |
23352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23353 | ||
23354 | ac_cv_member_ns_msg__msg_ptr=no | |
23355 | fi | |
23356 | ||
0ebeb530 | 23357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
788e30f1 AJ |
23358 | fi |
23359 | ||
0ebeb530 | 23360 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
788e30f1 AJ |
23361 | fi |
23362 | { echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5 | |
23363 | echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; } | |
23364 | if test $ac_cv_member_ns_msg__msg_ptr = yes; then | |
23365 | ||
23366 | cat >>confdefs.h <<_ACEOF | |
23367 | #define HAVE_NS_MSG__MSG_PTR 1 | |
23368 | _ACEOF | |
23369 | ||
23370 | ||
23371 | fi | |
23372 | ||
23373 | ||
fc6ffb29 AJ |
23374 | { echo "$as_me:$LINENO: checking for timezone variable" >&5 |
23375 | echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; } | |
6618b035 PK |
23376 | if test "${ac_cv_have_timezone+set}" = set; then |
23377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23378 | else | |
23379 | cat >conftest.$ac_ext <<_ACEOF | |
23380 | /* confdefs.h. */ | |
23381 | _ACEOF | |
23382 | cat confdefs.h >>conftest.$ac_ext | |
23383 | cat >>conftest.$ac_ext <<_ACEOF | |
23384 | /* end confdefs.h. */ | |
23385 | #include <time.h> | |
23386 | int | |
23387 | main () | |
23388 | { | |
ff2bd661 | 23389 | timezone = 1 |
6618b035 PK |
23390 | ; |
23391 | return 0; | |
23392 | } | |
23393 | _ACEOF | |
23394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
23395 | if { (ac_try="$ac_link" |
23396 | case "(($ac_try" in | |
23397 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23398 | *) ac_try_echo=$ac_try;; | |
23399 | esac | |
23400 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23401 | (eval "$ac_link") 2>conftest.er1 | |
6618b035 PK |
23402 | ac_status=$? |
23403 | grep -v '^ *+' conftest.er1 >conftest.err | |
23404 | rm -f conftest.er1 | |
23405 | cat conftest.err >&5 | |
23406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23407 | (exit $ac_status); } && | |
0ebeb530 JW |
23408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23409 | { (case "(($ac_try" in | |
23410 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23411 | *) ac_try_echo=$ac_try;; | |
23412 | esac | |
23413 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23414 | (eval "$ac_try") 2>&5 | |
6618b035 PK |
23415 | ac_status=$? |
23416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23417 | (exit $ac_status); }; } && | |
23418 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
23419 | { (case "(($ac_try" in |
23420 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23421 | *) ac_try_echo=$ac_try;; | |
23422 | esac | |
23423 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23424 | (eval "$ac_try") 2>&5 | |
6618b035 PK |
23425 | ac_status=$? |
23426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23427 | (exit $ac_status); }; }; then | |
23428 | ac_cv_have_timezone="yes" | |
23429 | else | |
23430 | echo "$as_me: failed program was:" >&5 | |
23431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23432 | ||
fc6ffb29 | 23433 | ac_cv_have_timezone="no" |
6618b035 | 23434 | fi |
fc6ffb29 | 23435 | |
0ebeb530 | 23436 | rm -f core conftest.err conftest.$ac_objext \ |
6618b035 PK |
23437 | conftest$ac_exeext conftest.$ac_ext |
23438 | fi | |
fc6ffb29 AJ |
23439 | { echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5 |
23440 | echo "${ECHO_T}$ac_cv_have_timezone" >&6; } | |
6618b035 PK |
23441 | if test "$ac_cv_have_timezone" = "yes" |
23442 | then | |
23443 | ||
23444 | cat >>confdefs.h <<\_ACEOF | |
23445 | #define HAVE_TIMEZONE 1 | |
23446 | _ACEOF | |
23447 | ||
23448 | fi | |
fc6ffb29 AJ |
23449 | { echo "$as_me:$LINENO: checking for daylight variable" >&5 |
23450 | echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; } | |
6618b035 PK |
23451 | if test "${ac_cv_have_daylight+set}" = set; then |
23452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23453 | else | |
23454 | cat >conftest.$ac_ext <<_ACEOF | |
23455 | /* confdefs.h. */ | |
23456 | _ACEOF | |
23457 | cat confdefs.h >>conftest.$ac_ext | |
23458 | cat >>conftest.$ac_ext <<_ACEOF | |
23459 | /* end confdefs.h. */ | |
23460 | #include <time.h> | |
23461 | int | |
23462 | main () | |
23463 | { | |
ff2bd661 | 23464 | daylight = 1 |
6618b035 PK |
23465 | ; |
23466 | return 0; | |
23467 | } | |
23468 | _ACEOF | |
23469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
0ebeb530 JW |
23470 | if { (ac_try="$ac_link" |
23471 | case "(($ac_try" in | |
23472 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23473 | *) ac_try_echo=$ac_try;; | |
23474 | esac | |
23475 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23476 | (eval "$ac_link") 2>conftest.er1 | |
6618b035 PK |
23477 | ac_status=$? |
23478 | grep -v '^ *+' conftest.er1 >conftest.err | |
23479 | rm -f conftest.er1 | |
23480 | cat conftest.err >&5 | |
23481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23482 | (exit $ac_status); } && | |
0ebeb530 JW |
23483 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23484 | { (case "(($ac_try" in | |
23485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23486 | *) ac_try_echo=$ac_try;; | |
23487 | esac | |
23488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23489 | (eval "$ac_try") 2>&5 | |
6618b035 PK |
23490 | ac_status=$? |
23491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23492 | (exit $ac_status); }; } && | |
23493 | { ac_try='test -s conftest$ac_exeext' | |
0ebeb530 JW |
23494 | { (case "(($ac_try" in |
23495 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
23496 | *) ac_try_echo=$ac_try;; | |
23497 | esac | |
23498 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
23499 | (eval "$ac_try") 2>&5 | |
6618b035 PK |
23500 | ac_status=$? |
23501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23502 | (exit $ac_status); }; }; then | |
23503 | ac_cv_have_daylight="yes" | |
23504 | else | |
23505 | echo "$as_me: failed program was:" >&5 | |
23506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23507 | ||
fc6ffb29 | 23508 | ac_cv_have_daylight="no" |
6618b035 | 23509 | fi |
fc6ffb29 | 23510 | |
0ebeb530 | 23511 | rm -f core conftest.err conftest.$ac_objext \ |
6618b035 PK |
23512 | conftest$ac_exeext conftest.$ac_ext |
23513 | fi | |
fc6ffb29 AJ |
23514 | { echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5 |
23515 | echo "${ECHO_T}$ac_cv_have_daylight" >&6; } | |
6618b035 PK |
23516 | if test "$ac_cv_have_daylight" = "yes" |
23517 | then | |
23518 | ||
23519 | cat >>confdefs.h <<\_ACEOF | |
23520 | #define HAVE_DAYLIGHT 1 | |
23521 | _ACEOF | |
23522 | ||
23523 | fi | |
23524 | ||
daa2886c | 23525 | |
fc01b729 | 23526 | case $host_cpu in |
fc6ffb29 AJ |
23527 | *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5 |
23528 | echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; } | |
05783b55 | 23529 | if test "${ac_cv_cpp_def___i386__+set}" = set; then |
f5818d2f | 23530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
51d46ba9 | 23531 | else |
f5818d2f | 23532 | cat >conftest.$ac_ext <<_ACEOF |
e24bcc77 AJ |
23533 | /* confdefs.h. */ |
23534 | _ACEOF | |
23535 | cat confdefs.h >>conftest.$ac_ext | |
23536 | cat >>conftest.$ac_ext <<_ACEOF | |
23537 | /* end confdefs.h. */ | |
f5818d2f | 23538 | #ifndef __i386__ |
51d46ba9 AJ |
23539 | yes |
23540 | #endif | |
f5818d2f | 23541 | _ACEOF |
51d46ba9 | 23542 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
11af04e3 | 23543 | $EGREP "yes" >/dev/null 2>&1; then |
05783b55 | 23544 | ac_cv_cpp_def___i386__=yes |
51d46ba9 | 23545 | else |
05783b55 | 23546 | ac_cv_cpp_def___i386__=no |
51d46ba9 AJ |
23547 | fi |
23548 | rm -f conftest* | |
23549 | ||
23550 | fi | |
fc6ffb29 AJ |
23551 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5 |
23552 | echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; } | |
05783b55 AJ |
23553 | if test $ac_cv_cpp_def___i386__ = yes; then |
23554 | CFLAGS="$CFLAGS -D__i386__" | |
23555 | LINTFLAGS="$LINTFLAGS -D__i386__" | |
e3be5642 AJ |
23556 | fi |
23557 | ;; | |
fc6ffb29 AJ |
23558 | *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5 |
23559 | echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; } | |
e3be5642 AJ |
23560 | if test "${ac_cv_cpp_def___x86_64__+set}" = set; then |
23561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23562 | else | |
23563 | cat >conftest.$ac_ext <<_ACEOF | |
23564 | /* confdefs.h. */ | |
23565 | _ACEOF | |
23566 | cat confdefs.h >>conftest.$ac_ext | |
23567 | cat >>conftest.$ac_ext <<_ACEOF | |
23568 | /* end confdefs.h. */ | |
23569 | #ifndef __x86_64__ | |
23570 | yes | |
23571 | #endif | |
23572 | _ACEOF | |
23573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
23574 | $EGREP "yes" >/dev/null 2>&1; then | |
23575 | ac_cv_cpp_def___x86_64__=yes | |
23576 | else | |
23577 | ac_cv_cpp_def___x86_64__=no | |
23578 | fi | |
23579 | rm -f conftest* | |
23580 | ||
23581 | fi | |
fc6ffb29 AJ |
23582 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5 |
23583 | echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; } | |
e3be5642 AJ |
23584 | if test $ac_cv_cpp_def___x86_64__ = yes; then |
23585 | CFLAGS="$CFLAGS -D__x86_64__" | |
23586 | LINTFLAGS="$LINTFLAGS -D__x86_64__" | |
51d46ba9 | 23587 | fi |
05783b55 | 23588 | ;; |
fc6ffb29 AJ |
23589 | *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5 |
23590 | echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; } | |
05783b55 | 23591 | if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then |
69b67861 SE |
23592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23593 | else | |
23594 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
23595 | /* confdefs.h. */ |
23596 | _ACEOF | |
23597 | cat confdefs.h >>conftest.$ac_ext | |
23598 | cat >>conftest.$ac_ext <<_ACEOF | |
23599 | /* end confdefs.h. */ | |
69b67861 SE |
23600 | #ifndef __ALPHA__ |
23601 | yes | |
23602 | #endif | |
23603 | _ACEOF | |
23604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
23605 | $EGREP "yes" >/dev/null 2>&1; then | |
05783b55 | 23606 | ac_cv_cpp_def___ALPHA__=yes |
69b67861 | 23607 | else |
05783b55 | 23608 | ac_cv_cpp_def___ALPHA__=no |
69b67861 SE |
23609 | fi |
23610 | rm -f conftest* | |
23611 | ||
23612 | fi | |
fc6ffb29 AJ |
23613 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5 |
23614 | echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; } | |
05783b55 AJ |
23615 | if test $ac_cv_cpp_def___ALPHA__ = yes; then |
23616 | CFLAGS="$CFLAGS -D__ALPHA__" | |
23617 | LINTFLAGS="$LINTFLAGS -D__ALPHA__" | |
69b67861 | 23618 | fi |
05783b55 | 23619 | ;; |
fc6ffb29 AJ |
23620 | *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5 |
23621 | echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; } | |
05783b55 | 23622 | if test "${ac_cv_cpp_def___sparc__+set}" = set; then |
57807fa1 GM |
23623 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23624 | else | |
23625 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
23626 | /* confdefs.h. */ |
23627 | _ACEOF | |
23628 | cat confdefs.h >>conftest.$ac_ext | |
23629 | cat >>conftest.$ac_ext <<_ACEOF | |
23630 | /* end confdefs.h. */ | |
57807fa1 GM |
23631 | #ifndef __sparc__ |
23632 | yes | |
23633 | #endif | |
23634 | _ACEOF | |
23635 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11af04e3 | 23636 | $EGREP "yes" >/dev/null 2>&1; then |
05783b55 | 23637 | ac_cv_cpp_def___sparc__=yes |
57807fa1 | 23638 | else |
05783b55 | 23639 | ac_cv_cpp_def___sparc__=no |
57807fa1 GM |
23640 | fi |
23641 | rm -f conftest* | |
23642 | ||
23643 | fi | |
fc6ffb29 AJ |
23644 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5 |
23645 | echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; } | |
05783b55 AJ |
23646 | if test $ac_cv_cpp_def___sparc__ = yes; then |
23647 | CFLAGS="$CFLAGS -D__sparc__" | |
23648 | LINTFLAGS="$LINTFLAGS -D__sparc__" | |
b64b7deb PH |
23649 | fi |
23650 | ;; | |
fc6ffb29 AJ |
23651 | *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5 |
23652 | echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; } | |
b64b7deb PH |
23653 | if test "${ac_cv_cpp_def___powerpc__+set}" = set; then |
23654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23655 | else | |
23656 | cat >conftest.$ac_ext <<_ACEOF | |
b64b7deb PH |
23657 | /* confdefs.h. */ |
23658 | _ACEOF | |
23659 | cat confdefs.h >>conftest.$ac_ext | |
23660 | cat >>conftest.$ac_ext <<_ACEOF | |
23661 | /* end confdefs.h. */ | |
23662 | #ifndef __powerpc__ | |
23663 | yes | |
23664 | #endif | |
23665 | _ACEOF | |
23666 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
23667 | $EGREP "yes" >/dev/null 2>&1; then | |
23668 | ac_cv_cpp_def___powerpc__=yes | |
23669 | else | |
23670 | ac_cv_cpp_def___powerpc__=no | |
23671 | fi | |
23672 | rm -f conftest* | |
23673 | ||
23674 | fi | |
fc6ffb29 AJ |
23675 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5 |
23676 | echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; } | |
b64b7deb PH |
23677 | if test $ac_cv_cpp_def___powerpc__ = yes; then |
23678 | CFLAGS="$CFLAGS -D__powerpc__" | |
23679 | LINTFLAGS="$LINTFLAGS -D__powerpc__" | |
57807fa1 | 23680 | fi |
05783b55 AJ |
23681 | ;; |
23682 | esac | |
57807fa1 GM |
23683 | |
23684 | case $host_vendor in | |
fc6ffb29 AJ |
23685 | *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5 |
23686 | echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; } | |
05783b55 | 23687 | if test "${ac_cv_cpp_def___sun__+set}" = set; then |
57807fa1 GM |
23688 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23689 | else | |
23690 | cat >conftest.$ac_ext <<_ACEOF | |
e24bcc77 AJ |
23691 | /* confdefs.h. */ |
23692 | _ACEOF | |
23693 | cat confdefs.h >>conftest.$ac_ext | |
23694 | cat >>conftest.$ac_ext <<_ACEOF | |
23695 | /* end confdefs.h. */ | |
57807fa1 GM |
23696 | #ifndef __sun__ |
23697 | yes | |
23698 | #endif | |
23699 | _ACEOF | |
23700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11af04e3 | 23701 | $EGREP "yes" >/dev/null 2>&1; then |
05783b55 | 23702 | ac_cv_cpp_def___sun__=yes |
57807fa1 | 23703 | else |
05783b55 | 23704 | ac_cv_cpp_def___sun__=no |
57807fa1 GM |
23705 | fi |
23706 | rm -f conftest* | |
23707 | ||
23708 | fi | |
fc6ffb29 AJ |
23709 | { echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5 |
23710 | echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; } | |
05783b55 AJ |
23711 | if test $ac_cv_cpp_def___sun__ = yes; then |
23712 | CFLAGS="$CFLAGS -D__sun__" | |
23713 | LINTFLAGS="$LINTFLAGS -D__sun__" | |
57807fa1 | 23714 | fi |
05783b55 AJ |
23715 | ;; |
23716 | esac | |
57807fa1 GM |
23717 | |
23718 | ||
32ab895e AJ |
23719 | DEPENDENCIES="### Dependencies: |
23720 | ||
8598a4c6 AJ |
23721 | .INIT: Makefile |
23722 | .BEGIN: Makefile | |
23723 | Makefile: dummy | |
23724 | -\$(MAKEDEP) -C\$(SRCDIR) -S\$(TOPSRCDIR) -T\$(TOPOBJDIR) \$(EXTRAINCL) \$(DEPEND_SRCS) | |
23725 | ||
12c19620 AJ |
23726 | \$(ALL_OBJS): \$(IDL_H_SRCS:.idl=.h) |
23727 | \$(IDL_GEN_C_SRCS:.c=.o): \$(IDL_GEN_C_SRCS) | |
32ab895e AJ |
23728 | \$(LEX_SRCS:.l=.yy.o): \$(LEX_SRCS:.l=.yy.c) |
23729 | \$(BISON_SRCS:.y=.tab.o): \$(BISON_SRCS:.y=.tab.c)" | |
23730 | ||
23731 | ||
daa2886c AJ |
23732 | |
23733 | ||
23734 | ||
c4704c2d AJ |
23735 | ac_config_commands="$ac_config_commands include/stamp-h" |
23736 | ||
23737 | ||
7dfc4477 | 23738 | ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv" |
89118568 | 23739 | |
7dfc4477 | 23740 | ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv" |
89118568 | 23741 | |
1c60e3bf | 23742 | ac_config_commands="$ac_config_commands dlls/kernel32/nls" |
f5818d2f | 23743 | |
fc6ffb29 | 23744 | ac_config_commands="$ac_config_commands dlls/user/resources" |
f5818d2f | 23745 | |
fc6ffb29 | 23746 | ac_config_commands="$ac_config_commands dlls/wineps.drv/data" |
f5818d2f | 23747 | |
fc6ffb29 | 23748 | ac_config_commands="$ac_config_commands include/wine" |
f5818d2f | 23749 | |
f5818d2f AJ |
23750 | |
23751 | MAKE_RULES=Make.rules | |
23752 | ||
daa2886c | 23753 | |
f5818d2f | 23754 | MAKE_DLL_RULES=dlls/Makedll.rules |
d0edc5fe | 23755 | |
daa2886c | 23756 | |
633b12d5 AJ |
23757 | MAKE_IMPLIB_RULES=dlls/Makeimplib.rules |
23758 | ||
23759 | ||
edeee89c AJ |
23760 | MAKE_TEST_RULES=dlls/Maketest.rules |
23761 | ||
23762 | ||
626f425b AJ |
23763 | MAKE_PROG_RULES=programs/Makeprog.rules |
23764 | ||
daa2886c | 23765 | |
7dfc4477 | 23766 | ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/clusapi/Makefile dlls/comcat/Makefile dlls/comcat/tests/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/comdlg32/Makefile dlls/comdlg32/tests/Makefile dlls/compstui/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/cryptnet/Makefile dlls/ctl3d32/Makefile dlls/d3d8/Makefile dlls/d3d8/tests/Makefile dlls/d3d9/Makefile dlls/d3d9/tests/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dnsapi/Makefile dlls/dnsapi/tests/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi32/Makefile dlls/gdi32/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel32/Makefile dlls/kernel32/tests/Makefile dlls/localspl/Makefile dlls/localspl/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/mscoree/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/nddeapi/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/pstorec/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/resutils/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/svrapi/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmd/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile" |
daa2886c | 23767 | |
626f425b | 23768 | |
f5818d2f | 23769 | cat >confcache <<\_ACEOF |
e2991ea7 AJ |
23770 | # This file is a shell script that caches the results of configure |
23771 | # tests run on this system so they can be shared between configure | |
f5818d2f AJ |
23772 | # scripts and configure runs, see configure's option --config-cache. |
23773 | # It is not useful on other systems. If it contains results you don't | |
23774 | # want to keep, you may remove or edit it. | |
e2991ea7 | 23775 | # |
f5818d2f AJ |
23776 | # config.status only pays attention to the cache file if you give it |
23777 | # the --recheck option to rerun configure. | |
e2991ea7 | 23778 | # |
11af04e3 | 23779 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
f5818d2f AJ |
23780 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
23781 | # following values. | |
23782 | ||
23783 | _ACEOF | |
23784 | ||
7e6ae4ba AJ |
23785 | # The following way of writing the cache mishandles newlines in values, |
23786 | # but we know of no workaround that is simple, portable, and efficient. | |
fc6ffb29 | 23787 | # So, we kill variables containing newlines. |
e2991ea7 AJ |
23788 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23789 | # and sets the high bit in the cache file unless we assign to the vars. | |
fc6ffb29 AJ |
23790 | ( |
23791 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
23792 | eval ac_val=\$$ac_var | |
23793 | case $ac_val in #( | |
23794 | *${as_nl}*) | |
23795 | case $ac_var in #( | |
23796 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
23797 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
23798 | esac | |
23799 | case $ac_var in #( | |
23800 | _ | IFS | as_nl) ;; #( | |
23801 | *) $as_unset $ac_var ;; | |
23802 | esac ;; | |
23803 | esac | |
23804 | done | |
23805 | ||
f5818d2f | 23806 | (set) 2>&1 | |
fc6ffb29 AJ |
23807 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
23808 | *${as_nl}ac_space=\ *) | |
f5818d2f AJ |
23809 | # `set' does not quote correctly, so add quotes (double-quote |
23810 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23811 | sed -n \ | |
875927f6 AJ |
23812 | "s/'/'\\\\''/g; |
23813 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
fc6ffb29 | 23814 | ;; #( |
f5818d2f AJ |
23815 | *) |
23816 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
fc6ffb29 | 23817 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
f5818d2f | 23818 | ;; |
fc6ffb29 AJ |
23819 | esac | |
23820 | sort | |
23821 | ) | | |
f5818d2f | 23822 | sed ' |
fc6ffb29 | 23823 | /^ac_cv_env_/b end |
f5818d2f | 23824 | t clear |
fc6ffb29 | 23825 | :clear |
f5818d2f AJ |
23826 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23827 | t end | |
fc6ffb29 AJ |
23828 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23829 | :end' >>confcache | |
0ebeb530 JW |
23830 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
23831 | if test -w "$cache_file"; then | |
fc6ffb29 AJ |
23832 | test "x$cache_file" != "x/dev/null" && |
23833 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
23834 | echo "$as_me: updating cache $cache_file" >&6;} | |
f5818d2f | 23835 | cat confcache >$cache_file |
e2991ea7 | 23836 | else |
fc6ffb29 AJ |
23837 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
23838 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
e2991ea7 AJ |
23839 | fi |
23840 | fi | |
23841 | rm -f confcache | |
23842 | ||
e2991ea7 AJ |
23843 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
23844 | # Let make expand exec_prefix. | |
23845 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23846 | ||
18f92e76 | 23847 | DEFS=-DHAVE_CONFIG_H |
e2991ea7 | 23848 | |
11af04e3 AJ |
23849 | ac_libobjs= |
23850 | ac_ltlibobjs= | |
23851 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23852 | # 1. Remove the extension, and $U if already installed. | |
fc6ffb29 AJ |
23853 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
23854 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
23855 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
23856 | # will be set to the directory where LIBOBJS objects are built. | |
23857 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
23858 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
11af04e3 AJ |
23859 | done |
23860 | LIBOBJS=$ac_libobjs | |
23861 | ||
23862 | LTLIBOBJS=$ac_ltlibobjs | |
23863 | ||
23864 | ||
daa2886c | 23865 | |
e2991ea7 | 23866 | : ${CONFIG_STATUS=./config.status} |
f5818d2f AJ |
23867 | ac_clean_files_save=$ac_clean_files |
23868 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
daa2886c | 23869 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
f5818d2f AJ |
23870 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
23871 | cat >$CONFIG_STATUS <<_ACEOF | |
23872 | #! $SHELL | |
daa2886c | 23873 | # Generated by $as_me. |
e2991ea7 | 23874 | # Run this file to recreate the current configuration. |
e2991ea7 | 23875 | # Compiler output produced by configure, useful for debugging |
f5818d2f | 23876 | # configure, is in config.log if it exists. |
e2991ea7 | 23877 | |
f5818d2f | 23878 | debug=false |
e24bcc77 AJ |
23879 | ac_cs_recheck=false |
23880 | ac_cs_silent=false | |
f5818d2f | 23881 | SHELL=\${CONFIG_SHELL-$SHELL} |
f5818d2f AJ |
23882 | _ACEOF |
23883 | ||
23884 | cat >>$CONFIG_STATUS <<\_ACEOF | |
daa2886c AJ |
23885 | ## --------------------- ## |
23886 | ## M4sh Initialization. ## | |
23887 | ## --------------------- ## | |
23888 | ||
f5818d2f AJ |
23889 | # Be Bourne compatible |
23890 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23891 | emulate sh | |
23892 | NULLCMD=: | |
11af04e3 AJ |
23893 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23894 | # is contrary to our usage. Disable this feature. | |
23895 | alias -g '${1+"$@"}'='"$@"' | |
fc6ffb29 AJ |
23896 | setopt NO_GLOB_SUBST |
23897 | else | |
23898 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac | |
f5818d2f | 23899 | fi |
fc6ffb29 | 23900 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
875927f6 | 23901 | DUALCASE=1; export DUALCASE # for MKS sh |
f5818d2f | 23902 | |
fc6ffb29 AJ |
23903 | |
23904 | # PATH needs CR | |
23905 | # Avoid depending upon Character Ranges. | |
23906 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23907 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23908 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23909 | as_cr_digits='0123456789' | |
23910 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23911 | ||
23912 | # The user is always right. | |
23913 | if test "${PATH_SEPARATOR+set}" != set; then | |
23914 | echo "#! /bin/sh" >conf$$.sh | |
23915 | echo "exit 0" >>conf$$.sh | |
23916 | chmod +x conf$$.sh | |
23917 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23918 | PATH_SEPARATOR=';' | |
23919 | else | |
23920 | PATH_SEPARATOR=: | |
23921 | fi | |
23922 | rm -f conf$$.sh | |
23923 | fi | |
23924 | ||
daa2886c | 23925 | # Support unset when possible. |
875927f6 | 23926 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
daa2886c AJ |
23927 | as_unset=unset |
23928 | else | |
23929 | as_unset=false | |
23930 | fi | |
23931 | ||
11af04e3 | 23932 | |
fc6ffb29 AJ |
23933 | # IFS |
23934 | # We need space, tab and new line, in precisely that order. Quoting is | |
23935 | # there to prevent editors from complaining about space-tab. | |
23936 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
23937 | # splitting by setting IFS to empty value.) | |
23938 | as_nl=' | |
23939 | ' | |
23940 | IFS=" "" $as_nl" | |
23941 | ||
23942 | # Find who we are. Look in the path if we contain no directory separator. | |
23943 | case $0 in | |
23944 | *[\\/]* ) as_myself=$0 ;; | |
23945 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23946 | for as_dir in $PATH | |
23947 | do | |
23948 | IFS=$as_save_IFS | |
23949 | test -z "$as_dir" && as_dir=. | |
23950 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23951 | done | |
23952 | IFS=$as_save_IFS | |
23953 | ||
23954 | ;; | |
23955 | esac | |
23956 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23957 | # in which case we are not to be found in the path. | |
23958 | if test "x$as_myself" = x; then | |
23959 | as_myself=$0 | |
23960 | fi | |
23961 | if test ! -f "$as_myself"; then | |
23962 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
23963 | { (exit 1); exit 1; } | |
23964 | fi | |
23965 | ||
11af04e3 | 23966 | # Work around bugs in pre-3.0 UWIN ksh. |
fc6ffb29 AJ |
23967 | for as_var in ENV MAIL MAILPATH |
23968 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
23969 | done | |
11af04e3 AJ |
23970 | PS1='$ ' |
23971 | PS2='> ' | |
23972 | PS4='+ ' | |
23973 | ||
23974 | # NLS nuisances. | |
e24bcc77 AJ |
23975 | for as_var in \ |
23976 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23977 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23978 | LC_TELEPHONE LC_TIME | |
11af04e3 | 23979 | do |
875927f6 | 23980 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
11af04e3 AJ |
23981 | eval $as_var=C; export $as_var |
23982 | else | |
fc6ffb29 | 23983 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
11af04e3 AJ |
23984 | fi |
23985 | done | |
23986 | ||
23987 | # Required to use basename. | |
fc6ffb29 AJ |
23988 | if expr a : '\(a\)' >/dev/null 2>&1 && |
23989 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
11af04e3 AJ |
23990 | as_expr=expr |
23991 | else | |
23992 | as_expr=false | |
23993 | fi | |
23994 | ||
fc6ffb29 | 23995 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
11af04e3 AJ |
23996 | as_basename=basename |
23997 | else | |
23998 | as_basename=false | |
23999 | fi | |
daa2886c AJ |
24000 | |
24001 | ||
f5818d2f | 24002 | # Name of the executable. |
fc6ffb29 | 24003 | as_me=`$as_basename -- "$0" || |
daa2886c AJ |
24004 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
24005 | X"$0" : 'X\(//\)$' \| \ | |
fc6ffb29 | 24006 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
daa2886c | 24007 | echo X/"$0" | |
fc6ffb29 AJ |
24008 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
24009 | s//\1/ | |
24010 | q | |
24011 | } | |
24012 | /^X\/\(\/\/\)$/{ | |
24013 | s//\1/ | |
24014 | q | |
24015 | } | |
24016 | /^X\/\(\/\).*/{ | |
24017 | s//\1/ | |
24018 | q | |
24019 | } | |
24020 | s/.*/./; q'` | |
daa2886c | 24021 | |
fc6ffb29 AJ |
24022 | # CDPATH. |
24023 | $as_unset CDPATH | |
11af04e3 | 24024 | |
daa2886c AJ |
24025 | |
24026 | ||
24027 | as_lineno_1=$LINENO | |
24028 | as_lineno_2=$LINENO | |
daa2886c | 24029 | test "x$as_lineno_1" != "x$as_lineno_2" && |
fc6ffb29 | 24030 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
daa2886c AJ |
24031 | |
24032 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
24033 | # uniformly replaced by the line number. The first 'sed' inserts a | |
fc6ffb29 AJ |
24034 | # line-number line after each line using $LINENO; the second 'sed' |
24035 | # does the real work. The second script uses 'N' to pair each | |
24036 | # line-number line with the line containing $LINENO, and appends | |
24037 | # trailing '-' during substitution so that $LINENO is not a special | |
24038 | # case at line end. | |
daa2886c | 24039 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
fc6ffb29 AJ |
24040 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
24041 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
24042 | sed -n ' | |
24043 | p | |
24044 | /[$]LINENO/= | |
24045 | ' <$as_myself | | |
daa2886c | 24046 | sed ' |
fc6ffb29 AJ |
24047 | s/[$]LINENO.*/&-/ |
24048 | t lineno | |
24049 | b | |
24050 | :lineno | |
daa2886c | 24051 | N |
fc6ffb29 AJ |
24052 | :loop |
24053 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
daa2886c | 24054 | t loop |
fc6ffb29 | 24055 | s/-\n.*// |
daa2886c | 24056 | ' >$as_me.lineno && |
fc6ffb29 AJ |
24057 | chmod +x "$as_me.lineno" || |
24058 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
daa2886c AJ |
24059 | { (exit 1); exit 1; }; } |
24060 | ||
24061 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24062 | # (the dirname of $[0] is not the place where we might find the | |
fc6ffb29 AJ |
24063 | # original and so on. Autoconf is especially sensitive to this). |
24064 | . "./$as_me.lineno" | |
daa2886c AJ |
24065 | # Exit status is that of the last command. |
24066 | exit | |
24067 | } | |
24068 | ||
24069 | ||
0ebeb530 | 24070 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
fc6ffb29 AJ |
24071 | as_dirname=dirname |
24072 | else | |
24073 | as_dirname=false | |
24074 | fi | |
24075 | ||
24076 | ECHO_C= ECHO_N= ECHO_T= | |
24077 | case `echo -n x` in | |
24078 | -n*) | |
24079 | case `echo 'x\c'` in | |
24080 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
24081 | *) ECHO_C='\c';; | |
24082 | esac;; | |
24083 | *) | |
24084 | ECHO_N='-n';; | |
daa2886c | 24085 | esac |
f5818d2f | 24086 | |
fc6ffb29 AJ |
24087 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24088 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
f5818d2f AJ |
24089 | as_expr=expr |
24090 | else | |
24091 | as_expr=false | |
24092 | fi | |
24093 | ||
24094 | rm -f conf$$ conf$$.exe conf$$.file | |
fc6ffb29 AJ |
24095 | if test -d conf$$.dir; then |
24096 | rm -f conf$$.dir/conf$$.file | |
24097 | else | |
24098 | rm -f conf$$.dir | |
24099 | mkdir conf$$.dir | |
24100 | fi | |
f5818d2f AJ |
24101 | echo >conf$$.file |
24102 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
fc6ffb29 AJ |
24103 | as_ln_s='ln -s' |
24104 | # ... but there are two gotchas: | |
24105 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
24106 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
24107 | # In both cases, we have to default to `cp -p'. | |
24108 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
f5818d2f | 24109 | as_ln_s='cp -p' |
f5818d2f AJ |
24110 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24111 | as_ln_s=ln | |
24112 | else | |
24113 | as_ln_s='cp -p' | |
24114 | fi | |
fc6ffb29 AJ |
24115 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
24116 | rmdir conf$$.dir 2>/dev/null | |
f5818d2f | 24117 | |
11af04e3 AJ |
24118 | if mkdir -p . 2>/dev/null; then |
24119 | as_mkdir_p=: | |
24120 | else | |
875927f6 | 24121 | test -d ./-p && rmdir ./-p |
11af04e3 AJ |
24122 | as_mkdir_p=false |
24123 | fi | |
24124 | ||
fc6ffb29 AJ |
24125 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
24126 | # systems may use methods other than mode bits to determine executability. | |
24127 | cat >conf$$.file <<_ASEOF | |
24128 | #! /bin/sh | |
24129 | exit 0 | |
24130 | _ASEOF | |
24131 | chmod +x conf$$.file | |
24132 | if test -x conf$$.file >/dev/null 2>&1; then | |
24133 | as_executable_p="test -x" | |
24134 | else | |
24135 | as_executable_p=: | |
24136 | fi | |
24137 | rm -f conf$$.file | |
f5818d2f | 24138 | |
daa2886c | 24139 | # Sed expression to map a string onto a valid CPP name. |
875927f6 | 24140 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
daa2886c AJ |
24141 | |
24142 | # Sed expression to map a string onto a valid variable name. | |
875927f6 | 24143 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
f5818d2f | 24144 | |
f5818d2f | 24145 | |
f5818d2f AJ |
24146 | exec 6>&1 |
24147 | ||
fc6ffb29 | 24148 | # Save the log message, to keep $[0] and so on meaningful, and to |
daa2886c | 24149 | # report actual input values of CONFIG_FILES etc. instead of their |
fc6ffb29 AJ |
24150 | # values after options handling. |
24151 | ac_log=" | |
7affdd4c | 24152 | This file was extended by Wine $as_me 0.9.23, which was |
f5f37a85 | 24153 | generated by GNU Autoconf 2.60a. Invocation command line was |
daa2886c AJ |
24154 | |
24155 | CONFIG_FILES = $CONFIG_FILES | |
24156 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24157 | CONFIG_LINKS = $CONFIG_LINKS | |
24158 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24159 | $ $0 $@ | |
24160 | ||
fc6ffb29 AJ |
24161 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
24162 | " | |
24163 | ||
f5818d2f AJ |
24164 | _ACEOF |
24165 | ||
fc6ffb29 | 24166 | cat >>$CONFIG_STATUS <<_ACEOF |
f5818d2f | 24167 | # Files that config.status was made for. |
fc6ffb29 AJ |
24168 | config_files="$ac_config_files" |
24169 | config_headers="$ac_config_headers" | |
24170 | config_commands="$ac_config_commands" | |
f5818d2f | 24171 | |
fc6ffb29 | 24172 | _ACEOF |
f5818d2f | 24173 | |
daa2886c | 24174 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f AJ |
24175 | ac_cs_usage="\ |
24176 | \`$as_me' instantiates files from templates according to the | |
24177 | current configuration. | |
24178 | ||
24179 | Usage: $0 [OPTIONS] [FILE]... | |
24180 | ||
24181 | -h, --help print this help, then exit | |
78bd1948 | 24182 | -V, --version print version number and configuration settings, then exit |
e24bcc77 | 24183 | -q, --quiet do not print progress messages |
f5818d2f AJ |
24184 | -d, --debug don't remove temporary files |
24185 | --recheck update $as_me by reconfiguring in the same conditions | |
24186 | --file=FILE[:TEMPLATE] | |
875927f6 | 24187 | instantiate the configuration file FILE |
f5818d2f | 24188 | --header=FILE[:TEMPLATE] |
875927f6 | 24189 | instantiate the configuration header FILE |
f5818d2f AJ |
24190 | |
24191 | Configuration files: | |
24192 | $config_files | |
24193 | ||
24194 | Configuration headers: | |
24195 | $config_headers | |
24196 | ||
24197 | Configuration commands: | |
24198 | $config_commands | |
24199 | ||
24200 | Report bugs to <bug-autoconf@gnu.org>." | |
f5818d2f | 24201 | |
fc6ffb29 | 24202 | _ACEOF |
daa2886c | 24203 | cat >>$CONFIG_STATUS <<_ACEOF |
f5818d2f | 24204 | ac_cs_version="\\ |
7affdd4c | 24205 | Wine config.status 0.9.23 |
f5f37a85 | 24206 | configured by $0, generated by GNU Autoconf 2.60a, |
0ebeb530 | 24207 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
f5818d2f | 24208 | |
fc6ffb29 | 24209 | Copyright (C) 2006 Free Software Foundation, Inc. |
f5818d2f AJ |
24210 | This config.status script is free software; the Free Software Foundation |
24211 | gives unlimited permission to copy, distribute and modify it." | |
fc6ffb29 AJ |
24212 | |
24213 | ac_pwd='$ac_pwd' | |
24214 | srcdir='$srcdir' | |
24215 | INSTALL='$INSTALL' | |
daa2886c | 24216 | _ACEOF |
f5818d2f | 24217 | |
daa2886c | 24218 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f AJ |
24219 | # If no file are specified by the user, then we need to provide default |
24220 | # value. By we need to know if files were specified by the user. | |
24221 | ac_need_defaults=: | |
24222 | while test $# != 0 | |
e2991ea7 | 24223 | do |
f5818d2f AJ |
24224 | case $1 in |
24225 | --*=*) | |
fc6ffb29 AJ |
24226 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24227 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
11af04e3 AJ |
24228 | ac_shift=: |
24229 | ;; | |
fc6ffb29 | 24230 | *) |
11af04e3 AJ |
24231 | ac_option=$1 |
24232 | ac_optarg=$2 | |
24233 | ac_shift=shift | |
f5818d2f | 24234 | ;; |
f5818d2f AJ |
24235 | esac |
24236 | ||
11af04e3 | 24237 | case $ac_option in |
f5818d2f | 24238 | # Handling of the options. |
e24bcc77 AJ |
24239 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24240 | ac_cs_recheck=: ;; | |
fc6ffb29 AJ |
24241 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
24242 | echo "$ac_cs_version"; exit ;; | |
24243 | --debug | --debu | --deb | --de | --d | -d ) | |
f5818d2f AJ |
24244 | debug=: ;; |
24245 | --file | --fil | --fi | --f ) | |
11af04e3 AJ |
24246 | $ac_shift |
24247 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
f5818d2f AJ |
24248 | ac_need_defaults=false;; |
24249 | --header | --heade | --head | --hea ) | |
11af04e3 AJ |
24250 | $ac_shift |
24251 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
f5818d2f | 24252 | ac_need_defaults=false;; |
fc6ffb29 AJ |
24253 | --he | --h) |
24254 | # Conflict between --help and --header | |
24255 | { echo "$as_me: error: ambiguous option: $1 | |
24256 | Try \`$0 --help' for more information." >&2 | |
24257 | { (exit 1); exit 1; }; };; | |
24258 | --help | --hel | -h ) | |
24259 | echo "$ac_cs_usage"; exit ;; | |
e24bcc77 AJ |
24260 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
24261 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24262 | ac_cs_silent=: ;; | |
f5818d2f AJ |
24263 | |
24264 | # This is an error. | |
fc6ffb29 AJ |
24265 | -*) { echo "$as_me: error: unrecognized option: $1 |
24266 | Try \`$0 --help' for more information." >&2 | |
f5818d2f AJ |
24267 | { (exit 1); exit 1; }; } ;; |
24268 | ||
fc6ffb29 AJ |
24269 | *) ac_config_targets="$ac_config_targets $1" |
24270 | ac_need_defaults=false ;; | |
f5818d2f | 24271 | |
e2991ea7 | 24272 | esac |
f5818d2f | 24273 | shift |
e2991ea7 AJ |
24274 | done |
24275 | ||
e24bcc77 AJ |
24276 | ac_configure_extra_args= |
24277 | ||
24278 | if $ac_cs_silent; then | |
24279 | exec 6>/dev/null | |
24280 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24281 | fi | |
24282 | ||
24283 | _ACEOF | |
24284 | cat >>$CONFIG_STATUS <<_ACEOF | |
24285 | if \$ac_cs_recheck; then | |
0ebeb530 | 24286 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
fc6ffb29 AJ |
24287 | CONFIG_SHELL=$SHELL |
24288 | export CONFIG_SHELL | |
0ebeb530 | 24289 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
e24bcc77 AJ |
24290 | fi |
24291 | ||
f5818d2f | 24292 | _ACEOF |
fc6ffb29 AJ |
24293 | cat >>$CONFIG_STATUS <<\_ACEOF |
24294 | exec 5>>config.log | |
24295 | { | |
24296 | echo | |
24297 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24298 | ## Running $as_me. ## | |
24299 | _ASBOX | |
24300 | echo "$ac_log" | |
24301 | } >&5 | |
e2991ea7 | 24302 | |
fc6ffb29 AJ |
24303 | _ACEOF |
24304 | cat >>$CONFIG_STATUS <<_ACEOF | |
24305 | _ACEOF | |
daa2886c AJ |
24306 | |
24307 | cat >>$CONFIG_STATUS <<\_ACEOF | |
fc6ffb29 AJ |
24308 | |
24309 | # Handling of arguments. | |
f5818d2f AJ |
24310 | for ac_config_target in $ac_config_targets |
24311 | do | |
fc6ffb29 AJ |
24312 | case $ac_config_target in |
24313 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; | |
c4704c2d | 24314 | "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;; |
7dfc4477 AJ |
24315 | "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;; |
24316 | "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;; | |
1c60e3bf | 24317 | "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;; |
fc6ffb29 AJ |
24318 | "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;; |
24319 | "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;; | |
24320 | "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;; | |
24321 | "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;; | |
24322 | "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;; | |
24323 | "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;; | |
24324 | "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;; | |
fc6ffb29 AJ |
24325 | "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;; |
24326 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24327 | "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;; | |
24328 | "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;; | |
24329 | "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;; | |
24330 | "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;; | |
24331 | "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;; | |
24332 | "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;; | |
24333 | "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;; | |
24334 | "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;; | |
24335 | "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;; | |
24336 | "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;; | |
24337 | "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;; | |
24338 | "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;; | |
24339 | "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;; | |
24340 | "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;; | |
24341 | "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;; | |
493bc6b8 | 24342 | "dlls/clusapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/clusapi/Makefile" ;; |
fc6ffb29 | 24343 | "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;; |
9c3b12bd | 24344 | "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;; |
fc6ffb29 AJ |
24345 | "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;; |
24346 | "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;; | |
24347 | "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;; | |
955fe0da | 24348 | "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;; |
5640b56e | 24349 | "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;; |
fc6ffb29 AJ |
24350 | "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;; |
24351 | "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;; | |
24352 | "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;; | |
24353 | "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;; | |
d2ee3872 | 24354 | "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;; |
fc6ffb29 AJ |
24355 | "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;; |
24356 | "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;; | |
24357 | "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;; | |
24358 | "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;; | |
24359 | "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;; | |
24360 | "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;; | |
24361 | "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;; | |
24362 | "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;; | |
24363 | "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;; | |
24364 | "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;; | |
24365 | "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;; | |
24366 | "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;; | |
24367 | "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;; | |
24368 | "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;; | |
24369 | "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;; | |
24370 | "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;; | |
24371 | "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;; | |
24372 | "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;; | |
24373 | "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;; | |
24374 | "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;; | |
24375 | "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;; | |
24376 | "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;; | |
24377 | "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;; | |
24378 | "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;; | |
24379 | "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;; | |
24380 | "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;; | |
24381 | "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;; | |
24382 | "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;; | |
24383 | "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;; | |
24384 | "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;; | |
24385 | "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;; | |
24386 | "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;; | |
24387 | "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;; | |
24388 | "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;; | |
24389 | "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;; | |
24390 | "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;; | |
24391 | "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;; | |
24392 | "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;; | |
24393 | "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;; | |
7dfc4477 AJ |
24394 | "dlls/gdi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/Makefile" ;; |
24395 | "dlls/gdi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi32/tests/Makefile" ;; | |
fc6ffb29 AJ |
24396 | "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;; |
24397 | "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;; | |
24398 | "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;; | |
24399 | "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;; | |
b89cafaf | 24400 | "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;; |
b732e9b4 | 24401 | "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;; |
a430db9e | 24402 | "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;; |
fc6ffb29 AJ |
24403 | "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;; |
24404 | "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;; | |
24405 | "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;; | |
24406 | "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;; | |
24407 | "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;; | |
24408 | "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;; | |
4d3877b6 | 24409 | "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;; |
b5871fa5 | 24410 | "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;; |
4d3877b6 | 24411 | "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;; |
fc6ffb29 AJ |
24412 | "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;; |
24413 | "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;; | |
24414 | "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;; | |
489d87d1 AJ |
24415 | "dlls/kernel32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/Makefile" ;; |
24416 | "dlls/kernel32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel32/tests/Makefile" ;; | |
2198d836 | 24417 | "dlls/localspl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/Makefile" ;; |
ecb97fc2 | 24418 | "dlls/localspl/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/localspl/tests/Makefile" ;; |
fc6ffb29 AJ |
24419 | "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;; |
24420 | "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;; | |
24421 | "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;; | |
24422 | "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;; | |
24423 | "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;; | |
24424 | "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;; | |
24425 | "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;; | |
24426 | "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;; | |
24427 | "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;; | |
24428 | "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;; | |
24429 | "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;; | |
24430 | "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;; | |
24431 | "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;; | |
24432 | "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;; | |
24433 | "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;; | |
24434 | "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;; | |
24435 | "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;; | |
24436 | "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;; | |
24437 | "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;; | |
24438 | "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;; | |
24439 | "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;; | |
4fe6c3fa | 24440 | "dlls/mscoree/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscoree/Makefile" ;; |
fc6ffb29 AJ |
24441 | "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;; |
24442 | "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;; | |
24443 | "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;; | |
24444 | "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;; | |
24445 | "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;; | |
24446 | "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;; | |
24447 | "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;; | |
24448 | "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;; | |
24449 | "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;; | |
24450 | "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;; | |
24451 | "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;; | |
24452 | "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;; | |
24453 | "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;; | |
24454 | "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;; | |
24455 | "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;; | |
24456 | "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;; | |
24457 | "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;; | |
24458 | "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;; | |
24459 | "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;; | |
24460 | "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;; | |
24461 | "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;; | |
24462 | "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;; | |
0b4eafad | 24463 | "dlls/nddeapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/nddeapi/Makefile" ;; |
fc6ffb29 AJ |
24464 | "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;; |
24465 | "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;; | |
24466 | "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;; | |
24467 | "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;; | |
24468 | "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;; | |
24469 | "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;; | |
24470 | "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;; | |
24471 | "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;; | |
24472 | "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;; | |
24473 | "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;; | |
24474 | "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;; | |
24475 | "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;; | |
24476 | "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;; | |
24477 | "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;; | |
24478 | "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;; | |
24479 | "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;; | |
24480 | "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;; | |
24481 | "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;; | |
24482 | "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;; | |
24483 | "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;; | |
24484 | "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;; | |
24485 | "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;; | |
acb7f8ab | 24486 | "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;; |
fc6ffb29 AJ |
24487 | "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;; |
24488 | "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;; | |
24489 | "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;; | |
defbc49b | 24490 | "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;; |
fc6ffb29 | 24491 | "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;; |
3ac07aa0 | 24492 | "dlls/resutils/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/resutils/Makefile" ;; |
fc6ffb29 AJ |
24493 | "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;; |
24494 | "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;; | |
24495 | "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;; | |
24496 | "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;; | |
24497 | "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;; | |
24498 | "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;; | |
24499 | "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;; | |
24500 | "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;; | |
24501 | "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;; | |
24502 | "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;; | |
24503 | "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;; | |
24504 | "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;; | |
24505 | "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;; | |
24506 | "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;; | |
24507 | "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;; | |
24508 | "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;; | |
24509 | "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;; | |
24510 | "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;; | |
24511 | "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;; | |
24512 | "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;; | |
24513 | "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;; | |
24514 | "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;; | |
24515 | "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;; | |
24516 | "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;; | |
24517 | "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;; | |
24518 | "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;; | |
24519 | "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;; | |
24520 | "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;; | |
24521 | "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;; | |
24522 | "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;; | |
24523 | "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;; | |
bb497631 | 24524 | "dlls/svrapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/svrapi/Makefile" ;; |
fc6ffb29 AJ |
24525 | "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;; |
24526 | "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;; | |
24527 | "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;; | |
24528 | "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;; | |
24529 | "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;; | |
24530 | "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;; | |
24531 | "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;; | |
24532 | "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;; | |
a6ea0f61 | 24533 | "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;; |
fc6ffb29 AJ |
24534 | "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;; |
24535 | "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;; | |
24536 | "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;; | |
24537 | "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;; | |
569a452d | 24538 | "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;; |
fc6ffb29 AJ |
24539 | "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;; |
24540 | "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;; | |
24541 | "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;; | |
24542 | "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;; | |
24543 | "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;; | |
24544 | "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;; | |
24545 | "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;; | |
24546 | "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;; | |
24547 | "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;; | |
24548 | "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;; | |
24549 | "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;; | |
24550 | "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;; | |
24551 | "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;; | |
24552 | "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;; | |
24553 | "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;; | |
bdb4fab7 | 24554 | "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;; |
fc6ffb29 AJ |
24555 | "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;; |
24556 | "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;; | |
24557 | "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;; | |
24558 | "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;; | |
24559 | "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;; | |
24560 | "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;; | |
24561 | "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;; | |
24562 | "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;; | |
144a5353 | 24563 | "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;; |
fc6ffb29 AJ |
24564 | "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;; |
24565 | "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;; | |
24566 | "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;; | |
24567 | "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;; | |
24568 | "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;; | |
24569 | "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;; | |
24570 | "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;; | |
24571 | "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;; | |
24572 | "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;; | |
95bb9032 | 24573 | "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;; |
fc6ffb29 AJ |
24574 | "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;; |
24575 | "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;; | |
24576 | "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;; | |
24577 | "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;; | |
24578 | "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;; | |
24579 | "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;; | |
24580 | "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;; | |
fc6ffb29 AJ |
24581 | "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;; |
24582 | "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;; | |
24583 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
24584 | "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; | |
24585 | "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;; | |
fc6ffb29 AJ |
24586 | "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;; |
24587 | "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;; | |
24588 | "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;; | |
24589 | "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; | |
24590 | "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;; | |
39857443 | 24591 | "programs/cmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmd/Makefile" ;; |
fc6ffb29 AJ |
24592 | "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;; |
24593 | "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;; | |
24594 | "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;; | |
24595 | "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;; | |
24596 | "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;; | |
24597 | "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;; | |
24598 | "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;; | |
24599 | "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;; | |
24600 | "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;; | |
24601 | "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;; | |
68f590cf | 24602 | "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;; |
fc6ffb29 AJ |
24603 | "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;; |
24604 | "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;; | |
24605 | "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;; | |
24606 | "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;; | |
24607 | "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;; | |
24608 | "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;; | |
24609 | "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;; | |
24610 | "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;; | |
24611 | "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;; | |
fc6ffb29 AJ |
24612 | "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;; |
24613 | "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;; | |
24614 | "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;; | |
24615 | "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;; | |
24616 | "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;; | |
24617 | "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;; | |
24618 | "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;; | |
24619 | "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;; | |
24620 | "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;; | |
24621 | "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;; | |
24622 | "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;; | |
24623 | "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;; | |
24624 | "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;; | |
24625 | "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;; | |
24626 | "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;; | |
24627 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
24628 | "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;; | |
fc6ffb29 AJ |
24629 | "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;; |
24630 | "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;; | |
24631 | "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;; | |
24632 | "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;; | |
24633 | "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;; | |
24634 | ||
daa2886c | 24635 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
f5818d2f AJ |
24636 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24637 | { (exit 1); exit 1; }; };; | |
24638 | esac | |
24639 | done | |
24640 | ||
fc6ffb29 | 24641 | |
f5818d2f AJ |
24642 | # If the user did not use the arguments to specify the items to instantiate, |
24643 | # then the envvar interface is used. Set only those that are not. | |
24644 | # We use the long form for the default assignment because of an extremely | |
24645 | # bizarre bug on SunOS 4.1.3. | |
24646 | if $ac_need_defaults; then | |
24647 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24648 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24649 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24650 | fi | |
24651 | ||
e24bcc77 | 24652 | # Have a temporary directory for convenience. Make it in the build tree |
fc6ffb29 | 24653 | # simply because there is no reason against having it here, and in addition, |
e24bcc77 | 24654 | # creating and moving files from /tmp can sometimes cause problems. |
fc6ffb29 AJ |
24655 | # Hook for its removal unless debugging. |
24656 | # Note that there is a small window in which the directory will not be cleaned: | |
24657 | # after its creation but before its name has been assigned to `$tmp'. | |
f5818d2f AJ |
24658 | $debug || |
24659 | { | |
fc6ffb29 AJ |
24660 | tmp= |
24661 | trap 'exit_status=$? | |
24662 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
24663 | ' 0 | |
f5818d2f AJ |
24664 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
24665 | } | |
f5818d2f | 24666 | # Create a (secure) tmp directory for tmp files. |
e24bcc77 | 24667 | |
f5818d2f | 24668 | { |
fc6ffb29 | 24669 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
f5818d2f AJ |
24670 | test -n "$tmp" && test -d "$tmp" |
24671 | } || | |
24672 | { | |
fc6ffb29 AJ |
24673 | tmp=./conf$$-$RANDOM |
24674 | (umask 077 && mkdir "$tmp") | |
f5818d2f AJ |
24675 | } || |
24676 | { | |
e24bcc77 | 24677 | echo "$me: cannot create a temporary directory in ." >&2 |
f5818d2f AJ |
24678 | { (exit 1); exit 1; } |
24679 | } | |
24680 | ||
f5818d2f | 24681 | # |
fc6ffb29 | 24682 | # Set up the sed scripts for CONFIG_FILES section. |
f5818d2f AJ |
24683 | # |
24684 | ||
24685 | # No need to generate the scripts if there are no CONFIG_FILES. | |
24686 | # This happens for instance when ./config.status config.h | |
fc6ffb29 AJ |
24687 | if test -n "$CONFIG_FILES"; then |
24688 | ||
24689 | _ACEOF | |
24690 | ||
24691 | # Create sed commands to just substitute file output variables. | |
24692 | ||
24693 | # Remaining file output variables are in a fragment that also has non-file | |
24694 | # output varibles. | |
24695 | ||
24696 | ||
24697 | ||
24698 | ac_delim='%!_!# ' | |
24699 | for ac_last_try in false false false false false :; do | |
24700 | cat >conf$$subs.sed <<_ACEOF | |
24701 | SHELL!$SHELL$ac_delim | |
24702 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
24703 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
24704 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
24705 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
24706 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
24707 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
24708 | exec_prefix!$exec_prefix$ac_delim | |
24709 | prefix!$prefix$ac_delim | |
24710 | program_transform_name!$program_transform_name$ac_delim | |
24711 | bindir!$bindir$ac_delim | |
24712 | sbindir!$sbindir$ac_delim | |
24713 | libexecdir!$libexecdir$ac_delim | |
24714 | datarootdir!$datarootdir$ac_delim | |
24715 | datadir!$datadir$ac_delim | |
24716 | sysconfdir!$sysconfdir$ac_delim | |
24717 | sharedstatedir!$sharedstatedir$ac_delim | |
24718 | localstatedir!$localstatedir$ac_delim | |
24719 | includedir!$includedir$ac_delim | |
24720 | oldincludedir!$oldincludedir$ac_delim | |
24721 | docdir!$docdir$ac_delim | |
24722 | infodir!$infodir$ac_delim | |
24723 | htmldir!$htmldir$ac_delim | |
24724 | dvidir!$dvidir$ac_delim | |
24725 | pdfdir!$pdfdir$ac_delim | |
24726 | psdir!$psdir$ac_delim | |
24727 | libdir!$libdir$ac_delim | |
24728 | localedir!$localedir$ac_delim | |
24729 | mandir!$mandir$ac_delim | |
24730 | DEFS!$DEFS$ac_delim | |
24731 | ECHO_C!$ECHO_C$ac_delim | |
24732 | ECHO_N!$ECHO_N$ac_delim | |
24733 | ECHO_T!$ECHO_T$ac_delim | |
24734 | LIBS!$LIBS$ac_delim | |
24735 | build_alias!$build_alias$ac_delim | |
24736 | host_alias!$host_alias$ac_delim | |
24737 | target_alias!$target_alias$ac_delim | |
24738 | build!$build$ac_delim | |
24739 | build_cpu!$build_cpu$ac_delim | |
24740 | build_vendor!$build_vendor$ac_delim | |
24741 | build_os!$build_os$ac_delim | |
24742 | host!$host$ac_delim | |
24743 | host_cpu!$host_cpu$ac_delim | |
24744 | host_vendor!$host_vendor$ac_delim | |
24745 | host_os!$host_os$ac_delim | |
24746 | WIN16_FILES!$WIN16_FILES$ac_delim | |
24747 | WIN16_INSTALL!$WIN16_INSTALL$ac_delim | |
24748 | SET_MAKE!$SET_MAKE$ac_delim | |
24749 | CC!$CC$ac_delim | |
24750 | CFLAGS!$CFLAGS$ac_delim | |
24751 | LDFLAGS!$LDFLAGS$ac_delim | |
24752 | CPPFLAGS!$CPPFLAGS$ac_delim | |
24753 | ac_ct_CC!$ac_ct_CC$ac_delim | |
24754 | EXEEXT!$EXEEXT$ac_delim | |
24755 | OBJEXT!$OBJEXT$ac_delim | |
24756 | CXX!$CXX$ac_delim | |
24757 | CXXFLAGS!$CXXFLAGS$ac_delim | |
24758 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
24759 | CPPBIN!$CPPBIN$ac_delim | |
24760 | TOOLSDIR!$TOOLSDIR$ac_delim | |
24761 | XMKMF!$XMKMF$ac_delim | |
24762 | CPP!$CPP$ac_delim | |
24763 | X_CFLAGS!$X_CFLAGS$ac_delim | |
24764 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim | |
24765 | X_LIBS!$X_LIBS$ac_delim | |
24766 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim | |
24767 | LEX!$LEX$ac_delim | |
24768 | LEXLIB!$LEXLIB$ac_delim | |
24769 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | |
24770 | XLEX!$XLEX$ac_delim | |
24771 | BISON!$BISON$ac_delim | |
24772 | AS!$AS$ac_delim | |
24773 | ac_ct_AS!$ac_ct_AS$ac_delim | |
24774 | LD!$LD$ac_delim | |
24775 | AR!$AR$ac_delim | |
24776 | RANLIB!$RANLIB$ac_delim | |
24777 | STRIP!$STRIP$ac_delim | |
24778 | WINDRES!$WINDRES$ac_delim | |
24779 | LN_S!$LN_S$ac_delim | |
fdfc24ca AJ |
24780 | LN!$LN$ac_delim |
24781 | GREP!$GREP$ac_delim | |
24782 | EGREP!$EGREP$ac_delim | |
fc6ffb29 AJ |
24783 | _ACEOF |
24784 | ||
fdfc24ca | 24785 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then |
fc6ffb29 AJ |
24786 | break |
24787 | elif $ac_last_try; then | |
24788 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24789 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24790 | { (exit 1); exit 1; }; } | |
24791 | else | |
24792 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
da0cfb36 | 24793 | fi |
fc6ffb29 AJ |
24794 | done |
24795 | ||
0ebeb530 JW |
24796 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
24797 | if test -n "$ac_eof"; then | |
24798 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24799 | ac_eof=`expr $ac_eof + 1` | |
fc6ffb29 AJ |
24800 | fi |
24801 | ||
24802 | cat >>$CONFIG_STATUS <<_ACEOF | |
24803 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
24804 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
24805 | /^[ ]*@MAKE_RULES@[ ]*$/{ | |
24806 | r $MAKE_RULES | |
24807 | d | |
24808 | } | |
24809 | /^[ ]*@MAKE_DLL_RULES@[ ]*$/{ | |
24810 | r $MAKE_DLL_RULES | |
24811 | d | |
24812 | } | |
24813 | /^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{ | |
24814 | r $MAKE_IMPLIB_RULES | |
24815 | d | |
24816 | } | |
24817 | /^[ ]*@MAKE_TEST_RULES@[ ]*$/{ | |
24818 | r $MAKE_TEST_RULES | |
24819 | d | |
24820 | } | |
fc6ffb29 AJ |
24821 | /^[ ]*@MAKE_PROG_RULES@[ ]*$/{ |
24822 | r $MAKE_PROG_RULES | |
24823 | d | |
24824 | } | |
24825 | _ACEOF | |
24826 | sed ' | |
24827 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24828 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24829 | :n | |
24830 | t n | |
24831 | s/'"$ac_delim"'$/,g/; t | |
24832 | s/$/\\/; p | |
24833 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24834 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24835 | rm -f conf$$subs.sed | |
24836 | cat >>$CONFIG_STATUS <<_ACEOF | |
24837 | CEOF$ac_eof | |
24838 | _ACEOF | |
24839 | ||
24840 | ||
24841 | ac_delim='%!_!# ' | |
24842 | for ac_last_try in false false false false false :; do | |
24843 | cat >conf$$subs.sed <<_ACEOF | |
fc6ffb29 AJ |
24844 | LDCONFIG!$LDCONFIG$ac_delim |
24845 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
24846 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
24847 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
24848 | LINT!$LINT$ac_delim | |
24849 | LINTFLAGS!$LINTFLAGS$ac_delim | |
24850 | FONTFORGE!$FONTFORGE$ac_delim | |
24851 | PKG_CONFIG!$PKG_CONFIG$ac_delim | |
24852 | PRELINK!$PRELINK$ac_delim | |
24853 | LIBPTHREAD!$LIBPTHREAD$ac_delim | |
24854 | XLIB!$XLIB$ac_delim | |
24855 | XFILES!$XFILES$ac_delim | |
24856 | OPENGLFILES!$OPENGLFILES$ac_delim | |
24857 | GLU32FILES!$GLU32FILES$ac_delim | |
24858 | OPENGL_LIBS!$OPENGL_LIBS$ac_delim | |
24859 | GLUT_LIBS!$GLUT_LIBS$ac_delim | |
24860 | GLUT32FILES!$GLUT32FILES$ac_delim | |
24861 | NASLIBS!$NASLIBS$ac_delim | |
24862 | XML2LIBS!$XML2LIBS$ac_delim | |
24863 | XML2INCL!$XML2INCL$ac_delim | |
24864 | XSLTLIBS!$XSLTLIBS$ac_delim | |
24865 | XSLTINCL!$XSLTINCL$ac_delim | |
24866 | HALINCL!$HALINCL$ac_delim | |
24867 | CURSESLIBS!$CURSESLIBS$ac_delim | |
24868 | sane_devel!$sane_devel$ac_delim | |
24869 | SANELIBS!$SANELIBS$ac_delim | |
24870 | SANEINCL!$SANEINCL$ac_delim | |
24871 | gphoto2_devel!$gphoto2_devel$ac_delim | |
24872 | gphoto2port_devel!$gphoto2port_devel$ac_delim | |
24873 | GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim | |
24874 | GPHOTO2INCL!$GPHOTO2INCL$ac_delim | |
24875 | ICULIBS!$ICULIBS$ac_delim | |
24876 | RESOLVLIBS!$RESOLVLIBS$ac_delim | |
24877 | LCMSLIBS!$LCMSLIBS$ac_delim | |
24878 | LDAPLIBS!$LDAPLIBS$ac_delim | |
24879 | FREETYPELIBS!$FREETYPELIBS$ac_delim | |
24880 | FREETYPEINCL!$FREETYPEINCL$ac_delim | |
24881 | ft_devel!$ft_devel$ac_delim | |
24882 | ft_devel2!$ft_devel2$ac_delim | |
24883 | FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim | |
24884 | ARTSCCONFIG!$ARTSCCONFIG$ac_delim | |
24885 | ARTSLIBS!$ARTSLIBS$ac_delim | |
24886 | ARTSINCL!$ARTSINCL$ac_delim | |
24887 | ESDCONFIG!$ESDCONFIG$ac_delim | |
24888 | ESDLIBS!$ESDLIBS$ac_delim | |
24889 | ESDINCL!$ESDINCL$ac_delim | |
24890 | ALSALIBS!$ALSALIBS$ac_delim | |
24891 | AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim | |
24892 | EXTRACFLAGS!$EXTRACFLAGS$ac_delim | |
24893 | BUILTINFLAG!$BUILTINFLAG$ac_delim | |
24894 | DLLEXT!$DLLEXT$ac_delim | |
24895 | DLLFLAGS!$DLLFLAGS$ac_delim | |
fc6ffb29 AJ |
24896 | LDSHARED!$LDSHARED$ac_delim |
24897 | LDDLLFLAGS!$LDDLLFLAGS$ac_delim | |
24898 | LIBEXT!$LIBEXT$ac_delim | |
24899 | IMPLIBEXT!$IMPLIBEXT$ac_delim | |
13a93b4a | 24900 | LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim |
fc6ffb29 AJ |
24901 | DLLTOOL!$DLLTOOL$ac_delim |
24902 | DLLWRAP!$DLLWRAP$ac_delim | |
fc6ffb29 AJ |
24903 | COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim |
24904 | IOKITLIB!$IOKITLIB$ac_delim | |
6735eb2e | 24905 | DISKARBITRATIONLIB!$DISKARBITRATIONLIB$ac_delim |
42b81ea0 | 24906 | LDEXECFLAGS!$LDEXECFLAGS$ac_delim |
144a5353 | 24907 | COREAUDIO!$COREAUDIO$ac_delim |
fc6ffb29 AJ |
24908 | CROSSTEST!$CROSSTEST$ac_delim |
24909 | CROSSCC!$CROSSCC$ac_delim | |
24910 | CROSSWINDRES!$CROSSWINDRES$ac_delim | |
24911 | LDPATH!$LDPATH$ac_delim | |
24912 | CRTLIBS!$CRTLIBS$ac_delim | |
24913 | SOCKETLIBS!$SOCKETLIBS$ac_delim | |
24914 | MAIN_BINARY!$MAIN_BINARY$ac_delim | |
24915 | EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim | |
24916 | LDD!$LDD$ac_delim | |
e533e972 | 24917 | LIBDL!$LIBDL$ac_delim |
1089260f | 24918 | LIBPOLL!$LIBPOLL$ac_delim |
32ab895e | 24919 | DEPENDENCIES!$DEPENDENCIES$ac_delim |
fc6ffb29 AJ |
24920 | LIBOBJS!$LIBOBJS$ac_delim |
24921 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
24922 | _ACEOF | |
24923 | ||
6735eb2e | 24924 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 78; then |
fc6ffb29 AJ |
24925 | break |
24926 | elif $ac_last_try; then | |
24927 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
24928 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
24929 | { (exit 1); exit 1; }; } | |
24930 | else | |
24931 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
24932 | fi | |
24933 | done | |
24934 | ||
0ebeb530 JW |
24935 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
24936 | if test -n "$ac_eof"; then | |
24937 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
24938 | ac_eof=`expr $ac_eof + 1` | |
fc6ffb29 | 24939 | fi |
da0cfb36 | 24940 | |
fc6ffb29 AJ |
24941 | cat >>$CONFIG_STATUS <<_ACEOF |
24942 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
24943 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
24944 | _ACEOF | |
24945 | sed ' | |
24946 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
24947 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
24948 | :n | |
24949 | t n | |
24950 | s/'"$ac_delim"'$/,g/; t | |
24951 | s/$/\\/; p | |
24952 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
24953 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
24954 | rm -f conf$$subs.sed | |
24955 | cat >>$CONFIG_STATUS <<_ACEOF | |
24956 | :end | |
24957 | s/|#_!!_#|//g | |
24958 | CEOF$ac_eof | |
daa2886c | 24959 | _ACEOF |
fc6ffb29 AJ |
24960 | |
24961 | ||
24962 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
24963 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24964 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24965 | # (actually we leave an empty line to preserve line numbers). | |
24966 | if test "x$srcdir" = x.; then | |
24967 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24968 | s/:*\$(srcdir):*/:/ | |
24969 | s/:*\${srcdir}:*/:/ | |
24970 | s/:*@srcdir@:*/:/ | |
24971 | s/^\([^=]*=[ ]*\):*/\1/ | |
24972 | s/:*$// | |
24973 | s/^[^=]*=[ ]*$// | |
24974 | }' | |
24975 | fi | |
24976 | ||
daa2886c | 24977 | cat >>$CONFIG_STATUS <<\_ACEOF |
fc6ffb29 AJ |
24978 | fi # test -n "$CONFIG_FILES" |
24979 | ||
24980 | ||
24981 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | |
24982 | do | |
24983 | case $ac_tag in | |
24984 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
24985 | esac | |
24986 | case $ac_mode$ac_tag in | |
24987 | :[FHL]*:*);; | |
24988 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
24989 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
24990 | { (exit 1); exit 1; }; };; | |
24991 | :[FH]-) ac_tag=-:-;; | |
24992 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
e2991ea7 | 24993 | esac |
fc6ffb29 AJ |
24994 | ac_save_IFS=$IFS |
24995 | IFS=: | |
24996 | set x $ac_tag | |
24997 | IFS=$ac_save_IFS | |
24998 | shift | |
24999 | ac_file=$1 | |
25000 | shift | |
e2991ea7 | 25001 | |
fc6ffb29 AJ |
25002 | case $ac_mode in |
25003 | :L) ac_source=$1;; | |
25004 | :[FH]) | |
25005 | ac_file_inputs= | |
25006 | for ac_f | |
25007 | do | |
25008 | case $ac_f in | |
25009 | -) ac_f="$tmp/stdin";; | |
25010 | *) # Look for the file first in the build tree, then in the source tree | |
25011 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
25012 | # because $ac_f cannot contain `:'. | |
25013 | test -f "$ac_f" || | |
25014 | case $ac_f in | |
25015 | [\\/$]*) false;; | |
25016 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
25017 | esac || | |
25018 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
25019 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
25020 | { (exit 1); exit 1; }; };; | |
25021 | esac | |
25022 | ac_file_inputs="$ac_file_inputs $ac_f" | |
25023 | done | |
25024 | ||
25025 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25026 | # use $as_me), people would be surprised to read: | |
25027 | # /* config.h. Generated by config.status. */ | |
25028 | configure_input="Generated from "`IFS=: | |
25029 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
25030 | if test x"$ac_file" != x-; then | |
25031 | configure_input="$ac_file. $configure_input" | |
25032 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25033 | echo "$as_me: creating $ac_file" >&6;} | |
25034 | fi | |
25035 | ||
25036 | case $ac_tag in | |
25037 | *:-:* | *:-) cat >"$tmp/stdin";; | |
25038 | esac | |
25039 | ;; | |
25040 | esac | |
25041 | ||
25042 | ac_dir=`$as_dirname -- "$ac_file" || | |
daa2886c | 25043 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
875927f6 AJ |
25044 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
25045 | X"$ac_file" : 'X\(//\)$' \| \ | |
fc6ffb29 | 25046 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
f5818d2f | 25047 | echo X"$ac_file" | |
fc6ffb29 AJ |
25048 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25049 | s//\1/ | |
25050 | q | |
25051 | } | |
25052 | /^X\(\/\/\)[^/].*/{ | |
25053 | s//\1/ | |
25054 | q | |
25055 | } | |
25056 | /^X\(\/\/\)$/{ | |
25057 | s//\1/ | |
25058 | q | |
25059 | } | |
25060 | /^X\(\/\).*/{ | |
25061 | s//\1/ | |
25062 | q | |
25063 | } | |
25064 | s/.*/./; q'` | |
25065 | { as_dir="$ac_dir" | |
25066 | case $as_dir in #( | |
25067 | -*) as_dir=./$as_dir;; | |
25068 | esac | |
25069 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
11af04e3 | 25070 | as_dirs= |
fc6ffb29 AJ |
25071 | while :; do |
25072 | case $as_dir in #( | |
25073 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
25074 | *) as_qdir=$as_dir;; | |
25075 | esac | |
25076 | as_dirs="'$as_qdir' $as_dirs" | |
25077 | as_dir=`$as_dirname -- "$as_dir" || | |
11af04e3 | 25078 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
875927f6 AJ |
25079 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
25080 | X"$as_dir" : 'X\(//\)$' \| \ | |
fc6ffb29 | 25081 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
11af04e3 | 25082 | echo X"$as_dir" | |
fc6ffb29 AJ |
25083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25084 | s//\1/ | |
25085 | q | |
25086 | } | |
25087 | /^X\(\/\/\)[^/].*/{ | |
25088 | s//\1/ | |
25089 | q | |
25090 | } | |
25091 | /^X\(\/\/\)$/{ | |
25092 | s//\1/ | |
25093 | q | |
25094 | } | |
25095 | /^X\(\/\).*/{ | |
25096 | s//\1/ | |
25097 | q | |
25098 | } | |
25099 | s/.*/./; q'` | |
25100 | test -d "$as_dir" && break | |
11af04e3 | 25101 | done |
fc6ffb29 AJ |
25102 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
25103 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
25104 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
11af04e3 | 25105 | { (exit 1); exit 1; }; }; } |
daa2886c | 25106 | ac_builddir=. |
e2991ea7 | 25107 | |
fc6ffb29 AJ |
25108 | case "$ac_dir" in |
25109 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25110 | *) | |
daa2886c | 25111 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
fc6ffb29 AJ |
25112 | # A ".." for each directory in $ac_dir_suffix. |
25113 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
25114 | case $ac_top_builddir_sub in | |
25115 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
25116 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
25117 | esac ;; | |
25118 | esac | |
25119 | ac_abs_top_builddir=$ac_pwd | |
25120 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
25121 | # for backward compatibility: | |
25122 | ac_top_builddir=$ac_top_build_prefix | |
daa2886c AJ |
25123 | |
25124 | case $srcdir in | |
fc6ffb29 | 25125 | .) # We are building in place. |
daa2886c | 25126 | ac_srcdir=. |
fc6ffb29 AJ |
25127 | ac_top_srcdir=$ac_top_builddir_sub |
25128 | ac_abs_top_srcdir=$ac_pwd ;; | |
25129 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
daa2886c | 25130 | ac_srcdir=$srcdir$ac_dir_suffix; |
fc6ffb29 AJ |
25131 | ac_top_srcdir=$srcdir |
25132 | ac_abs_top_srcdir=$srcdir ;; | |
25133 | *) # Relative name. | |
25134 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
25135 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
25136 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
daa2886c | 25137 | esac |
fc6ffb29 | 25138 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
875927f6 | 25139 | |
daa2886c | 25140 | |
fc6ffb29 AJ |
25141 | case $ac_mode in |
25142 | :F) | |
25143 | # | |
25144 | # CONFIG_FILE | |
25145 | # | |
e2991ea7 | 25146 | |
f5818d2f AJ |
25147 | case $INSTALL in |
25148 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
fc6ffb29 | 25149 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
d7d4fdf8 | 25150 | esac |
fc6ffb29 | 25151 | _ACEOF |
da0cfb36 | 25152 | |
fc6ffb29 AJ |
25153 | cat >>$CONFIG_STATUS <<\_ACEOF |
25154 | # If the template does not know about datarootdir, expand it. | |
25155 | # FIXME: This hack should be removed a few years after 2.60. | |
0ebeb530 | 25156 | ac_datarootdir_hack=; ac_datarootdir_seen= |
875927f6 | 25157 | |
fc6ffb29 AJ |
25158 | case `sed -n '/datarootdir/ { |
25159 | p | |
25160 | q | |
25161 | } | |
25162 | /@datadir@/p | |
25163 | /@docdir@/p | |
25164 | /@infodir@/p | |
25165 | /@localedir@/p | |
25166 | /@mandir@/p | |
25167 | ' $ac_file_inputs` in | |
0ebeb530 | 25168 | *datarootdir*) ac_datarootdir_seen=yes;; |
fc6ffb29 AJ |
25169 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
25170 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
25171 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
daa2886c | 25172 | _ACEOF |
fc6ffb29 AJ |
25173 | cat >>$CONFIG_STATUS <<_ACEOF |
25174 | ac_datarootdir_hack=' | |
25175 | s&@datadir@&$datadir&g | |
25176 | s&@docdir@&$docdir&g | |
25177 | s&@infodir@&$infodir&g | |
25178 | s&@localedir@&$localedir&g | |
25179 | s&@mandir@&$mandir&g | |
25180 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
25181 | esac | |
25182 | _ACEOF | |
25183 | ||
25184 | # Neutralize VPATH when `$srcdir' = `.'. | |
25185 | # Shell code in configure.ac might set extrasub. | |
25186 | # FIXME: do we really want to maintain this feature? | |
daa2886c | 25187 | cat >>$CONFIG_STATUS <<_ACEOF |
f5818d2f AJ |
25188 | sed "$ac_vpsub |
25189 | $extrasub | |
daa2886c AJ |
25190 | _ACEOF |
25191 | cat >>$CONFIG_STATUS <<\_ACEOF | |
f5818d2f AJ |
25192 | :t |
25193 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
fc6ffb29 AJ |
25194 | s&@configure_input@&$configure_input&;t t |
25195 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
25196 | s&@srcdir@&$ac_srcdir&;t t | |
25197 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
25198 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
25199 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
25200 | s&@builddir@&$ac_builddir&;t t | |
25201 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
25202 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
25203 | s&@INSTALL@&$ac_INSTALL&;t t | |
25204 | $ac_datarootdir_hack | |
25205 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
25206 | ||
0ebeb530 JW |
25207 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
25208 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
f5f37a85 | 25209 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
0ebeb530 JW |
25210 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
25211 | which seems to be undefined. Please make sure it is defined." >&5 | |
25212 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
25213 | which seems to be undefined. Please make sure it is defined." >&2;} | |
25214 | ||
fc6ffb29 | 25215 | rm -f "$tmp/stdin" |
f5818d2f | 25216 | case $ac_file in |
fc6ffb29 AJ |
25217 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
25218 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
18f92e76 | 25219 | esac |
fc6ffb29 AJ |
25220 | ;; |
25221 | :H) | |
25222 | # | |
25223 | # CONFIG_HEADER | |
25224 | # | |
fc6ffb29 AJ |
25225 | _ACEOF |
25226 | ||
25227 | # Transform confdefs.h into a sed script `conftest.defines', that | |
25228 | # substitutes the proper values into config.h.in to produce config.h. | |
25229 | rm -f conftest.defines conftest.tail | |
25230 | # First, append a space to every undef/define line, to ease matching. | |
25231 | echo 's/$/ /' >conftest.defines | |
25232 | # Then, protect against being on the right side of a sed subst, or in | |
25233 | # an unquoted here document, in config.status. If some macros were | |
25234 | # called several times there might be several #defines for the same | |
25235 | # symbol, which is useless. But do not sort them, since the last | |
25236 | # AC_DEFINE must be honored. | |
25237 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
0ebeb530 JW |
25238 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
25239 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | |
25240 | # PARAMS is the parameter list in the macro definition--in most cases, it's | |
25241 | # just an empty string. | |
25242 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | |
25243 | ac_dB='\\)[ (].*,\\1define\\2' | |
25244 | ac_dC=' ' | |
25245 | ac_dD=' ,' | |
25246 | ||
fc6ffb29 AJ |
25247 | uniq confdefs.h | |
25248 | sed -n ' | |
25249 | t rset | |
25250 | :rset | |
25251 | s/^[ ]*#[ ]*define[ ][ ]*// | |
25252 | t ok | |
25253 | d | |
25254 | :ok | |
25255 | s/[\\&,]/\\&/g | |
0ebeb530 JW |
25256 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
25257 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | |
fc6ffb29 AJ |
25258 | ' >>conftest.defines |
25259 | ||
25260 | # Remove the space that was appended to ease matching. | |
25261 | # Then replace #undef with comments. This is necessary, for | |
18f92e76 AJ |
25262 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
25263 | # on some systems where configure will not decide to define it. | |
fc6ffb29 AJ |
25264 | # (The regexp can be short, since the line contains either #define or #undef.) |
25265 | echo 's/ $// | |
25266 | s,^[ #]*u.*,/* & */,' >>conftest.defines | |
25267 | ||
25268 | # Break up conftest.defines: | |
0ebeb530 | 25269 | ac_max_sed_lines=50 |
fc6ffb29 AJ |
25270 | |
25271 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | |
25272 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | |
25273 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | |
25274 | # et cetera. | |
25275 | ac_in='$ac_file_inputs' | |
25276 | ac_out='"$tmp/out1"' | |
25277 | ac_nxt='"$tmp/out2"' | |
25278 | ||
25279 | while : | |
f5818d2f | 25280 | do |
fc6ffb29 | 25281 | # Write a here document: |
0ebeb530 JW |
25282 | cat >>$CONFIG_STATUS <<_ACEOF |
25283 | # First, check the format of the line: | |
25284 | cat >"\$tmp/defines.sed" <<\\CEOF | |
25285 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | |
25286 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | |
fc6ffb29 | 25287 | b |
0ebeb530 JW |
25288 | :def |
25289 | _ACEOF | |
fc6ffb29 | 25290 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
f5818d2f | 25291 | echo 'CEOF |
fc6ffb29 AJ |
25292 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
25293 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | |
25294 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | |
25295 | grep . conftest.tail >/dev/null || break | |
f5818d2f AJ |
25296 | rm -f conftest.defines |
25297 | mv conftest.tail conftest.defines | |
25298 | done | |
fc6ffb29 | 25299 | rm -f conftest.defines conftest.tail |
f5818d2f | 25300 | |
fc6ffb29 | 25301 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
daa2886c | 25302 | cat >>$CONFIG_STATUS <<\_ACEOF |
f5818d2f | 25303 | if test x"$ac_file" != x-; then |
fc6ffb29 AJ |
25304 | echo "/* $configure_input */" >"$tmp/config.h" |
25305 | cat "$ac_result" >>"$tmp/config.h" | |
25306 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | |
daa2886c | 25307 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
f5818d2f AJ |
25308 | echo "$as_me: $ac_file is unchanged" >&6;} |
25309 | else | |
f5818d2f | 25310 | rm -f $ac_file |
fc6ffb29 | 25311 | mv "$tmp/config.h" $ac_file |
18f92e76 | 25312 | fi |
f5818d2f | 25313 | else |
fc6ffb29 AJ |
25314 | echo "/* $configure_input */" |
25315 | cat "$ac_result" | |
18f92e76 | 25316 | fi |
fc6ffb29 AJ |
25317 | rm -f "$tmp/out12" |
25318 | ;; | |
875927f6 | 25319 | |
fc6ffb29 AJ |
25320 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
25321 | echo "$as_me: executing $ac_file commands" >&6;} | |
25322 | ;; | |
25323 | esac | |
daa2886c AJ |
25324 | |
25325 | ||
fc6ffb29 | 25326 | case $ac_file$ac_mode in |
c4704c2d | 25327 | "include/stamp-h":C) echo timestamp > include/stamp-h ;; |
7dfc4477 AJ |
25328 | "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/enhmfdrv" >&5 |
25329 | echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;} && mkdir "dlls/gdi32/enhmfdrv") ;; | |
25330 | "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi32/mfdrv" >&5 | |
25331 | echo "$as_me: creating dlls/gdi32/mfdrv" >&6;} && mkdir "dlls/gdi32/mfdrv") ;; | |
1c60e3bf AJ |
25332 | "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || ({ echo "$as_me:$LINENO: creating dlls/kernel32/nls" >&5 |
25333 | echo "$as_me: creating dlls/kernel32/nls" >&6;} && mkdir "dlls/kernel32/nls") ;; | |
fc6ffb29 | 25334 | "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5 |
f5818d2f | 25335 | echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;; |
fc6ffb29 | 25336 | "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5 |
57ed75bf | 25337 | echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;; |
fc6ffb29 | 25338 | "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5 |
f5818d2f | 25339 | echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;; |
fc6ffb29 | 25340 | |
f5818d2f | 25341 | esac |
fc6ffb29 | 25342 | done # for ac_tag |
e2991ea7 | 25343 | |
87a2f8df | 25344 | |
f5818d2f | 25345 | { (exit 0); exit 0; } |
daa2886c | 25346 | _ACEOF |
e2991ea7 | 25347 | chmod +x $CONFIG_STATUS |
f5818d2f AJ |
25348 | ac_clean_files=$ac_clean_files_save |
25349 | ||
daa2886c | 25350 | |
f5818d2f AJ |
25351 | # configure is writing to config.log, and then calls config.status. |
25352 | # config.status does its own redirection, appending to config.log. | |
25353 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25354 | # by configure, so config.status won't be able to write to it; its | |
25355 | # output is simply discarded. So we exec the FD to /dev/null, | |
25356 | # effectively closing config.log, so it can be properly (re)opened and | |
25357 | # appended to by config.status. When coming back to configure, we | |
25358 | # need to make the FD available again. | |
25359 | if test "$no_create" != yes; then | |
25360 | ac_cs_success=: | |
e24bcc77 AJ |
25361 | ac_config_status_args= |
25362 | test "$silent" = yes && | |
25363 | ac_config_status_args="$ac_config_status_args --quiet" | |
f5818d2f | 25364 | exec 5>/dev/null |
e24bcc77 | 25365 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
f5818d2f AJ |
25366 | exec 5>>config.log |
25367 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25368 | # would make configure fail if this is the last instruction. | |
25369 | $ac_cs_success || { (exit 1); exit 1; } | |
25370 | fi | |
e2991ea7 | 25371 | |
daa2886c | 25372 | |
e84a382b | 25373 | |
e3bd111b AJ |
25374 | if test "$no_create" = "yes" |
25375 | then | |
25376 | exit 0 | |
25377 | fi | |
25378 | ||
e84a382b DR |
25379 | if test "$verbose" = "yes" |
25380 | then | |
2ff880ed DR |
25381 | if test "$ac_cv_header_capi20_h" != "yes" -o "$ac_cv_header_linux_capi_h" != "yes" |
25382 | then | |
25383 | echo >&2 | |
25384 | { echo "$as_me:$LINENO: libcapi20 development files not found." >&5 | |
25385 | echo "$as_me: libcapi20 development files not found." >&6;} | |
25386 | { echo "$as_me:$LINENO: Wine will be built without ISDN support. (capi2032.dll)" >&5 | |
25387 | echo "$as_me: Wine will be built without ISDN support. (capi2032.dll)" >&6;} | |
25388 | fi | |
25389 | ||
e84a382b DR |
25390 | if test "$ac_cv_header_cups_cups_h" != "yes" |
25391 | then | |
25392 | echo >&2 | |
25393 | { echo "$as_me:$LINENO: libcups development files not found." >&5 | |
25394 | echo "$as_me: libcups development files not found." >&6;} | |
25395 | { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5 | |
25396 | echo "$as_me: Wine will be built without CUPS support." >&6;} | |
25397 | fi | |
25398 | ||
25399 | ||
25400 | if test "$ac_cv_header_gphoto2_camera_h" != "yes" | |
25401 | then | |
25402 | echo >&2 | |
25403 | { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5 | |
25404 | echo "$as_me: libgphoto2 development files not found." >&6;} | |
25405 | if test "$ac_cv_header_sane_sane_h" = "yes" | |
25406 | then | |
25407 | { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5 | |
25408 | echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;} | |
25409 | else | |
25410 | { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5 | |
25411 | echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;} | |
25412 | fi | |
25413 | fi | |
25414 | ||
25415 | if test "$ac_cv_header_hal_libhal_h" != "yes" | |
25416 | then | |
25417 | echo >&2 | |
25418 | { echo "$as_me:$LINENO: libhal development files not found." >&5 | |
25419 | echo "$as_me: libhal development files not found." >&6;} | |
25420 | { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5 | |
25421 | echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;} | |
25422 | fi | |
25423 | ||
25424 | if test "$ac_cv_header_unicode_ubidi_h" != "yes" | |
25425 | then | |
25426 | echo >&2 | |
25427 | { echo "$as_me:$LINENO: libicu development files not found." >&5 | |
25428 | echo "$as_me: libicu development files not found." >&6;} | |
25429 | { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5 | |
25430 | echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;} | |
25431 | fi | |
25432 | ||
25433 | if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes" | |
25434 | then | |
25435 | echo >&2 | |
25436 | { echo "$as_me:$LINENO: liblcms development files not found." >&5 | |
25437 | echo "$as_me: liblcms development files not found." >&6;} | |
25438 | { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5 | |
25439 | echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;} | |
25440 | fi | |
25441 | ||
25442 | if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes" | |
25443 | then | |
25444 | echo >&2 | |
25445 | { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5 | |
25446 | echo "$as_me: libldap (OpenLDAP) development files not found." >&6;} | |
25447 | { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5 | |
25448 | echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;} | |
25449 | fi | |
25450 | ||
25451 | if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes" | |
25452 | then | |
25453 | echo >&2 | |
25454 | { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5 | |
25455 | echo "$as_me: lib(n)curses development files not found." >&6;} | |
25456 | { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5 | |
25457 | echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;} | |
25458 | fi | |
25459 | ||
25460 | if test "$ac_cv_header_sane_sane_h" != "yes" | |
25461 | then | |
25462 | echo >&2 | |
25463 | { echo "$as_me:$LINENO: libsane development files not found." >&5 | |
25464 | echo "$as_me: libsane development files not found." >&6;} | |
25465 | { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5 | |
25466 | echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;} | |
e84a382b DR |
25467 | fi |
25468 | ||
25469 | if test "$have_x" = "yes" | |
25470 | then | |
25471 | if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes" | |
25472 | then | |
25473 | echo >&2 | |
25474 | { echo "$as_me:$LINENO: libxext development files not found." >&5 | |
25475 | echo "$as_me: libxext development files not found." >&6;} | |
25476 | { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5 | |
25477 | echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;} | |
25478 | fi | |
25479 | ||
25480 | if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes" | |
25481 | then | |
25482 | echo >&2 | |
25483 | { echo "$as_me:$LINENO: libXrandr development files not found." >&5 | |
25484 | echo "$as_me: libXrandr development files not found." >&6;} | |
25485 | { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5 | |
25486 | echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;} | |
25487 | fi | |
25488 | ||
25489 | if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes" | |
25490 | then | |
25491 | echo >&2 | |
25492 | { echo "$as_me:$LINENO: libXrender development files not found." >&5 | |
25493 | echo "$as_me: libXrender development files not found." >&6;} | |
25494 | { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5 | |
25495 | echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;} | |
25496 | fi | |
25497 | ||
25498 | if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes" | |
25499 | then | |
25500 | echo >&2 | |
25501 | { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5 | |
25502 | echo "$as_me: libXxf86vm development files not found." >&6;} | |
25503 | { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5 | |
25504 | echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;} | |
25505 | fi | |
25506 | fi | |
25507 | ||
25508 | if test "$ac_cv_header_libxml_parser_h" != "yes" | |
25509 | then | |
25510 | echo >&2 | |
25511 | { echo "$as_me:$LINENO: libxml2 development files not found." >&5 | |
25512 | echo "$as_me: libxml2 development files not found." >&6;} | |
25513 | { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5 | |
25514 | echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;} | |
25515 | fi | |
25516 | ||
25517 | if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes" | |
25518 | then | |
25519 | echo >&2 | |
25520 | { echo "$as_me:$LINENO: libxslt development files not found." >&5 | |
25521 | echo "$as_me: libxslt development files not found." >&6;} | |
25522 | { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5 | |
25523 | echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;} | |
25524 | fi | |
25525 | fi | |
25526 | ||
25527 | ||
8b4431f1 OK |
25528 | if test "$have_x" = "no" |
25529 | then | |
bb7fe681 AJ |
25530 | echo >&2 |
25531 | { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5 | |
25532 | echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;} | |
25533 | { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5 | |
25534 | echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;} | |
25535 | { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5 | |
25536 | echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;} | |
25537 | { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5 | |
25538 | echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;} | |
8b4431f1 OK |
25539 | fi |
25540 | ||
c84c4784 | 25541 | if test -z "$OPENGLFILES" |
5c085704 | 25542 | then |
bb7fe681 | 25543 | echo >&2 |
bc66d7ed RC |
25544 | { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5 |
25545 | echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;} | |
25546 | { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5 | |
25547 | echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;} | |
25548 | if test "$wine_cv_opengl_headers_found" = "no" | |
25549 | then | |
25550 | { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5 | |
25551 | echo "$as_me: WARNING: No OpenGL development headers were found" >&2;} | |
25552 | fi | |
25553 | if test "$wine_cv_opengl_header_version_OK" = "no" | |
25554 | then | |
25555 | { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5 | |
25556 | echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;} | |
c84c4784 | 25557 | elif test "$ac_cv_lib_GL_glXCreateContext" = "no" |
bc66d7ed | 25558 | then |
c84c4784 AJ |
25559 | if test -f /usr/X11R6/lib/libGL.a |
25560 | then | |
25561 | { echo "$as_me:$LINENO: WARNING: /usr/X11R6/lib/libGL.a is present on your system. | |
25562 | This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&5 | |
25563 | echo "$as_me: WARNING: /usr/X11R6/lib/libGL.a is present on your system. | |
25564 | This probably prevents linking to OpenGL. Try deleting the file and restarting configure." >&2;} | |
25565 | else | |
25566 | { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5 | |
bc66d7ed | 25567 | echo "$as_me: WARNING: No OpenGL library found on this system." >&2;} |
c84c4784 | 25568 | fi |
bc66d7ed | 25569 | fi |
5eee0bff LU |
25570 | fi |
25571 | ||
563598d4 IP |
25572 | if test "$wine_cv_msg_freetype" = "yes" |
25573 | then | |
bb7fe681 AJ |
25574 | echo >&2 |
25575 | { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5 | |
25576 | echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;} | |
25577 | { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5 | |
25578 | echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;} | |
25579 | { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5 | |
25580 | echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;} | |
25581 | { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5 | |
25582 | echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;} | |
563598d4 IP |
25583 | fi |
25584 | ||
baf3f5d6 | 25585 | if test -z "$FONTSSUBDIRS" |
8f6aa41a | 25586 | then |
bb7fe681 | 25587 | echo >&2 |
baf3f5d6 AJ |
25588 | if test "$FONTFORGE" = "false" |
25589 | then | |
bb7fe681 AJ |
25590 | { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5 |
25591 | echo "$as_me: WARNING: FontForge is missing." >&2;} | |
baf3f5d6 | 25592 | else |
bb7fe681 AJ |
25593 | { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5 |
25594 | echo "$as_me: WARNING: FreeType is missing." >&2;} | |
baf3f5d6 | 25595 | fi |
bb7fe681 AJ |
25596 | { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5 |
25597 | echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;} | |
8f6aa41a MM |
25598 | fi |
25599 | ||
82776020 AJ |
25600 | if test -z "$ALSALIBS" -a \ |
25601 | -z "$ARTSC_LIBS" -a \ | |
25602 | -z "$AUDIOIOLIBS" -a \ | |
25603 | -z "$NASLIBS" -a \ | |
25604 | -z "$ESD_LIBS" -a \ | |
25605 | -z "$ac_cv_lib_soname_jack" -a \ | |
25606 | "$ac_cv_header_sys_soundcard_h" != "yes" -a \ | |
25607 | "$ac_cv_header_machine_soundcard_h" != "yes" -a \ | |
25608 | "$ac_cv_header_soundcard_h" != "yes" | |
99d026fb | 25609 | then |
bb7fe681 AJ |
25610 | echo >&2 |
25611 | { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5 | |
25612 | echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;} | |
25613 | { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5 | |
25614 | echo "$as_me: WARNING: The currently supported sound systems are:" >&2;} | |
25615 | { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5 | |
25616 | echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;} | |
99d026fb FG |
25617 | fi |
25618 | ||
e2991ea7 | 25619 | echo |
5606d104 | 25620 | echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine." |
e2991ea7 AJ |
25621 | echo |
25622 |