blob: f1e9b2551f3926c922182c96ac6ec44207d266f7 [file] [log] [blame]
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001#! /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002# Guess values for system-dependent variables and create Makefiles.
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +02003# Generated by GNU Autoconf 2.60a for Wine 0.9.17.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019 # 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+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022 setopt NO_GLOB_SUBST
23else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020026BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000027DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000028
Alexandre Julliarddaa28862002-04-11 21:54:01 +000029
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020030# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000031# Avoid depending upon Character Ranges.
32as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35as_cr_digits='0123456789'
36as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38# The user is always right.
39if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000040 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
Alexandre Julliarddaa28862002-04-11 21:54:01 +000044 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000048 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000049fi
50
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020051# Support unset when possible.
52if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54else
55 as_unset=false
56fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000057
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020058
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.)
64as_nl='
65'
66IFS=" "" $as_nl"
67
68# Find who we are. Look in the path if we contain no directory separator.
69case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000072for as_dir in $PATH
73do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020078IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000079
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020080 ;;
81esac
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.
84if test "x$as_myself" = x; then
85 as_myself=$0
86fi
87if 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; }
90fi
91
92# Work around bugs in pre-3.0 UWIN ksh.
93for as_var in ENV MAIL MAILPATH
94do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95done
96PS1='$ '
97PS2='> '
98PS4='+ '
99
100# NLS nuisances.
101for 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
105do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000110 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200111done
112
113# Required to use basename.
114if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117else
118 as_expr=false
119fi
120
121if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123else
124 as_basename=false
125fi
126
127
128# Name of the executable.
129as_me=`$as_basename -- "$0" ||
130$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133echo X/"$0" |
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'`
147
148# CDPATH.
149$as_unset CDPATH
150
151
152if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155else
156 as_have_required=no
157fi
158
159 if test $as_have_required = yes && (eval ":
160(as_func_return () {
161 (exit \$1)
162}
163as_func_success () {
164 as_func_return 0
165}
166as_func_failure () {
167 as_func_return 1
168}
169as_func_ret_success () {
170 return 0
171}
172as_func_ret_failure () {
173 return 1
174}
175
176exitcode=0
177if as_func_success; then
178 :
179else
180 exitcode=1
181 echo as_func_success failed.
182fi
183
184if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187fi
188
189if as_func_ret_success; then
190 :
191else
192 exitcode=1
193 echo as_func_ret_success failed.
194fi
195
196if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199fi
200
201if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203else
204 exitcode=1
205 echo positional parameters were not saved.
206fi
207
208test \$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 :
217else
218 as_candidate_shells=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200220for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200224 case $as_dir in
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000225 /*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230done
231IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
Jeremy White0ebeb532006-06-20 13:18:41 +0200235 # 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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200238# Be Bourne compatible
239if 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
246else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248fi
249BIN_SH=xpg4; export BIN_SH # for Tru64
250DUALCASE=1; export DUALCASE # for MKS sh
251
252:
253_ASEOF
254}; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
Jeremy White0ebeb532006-06-20 13:18:41 +0200257 if { "$as_shell" 2> /dev/null <<\_ASEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200258# Be Bourne compatible
259if 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
266else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268fi
269BIN_SH=xpg4; export BIN_SH # for Tru64
270DUALCASE=1; export DUALCASE # for MKS sh
271
272:
273(as_func_return () {
274 (exit $1)
275}
276as_func_success () {
277 as_func_return 0
278}
279as_func_failure () {
280 as_func_return 1
281}
282as_func_ret_success () {
283 return 0
284}
285as_func_ret_failure () {
286 return 1
287}
288
289exitcode=0
290if as_func_success; then
291 :
292else
293 exitcode=1
294 echo as_func_success failed.
295fi
296
297if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300fi
301
302if as_func_ret_success; then
303 :
304else
305 exitcode=1
306 echo as_func_ret_success failed.
307fi
308
309if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312fi
313
314if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316else
317 exitcode=1
318 echo positional parameters were not saved.
319fi
320
321test $exitcode = 0) || { (exit 1); exit 1; }
322
323(
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000326 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329_ASEOF
330}; then
331 break
332fi
333
334fi
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+"$@"}
344fi
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; }
353fi
354
355
356fi
357
358fi
359
360
361
362(eval "as_func_return () {
363 (exit \$1)
364}
365as_func_success () {
366 as_func_return 0
367}
368as_func_failure () {
369 as_func_return 1
370}
371as_func_ret_success () {
372 return 0
373}
374as_func_ret_failure () {
375 return 1
376}
377
378exitcode=0
379if as_func_success; then
380 :
381else
382 exitcode=1
383 echo as_func_success failed.
384fi
385
386if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389fi
390
391if as_func_ret_success; then
392 :
393else
394 exitcode=1
395 echo as_func_ret_success failed.
396fi
397
398if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401fi
402
403if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405else
406 exitcode=1
407 echo positional parameters were not saved.
408fi
409
410test \$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" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000423
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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200426 # 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.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200432 # 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 |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000438 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000443 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000446 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200447 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000448 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200449 chmod +x "$as_me.lineno" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000450 { 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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000457 # Exit status is that of the last command.
458 exit
459}
460
461
Jeremy White0ebeb532006-06-20 13:18:41 +0200462if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200463 as_dirname=dirname
464else
465 as_dirname=false
466fi
467
468ECHO_C= ECHO_N= ECHO_T=
469case `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';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000477esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200479if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000481 as_expr=expr
482else
483 as_expr=false
484fi
485
486rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200487if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000493echo >conf$$.file
494if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200495 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 ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000501 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000502elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504else
505 as_ln_s='cp -p'
506fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200507rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000509
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000510if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000513 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000514 as_mkdir_p=false
515fi
516
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200517# 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.
519cat >conf$$.file <<_ASEOF
520#! /bin/sh
521exit 0
522_ASEOF
523chmod +x conf$$.file
524if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526else
527 as_executable_p=:
528fi
529rm -f conf$$.file
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000530
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000531# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000532as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000533
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000534# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000535as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000536
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000538
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200539exec 7<&0 </dev/null 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000540
541# Name of the host.
542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543# so uname gets run too.
544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000546#
547# Initializations.
548#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000549ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200550ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000551ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200552LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000553cross_compiling=no
554subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000555MFLAGS=
556MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000557SHELL=${CONFIG_SHELL-/bin/sh}
558
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000559# Identity of this package.
560PACKAGE_NAME='Wine'
561PACKAGE_TARNAME='wine'
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +0200562PACKAGE_VERSION='0.9.17'
563PACKAGE_STRING='Wine 0.9.17'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000564PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000565
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000566ac_unique_file="server/atom.c"
567# Factoring default headers for most tests.
568ac_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>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640build
641build_cpu
642build_vendor
643build_os
644host
645host_cpu
646host_vendor
647host_os
648WIN16_FILES
649WIN16_INSTALL
650SET_MAKE
651CC
652CFLAGS
653LDFLAGS
654CPPFLAGS
655ac_ct_CC
656EXEEXT
657OBJEXT
658CXX
659CXXFLAGS
660ac_ct_CXX
661CPPBIN
662TOOLSDIR
663XMKMF
664CPP
665X_CFLAGS
666X_PRE_LIBS
667X_LIBS
668X_EXTRA_LIBS
669LEX
670LEXLIB
671LEX_OUTPUT_ROOT
672XLEX
673BISON
674AS
675ac_ct_AS
676LD
677AR
678RANLIB
679STRIP
680WINDRES
681LN_S
682LN
683GREP
684EGREP
685LDCONFIG
686INSTALL_PROGRAM
687INSTALL_SCRIPT
688INSTALL_DATA
689LINT
690LINTFLAGS
691FONTFORGE
692PKG_CONFIG
693PRELINK
694LIBPTHREAD
695XLIB
696XFILES
697OPENGLFILES
698GLU32FILES
699OPENGL_LIBS
700GLUT_LIBS
701GLUT32FILES
702NASLIBS
703XML2LIBS
704XML2INCL
705XSLTLIBS
706XSLTINCL
707HALINCL
708CURSESLIBS
709sane_devel
710SANELIBS
711SANEINCL
712gphoto2_devel
713gphoto2port_devel
714GPHOTO2LIBS
715GPHOTO2INCL
716ICULIBS
717RESOLVLIBS
718LCMSLIBS
719LDAPLIBS
720FREETYPELIBS
721FREETYPEINCL
722ft_devel
723ft_devel2
724FONTSSUBDIRS
725ARTSCCONFIG
726ARTSLIBS
727ARTSINCL
728ESDCONFIG
729ESDLIBS
730ESDINCL
731ALSALIBS
732AUDIOIOLIBS
733EXTRACFLAGS
734BUILTINFLAG
735DLLEXT
736DLLFLAGS
737DLLIBS
738LDSHARED
739LDDLLFLAGS
740LIBEXT
741IMPLIBEXT
742DLLTOOL
743DLLWRAP
744LDEXECFLAGS
745LDEXERPATH
746LDDLLRPATH
747COREFOUNDATIONLIB
748IOKITLIB
Emmanuel Maillard144a5352006-05-28 22:46:23 +0200749COREAUDIO
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200750CROSSTEST
751CROSSCC
752CROSSWINDRES
753LDPATH
754CRTLIBS
755SOCKETLIBS
756MAIN_BINARY
757EXTRA_BINARIES
758LDD
759LIBOBJS
760LTLIBOBJS'
761ac_subst_files='MAKE_RULES
762MAKE_DLL_RULES
763MAKE_IMPLIB_RULES
764MAKE_TEST_RULES
765MAKE_LIB_RULES
766MAKE_PROG_RULES'
767 ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
773CPPFLAGS
774CXX
775CXXFLAGS
776CCC
777XMKMF
778CPP'
779
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000780
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000781# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000782ac_init_help=
783ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000784# The variables have the same names as the options, with
785# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000786cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000787exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000788no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000789no_recursion=
790prefix=NONE
791program_prefix=NONE
792program_suffix=NONE
793program_transform_name=s,x,x,
794silent=
795site=
796srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000797verbose=
798x_includes=NONE
799x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000800
801# Installation directory options.
802# These are left unexpanded so users can "make install exec_prefix=/foo"
803# and all the variables that are supposed to be based on exec_prefix
804# by default will actually change.
805# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200806# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000807bindir='${exec_prefix}/bin'
808sbindir='${exec_prefix}/sbin'
809libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200810datarootdir='${prefix}/share'
811datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000812sysconfdir='${prefix}/etc'
813sharedstatedir='${prefix}/com'
814localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000815includedir='${prefix}/include'
816oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200817docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818infodir='${datarootdir}/info'
819htmldir='${docdir}'
820dvidir='${docdir}'
821pdfdir='${docdir}'
822psdir='${docdir}'
823libdir='${exec_prefix}/lib'
824localedir='${datarootdir}/locale'
825mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000826
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000827ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200828ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000829for ac_option
830do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200833 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000834 ac_prev=
835 continue
836 fi
837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200838 case $ac_option in
839 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *) ac_optarg=yes ;;
841 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000848
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000853
854 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000855 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200869 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000870 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000872 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000873
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000881 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000882 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000884 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
885 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
886 { (exit 1); exit 1; }; }
887 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200888 eval enable_$ac_feature=no ;;
889
890 -docdir | --docdir | --docdi | --doc | --do)
891 ac_prev=docdir ;;
892 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
893 docdir=$ac_optarg ;;
894
895 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
896 ac_prev=dvidir ;;
897 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
898 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000899
900 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000902 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000903 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
904 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
905 { (exit 1); exit 1; }; }
906 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200907 eval enable_$ac_feature=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000908
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000916 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000917
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
921
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000928
929 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000930 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000931 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000932 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
939
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000945 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000946
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000950 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000951
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000955 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000956
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000962 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000963
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
968
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000969 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200970 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000974 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000975
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000980
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
984
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000986 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000987 no_create=yes ;;
988
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
992
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001000 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001001
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001005 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001006
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001012 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001013
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001019 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001020
1021 -program-transform-name | --program-transform-name \
1022 | --program-transform-nam | --program-transform-na \
1023 | --program-transform-n | --program-transform- \
1024 | --program-transform | --program-transfor \
1025 | --program-transfo | --program-transf \
1026 | --program-trans | --program-tran \
1027 | --progr-tra | --program-tr | --program-t)
1028 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001036 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1042
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1047
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1051
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001056 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001057
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001067 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001068
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001072 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001073
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001077 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001078
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001084 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001085
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001086 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001087 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001089 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001090
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1093
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001096
1097 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001098 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001099 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001100 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid package name: $ac_package" >&2
1102 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001103 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001104 eval with_$ac_package=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001105
1106 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001107 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001108 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001109 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001113 eval with_$ac_package=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001124 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001131 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001133 -*) { echo "$as_me: error: unrecognized option: $ac_option
1134Try \`$0 --help' for more information." >&2
1135 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136 ;;
1137
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001138 *=*)
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1143 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001144 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001145 export $ac_envvar ;;
1146
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001147 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001148 # FIXME: should be removed in autoconf 3.0.
1149 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153 ;;
1154
1155 esac
1156done
1157
1158if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 { echo "$as_me: error: missing argument to $ac_option" >&2
1161 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162fi
1163
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001164# Be sure to have absolute directory names.
1165for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1166 datadir sysconfdir sharedstatedir localstatedir includedir \
1167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1168 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001169do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001170 eval ac_val=\$$ac_var
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001171 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001172 [\\/$]* | ?:[\\/]* ) continue;;
1173 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001174 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001175 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1176 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001177done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001178
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001179# There might be people who depend on the old broken behavior: `$host'
1180# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001181# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001182build=$build_alias
1183host=$host_alias
1184target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001185
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001186# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001187if test "x$host_alias" != x; then
1188 if test "x$build_alias" = x; then
1189 cross_compiling=maybe
1190 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1191 If a cross compiler is detected then cross compile mode will be used." >&2
1192 elif test "x$build_alias" != "x$host_alias"; then
1193 cross_compiling=yes
1194 fi
1195fi
1196
1197ac_tool_prefix=
1198test -n "$host_alias" && ac_tool_prefix=$host_alias-
1199
1200test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001201
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001202
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001203ac_pwd=`pwd` && test -n "$ac_pwd" &&
1204ac_ls_di=`ls -di .` &&
1205ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1206 { echo "$as_me: error: Working directory cannot be determined" >&2
1207 { (exit 1); exit 1; }; }
1208test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1209 { echo "$as_me: error: pwd does not report name of working directory" >&2
1210 { (exit 1); exit 1; }; }
1211
1212
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001216 # Try the directory containing this script, then the parent directory.
1217 ac_confdir=`$as_dirname -- "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001218$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001219 X"$0" : 'X\(//\)[^/]' \| \
1220 X"$0" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001221 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001222echo X"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224 s//\1/
1225 q
1226 }
1227 /^X\(\/\/\)[^/].*/{
1228 s//\1/
1229 q
1230 }
1231 /^X\(\/\/\)$/{
1232 s//\1/
1233 q
1234 }
1235 /^X\(\/\).*/{
1236 s//\1/
1237 q
1238 }
1239 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001240 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001241 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001242 srcdir=..
1243 fi
1244else
1245 ac_srcdir_defaulted=no
1246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001247if test ! -r "$srcdir/$ac_unique_file"; then
1248 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001250 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001252ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1253ac_abs_confdir=`(
1254 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001255 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001256 pwd)`
1257# When building in place, set srcdir=.
1258if test "$ac_abs_confdir" = "$ac_pwd"; then
1259 srcdir=.
1260fi
1261# Remove unnecessary trailing slashes from srcdir.
1262# Double slashes in file names in object file debugging info
1263# mess up M-x gdb in Emacs.
1264case $srcdir in
1265*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1266esac
1267for ac_var in $ac_precious_vars; do
1268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1269 eval ac_env_${ac_var}_value=\$${ac_var}
1270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001273
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001274#
1275# Report the --help message.
1276#
1277if test "$ac_init_help" = "long"; then
1278 # Omit some internal or obsolete options to make the list less imposing.
1279 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001280 cat <<_ACEOF
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +02001281\`configure' configures Wine 0.9.17 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282
1283Usage: $0 [OPTION]... [VAR=VALUE]...
1284
1285To assign environment variables (e.g., CC, CFLAGS...), specify them as
1286VAR=VALUE. See below for descriptions of some of the useful variables.
1287
1288Defaults for the options are specified in brackets.
1289
1290Configuration:
1291 -h, --help display this help and exit
1292 --help=short display options specific to this package
1293 --help=recursive display the short help of all the included packages
1294 -V, --version display version information and exit
1295 -q, --quiet, --silent do not print \`checking...' messages
1296 --cache-file=FILE cache test results in FILE [disabled]
1297 -C, --config-cache alias for \`--cache-file=config.cache'
1298 -n, --no-create do not create output files
1299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1300
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001301Installation directories:
1302 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +00001303 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +00001305 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001306
1307By default, \`make install' will install all the files in
1308\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1309an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1310for instance \`--prefix=\$HOME'.
1311
1312For better control, use the options below.
1313
1314Fine tuning of the installation directories:
1315 --bindir=DIR user executables [EPREFIX/bin]
1316 --sbindir=DIR system admin executables [EPREFIX/sbin]
1317 --libexecdir=DIR program executables [EPREFIX/libexec]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1321 --libdir=DIR object code libraries [EPREFIX/lib]
1322 --includedir=DIR C header files [PREFIX/include]
1323 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001324 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1325 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1326 --infodir=DIR info documentation [DATAROOTDIR/info]
1327 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1328 --mandir=DIR man documentation [DATAROOTDIR/man]
1329 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1330 --htmldir=DIR html documentation [DOCDIR]
1331 --dvidir=DIR dvi documentation [DOCDIR]
1332 --pdfdir=DIR pdf documentation [DOCDIR]
1333 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001334_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001336 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001337
1338X features:
1339 --x-includes=DIR X include files are in DIR
1340 --x-libraries=DIR X library files are in DIR
1341
1342System types:
1343 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001344 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001345_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001346fi
1347
1348if test -n "$ac_init_help"; then
1349 case $ac_init_help in
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +02001350 short | recursive ) echo "Configuration of Wine 0.9.17:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001351 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001352 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001353
1354Optional Features:
1355 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1356 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001357 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001358 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1359 binaries)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001360
1361Optional Packages:
1362 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1363 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +00001364 --without-opengl do not use OpenGL
1365 --without-curses do not use curses
1366 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001367 --with-x use the X Window System
1368
1369Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001374 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1375 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001376 CXX C++ compiler command
1377 CXXFLAGS C++ compiler flags
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001378 XMKMF Path to xmkmf, Makefile generator for X Window System
Eric Pouech53fa0d52004-02-05 01:27:38 +00001379 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001380
1381Use these variables to override the choices made by `configure' or to help
1382it to find libraries and programs with nonstandard names/locations.
1383
Alexandre Julliard875927f2004-01-02 01:55:29 +00001384Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001385_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001386ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001387fi
1388
1389if test "$ac_init_help" = "recursive"; then
1390 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001391 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeremy White0ebeb532006-06-20 13:18:41 +02001392 test -d "$ac_dir" || continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001393 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001394
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001395case "$ac_dir" in
1396.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001399 # A ".." for each directory in $ac_dir_suffix.
1400 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1401 case $ac_top_builddir_sub in
1402 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1404 esac ;;
1405esac
1406ac_abs_top_builddir=$ac_pwd
1407ac_abs_builddir=$ac_pwd$ac_dir_suffix
1408# for backward compatibility:
1409ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001410
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001411case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001412 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001414 ac_top_srcdir=$ac_top_builddir_sub
1415 ac_abs_top_srcdir=$ac_pwd ;;
1416 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001417 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001418 ac_top_srcdir=$srcdir
1419 ac_abs_top_srcdir=$srcdir ;;
1420 *) # Relative name.
1421 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1422 ac_top_srcdir=$ac_top_build_prefix$srcdir
1423 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001424esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001425ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001426
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001427 cd "$ac_dir" || { ac_status=$?; continue; }
1428 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001429 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001430 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001431 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1432 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001433 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001434 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001435 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001436 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001437 fi || ac_status=$?
1438 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439 done
1440fi
1441
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001442test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001444 cat <<\_ACEOF
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +02001445Wine configure 0.9.17
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02001446generated by GNU Autoconf 2.60a
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001447
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001448Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14492002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450This configure script is free software; the Free Software Foundation
1451gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001452_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001453 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001454fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001455cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001456This file contains any messages produced by compilers while
1457running configure, to aid debugging if configure makes a mistake.
1458
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +02001459It was created by Wine $as_me 0.9.17, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02001460generated by GNU Autoconf 2.60a. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001461
1462 $ $0 $@
1463
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001465exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001466{
1467cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001468## --------- ##
1469## Platform. ##
1470## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001471
1472hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1473uname -m = `(uname -m) 2>/dev/null || echo unknown`
1474uname -r = `(uname -r) 2>/dev/null || echo unknown`
1475uname -s = `(uname -s) 2>/dev/null || echo unknown`
1476uname -v = `(uname -v) 2>/dev/null || echo unknown`
1477
1478/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1479/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1480
1481/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1482/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1483/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001484/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001485/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1486/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1487/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1488
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001489_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001490
1491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492for as_dir in $PATH
1493do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 echo "PATH: $as_dir"
1497done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001498IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001499
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001500} >&5
1501
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001502cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001503
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001504
1505## ----------- ##
1506## Core tests. ##
1507## ----------- ##
1508
1509_ACEOF
1510
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001511
1512# Keep a trace of the command line.
1513# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001514# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001515# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001516# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001517ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001518ac_configure_args0=
1519ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001520ac_must_keep_next=false
1521for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001522do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001523 for ac_arg
1524 do
1525 case $ac_arg in
1526 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1529 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001530 *\'*)
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001531 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 esac
1533 case $ac_pass in
1534 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1535 2)
1536 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1537 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001538 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001539 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001540 case $ac_arg in
1541 *=* | --config-cache | -C | -disable-* | --disable-* \
1542 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1543 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1544 | -with-* | --with-* | -without-* | --without-* | --x)
1545 case "$ac_configure_args0 " in
1546 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 esac
1548 ;;
1549 -* ) ac_must_keep_next=true ;;
1550 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001551 fi
Jeremy White0ebeb532006-06-20 13:18:41 +02001552 ac_configure_args="$ac_configure_args '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001553 ;;
1554 esac
1555 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001556done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001557$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1558$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001559
1560# When interrupted or exit'd, cleanup temporary files, and complete
1561# config.log. We remove comments because anyway the quotes in there
1562# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001563# WARNING: Use '\'' to represent an apostrophe within the trap.
1564# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001565trap 'exit_status=$?
1566 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001567 {
1568 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001569
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570 cat <<\_ASBOX
1571## ---------------- ##
1572## Cache variables. ##
1573## ---------------- ##
1574_ASBOX
1575 echo
1576 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001577(
1578 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in #(
1581 *${as_nl}*)
1582 case $ac_var in #(
1583 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1584echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 esac
1586 case $ac_var in #(
1587 _ | IFS | as_nl) ;; #(
1588 *) $as_unset $ac_var ;;
1589 esac ;;
1590 esac
1591 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001592 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001593 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1594 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001596 "s/'\''/'\''\\\\'\'''\''/g;
1597 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001601 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001602 esac |
1603 sort
1604)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001605 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001606
1607 cat <<\_ASBOX
1608## ----------------- ##
1609## Output variables. ##
1610## ----------------- ##
1611_ASBOX
1612 echo
1613 for ac_var in $ac_subst_vars
1614 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001615 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02001616 case $ac_val in
1617 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1618 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001619 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001620 done | sort
1621 echo
1622
1623 if test -n "$ac_subst_files"; then
1624 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001625## ------------------- ##
1626## File substitutions. ##
1627## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001628_ASBOX
1629 echo
1630 for ac_var in $ac_subst_files
1631 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001632 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02001633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001636 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001637 done | sort
1638 echo
1639 fi
1640
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001641 if test -s confdefs.h; then
1642 cat <<\_ASBOX
1643## ----------- ##
1644## confdefs.h. ##
1645## ----------- ##
1646_ASBOX
1647 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001648 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001649 echo
1650 fi
1651 test "$ac_signal" != 0 &&
1652 echo "$as_me: caught signal $ac_signal"
1653 echo "$as_me: exit $exit_status"
1654 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001655 rm -f core *.core core.conftest.* &&
1656 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001657 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001658' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001659for ac_signal in 1 2 13 15; do
1660 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1661done
1662ac_signal=0
1663
1664# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001665rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001667# Predefined preprocessor variables.
1668
1669cat >>confdefs.h <<_ACEOF
1670#define PACKAGE_NAME "$PACKAGE_NAME"
1671_ACEOF
1672
1673
1674cat >>confdefs.h <<_ACEOF
1675#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1676_ACEOF
1677
1678
1679cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_VERSION "$PACKAGE_VERSION"
1681_ACEOF
1682
1683
1684cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_STRING "$PACKAGE_STRING"
1686_ACEOF
1687
1688
1689cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1691_ACEOF
1692
1693
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001694# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001695# Prefer explicitly selected file to automatically selected ones.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001696if test -n "$CONFIG_SITE"; then
1697 set x "$CONFIG_SITE"
1698elif test "x$prefix" != xNONE; then
1699 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1700else
1701 set x "$ac_default_prefix/share/config.site" \
1702 "$ac_default_prefix/etc/config.site"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001703fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001704shift
1705for ac_site_file
1706do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001707 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001708 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001709echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001710 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001711 . "$ac_site_file"
1712 fi
1713done
1714
1715if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001716 # Some versions of bash will fail to source /dev/null (special
1717 # files actually), so we avoid doing that.
1718 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001719 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001720echo "$as_me: loading cache $cache_file" >&6;}
1721 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02001722 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1723 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001724 esac
1725 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001726else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001727 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001728echo "$as_me: creating cache $cache_file" >&6;}
1729 >$cache_file
1730fi
1731
1732# Check that the precious variables saved in the cache have kept the same
1733# value.
1734ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001735for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1737 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001738 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1739 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001740 case $ac_old_set,$ac_new_set in
1741 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001742 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001743echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1744 ac_cache_corrupted=: ;;
1745 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001746 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001747echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1748 ac_cache_corrupted=: ;;
1749 ,);;
1750 *)
1751 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001752 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001753echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001754 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001755echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001756 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001757echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001758 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759 fi;;
1760 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001761 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001762 if test "$ac_new_set" = set; then
1763 case $ac_new_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001764 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001765 *) ac_arg=$ac_var=$ac_new_val ;;
1766 esac
1767 case " $ac_configure_args " in
1768 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1769 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001770 esac
1771 fi
1772done
1773if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001774 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001775echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001776 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001777echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1778 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001779fi
1780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001805ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001806ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1809ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001810
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001811
1812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001813ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001814
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001815ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02001816for ac_dir in tools "$srcdir"/tools; do
1817 if test -f "$ac_dir/install-sh"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 break
Jeremy White0ebeb532006-06-20 13:18:41 +02001821 elif test -f "$ac_dir/install.sh"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 break
Jeremy White0ebeb532006-06-20 13:18:41 +02001825 elif test -f "$ac_dir/shtool"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001829 fi
1830done
1831if test -z "$ac_aux_dir"; then
Jeremy White0ebeb532006-06-20 13:18:41 +02001832 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1833echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001834 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001835fi
Jeremy White0ebeb532006-06-20 13:18:41 +02001836
1837# These three variables are undocumented and unsupported,
1838# and are intended to be withdrawn in a future Autoconf release.
1839# They can cause serious problems if a builder's source tree is in a directory
1840# whose full name contains unusual characters.
1841ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1842ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1843ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1844
Howard Abrams13277481999-07-10 13:16:29 +00001845
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001846
1847
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001848# Check whether --enable-win16 was given.
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001849if test "${enable_win16+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001850 enableval=$enable_win16;
1851fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001852
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001853# Check whether --enable-win64 was given.
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001854if test "${enable_win64+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001855 enableval=$enable_win64;
1856fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00001857
1858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001859
1860# Check whether --with-opengl was given.
Alexandre Julliardb8074992002-11-21 21:51:24 +00001861if test "${with_opengl+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001862 withval=$with_opengl;
1863fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001864
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001865
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001866# Check whether --with-curses was given.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001867if test "${with_curses+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001868 withval=$with_curses;
1869fi
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001870
1871
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001872# Check whether --with-wine-tools was given.
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001873if test "${with_wine_tools+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001874 withval=$with_wine_tools;
1875fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001876
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001877
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001878# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02001879$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001882 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001883
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001884{ echo "$as_me:$LINENO: checking build system type" >&5
1885echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001886if test "${ac_cv_build+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001888else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001889 ac_build_alias=$build_alias
1890test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001892test "x$ac_build_alias" = x &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001893 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001894echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895 { (exit 1); exit 1; }; }
Jeremy White0ebeb532006-06-20 13:18:41 +02001896ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001899 { (exit 1); exit 1; }; }
1900
1901fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001902{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903echo "${ECHO_T}$ac_cv_build" >&6; }
1904case $ac_cv_build in
1905*-*-*) ;;
1906*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907echo "$as_me: error: invalid value of canonical build" >&2;}
1908 { (exit 1); exit 1; }; };;
1909esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001910build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001911ac_save_IFS=$IFS; IFS='-'
1912set x $ac_cv_build
1913shift
1914build_cpu=$1
1915build_vendor=$2
1916shift; shift
1917# Remember, the first character of IFS is used to create $*,
1918# except with old shells:
1919build_os=$*
1920IFS=$ac_save_IFS
1921case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001922
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001923
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001924{ echo "$as_me:$LINENO: checking host system type" >&5
1925echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926if test "${ac_cv_host+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001929 if test "x$host_alias" = x; then
1930 ac_cv_host=$ac_cv_build
1931else
Jeremy White0ebeb532006-06-20 13:18:41 +02001932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001936fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001937
1938fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001939{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940echo "${ECHO_T}$ac_cv_host" >&6; }
1941case $ac_cv_host in
1942*-*-*) ;;
1943*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944echo "$as_me: error: invalid value of canonical host" >&2;}
1945 { (exit 1); exit 1; }; };;
1946esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001948ac_save_IFS=$IFS; IFS='-'
1949set x $ac_cv_host
1950shift
1951host_cpu=$1
1952host_vendor=$2
1953shift; shift
1954# Remember, the first character of IFS is used to create $*,
1955# except with old shells:
1956host_os=$*
1957IFS=$ac_save_IFS
1958case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001959
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001960
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001961case $host in
1962 x86_64*linux*)
1963 if test "x$enable_win64" != "xyes"
1964 then
1965 test -n "$CC" || CC="gcc -m32"
1966 test -n "$LD" || LD="ld -m elf_i386"
1967 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001968 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001969 fi
1970 ;;
1971esac
1972
Alexandre Julliard71440f32005-05-19 14:28:17 +00001973case $host_cpu in
1974 *i[3456789]86*)
1975 if test "x$enable_win16" != "xno"
1976 then
1977 enable_win16="yes"
1978 fi
1979 ;;
1980esac
1981
1982WIN16_FILES="\$(WIN16_FILES)"
1983
1984WIN16_INSTALL="\$(WIN16_INSTALL)"
1985
1986if test "x$enable_win16" != "xyes"
1987then
1988 WIN16_FILES=""
1989 WIN16_INSTALL=""
1990fi
1991
1992
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001993{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1994echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02001995set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001996if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001999 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002000SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002001all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002002 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002003_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002004# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002005case `${MAKE-make} -f conftest.make 2>/dev/null` in
2006 *@@@%%%=?*=@@@%%%*)
2007 eval ac_cv_prog_make_${ac_make}_set=yes;;
2008 *)
2009 eval ac_cv_prog_make_${ac_make}_set=no;;
2010esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002011rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002012fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002013if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002014 { echo "$as_me:$LINENO: result: yes" >&5
2015echo "${ECHO_T}yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002016 SET_MAKE=
2017else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002018 { echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002020 SET_MAKE="MAKE=${MAKE-make}"
2021fi
2022
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002033if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002035else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002051done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002052IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002053
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002054fi
2055fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002056CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002057if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002058 { echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002060else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002063fi
2064
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002065
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002066fi
2067if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070set dummy gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002091done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002092IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002101 { echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002103fi
2104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109yes:)
2110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&5
2113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116ac_tool_warned=yes ;;
2117esac
2118 CC=$ac_ct_CC
2119 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002120else
2121 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002122fi
2123
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002124if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002127set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002130if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002132else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002148done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002149IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002155 { echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002158 { echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002160fi
2161
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002162
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002163 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002164fi
2165if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167set dummy cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002170if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002176 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2187 fi
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002193done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002194IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002195
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002196if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2199 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002200 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2204 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002206 fi
2207fi
2208fi
2209fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002210CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002211if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002212 { echo "$as_me:$LINENO: result: $CC" >&5
2213echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002214else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002215 { echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002217fi
2218
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002219
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002220fi
2221if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002223 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002224 do
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002247done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002248IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002249
Eric Pouech18ad24a2000-01-16 22:16:33 +00002250fi
2251fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002252CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00002253if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002254 { echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002256else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002257 { echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002259fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002260
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002261
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002262 test -n "$CC" && break
2263 done
2264fi
2265if test -z "$CC"; then
2266 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002267 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002268do
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
2289 fi
2290done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002291done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002292IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002293
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301 { echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002303fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002304
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002305
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002306 test -n "$ac_ct_CC" && break
2307done
Eric Pouech18ad24a2000-01-16 22:16:33 +00002308
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313yes:)
2314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315whose name does not start with the host triplet. If you think this
2316configuration is useful to you, please write to autoconf@gnu.org." >&5
2317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318whose name does not start with the host triplet. If you think this
2319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320ac_tool_warned=yes ;;
2321esac
2322 CC=$ac_ct_CC
2323 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002324fi
2325
2326fi
2327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002328
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002329test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: no acceptable C compiler found in \$PATH
2332See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002333 { (exit 1); exit 1; }; }
2334
2335# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002336echo "$as_me:$LINENO: checking for C compiler version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02002338{ (ac_try="$ac_compiler --version >&5"
2339case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342esac
2343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002345 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002347 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02002348{ (ac_try="$ac_compiler -v >&5"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002355 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002357 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02002358{ (ac_try="$ac_compiler -V >&5"
2359case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362esac
2363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367 (exit $ac_status); }
2368
2369cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00002375
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002376int
2377main ()
2378{
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384ac_clean_files_save=$ac_clean_files
Jeremy White0ebeb532006-06-20 13:18:41 +02002385ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386# Try to create an executable without -o first, disregard a.out.
2387# It will help us diagnose broken compilers, and finding out an intuition
2388# of exeext.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002389{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Jeremy White0ebeb532006-06-20 13:18:41 +02002392#
2393# List of possible output files, starting from the most likely.
2394# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395# only as a last resort. b.out is created by i960 compilers.
2396ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397#
2398# The IRIX 6 linker writes into existing files which may not be
2399# executable, retaining their permissions. Remove them first so a
2400# subsequent execution test works.
2401ac_rmfiles=
2402for ac_file in $ac_files
2403do
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407 esac
2408done
2409rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002410
Jeremy White0ebeb532006-06-20 13:18:41 +02002411if { (ac_try="$ac_link_default"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002418 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002420 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423# in a Makefile. We should not override ac_cv_exeext if it was cached,
2424# so that the user can short-circuit this test for compilers unknown to
2425# Autoconf.
2426for ac_file in $ac_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002427do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002428 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 case $ac_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
2437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 then :; else
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 fi
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2445 # actually working.
2446 break;;
2447 * )
2448 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002449 esac
2450done
Jeremy White0ebeb532006-06-20 13:18:41 +02002451test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002452
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002453else
2454 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002455sed 's/^/| /' conftest.$ac_ext >&5
2456
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002457{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002458See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002459echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002460See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002461 { (exit 77); exit 77; }; }
2462fi
2463
Jeremy White0ebeb532006-06-20 13:18:41 +02002464ac_exeext=$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002465{ echo "$as_me:$LINENO: result: $ac_file" >&5
2466echo "${ECHO_T}$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002467
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002468# Check that the compiler produces executables we can run. If not, either
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002469# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002470{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2471echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002472# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2473# If not cross compiling, check that we can run a simple program.
2474if test "$cross_compiling" != yes; then
2475 if { ac_try='./$ac_file'
Jeremy White0ebeb532006-06-20 13:18:41 +02002476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002482 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002484 (exit $ac_status); }; }; then
2485 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002486 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002487 if test "$cross_compiling" = maybe; then
2488 cross_compiling=yes
2489 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002490 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002491If you meant to cross compile, use \`--host'.
2492See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002493echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002494If you meant to cross compile, use \`--host'.
2495See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002496 { (exit 1); exit 1; }; }
2497 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002498 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002500{ echo "$as_me:$LINENO: result: yes" >&5
2501echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002502
Jeremy White0ebeb532006-06-20 13:18:41 +02002503rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504ac_clean_files=$ac_clean_files_save
2505# Check that the compiler produces executables we can run. If not, either
2506# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002507{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2509{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510echo "${ECHO_T}$cross_compiling" >&6; }
2511
2512{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002514if { (ac_try="$ac_link"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002521 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002523 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002524 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2525# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2526# work properly (i.e., refer to `conftest.exe'), while it won't with
2527# `rm'.
2528for ac_file in conftest.exe conftest conftest.*; do
2529 test -f "$ac_file" || continue
2530 case $ac_file in
2531 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2532 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2533 break;;
2534 * ) break;;
2535 esac
2536done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002537else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002538 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2539See \`config.log' for more details." >&5
2540echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2541See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002542 { (exit 1); exit 1; }; }
2543fi
2544
Jeremy White0ebeb532006-06-20 13:18:41 +02002545rm -f conftest$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002546{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2547echo "${ECHO_T}$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002548
2549rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002550EXEEXT=$ac_cv_exeext
2551ac_exeext=$EXEEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002552{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2553echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002554if test "${ac_cv_objext+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
Jeremy White0ebeb532006-06-20 13:18:41 +02002557 cat >conftest.$ac_ext <<_ACEOF
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563
2564int
2565main ()
2566{
2567
2568 ;
2569 return 0;
2570}
2571_ACEOF
2572rm -f conftest.o conftest.obj
2573if { (ac_try="$ac_compile"
2574case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577esac
2578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002580 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002582 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002583 for ac_file in conftest.o conftest.obj conftest.*; do
2584 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002585 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2588 break;;
2589 esac
2590done
2591else
2592 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002593sed 's/^/| /' conftest.$ac_ext >&5
2594
2595{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2596See \`config.log' for more details." >&5
2597echo "$as_me: error: cannot compute suffix of object files: cannot compile
2598See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002599 { (exit 1); exit 1; }; }
2600fi
2601
Jeremy White0ebeb532006-06-20 13:18:41 +02002602rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002604{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2605echo "${ECHO_T}$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002606OBJEXT=$ac_cv_objext
2607ac_objext=$OBJEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002608{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2609echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002610if test "${ac_cv_c_compiler_gnu+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002614/* confdefs.h. */
2615_ACEOF
2616cat confdefs.h >>conftest.$ac_ext
2617cat >>conftest.$ac_ext <<_ACEOF
2618/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002619
2620int
2621main ()
2622{
2623#ifndef __GNUC__
2624 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002625#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002626
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002627 ;
2628 return 0;
2629}
2630_ACEOF
2631rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002632if { (ac_try="$ac_compile"
2633case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636esac
2637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002639 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002644 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2646 { (case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649esac
2650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659esac
2660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002662 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002664 (exit $ac_status); }; }; then
2665 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002666else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002667 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002670 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002671fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002672
Jeremy White0ebeb532006-06-20 13:18:41 +02002673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002674ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002675
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002676fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002677{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2678echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002679GCC=`test $ac_compiler_gnu = yes && echo yes`
2680ac_test_CFLAGS=${CFLAGS+set}
2681ac_save_CFLAGS=$CFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002682{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002684if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002686else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002687 ac_save_c_werror_flag=$ac_c_werror_flag
2688 ac_c_werror_flag=yes
2689 ac_cv_prog_cc_g=no
2690 CFLAGS="-g"
2691 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002692/* confdefs.h. */
2693_ACEOF
2694cat confdefs.h >>conftest.$ac_ext
2695cat >>conftest.$ac_ext <<_ACEOF
2696/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002697
2698int
2699main ()
2700{
2701
2702 ;
2703 return 0;
2704}
2705_ACEOF
2706rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002707if { (ac_try="$ac_compile"
2708case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711esac
2712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002714 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002719 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2721 { (case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724esac
2725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
2735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002737 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002739 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002740 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002741else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002742 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002743sed 's/^/| /' conftest.$ac_ext >&5
2744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002745 CFLAGS=""
2746 cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h. */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h. */
2752
2753int
2754main ()
2755{
2756
2757 ;
2758 return 0;
2759}
2760_ACEOF
2761rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002762if { (ac_try="$ac_compile"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2776 { (case "(($ac_try" in
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2779esac
2780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; } &&
2785 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002786 { (case "(($ac_try" in
2787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2788 *) ac_try_echo=$ac_try;;
2789esac
2790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2791 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; }; then
2795 :
2796else
2797 echo "$as_me: failed program was:" >&5
2798sed 's/^/| /' conftest.$ac_ext >&5
2799
2800 ac_c_werror_flag=$ac_save_c_werror_flag
2801 CFLAGS="-g"
2802 cat >conftest.$ac_ext <<_ACEOF
2803/* confdefs.h. */
2804_ACEOF
2805cat confdefs.h >>conftest.$ac_ext
2806cat >>conftest.$ac_ext <<_ACEOF
2807/* end confdefs.h. */
2808
2809int
2810main ()
2811{
2812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002818if { (ac_try="$ac_compile"
2819case "(($ac_try" in
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2822esac
2823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002825 ac_status=$?
2826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2832 { (case "(($ac_try" in
2833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834 *) ac_try_echo=$ac_try;;
2835esac
2836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }; } &&
2841 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845esac
2846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2851 ac_cv_prog_cc_g=yes
2852else
2853 echo "$as_me: failed program was:" >&5
2854sed 's/^/| /' conftest.$ac_ext >&5
2855
2856
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002857fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002858
Jeremy White0ebeb532006-06-20 13:18:41 +02002859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002860fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002861
Jeremy White0ebeb532006-06-20 13:18:41 +02002862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002863fi
2864
Jeremy White0ebeb532006-06-20 13:18:41 +02002865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002866 ac_c_werror_flag=$ac_save_c_werror_flag
2867fi
2868{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2869echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002870if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002871 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002872elif test $ac_cv_prog_cc_g = yes; then
2873 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002874 CFLAGS="-g -O2"
2875 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002876 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002877 fi
2878else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002879 if test "$GCC" = yes; then
2880 CFLAGS="-O2"
2881 else
2882 CFLAGS=
2883 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002884fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002885{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2886echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2887if test "${ac_cv_prog_cc_c89+set}" = set; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002888 echo $ECHO_N "(cached) $ECHO_C" >&6
2889else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002890 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002891ac_save_CC=$CC
2892cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002893/* confdefs.h. */
2894_ACEOF
2895cat confdefs.h >>conftest.$ac_ext
2896cat >>conftest.$ac_ext <<_ACEOF
2897/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002898#include <stdarg.h>
2899#include <stdio.h>
2900#include <sys/types.h>
2901#include <sys/stat.h>
2902/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2903struct buf { int x; };
2904FILE * (*rcsopen) (struct buf *, struct stat *, int);
2905static char *e (p, i)
2906 char **p;
2907 int i;
2908{
2909 return p[i];
2910}
2911static char *f (char * (*g) (char **, int), char **p, ...)
2912{
2913 char *s;
2914 va_list v;
2915 va_start (v,p);
2916 s = g (p, va_arg (v,int));
2917 va_end (v);
2918 return s;
2919}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002920
2921/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2922 function prototypes and stuff, but not '\xHH' hex character constants.
2923 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002924 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00002925 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2926 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002927 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00002928int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2929
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02002930/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2931 inside strings and character constants. */
2932#define FOO(x) 'x'
2933int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2934
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002935int test (int i, double x);
2936struct s1 {int (*f) (int a);};
2937struct s2 {int (*f) (double a);};
2938int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2939int argc;
2940char **argv;
2941int
2942main ()
2943{
2944return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2945 ;
2946 return 0;
2947}
2948_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002949for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2950 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002951do
2952 CC="$ac_save_CC $ac_arg"
2953 rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002954if { (ac_try="$ac_compile"
2955case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958esac
2959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002961 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2968 { (case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002978 { (case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981esac
2982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2983 (eval "$ac_try") 2>&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002984 ac_status=$?
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002987 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002988else
2989 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002990sed 's/^/| /' conftest.$ac_ext >&5
2991
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002992
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002993fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002994
Jeremy White0ebeb532006-06-20 13:18:41 +02002995rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002996 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002997done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002998rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002999CC=$ac_save_CC
3000
3001fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003002# AC_CACHE_VAL
3003case "x$ac_cv_prog_cc_c89" in
3004 x)
3005 { echo "$as_me:$LINENO: result: none needed" >&5
3006echo "${ECHO_T}none needed" >&6; } ;;
3007 xno)
3008 { echo "$as_me:$LINENO: result: unsupported" >&5
3009echo "${ECHO_T}unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003010 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003011 CC="$CC $ac_cv_prog_cc_c89"
3012 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003014esac
3015
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003016
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003023ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003024ac_cpp='$CXXCPP $CPPFLAGS'
3025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003028if test -z "$CXX"; then
3029 if test -n "$CCC"; then
3030 CXX=$CCC
3031 else
3032 if test -n "$ac_tool_prefix"; then
3033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003034 do
3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003039if test "${ac_cv_prog_CXX+set}" = set; then
3040 echo $ECHO_N "(cached) $ECHO_C" >&6
3041else
3042 if test -n "$CXX"; then
3043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044else
3045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046for as_dir in $PATH
3047do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056done
3057done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003058IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003059
3060fi
3061fi
3062CXX=$ac_cv_prog_CXX
3063if test -n "$CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003064 { echo "$as_me:$LINENO: result: $CXX" >&5
3065echo "${ECHO_T}$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003066else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003067 { echo "$as_me:$LINENO: result: no" >&5
3068echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003069fi
3070
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003071
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003072 test -n "$CXX" && break
3073 done
3074fi
3075if test -z "$CXX"; then
3076 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003078do
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003083if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 if test -n "$ac_ct_CXX"; then
3087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003096 ac_cv_prog_ac_ct_CXX="$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003102IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003103
3104fi
3105fi
3106ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107if test -n "$ac_ct_CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003108 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003110else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003111 { echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003113fi
3114
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003115
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003116 test -n "$ac_ct_CXX" && break
3117done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003119 if test "x$ac_ct_CXX" = x; then
3120 CXX="g++"
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123yes:)
3124{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3125whose name does not start with the host triplet. If you think this
3126configuration is useful to you, please write to autoconf@gnu.org." >&5
3127echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3128whose name does not start with the host triplet. If you think this
3129configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3130ac_tool_warned=yes ;;
3131esac
3132 CXX=$ac_ct_CXX
3133 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003134fi
3135
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003136 fi
3137fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003138# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003139echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003140ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02003141{ (ac_try="$ac_compiler --version >&5"
3142case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3145esac
3146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_compiler --version >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003148 ac_status=$?
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003151{ (ac_try="$ac_compiler -v >&5"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_compiler -v >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003161{ (ac_try="$ac_compiler -V >&5"
3162case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165esac
3166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_compiler -V >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003168 ac_status=$?
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3171
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003172{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003174if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183
3184int
3185main ()
3186{
3187#ifndef __GNUC__
3188 choke me
3189#endif
3190
3191 ;
3192 return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003196if { (ac_try="$ac_compile"
3197case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200esac
3201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3210 { (case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213esac
3214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003216 ac_status=$?
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; } &&
3219 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003220 { (case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223esac
3224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_compiler_gnu=yes
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003234 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003235fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003236
Jeremy White0ebeb532006-06-20 13:18:41 +02003237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003238ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3239
3240fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003241{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3242echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003243GXX=`test $ac_compiler_gnu = yes && echo yes`
3244ac_test_CXXFLAGS=${CXXFLAGS+set}
3245ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003246{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3247echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003248if test "${ac_cv_prog_cxx_g+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003251 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3252 ac_cxx_werror_flag=yes
3253 ac_cv_prog_cxx_g=no
3254 CXXFLAGS="-g"
3255 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003256/* confdefs.h. */
3257_ACEOF
3258cat confdefs.h >>conftest.$ac_ext
3259cat >>conftest.$ac_ext <<_ACEOF
3260/* end confdefs.h. */
3261
3262int
3263main ()
3264{
3265
3266 ;
3267 return 0;
3268}
3269_ACEOF
3270rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003271if { (ac_try="$ac_compile"
3272case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003278 ac_status=$?
3279 grep -v '^ *+' conftest.er1 >conftest.err
3280 rm -f conftest.er1
3281 cat conftest.err >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3285 { (case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288esac
3289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003291 ac_status=$?
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); }; } &&
3294 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003295 { (case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
3299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003301 ac_status=$?
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; }; then
3304 ac_cv_prog_cxx_g=yes
3305else
3306 echo "$as_me: failed program was:" >&5
3307sed 's/^/| /' conftest.$ac_ext >&5
3308
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003309 CXXFLAGS=""
3310 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003316
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003317int
3318main ()
3319{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003320
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003321 ;
3322 return 0;
3323}
3324_ACEOF
3325rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003326if { (ac_try="$ac_compile"
3327case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330esac
3331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003333 ac_status=$?
3334 grep -v '^ *+' conftest.er1 >conftest.err
3335 rm -f conftest.er1
3336 cat conftest.err >&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343esac
3344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; } &&
3349 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003350 { (case "(($ac_try" in
3351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352 *) ac_try_echo=$ac_try;;
3353esac
3354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3355 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; }; then
3359 :
3360else
3361 echo "$as_me: failed program was:" >&5
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003364 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3365 CXXFLAGS="-g"
3366 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003367/* confdefs.h. */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003372
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003373int
3374main ()
3375{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003376
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003377 ;
3378 return 0;
3379}
3380_ACEOF
3381rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003382if { (ac_try="$ac_compile"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386esac
3387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003389 ac_status=$?
3390 grep -v '^ *+' conftest.er1 >conftest.err
3391 rm -f conftest.er1
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003395 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3396 { (case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399esac
3400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3401 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003406 { (case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409esac
3410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003412 ac_status=$?
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003415 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003416else
3417 echo "$as_me: failed program was:" >&5
3418sed 's/^/| /' conftest.$ac_ext >&5
3419
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003420
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003421fi
3422
Jeremy White0ebeb532006-06-20 13:18:41 +02003423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003424fi
3425
Jeremy White0ebeb532006-06-20 13:18:41 +02003426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003427fi
3428
Jeremy White0ebeb532006-06-20 13:18:41 +02003429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003430 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3431fi
3432{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3433echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3434if test "$ac_test_CXXFLAGS" = set; then
3435 CXXFLAGS=$ac_save_CXXFLAGS
3436elif test $ac_cv_prog_cxx_g = yes; then
3437 if test "$GXX" = yes; then
3438 CXXFLAGS="-g -O2"
3439 else
3440 CXXFLAGS="-g"
3441 fi
3442else
3443 if test "$GXX" = yes; then
3444 CXXFLAGS="-O2"
3445 else
3446 CXXFLAGS=
3447 fi
3448fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003455if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3457set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003460if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003463 if test -n "$CPPBIN"; then
3464 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003465else
3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467for as_dir in $PATH
3468do
3469 IFS=$as_save_IFS
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003473 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477done
3478done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003479IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003480
3481fi
3482fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003483CPPBIN=$ac_cv_prog_CPPBIN
3484if test -n "$CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003485 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3486echo "${ECHO_T}$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003487else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003488 { echo "$as_me:$LINENO: result: no" >&5
3489echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003490fi
3491
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003492
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003493fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003494if test -z "$ac_cv_prog_CPPBIN"; then
3495 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003496 # Extract the first word of "cpp", so it can be a program name with args.
3497set dummy cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003498{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003500if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003503 if test -n "$ac_ct_CPPBIN"; then
3504 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003513 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
3516 fi
3517done
3518done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003519IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003520
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003521fi
3522fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003523ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3524if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003525 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3526echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003527else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003528 { echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003530fi
3531
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003532 if test "x$ac_ct_CPPBIN" = x; then
3533 CPPBIN="cpp"
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536yes:)
3537{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3538whose name does not start with the host triplet. If you think this
3539configuration is useful to you, please write to autoconf@gnu.org." >&5
3540echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3541whose name does not start with the host triplet. If you think this
3542configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3543ac_tool_warned=yes ;;
3544esac
3545 CPPBIN=$ac_ct_CPPBIN
3546 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003547else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003548 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003549fi
3550
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003551
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003552{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3553echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003554if test "${wine_cv_toolsdir+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556else
3557 if test -z "$with_wine_tools"; then
3558 if test "$cross_compiling" = "yes"; then
3559 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3560echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3561 { (exit 1); exit 1; }; }
3562 else
3563 wine_cv_toolsdir="\$(TOPOBJDIR)"
3564 fi
3565 elif test -d "$with_wine_tools/tools/winebuild"; then
3566 case $with_wine_tools in
3567 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3568 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3569 esac
3570 else
3571 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3572echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3573 { (exit 1); exit 1; }; }
3574 fi
3575fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003576{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3577echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003578TOOLSDIR=$wine_cv_toolsdir
3579
3580
3581
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003582ac_ext=c
3583ac_cpp='$CPP $CPPFLAGS'
3584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003587{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3588echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003589# On Suns, sometimes $CPP names a directory.
3590if test -n "$CPP" && test -d "$CPP"; then
3591 CPP=
3592fi
3593if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003594 if test "${ac_cv_prog_CPP+set}" = set; then
3595 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003596else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003597 # Double quotes because CPP needs to be expanded
3598 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3599 do
3600 ac_preproc_ok=false
3601for ac_c_preproc_warn_flag in '' yes
3602do
3603 # Use a header file that comes with gcc, so configuring glibc
3604 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003605 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3606 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003607 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003608 # not just through cpp. "Syntax error" is here to catch this case.
3609 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003610/* confdefs.h. */
3611_ACEOF
3612cat confdefs.h >>conftest.$ac_ext
3613cat >>conftest.$ac_ext <<_ACEOF
3614/* end confdefs.h. */
3615#ifdef __STDC__
3616# include <limits.h>
3617#else
3618# include <assert.h>
3619#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003620 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003621_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003622if { (ac_try="$ac_cpp conftest.$ac_ext"
3623case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626esac
3627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003629 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003630 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003631 rm -f conftest.er1
3632 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003634 (exit $ac_status); } >/dev/null; then
3635 if test -s conftest.err; then
3636 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003638 else
3639 ac_cpp_err=
3640 fi
3641else
3642 ac_cpp_err=yes
3643fi
3644if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003645 :
3646else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003647 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003648sed 's/^/| /' conftest.$ac_ext >&5
3649
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650 # Broken: fails on valid input.
3651continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003652fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003653
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003654rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003655
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003656 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003657 # can be detected and how.
3658 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664#include <ac_nonexistent.h>
3665_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003666if { (ac_try="$ac_cpp conftest.$ac_ext"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003674 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675 rm -f conftest.er1
3676 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003678 (exit $ac_status); } >/dev/null; then
3679 if test -s conftest.err; then
3680 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003681 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003682 else
3683 ac_cpp_err=
3684 fi
3685else
3686 ac_cpp_err=yes
3687fi
3688if test -z "$ac_cpp_err"; then
3689 # Broken: success on invalid input.
3690continue
3691else
3692 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003693sed 's/^/| /' conftest.$ac_ext >&5
3694
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003695 # Passes both tests.
3696ac_preproc_ok=:
3697break
3698fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003699
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003700rm -f conftest.err conftest.$ac_ext
3701
3702done
3703# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3704rm -f conftest.err conftest.$ac_ext
3705if $ac_preproc_ok; then
3706 break
3707fi
3708
3709 done
3710 ac_cv_prog_CPP=$CPP
3711
3712fi
3713 CPP=$ac_cv_prog_CPP
3714else
3715 ac_cv_prog_CPP=$CPP
3716fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003717{ echo "$as_me:$LINENO: result: $CPP" >&5
3718echo "${ECHO_T}$CPP" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003719ac_preproc_ok=false
3720for ac_c_preproc_warn_flag in '' yes
3721do
3722 # Use a header file that comes with gcc, so configuring glibc
3723 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003724 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3725 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003726 # On the NeXT, cc -E runs the code through the compiler's parser,
3727 # not just through cpp. "Syntax error" is here to catch this case.
3728 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003729/* confdefs.h. */
3730_ACEOF
3731cat confdefs.h >>conftest.$ac_ext
3732cat >>conftest.$ac_ext <<_ACEOF
3733/* end confdefs.h. */
3734#ifdef __STDC__
3735# include <limits.h>
3736#else
3737# include <assert.h>
3738#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003739 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003741if { (ac_try="$ac_cpp conftest.$ac_ext"
3742case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745esac
3746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003748 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003749 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003750 rm -f conftest.er1
3751 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003753 (exit $ac_status); } >/dev/null; then
3754 if test -s conftest.err; then
3755 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003757 else
3758 ac_cpp_err=
3759 fi
3760else
3761 ac_cpp_err=yes
3762fi
3763if test -z "$ac_cpp_err"; then
3764 :
3765else
3766 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003767sed 's/^/| /' conftest.$ac_ext >&5
3768
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003769 # Broken: fails on valid input.
3770continue
3771fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003772
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003773rm -f conftest.err conftest.$ac_ext
3774
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003775 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776 # can be detected and how.
3777 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003778/* confdefs.h. */
3779_ACEOF
3780cat confdefs.h >>conftest.$ac_ext
3781cat >>conftest.$ac_ext <<_ACEOF
3782/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003783#include <ac_nonexistent.h>
3784_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003785if { (ac_try="$ac_cpp conftest.$ac_ext"
3786case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003792 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003793 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 rm -f conftest.er1
3795 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 (exit $ac_status); } >/dev/null; then
3798 if test -s conftest.err; then
3799 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003801 else
3802 ac_cpp_err=
3803 fi
3804else
3805 ac_cpp_err=yes
3806fi
3807if test -z "$ac_cpp_err"; then
3808 # Broken: success on invalid input.
3809continue
3810else
3811 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003812sed 's/^/| /' conftest.$ac_ext >&5
3813
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003814 # Passes both tests.
3815ac_preproc_ok=:
3816break
3817fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003818
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003819rm -f conftest.err conftest.$ac_ext
3820
3821done
3822# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823rm -f conftest.err conftest.$ac_ext
3824if $ac_preproc_ok; then
3825 :
3826else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003827 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3828See \`config.log' for more details." >&5
3829echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3830See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003831 { (exit 1); exit 1; }; }
3832fi
3833
3834ac_ext=c
3835ac_cpp='$CPP $CPPFLAGS'
3836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3838ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003840
Jeremy White0ebeb532006-06-20 13:18:41 +02003841{ echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003842echo $ECHO_N "checking for X... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003843
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003845# Check whether --with-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003846if test "${with_x+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003847 withval=$with_x;
3848fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003849
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003850# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003851if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003852 # The user explicitly disabled X.
3853 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003854else
Jeremy White0ebeb532006-06-20 13:18:41 +02003855 case $x_includes,$x_libraries in #(
3856 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3857echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3858 { (exit 1); exit 1; }; };; #(
3859 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003860 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003861else
3862 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863ac_x_includes=no ac_x_libraries=no
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003864rm -f -r conftest.dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003865if mkdir conftest.dir; then
3866 cd conftest.dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003867 cat >Imakefile <<'_ACEOF'
Jeremy White0ebeb532006-06-20 13:18:41 +02003868incroot:
3869 @echo incroot='${INCROOT}'
3870usrlibdir:
3871 @echo usrlibdir='${USRLIBDIR}'
3872libdir:
3873 @echo libdir='${LIBDIR}'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003875 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02003877 for ac_var in incroot usrlibdir libdir; do
3878 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3879 done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003880 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3881 for ac_extension in a so sl; do
Jeremy White0ebeb532006-06-20 13:18:41 +02003882 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3883 test -f "$ac_im_libdir/libX11.$ac_extension"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003884 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003885 fi
3886 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003887 # Screen out bogus values from the imake configuration. They are
3888 # bogus both because they are the default anyway, and because
3889 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003890 case $ac_im_incroot in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003891 /usr/include) ac_x_includes= ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003892 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003893 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003894 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003895 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003896 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003897 esac
3898 fi
3899 cd ..
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003900 rm -f -r conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003901fi
3902
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003903# Standard set of common directories for X headers.
3904# Check X11 before X11Rn because it is often a symlink to the current release.
3905ac_x_header_dirs='
3906/usr/X11/include
3907/usr/X11R6/include
3908/usr/X11R5/include
3909/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003910
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003911/usr/include/X11
3912/usr/include/X11R6
3913/usr/include/X11R5
3914/usr/include/X11R4
3915
3916/usr/local/X11/include
3917/usr/local/X11R6/include
3918/usr/local/X11R5/include
3919/usr/local/X11R4/include
3920
3921/usr/local/include/X11
3922/usr/local/include/X11R6
3923/usr/local/include/X11R5
3924/usr/local/include/X11R4
3925
3926/usr/X386/include
3927/usr/x386/include
3928/usr/XFree86/include/X11
3929
3930/usr/include
3931/usr/local/include
3932/usr/unsupported/include
3933/usr/athena/include
3934/usr/local/x11r5/include
3935/usr/lpp/Xamples/include
3936
3937/usr/openwin/include
3938/usr/openwin/share/include'
3939
3940if test "$ac_x_includes" = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003941 # Guess where to find include files, by looking for Xlib.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003942 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003943 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003944/* confdefs.h. */
3945_ACEOF
3946cat confdefs.h >>conftest.$ac_ext
3947cat >>conftest.$ac_ext <<_ACEOF
3948/* end confdefs.h. */
Jeremy White0ebeb532006-06-20 13:18:41 +02003949#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003950_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003951if { (ac_try="$ac_cpp conftest.$ac_ext"
3952case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955esac
3956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003958 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003959 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003960 rm -f conftest.er1
3961 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003963 (exit $ac_status); } >/dev/null; then
3964 if test -s conftest.err; then
3965 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003966 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967 else
3968 ac_cpp_err=
3969 fi
3970else
3971 ac_cpp_err=yes
3972fi
3973if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003974 # We can compile using X headers with no special include directory.
3975ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003976else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003977 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003978sed 's/^/| /' conftest.$ac_ext >&5
3979
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003980 for ac_dir in $ac_x_header_dirs; do
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003981 if test -r "$ac_dir/X11/Xlib.h"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003982 ac_x_includes=$ac_dir
3983 break
3984 fi
3985done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003986fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003987
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003988rm -f conftest.err conftest.$ac_ext
3989fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003990
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003991if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003992 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003993 # See if we find them without any special options.
3994 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003995 ac_save_LIBS=$LIBS
Alexandre Julliardd01063e2006-06-22 12:07:57 +02003996 LIBS="-lX11 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003997 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004003#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004004int
4005main ()
4006{
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004007XrmInitialize ()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004013if { (ac_try="$ac_link"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004020 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004025 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4027 { (case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030esac
4031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4032 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004037 { (case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040esac
4041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4042 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004043 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004045 (exit $ac_status); }; }; then
4046 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004047# We can link X programs with no special library path.
4048ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004049else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004050 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004051sed 's/^/| /' conftest.$ac_ext >&5
4052
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004053 LIBS=$ac_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004054for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004055do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004056 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004057 for ac_extension in a so sl; do
Alexandre Julliardd01063e2006-06-22 12:07:57 +02004058 if test -r "$ac_dir/libX11.$ac_extension"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004059 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004060 break 2
4061 fi
4062 done
4063done
4064fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004065
Jeremy White0ebeb532006-06-20 13:18:41 +02004066rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004067 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004068fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004069
Jeremy White0ebeb532006-06-20 13:18:41 +02004070case $ac_x_includes,$ac_x_libraries in #(
4071 no,* | *,no | *\'*)
4072 # Didn't find X, or a directory has "'" in its name.
4073 ac_cv_have_x="have_x=no";; #(
4074 *)
4075 # Record where we found X for the cache.
4076 ac_cv_have_x="have_x=yes\
4077 ac_x_includes='$ac_x_includes'\
4078 ac_x_libraries='$ac_x_libraries'"
4079esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004080fi
Jeremy White0ebeb532006-06-20 13:18:41 +02004081;; #(
4082 *) have_x=yes;;
4083 esac
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004084 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004085fi # $with_x != no
4086
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004087if test "$have_x" != yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004088 { echo "$as_me:$LINENO: result: $have_x" >&5
4089echo "${ECHO_T}$have_x" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004090 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004091else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004092 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004093 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4094 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004095 # Update the cache value to reflect the command line values.
Jeremy White0ebeb532006-06-20 13:18:41 +02004096 ac_cv_have_x="have_x=yes\
4097 ac_x_includes='$x_includes'\
4098 ac_x_libraries='$x_libraries'"
4099 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4100echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004101fi
4102
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004103if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004104 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004105
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004106cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004107#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004108_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004109
4110 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004111else
4112 if test -n "$x_includes"; then
4113 X_CFLAGS="$X_CFLAGS -I$x_includes"
4114 fi
4115
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004116 # It would also be nice to do this for all -L options, not just this one.
4117 if test -n "$x_libraries"; then
4118 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004119 # For Solaris; some versions of Sun CC require a space after -R and
4120 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004121 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004122 "SunOS 5"*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004123 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
4124echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004125 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4126 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004127/* confdefs.h. */
4128_ACEOF
4129cat confdefs.h >>conftest.$ac_ext
4130cat >>conftest.$ac_ext <<_ACEOF
4131/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004133int
4134main ()
4135{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004136
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004137 ;
4138 return 0;
4139}
4140_ACEOF
4141rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004142if { (ac_try="$ac_link"
4143case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146esac
4147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004149 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004154 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4159esac
4160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004162 ac_status=$?
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; } &&
4165 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004166 { (case "(($ac_try" in
4167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168 *) ac_try_echo=$ac_try;;
4169esac
4170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4171 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004172 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004174 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004175 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004176else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004177 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004178sed 's/^/| /' conftest.$ac_ext >&5
4179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004180 ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004181fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004182
Jeremy White0ebeb532006-06-20 13:18:41 +02004183rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004184 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004185 if test $ac_R_nospace = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004186 { echo "$as_me:$LINENO: result: no" >&5
4187echo "${ECHO_T}no" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004188 X_LIBS="$X_LIBS -R$x_libraries"
4189 else
4190 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004192/* confdefs.h. */
4193_ACEOF
4194cat confdefs.h >>conftest.$ac_ext
4195cat >>conftest.$ac_ext <<_ACEOF
4196/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004197
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004198int
4199main ()
4200{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004201
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004202 ;
4203 return 0;
4204}
4205_ACEOF
4206rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004207if { (ac_try="$ac_link"
4208case "(($ac_try" in
4209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4210 *) ac_try_echo=$ac_try;;
4211esac
4212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4213 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004214 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004215 grep -v '^ *+' conftest.er1 >conftest.err
4216 rm -f conftest.er1
4217 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004219 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4221 { (case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4224esac
4225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004227 ac_status=$?
4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4229 (exit $ac_status); }; } &&
4230 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004231 { (case "(($ac_try" in
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4234esac
4235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004237 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004239 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004240 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004241else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004242 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004243sed 's/^/| /' conftest.$ac_ext >&5
4244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004245 ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004247
Jeremy White0ebeb532006-06-20 13:18:41 +02004248rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004249 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004250 if test $ac_R_space = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004251 { echo "$as_me:$LINENO: result: yes" >&5
4252echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004253 X_LIBS="$X_LIBS -R $x_libraries"
4254 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004255 { echo "$as_me:$LINENO: result: neither works" >&5
4256echo "${ECHO_T}neither works" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004257 fi
4258 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004259 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004260 esac
4261 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004262
4263 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004264 # Do this before checking for the system-independent R6 libraries
4265 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004266
4267 if test "$ISC" = yes; then
4268 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4269 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004270 # Martyn Johnson says this is needed for Ultrix, if the X
4271 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004272 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004273 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4274 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004275/* confdefs.h. */
4276_ACEOF
4277cat confdefs.h >>conftest.$ac_ext
4278cat >>conftest.$ac_ext <<_ACEOF
4279/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004280
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004281/* Override any GCC internal prototype to avoid an error.
4282 Use char because int might match the return type of a GCC
4283 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004284#ifdef __cplusplus
4285extern "C"
4286#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004287char XOpenDisplay ();
4288int
4289main ()
4290{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004291return XOpenDisplay ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004292 ;
4293 return 0;
4294}
4295_ACEOF
4296rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004297if { (ac_try="$ac_link"
4298case "(($ac_try" in
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4301esac
4302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004304 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004309 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4311 { (case "(($ac_try" in
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4314esac
4315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); }; } &&
4320 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004321 { (case "(($ac_try" in
4322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4324esac
4325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004327 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004329 (exit $ac_status); }; }; then
4330 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004331else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004332 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004333sed 's/^/| /' conftest.$ac_ext >&5
4334
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004335 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4336echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004337if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 ac_check_lib_save_LIBS=$LIBS
4341LIBS="-ldnet $LIBS"
4342cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004343/* confdefs.h. */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004349/* Override any GCC internal prototype to avoid an error.
4350 Use char because int might match the return type of a GCC
4351 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352#ifdef __cplusplus
4353extern "C"
4354#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004355char dnet_ntoa ();
4356int
4357main ()
4358{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004359return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004365if { (ac_try="$ac_link"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004372 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004377 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; } &&
4388 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392esac
4393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004395 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397 (exit $ac_status); }; }; then
4398 ac_cv_lib_dnet_dnet_ntoa=yes
4399else
4400 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004401sed 's/^/| /' conftest.$ac_ext >&5
4402
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004403 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004404fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004405
Jeremy White0ebeb532006-06-20 13:18:41 +02004406rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004407 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004408LIBS=$ac_check_lib_save_LIBS
4409fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004410{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4411echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004413 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004414fi
4415
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004416 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004417 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4418echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004419if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004421else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004422 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004423LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004424cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004425/* confdefs.h. */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004431/* Override any GCC internal prototype to avoid an error.
4432 Use char because int might match the return type of a GCC
4433 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004434#ifdef __cplusplus
4435extern "C"
4436#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004437char dnet_ntoa ();
4438int
4439main ()
4440{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004441return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442 ;
4443 return 0;
4444}
4445_ACEOF
4446rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004447if { (ac_try="$ac_link"
4448case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451esac
4452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004454 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004459 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4461 { (case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464esac
4465eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004467 ac_status=$?
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; } &&
4470 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004471 { (case "(($ac_try" in
4472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4473 *) ac_try_echo=$ac_try;;
4474esac
4475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004477 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004479 (exit $ac_status); }; }; then
4480 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004481else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004482 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004483sed 's/^/| /' conftest.$ac_ext >&5
4484
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004485 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004486fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004487
Jeremy White0ebeb532006-06-20 13:18:41 +02004488rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004489 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004490LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004491fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004492{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4493echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004494if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004495 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004496fi
4497
4498 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004500
Jeremy White0ebeb532006-06-20 13:18:41 +02004501rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004502 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004503 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004504
4505 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4506 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004508 # needs -lnsl.
4509 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004510 # on Irix 5.2, according to T.E. Dickey.
4511 # The functions gethostbyname, getservbyname, and inet_addr are
4512 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004513 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4514echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004515if test "${ac_cv_func_gethostbyname+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004517else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004518 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004519/* confdefs.h. */
4520_ACEOF
4521cat confdefs.h >>conftest.$ac_ext
4522cat >>conftest.$ac_ext <<_ACEOF
4523/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004524/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4526#define gethostbyname innocuous_gethostbyname
4527
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004528/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004529 which can conflict with char gethostbyname (); below.
4530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004532
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004533#ifdef __STDC__
4534# include <limits.h>
4535#else
4536# include <assert.h>
4537#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004538
4539#undef gethostbyname
4540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004541/* Override any GCC internal prototype to avoid an error.
4542 Use char because int might match the return type of a GCC
4543 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004544#ifdef __cplusplus
4545extern "C"
4546#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004547char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004548/* The GNU C library defines this for functions which it implements
4549 to always fail with ENOSYS. Some functions are actually named
4550 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004551#if defined __stub_gethostbyname || defined __stub___gethostbyname
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004552choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004553#endif
4554
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004555int
4556main ()
4557{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004558return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004559 ;
4560 return 0;
4561}
4562_ACEOF
4563rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004564if { (ac_try="$ac_link"
4565case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568esac
4569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4570 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004571 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004572 grep -v '^ *+' conftest.er1 >conftest.err
4573 rm -f conftest.er1
4574 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004576 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4578 { (case "(($ac_try" in
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4581esac
4582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; } &&
4587 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004588 { (case "(($ac_try" in
4589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590 *) ac_try_echo=$ac_try;;
4591esac
4592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004594 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004596 (exit $ac_status); }; }; then
4597 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004598else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004599 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004600sed 's/^/| /' conftest.$ac_ext >&5
4601
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004602 ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004604
Jeremy White0ebeb532006-06-20 13:18:41 +02004605rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004606 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004607fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004608{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4609echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004610
4611 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004612 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4613echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4615 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004616else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004617 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004618LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004619cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004626/* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004629#ifdef __cplusplus
4630extern "C"
4631#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004632char gethostbyname ();
4633int
4634main ()
4635{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004636return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004637 ;
4638 return 0;
4639}
4640_ACEOF
4641rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004642if { (ac_try="$ac_link"
4643case "(($ac_try" in
4644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4645 *) ac_try_echo=$ac_try;;
4646esac
4647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4648 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004649 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004654 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4656 { (case "(($ac_try" in
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4659esac
4660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4661 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004662 ac_status=$?
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; } &&
4665 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004666 { (case "(($ac_try" in
4667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4669esac
4670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4671 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004672 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004674 (exit $ac_status); }; }; then
4675 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004676else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004677 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004678sed 's/^/| /' conftest.$ac_ext >&5
4679
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004680 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004681fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004682
Jeremy White0ebeb532006-06-20 13:18:41 +02004683rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004684 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004685LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004686fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004687{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4688echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004691fi
4692
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004693 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004694 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4695echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004696if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699 ac_check_lib_save_LIBS=$LIBS
4700LIBS="-lbsd $LIBS"
4701cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004702/* confdefs.h. */
4703_ACEOF
4704cat confdefs.h >>conftest.$ac_ext
4705cat >>conftest.$ac_ext <<_ACEOF
4706/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004707
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004708/* Override any GCC internal prototype to avoid an error.
4709 Use char because int might match the return type of a GCC
4710 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004711#ifdef __cplusplus
4712extern "C"
4713#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004714char gethostbyname ();
4715int
4716main ()
4717{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004718return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004719 ;
4720 return 0;
4721}
4722_ACEOF
4723rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004724if { (ac_try="$ac_link"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004731 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4738 { (case "(($ac_try" in
4739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4741esac
4742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004744 ac_status=$?
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); }; } &&
4747 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004748 { (case "(($ac_try" in
4749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4750 *) ac_try_echo=$ac_try;;
4751esac
4752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4753 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004754 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004756 (exit $ac_status); }; }; then
4757 ac_cv_lib_bsd_gethostbyname=yes
4758else
4759 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004760sed 's/^/| /' conftest.$ac_ext >&5
4761
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004762 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004763fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004764
Jeremy White0ebeb532006-06-20 13:18:41 +02004765rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004766 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004767LIBS=$ac_check_lib_save_LIBS
4768fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004769{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4770echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004771if test $ac_cv_lib_bsd_gethostbyname = yes; then
4772 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4773fi
4774
4775 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004776 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004777
4778 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004779 # socket/setsockopt and other routines are undefined under SCO ODT
4780 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00004782 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004783 # must be given before -lnsl if both are needed. We assume that
4784 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004785 { echo "$as_me:$LINENO: checking for connect" >&5
4786echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004787if test "${ac_cv_func_connect+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004789else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004791/* confdefs.h. */
4792_ACEOF
4793cat confdefs.h >>conftest.$ac_ext
4794cat >>conftest.$ac_ext <<_ACEOF
4795/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004796/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4798#define connect innocuous_connect
4799
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004800/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004801 which can conflict with char connect (); below.
4802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4803 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004804
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004805#ifdef __STDC__
4806# include <limits.h>
4807#else
4808# include <assert.h>
4809#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004810
4811#undef connect
4812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004813/* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004816#ifdef __cplusplus
4817extern "C"
4818#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004819char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004820/* The GNU C library defines this for functions which it implements
4821 to always fail with ENOSYS. Some functions are actually named
4822 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004823#if defined __stub_connect || defined __stub___connect
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004824choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004825#endif
4826
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004827int
4828main ()
4829{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004830return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004831 ;
4832 return 0;
4833}
4834_ACEOF
4835rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004836if { (ac_try="$ac_link"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4842 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004844 grep -v '^ *+' conftest.er1 >conftest.err
4845 rm -f conftest.er1
4846 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004848 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (case "(($ac_try" in
4851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852 *) ac_try_echo=$ac_try;;
4853esac
4854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; } &&
4859 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004860 { (case "(($ac_try" in
4861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862 *) ac_try_echo=$ac_try;;
4863esac
4864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004866 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004868 (exit $ac_status); }; }; then
4869 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004870else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004871 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004874 ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004875fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004876
Jeremy White0ebeb532006-06-20 13:18:41 +02004877rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004878 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004879fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004880{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4881echo "${ECHO_T}$ac_cv_func_connect" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004882
4883 if test $ac_cv_func_connect = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004884 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4885echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004886if test "${ac_cv_lib_socket_connect+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004888else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004889 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004890LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004891cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004898/* Override any GCC internal prototype to avoid an error.
4899 Use char because int might match the return type of a GCC
4900 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004901#ifdef __cplusplus
4902extern "C"
4903#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004904char connect ();
4905int
4906main ()
4907{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004908return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004909 ;
4910 return 0;
4911}
4912_ACEOF
4913rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004914if { (ac_try="$ac_link"
4915case "(($ac_try" in
4916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4917 *) ac_try_echo=$ac_try;;
4918esac
4919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4920 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004921 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004922 grep -v '^ *+' conftest.er1 >conftest.err
4923 rm -f conftest.er1
4924 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004926 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4928 { (case "(($ac_try" in
4929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930 *) ac_try_echo=$ac_try;;
4931esac
4932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4933 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; } &&
4937 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004938 { (case "(($ac_try" in
4939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4941esac
4942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004944 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004946 (exit $ac_status); }; }; then
4947 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004948else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004949 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004950sed 's/^/| /' conftest.$ac_ext >&5
4951
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004952 ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004953fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004954
Jeremy White0ebeb532006-06-20 13:18:41 +02004955rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004956 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004957LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004958fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004959{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4960echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004961if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004962 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004963fi
4964
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004965 fi
4966
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004967 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004968 { echo "$as_me:$LINENO: checking for remove" >&5
4969echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004970if test "${ac_cv_func_remove+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004972else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004973 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004979/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4981#define remove innocuous_remove
4982
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004983/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004984 which can conflict with char remove (); below.
4985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004987
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004988#ifdef __STDC__
4989# include <limits.h>
4990#else
4991# include <assert.h>
4992#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004993
4994#undef remove
4995
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004996/* Override any GCC internal prototype to avoid an error.
4997 Use char because int might match the return type of a GCC
4998 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004999#ifdef __cplusplus
5000extern "C"
5001#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005002char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005003/* The GNU C library defines this for functions which it implements
5004 to always fail with ENOSYS. Some functions are actually named
5005 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005006#if defined __stub_remove || defined __stub___remove
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005007choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005008#endif
5009
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005010int
5011main ()
5012{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005013return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005014 ;
5015 return 0;
5016}
5017_ACEOF
5018rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005019if { (ac_try="$ac_link"
5020case "(($ac_try" in
5021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5022 *) ac_try_echo=$ac_try;;
5023esac
5024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5025 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005026 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005027 grep -v '^ *+' conftest.er1 >conftest.err
5028 rm -f conftest.er1
5029 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005031 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5033 { (case "(($ac_try" in
5034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5035 *) ac_try_echo=$ac_try;;
5036esac
5037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5038 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; } &&
5042 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005043 { (case "(($ac_try" in
5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5046esac
5047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005049 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005051 (exit $ac_status); }; }; then
5052 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005053else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005054 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005055sed 's/^/| /' conftest.$ac_ext >&5
5056
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005057 ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005058fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005059
Jeremy White0ebeb532006-06-20 13:18:41 +02005060rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005061 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005062fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005063{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5064echo "${ECHO_T}$ac_cv_func_remove" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005065
5066 if test $ac_cv_func_remove = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005067 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5068echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005069if test "${ac_cv_lib_posix_remove+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005071else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005072 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005073LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005074cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005075/* confdefs.h. */
5076_ACEOF
5077cat confdefs.h >>conftest.$ac_ext
5078cat >>conftest.$ac_ext <<_ACEOF
5079/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005080
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005081/* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005084#ifdef __cplusplus
5085extern "C"
5086#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005087char remove ();
5088int
5089main ()
5090{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005091return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005092 ;
5093 return 0;
5094}
5095_ACEOF
5096rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005097if { (ac_try="$ac_link"
5098case "(($ac_try" in
5099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5100 *) ac_try_echo=$ac_try;;
5101esac
5102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5103 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005104 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005109 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5111 { (case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114esac
5115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005117 ac_status=$?
5118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119 (exit $ac_status); }; } &&
5120 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005121 { (case "(($ac_try" in
5122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123 *) ac_try_echo=$ac_try;;
5124esac
5125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005127 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005129 (exit $ac_status); }; }; then
5130 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005131else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005132 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005133sed 's/^/| /' conftest.$ac_ext >&5
5134
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005135 ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005136fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005137
Jeremy White0ebeb532006-06-20 13:18:41 +02005138rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005139 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005140LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005141fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005142{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5143echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005144if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005146fi
5147
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005148 fi
5149
5150 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005151 { echo "$as_me:$LINENO: checking for shmat" >&5
5152echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153if test "${ac_cv_func_shmat+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005155else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005156 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005157/* confdefs.h. */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005162/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5164#define shmat innocuous_shmat
5165
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005166/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005167 which can conflict with char shmat (); below.
5168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005170
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005171#ifdef __STDC__
5172# include <limits.h>
5173#else
5174# include <assert.h>
5175#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005176
5177#undef shmat
5178
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005179/* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005182#ifdef __cplusplus
5183extern "C"
5184#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005185char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005186/* The GNU C library defines this for functions which it implements
5187 to always fail with ENOSYS. Some functions are actually named
5188 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005189#if defined __stub_shmat || defined __stub___shmat
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005190choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005191#endif
5192
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005193int
5194main ()
5195{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005196return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005197 ;
5198 return 0;
5199}
5200_ACEOF
5201rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005202if { (ac_try="$ac_link"
5203case "(($ac_try" in
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5206esac
5207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005209 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005210 grep -v '^ *+' conftest.er1 >conftest.err
5211 rm -f conftest.er1
5212 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005214 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5216 { (case "(($ac_try" in
5217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5218 *) ac_try_echo=$ac_try;;
5219esac
5220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5221 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005222 ac_status=$?
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }; } &&
5225 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005226 { (case "(($ac_try" in
5227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5228 *) ac_try_echo=$ac_try;;
5229esac
5230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5231 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005232 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005234 (exit $ac_status); }; }; then
5235 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005236else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005237 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005238sed 's/^/| /' conftest.$ac_ext >&5
5239
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005240 ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005241fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005242
Jeremy White0ebeb532006-06-20 13:18:41 +02005243rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005244 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005246{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5247echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005248
5249 if test $ac_cv_func_shmat = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005250 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5251echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005252if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005254else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005255 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005256LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005257cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005258/* confdefs.h. */
5259_ACEOF
5260cat confdefs.h >>conftest.$ac_ext
5261cat >>conftest.$ac_ext <<_ACEOF
5262/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005263
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005264/* Override any GCC internal prototype to avoid an error.
5265 Use char because int might match the return type of a GCC
5266 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267#ifdef __cplusplus
5268extern "C"
5269#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005270char shmat ();
5271int
5272main ()
5273{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005274return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005275 ;
5276 return 0;
5277}
5278_ACEOF
5279rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005280if { (ac_try="$ac_link"
5281case "(($ac_try" in
5282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5283 *) ac_try_echo=$ac_try;;
5284esac
5285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5286 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005287 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005288 grep -v '^ *+' conftest.er1 >conftest.err
5289 rm -f conftest.er1
5290 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005292 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294 { (case "(($ac_try" in
5295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5296 *) ac_try_echo=$ac_try;;
5297esac
5298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005300 ac_status=$?
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }; } &&
5303 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005304 { (case "(($ac_try" in
5305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306 *) ac_try_echo=$ac_try;;
5307esac
5308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005310 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005312 (exit $ac_status); }; }; then
5313 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005314else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005315 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005316sed 's/^/| /' conftest.$ac_ext >&5
5317
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005318 ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005320
Jeremy White0ebeb532006-06-20 13:18:41 +02005321rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005322 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005323LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005324fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005325{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5326echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005329fi
5330
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005331 fi
5332 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005333
5334 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005335 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005336 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5337 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5338 # check for ICE first), but we must link in the order -lSM -lICE or
5339 # we get undefined symbols. So assume we have SM if we have ICE.
5340 # These have to be linked with before -lX11, unlike the other
5341 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005342 # John Interrante, Karl Berry
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005343 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5344echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005345if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005347else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005348 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00005349LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005350cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005351/* confdefs.h. */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005356
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005357/* Override any GCC internal prototype to avoid an error.
5358 Use char because int might match the return type of a GCC
5359 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005360#ifdef __cplusplus
5361extern "C"
5362#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005363char IceConnectionNumber ();
5364int
5365main ()
5366{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005367return IceConnectionNumber ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005368 ;
5369 return 0;
5370}
5371_ACEOF
5372rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005373if { (ac_try="$ac_link"
5374case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377esac
5378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005380 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005381 grep -v '^ *+' conftest.er1 >conftest.err
5382 rm -f conftest.er1
5383 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005385 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5387 { (case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; } &&
5396 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005397 { (case "(($ac_try" in
5398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5399 *) ac_try_echo=$ac_try;;
5400esac
5401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005403 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005405 (exit $ac_status); }; }; then
5406 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005407else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005408 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005409sed 's/^/| /' conftest.$ac_ext >&5
5410
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005411 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005412fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005413
Jeremy White0ebeb532006-06-20 13:18:41 +02005414rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005415 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005416LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005417fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005418{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5419echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005420if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005421 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005422fi
5423
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005424 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005425
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005426fi
5427
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005428for ac_prog in flex lex
5429do
5430 # Extract the first word of "$ac_prog", so it can be a program name with args.
5431set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005432{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005434if test "${ac_cv_prog_LEX+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005436else
5437 if test -n "$LEX"; then
5438 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5439else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005447 ac_cv_prog_LEX="$ac_prog"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005452done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005453IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005454
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005455fi
5456fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005457LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005458if test -n "$LEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005459 { echo "$as_me:$LINENO: result: $LEX" >&5
5460echo "${ECHO_T}$LEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005461else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005462 { echo "$as_me:$LINENO: result: no" >&5
5463echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005464fi
5465
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005466
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005467 test -n "$LEX" && break
5468done
5469test -n "$LEX" || LEX=":"
5470
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005471if test -z "$LEXLIB"
5472then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005473 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5474echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005475if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005477else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005478 ac_check_lib_save_LIBS=$LIBS
5479LIBS="-lfl $LIBS"
5480cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005481/* confdefs.h. */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005486
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005487/* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005490#ifdef __cplusplus
5491extern "C"
5492#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005493char yywrap ();
5494int
5495main ()
5496{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005497return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005498 ;
5499 return 0;
5500}
5501_ACEOF
5502rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005503if { (ac_try="$ac_link"
5504case "(($ac_try" in
5505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5507esac
5508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005510 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005511 grep -v '^ *+' conftest.er1 >conftest.err
5512 rm -f conftest.er1
5513 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005515 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5517 { (case "(($ac_try" in
5518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5519 *) ac_try_echo=$ac_try;;
5520esac
5521eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5522 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005523 ac_status=$?
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); }; } &&
5526 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005527 { (case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530esac
5531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005533 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005535 (exit $ac_status); }; }; then
5536 ac_cv_lib_fl_yywrap=yes
5537else
5538 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005539sed 's/^/| /' conftest.$ac_ext >&5
5540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005541 ac_cv_lib_fl_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005542fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005543
Jeremy White0ebeb532006-06-20 13:18:41 +02005544rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005545 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005546LIBS=$ac_check_lib_save_LIBS
5547fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005548{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5549echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005550if test $ac_cv_lib_fl_yywrap = yes; then
5551 LEXLIB="-lfl"
5552else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005553 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5554echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005555if test "${ac_cv_lib_l_yywrap+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5557else
5558 ac_check_lib_save_LIBS=$LIBS
5559LIBS="-ll $LIBS"
5560cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005566
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005567/* Override any GCC internal prototype to avoid an error.
5568 Use char because int might match the return type of a GCC
5569 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005570#ifdef __cplusplus
5571extern "C"
5572#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005573char yywrap ();
5574int
5575main ()
5576{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005577return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005578 ;
5579 return 0;
5580}
5581_ACEOF
5582rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005583if { (ac_try="$ac_link"
5584case "(($ac_try" in
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5587esac
5588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005590 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005591 grep -v '^ *+' conftest.er1 >conftest.err
5592 rm -f conftest.er1
5593 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005595 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5597 { (case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600esac
5601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5602 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005603 ac_status=$?
5604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5605 (exit $ac_status); }; } &&
5606 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005607 { (case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005613 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005615 (exit $ac_status); }; }; then
5616 ac_cv_lib_l_yywrap=yes
5617else
5618 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005619sed 's/^/| /' conftest.$ac_ext >&5
5620
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005621 ac_cv_lib_l_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005622fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005623
Jeremy White0ebeb532006-06-20 13:18:41 +02005624rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005625 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005626LIBS=$ac_check_lib_save_LIBS
5627fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005628{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5629echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005630if test $ac_cv_lib_l_yywrap = yes; then
5631 LEXLIB="-ll"
5632fi
5633
5634fi
5635
5636fi
5637
5638if test "x$LEX" != "x:"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005639 { echo "$as_me:$LINENO: checking lex output file root" >&5
5640echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005641if test "${ac_cv_prog_lex_root+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5643else
5644 # The minimal lex program is just a single line: %%. But some broken lexes
5645# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646cat >conftest.l <<_ACEOF
5647%%
5648%%
5649_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02005650{ (ac_try="$LEX conftest.l"
5651case "(($ac_try" in
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5654esac
5655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$LEX conftest.l") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005660if test -f lex.yy.c; then
5661 ac_cv_prog_lex_root=lex.yy
5662elif test -f lexyy.c; then
5663 ac_cv_prog_lex_root=lexyy
5664else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005665 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005666echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5667 { (exit 1); exit 1; }; }
5668fi
5669fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005670{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5671echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005672rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005673LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5674
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005675{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5676echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005677if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5678 echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680 # POSIX says lex can declare yytext either as a pointer or an array; the
5681# default is implementation-dependent. Figure out which it is, since
5682# not all implementations provide the %pointer and %array declarations.
5683ac_cv_prog_lex_yytext_pointer=no
5684echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5685ac_save_LIBS=$LIBS
5686LIBS="$LIBS $LEXLIB"
5687cat >conftest.$ac_ext <<_ACEOF
5688`cat $LEX_OUTPUT_ROOT.c`
5689_ACEOF
5690rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005691if { (ac_try="$ac_link"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005698 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005703 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5705 { (case "(($ac_try" in
5706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5707 *) ac_try_echo=$ac_try;;
5708esac
5709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5710 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005711 ac_status=$?
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; } &&
5714 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718esac
5719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005721 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005723 (exit $ac_status); }; }; then
5724 ac_cv_prog_lex_yytext_pointer=yes
5725else
5726 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005727sed 's/^/| /' conftest.$ac_ext >&5
5728
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005729
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005730fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005731
Jeremy White0ebeb532006-06-20 13:18:41 +02005732rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005733 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005734LIBS=$ac_save_LIBS
5735rm -f "${LEX_OUTPUT_ROOT}.c"
5736
5737fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005738{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5739echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005740if test $ac_cv_prog_lex_yytext_pointer = yes; then
5741
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005743#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005744_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005745
5746fi
5747
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005748fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00005749
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005750for ac_prog in $LEX flex lex
5751do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005752 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005753set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005754{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005756if test "${ac_cv_prog_XLEX+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005758else
5759 if test -n "$XLEX"; then
5760 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5761else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763for as_dir in $PATH
5764do
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005769 ac_cv_prog_XLEX="$ac_prog"
5770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5772 fi
5773done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005774done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005775IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005776
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005777fi
5778fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005779XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005780if test -n "$XLEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005781 { echo "$as_me:$LINENO: result: $XLEX" >&5
5782echo "${ECHO_T}$XLEX" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005783else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005784 { echo "$as_me:$LINENO: result: no" >&5
5785echo "${ECHO_T}no" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005786fi
5787
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005788
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005789 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005790done
5791test -n "$XLEX" || XLEX="none"
5792
5793if test "$XLEX" = "none"
5794then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005795 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005796echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5797 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005798fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005799
Mike McCormackc068f672004-03-16 03:11:39 +00005800for ac_prog in bison
5801do
5802 # Extract the first word of "$ac_prog", so it can be a program name with args.
5803set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005804{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005806if test "${ac_cv_prog_BISON+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5808else
5809 if test -n "$BISON"; then
5810 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormackc068f672004-03-16 03:11:39 +00005819 ac_cv_prog_BISON="$ac_prog"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005825IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00005826
5827fi
5828fi
5829BISON=$ac_cv_prog_BISON
5830if test -n "$BISON"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005831 { echo "$as_me:$LINENO: result: $BISON" >&5
5832echo "${ECHO_T}$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005833else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005834 { echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005836fi
5837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005838
Mike McCormackc068f672004-03-16 03:11:39 +00005839 test -n "$BISON" && break
5840done
5841test -n "$BISON" || BISON="none"
5842
5843if test "$BISON" = "none"
5844then
5845 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5846echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5847 { (exit 1); exit 1; }; }
5848fi
5849
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005850if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005851 for ac_prog in gas as
5852 do
5853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5854set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005855{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005857if test "${ac_cv_prog_AS+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860 if test -n "$AS"; then
5861 ac_cv_prog_AS="$AS" # Let the user override the test.
5862else
5863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH
5865do
5866 IFS=$as_save_IFS
5867 test -z "$as_dir" && as_dir=.
5868 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005870 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 break 2
5873 fi
5874done
5875done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005876IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005877
5878fi
5879fi
5880AS=$ac_cv_prog_AS
5881if test -n "$AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005882 { echo "$as_me:$LINENO: result: $AS" >&5
5883echo "${ECHO_T}$AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005884else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005885 { echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005887fi
5888
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005889
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005890 test -n "$AS" && break
5891 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00005892fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005893if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00005894 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005895 for ac_prog in gas as
5896do
5897 # Extract the first word of "$ac_prog", so it can be a program name with args.
5898set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005901if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903else
5904 if test -n "$ac_ct_AS"; then
5905 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5906else
5907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908for as_dir in $PATH
5909do
5910 IFS=$as_save_IFS
5911 test -z "$as_dir" && as_dir=.
5912 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005914 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 break 2
5917 fi
5918done
5919done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005920IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005921
Marcus Meissner1d4db782003-01-09 00:46:54 +00005922fi
5923fi
5924ac_ct_AS=$ac_cv_prog_ac_ct_AS
5925if test -n "$ac_ct_AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005926 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5927echo "${ECHO_T}$ac_ct_AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005928else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005929 { echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005931fi
5932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005933
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005934 test -n "$ac_ct_AS" && break
5935done
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005936
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005937 if test "x$ac_ct_AS" = x; then
5938 AS="as"
5939 else
5940 case $cross_compiling:$ac_tool_warned in
5941yes:)
5942{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5943whose name does not start with the host triplet. If you think this
5944configuration is useful to you, please write to autoconf@gnu.org." >&5
5945echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5946whose name does not start with the host triplet. If you think this
5947configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5948ac_tool_warned=yes ;;
5949esac
5950 AS=$ac_ct_AS
5951 fi
Marcus Meissner1d4db782003-01-09 00:46:54 +00005952fi
5953
5954if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005955 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5956set dummy ${ac_tool_prefix}ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005957{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005959if test "${ac_cv_prog_LD+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962 if test -n "$LD"; then
5963 ac_cv_prog_LD="$LD" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005972 ac_cv_prog_LD="${ac_tool_prefix}ld"
5973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005978IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005979
5980fi
5981fi
5982LD=$ac_cv_prog_LD
5983if test -n "$LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005984 { echo "$as_me:$LINENO: result: $LD" >&5
5985echo "${ECHO_T}$LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005986else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005987 { echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005989fi
5990
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005991
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005992fi
5993if test -z "$ac_cv_prog_LD"; then
5994 ac_ct_LD=$LD
5995 # Extract the first word of "ld", so it can be a program name with args.
5996set dummy ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005997{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5998echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005999if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 if test -n "$ac_ct_LD"; then
6003 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6004else
6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006for as_dir in $PATH
6007do
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006012 ac_cv_prog_ac_ct_LD="ld"
6013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6014 break 2
6015 fi
6016done
6017done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006018IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006019
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006020fi
6021fi
6022ac_ct_LD=$ac_cv_prog_ac_ct_LD
6023if test -n "$ac_ct_LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006024 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6025echo "${ECHO_T}$ac_ct_LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006026else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006027 { echo "$as_me:$LINENO: result: no" >&5
6028echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006029fi
6030
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006031 if test "x$ac_ct_LD" = x; then
6032 LD="ld"
6033 else
6034 case $cross_compiling:$ac_tool_warned in
6035yes:)
6036{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6037whose name does not start with the host triplet. If you think this
6038configuration is useful to you, please write to autoconf@gnu.org." >&5
6039echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6040whose name does not start with the host triplet. If you think this
6041configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6042ac_tool_warned=yes ;;
6043esac
6044 LD=$ac_ct_LD
6045 fi
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006046else
6047 LD="$ac_cv_prog_LD"
6048fi
6049
6050if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006051 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6052set dummy ${ac_tool_prefix}ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006055if test "${ac_cv_prog_AR+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058 if test -n "$AR"; then
6059 ac_cv_prog_AR="$AR" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006068 ac_cv_prog_AR="${ac_tool_prefix}ar"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006074IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006075
6076fi
6077fi
6078AR=$ac_cv_prog_AR
6079if test -n "$AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006080 { echo "$as_me:$LINENO: result: $AR" >&5
6081echo "${ECHO_T}$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006082else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006083 { echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006085fi
6086
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006087
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006088fi
6089if test -z "$ac_cv_prog_AR"; then
6090 ac_ct_AR=$AR
6091 # Extract the first word of "ar", so it can be a program name with args.
6092set dummy ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006093{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006095if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6096 echo $ECHO_N "(cached) $ECHO_C" >&6
6097else
6098 if test -n "$ac_ct_AR"; then
6099 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6100else
6101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102for as_dir in $PATH
6103do
6104 IFS=$as_save_IFS
6105 test -z "$as_dir" && as_dir=.
6106 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006108 ac_cv_prog_ac_ct_AR="ar"
6109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6110 break 2
6111 fi
6112done
6113done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006114IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006115
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006116fi
6117fi
6118ac_ct_AR=$ac_cv_prog_ac_ct_AR
6119if test -n "$ac_ct_AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006120 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6121echo "${ECHO_T}$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006122else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006123 { echo "$as_me:$LINENO: result: no" >&5
6124echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006125fi
6126
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006127 if test "x$ac_ct_AR" = x; then
6128 AR="ar"
6129 else
6130 case $cross_compiling:$ac_tool_warned in
6131yes:)
6132{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6133whose name does not start with the host triplet. If you think this
6134configuration is useful to you, please write to autoconf@gnu.org." >&5
6135echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6136whose name does not start with the host triplet. If you think this
6137configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6138ac_tool_warned=yes ;;
6139esac
6140 AR=$ac_ct_AR
6141 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006142else
6143 AR="$ac_cv_prog_AR"
6144fi
6145
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006146if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006149{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006151if test "${ac_cv_prog_RANLIB+set}" = set; then
6152 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006153else
6154 if test -n "$RANLIB"; then
6155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006169done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006170IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006171
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006172fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006173fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006175if test -n "$RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006176 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6177echo "${ECHO_T}$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006178else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006179 { echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006181fi
6182
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006183
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184fi
6185if test -z "$ac_cv_prog_RANLIB"; then
6186 ac_ct_RANLIB=$RANLIB
6187 # Extract the first word of "ranlib", so it can be a program name with args.
6188set dummy ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006189{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006191if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6192 echo $ECHO_N "(cached) $ECHO_C" >&6
6193else
6194 if test -n "$ac_ct_RANLIB"; then
6195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6196else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198for as_dir in $PATH
6199do
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006204 ac_cv_prog_ac_ct_RANLIB="ranlib"
6205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6207 fi
6208done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006209done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006210IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006211
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006212fi
6213fi
6214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6215if test -n "$ac_ct_RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006216 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6217echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006218else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006219 { echo "$as_me:$LINENO: result: no" >&5
6220echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006221fi
6222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006223 if test "x$ac_ct_RANLIB" = x; then
6224 RANLIB=":"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227yes:)
6228{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6229whose name does not start with the host triplet. If you think this
6230configuration is useful to you, please write to autoconf@gnu.org." >&5
6231echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6232whose name does not start with the host triplet. If you think this
6233configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6234ac_tool_warned=yes ;;
6235esac
6236 RANLIB=$ac_ct_RANLIB
6237 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006238else
6239 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006240fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006241
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006242if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006247if test "${ac_cv_prog_STRIP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250 if test -n "$STRIP"; then
6251 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6252else
6253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254for as_dir in $PATH
6255do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006260 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264done
6265done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006266IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006267
6268fi
6269fi
6270STRIP=$ac_cv_prog_STRIP
6271if test -n "$STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006272 { echo "$as_me:$LINENO: result: $STRIP" >&5
6273echo "${ECHO_T}$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006274else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006275 { echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006277fi
6278
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006279
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006280fi
6281if test -z "$ac_cv_prog_STRIP"; then
6282 ac_ct_STRIP=$STRIP
6283 # Extract the first word of "strip", so it can be a program name with args.
6284set dummy strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006285{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006287if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290 if test -n "$ac_ct_STRIP"; then
6291 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006300 ac_cv_prog_ac_ct_STRIP="strip"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006306IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006307
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006308fi
6309fi
6310ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311if test -n "$ac_ct_STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006312 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6313echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006314else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006315 { echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006317fi
6318
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006319 if test "x$ac_ct_STRIP" = x; then
6320 STRIP="strip"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323yes:)
6324{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325whose name does not start with the host triplet. If you think this
6326configuration is useful to you, please write to autoconf@gnu.org." >&5
6327echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328whose name does not start with the host triplet. If you think this
6329configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330ac_tool_warned=yes ;;
6331esac
6332 STRIP=$ac_ct_STRIP
6333 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006334else
6335 STRIP="$ac_cv_prog_STRIP"
6336fi
6337
6338if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6340set dummy ${ac_tool_prefix}windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006341{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006343if test "${ac_cv_prog_WINDRES+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346 if test -n "$WINDRES"; then
6347 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6348else
6349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350for as_dir in $PATH
6351do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006356 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360done
6361done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006362IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006363
6364fi
6365fi
6366WINDRES=$ac_cv_prog_WINDRES
6367if test -n "$WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006368 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6369echo "${ECHO_T}$WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006370else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006371 { echo "$as_me:$LINENO: result: no" >&5
6372echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006373fi
6374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006375
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006376fi
6377if test -z "$ac_cv_prog_WINDRES"; then
6378 ac_ct_WINDRES=$WINDRES
6379 # Extract the first word of "windres", so it can be a program name with args.
6380set dummy windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006381{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6382echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006383if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6385else
6386 if test -n "$ac_ct_WINDRES"; then
6387 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6388else
6389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390for as_dir in $PATH
6391do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006396 ac_cv_prog_ac_ct_WINDRES="windres"
6397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400done
6401done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006402IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006403
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006404fi
6405fi
6406ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6407if test -n "$ac_ct_WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006408 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6409echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006410else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006411 { echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006413fi
6414
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006415 if test "x$ac_ct_WINDRES" = x; then
6416 WINDRES="false"
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419yes:)
6420{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6421whose name does not start with the host triplet. If you think this
6422configuration is useful to you, please write to autoconf@gnu.org." >&5
6423echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6424whose name does not start with the host triplet. If you think this
6425configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6426ac_tool_warned=yes ;;
6427esac
6428 WINDRES=$ac_ct_WINDRES
6429 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006430else
6431 WINDRES="$ac_cv_prog_WINDRES"
6432fi
6433
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006434{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6435echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006436LN_S=$as_ln_s
6437if test "$LN_S" = "ln -s"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006438 { echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006440else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006441 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6442echo "${ECHO_T}no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006443fi
6444
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006445{ echo "$as_me:$LINENO: checking whether ln works" >&5
6446echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006447rm -f conf$$ conf$$.file
6448echo >conf$$.file
6449if ln conf$$.file conf$$ 2>/dev/null; then
6450 LN=ln
6451
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006452 { echo "$as_me:$LINENO: result: yes" >&5
6453echo "${ECHO_T}yes" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006454else
6455 LN="cp -p"
6456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006457 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6458echo "${ECHO_T}no, using $LN" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006459fi
6460rm -f conf$$ conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006461{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6462echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6463if test "${ac_cv_path_GREP+set}" = set; then
Alexandre Julliardc6264912004-08-16 20:09:37 +00006464 echo $ECHO_N "(cached) $ECHO_C" >&6
6465else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006466 # Extract the first word of "grep ggrep" to use in msg output
6467if test -z "$GREP"; then
6468set dummy grep ggrep; ac_prog_name=$2
6469if test "${ac_cv_path_GREP+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471else
6472 ac_path_GREP_found=false
6473# Loop through the user's path and test for each of PROGNAME-LIST
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_prog in grep ggrep; do
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6482 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6483 # Check for GNU ac_path_GREP and select it if it is found.
6484 # Check for GNU $ac_path_GREP
6485case `"$ac_path_GREP" --version 2>&1` in
6486*GNU*)
6487 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6488*)
6489 ac_count=0
6490 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6491 while :
6492 do
6493 cat "conftest.in" "conftest.in" >"conftest.tmp"
6494 mv "conftest.tmp" "conftest.in"
6495 cp "conftest.in" "conftest.nl"
6496 echo 'GREP' >> "conftest.nl"
6497 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6498 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6499 ac_count=`expr $ac_count + 1`
6500 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6501 # Best one so far, save it but keep looking for a better one
6502 ac_cv_path_GREP="$ac_path_GREP"
6503 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00006504 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006505 # 10*(2^10) chars as input seems more than enough
6506 test $ac_count -gt 10 && break
6507 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006508 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006509esac
6510
6511
6512 $ac_path_GREP_found && break 3
6513 done
6514done
6515
6516done
6517IFS=$as_save_IFS
6518
6519
Alexandre Julliardc6264912004-08-16 20:09:37 +00006520fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006521
6522GREP="$ac_cv_path_GREP"
6523if test -z "$GREP"; then
6524 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6525echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6526 { (exit 1); exit 1; }; }
6527fi
6528
6529else
6530 ac_cv_path_GREP=$GREP
6531fi
6532
6533
6534fi
6535{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6536echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6537 GREP="$ac_cv_path_GREP"
6538
6539
6540{ echo "$as_me:$LINENO: checking for egrep" >&5
6541echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6542if test "${ac_cv_path_EGREP+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6546 then ac_cv_path_EGREP="$GREP -E"
6547 else
6548 # Extract the first word of "egrep" to use in msg output
6549if test -z "$EGREP"; then
6550set dummy egrep; ac_prog_name=$2
6551if test "${ac_cv_path_EGREP+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6553else
6554 ac_path_EGREP_found=false
6555# Loop through the user's path and test for each of PROGNAME-LIST
6556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6558do
6559 IFS=$as_save_IFS
6560 test -z "$as_dir" && as_dir=.
6561 for ac_prog in egrep; do
6562 for ac_exec_ext in '' $ac_executable_extensions; do
6563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6564 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6565 # Check for GNU ac_path_EGREP and select it if it is found.
6566 # Check for GNU $ac_path_EGREP
6567case `"$ac_path_EGREP" --version 2>&1` in
6568*GNU*)
6569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6570*)
6571 ac_count=0
6572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6573 while :
6574 do
6575 cat "conftest.in" "conftest.in" >"conftest.tmp"
6576 mv "conftest.tmp" "conftest.in"
6577 cp "conftest.in" "conftest.nl"
6578 echo 'EGREP' >> "conftest.nl"
6579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6581 ac_count=`expr $ac_count + 1`
6582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6583 # Best one so far, save it but keep looking for a better one
6584 ac_cv_path_EGREP="$ac_path_EGREP"
6585 ac_path_EGREP_max=$ac_count
6586 fi
6587 # 10*(2^10) chars as input seems more than enough
6588 test $ac_count -gt 10 && break
6589 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006591esac
6592
6593
6594 $ac_path_EGREP_found && break 3
6595 done
6596done
6597
6598done
6599IFS=$as_save_IFS
6600
6601
6602fi
6603
6604EGREP="$ac_cv_path_EGREP"
6605if test -z "$EGREP"; then
6606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6607echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6608 { (exit 1); exit 1; }; }
6609fi
6610
6611else
6612 ac_cv_path_EGREP=$EGREP
6613fi
6614
6615
6616 fi
6617fi
6618{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6619echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6620 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00006621
6622
James Juranffe6b761999-06-12 08:21:57 +00006623# Extract the first word of "ldconfig", so it can be a program name with args.
6624set dummy ldconfig; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006625{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006627if test "${ac_cv_path_LDCONFIG+set}" = set; then
6628 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00006629else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006630 case $LDCONFIG in
6631 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00006632 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6633 ;;
6634 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00006636for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006637do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006642 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006647done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006648IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006649
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006650 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00006651 ;;
6652esac
6653fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006654LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00006655if test -n "$LDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006656 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6657echo "${ECHO_T}$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006658else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006659 { echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006661fi
6662
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006663
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006664# Find a good install program. We prefer a C program (faster),
6665# so one script is as good as another. But avoid the broken or
6666# incompatible versions:
6667# SysV /etc/install, /usr/sbin/install
6668# SunOS /usr/etc/install
6669# IRIX /sbin/install
6670# AIX /bin/install
6671# AmigaOS /C/install, which installs bootblocks on floppy discs
6672# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6673# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6674# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00006675# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006676# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006677{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6678echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006679if test -z "$INSTALL"; then
6680if test "${ac_cv_path_install+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 # Account for people who put trailing slashes in PATH elements.
6689case $as_dir/ in
6690 ./ | .// | /cC/* | \
6691 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006692 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006693 /usr/ucb/* ) ;;
6694 *)
6695 # OSF1 and SCO ODT 3.0 have their own names for install.
6696 # Don't use installbsd from OSF since it installs stuff as root
6697 # by default.
6698 for ac_prog in ginstall scoinst install; do
6699 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006700 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00006701 if test $ac_prog = install &&
6702 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6703 # AIX install. It has an incompatible calling convention.
6704 :
6705 elif test $ac_prog = install &&
6706 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6707 # program-specific install script used by HP pwplus--don't use.
6708 :
6709 else
6710 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6711 break 3
6712 fi
6713 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006714 done
6715 done
6716 ;;
6717esac
6718done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006719IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006720
6721
6722fi
6723 if test "${ac_cv_path_install+set}" = set; then
6724 INSTALL=$ac_cv_path_install
6725 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006726 # As a last resort, use the slow shell script. Don't cache a
6727 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006728 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006729 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006730 INSTALL=$ac_install_sh
6731 fi
6732fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006733{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6734echo "${ECHO_T}$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006735
6736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6737# It thinks the first close brace ends the variable substitution.
6738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6739
6740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6741
6742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6743
6744case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00006745 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006746 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6747esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006748
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006749for ac_prog in lclint lint
6750do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006751 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006752set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006753{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006755if test "${ac_cv_prog_LINT+set}" = set; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006757else
6758 if test -n "$LINT"; then
6759 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6760else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762for as_dir in $PATH
6763do
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006768 ac_cv_prog_LINT="$ac_prog"
6769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6771 fi
6772done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006773done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006774IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006775
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006776fi
6777fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006778LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006779if test -n "$LINT"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006780 { echo "$as_me:$LINENO: result: $LINT" >&5
6781echo "${ECHO_T}$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006782else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006783 { echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006785fi
6786
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006787
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006788 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006789done
6790
6791if test "$LINT" = "lint"
6792then
6793 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6794 fi
6795
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006796
6797
Huw Davies00acb5f2004-08-17 22:33:14 +00006798for ac_prog in fontforge
6799do
6800 # Extract the first word of "$ac_prog", so it can be a program name with args.
6801set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006802{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006804if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807 if test -n "$FONTFORGE"; then
6808 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Huw Davies00acb5f2004-08-17 22:33:14 +00006817 ac_cv_prog_FONTFORGE="$ac_prog"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821done
6822done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006823IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00006824
6825fi
6826fi
6827FONTFORGE=$ac_cv_prog_FONTFORGE
6828if test -n "$FONTFORGE"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006829 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6830echo "${ECHO_T}$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006831else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006832 { echo "$as_me:$LINENO: result: no" >&5
6833echo "${ECHO_T}no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006834fi
6835
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006836
Huw Davies00acb5f2004-08-17 22:33:14 +00006837 test -n "$FONTFORGE" && break
6838done
6839test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006840
Mike McCormack90c75bd2005-08-08 18:36:53 +00006841for ac_prog in pkg-config
6842do
6843 # Extract the first word of "$ac_prog", so it can be a program name with args.
6844set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006845{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006847if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 if test -n "$PKG_CONFIG"; then
6851 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6852else
6853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854for as_dir in $PATH
6855do
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00006860 ac_cv_prog_PKG_CONFIG="$ac_prog"
6861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6863 fi
6864done
6865done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006866IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00006867
6868fi
6869fi
6870PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6871if test -n "$PKG_CONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006872 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6873echo "${ECHO_T}$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006874else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006875 { echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006877fi
6878
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006879
Mike McCormack90c75bd2005-08-08 18:36:53 +00006880 test -n "$PKG_CONFIG" && break
6881done
6882test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6883
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006884
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006885case $host_cpu in
6886 *i[3456789]86*)
6887 for ac_prog in prelink
6888do
6889 # Extract the first word of "$ac_prog", so it can be a program name with args.
6890set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006891{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6892echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006893if test "${ac_cv_prog_PRELINK+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895else
6896 if test -n "$PRELINK"; then
6897 ac_cv_prog_PRELINK="$PRELINK" # Let the user override the test.
6898else
6899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in /sbin /usr/sbin $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006906 ac_cv_prog_PRELINK="$ac_prog"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006912IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006913
6914fi
6915fi
6916PRELINK=$ac_cv_prog_PRELINK
6917if test -n "$PRELINK"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006918 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6919echo "${ECHO_T}$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006920else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006921 { echo "$as_me:$LINENO: result: no" >&5
6922echo "${ECHO_T}no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006923fi
6924
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006925
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006926 test -n "$PRELINK" && break
6927done
6928test -n "$PRELINK" || PRELINK="false"
6929
6930 ;;
6931esac
6932
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006933
6934
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006935{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6936echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006937if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00006939else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006940 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006941LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006942cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006943/* confdefs.h. */
6944_ACEOF
6945cat confdefs.h >>conftest.$ac_ext
6946cat >>conftest.$ac_ext <<_ACEOF
6947/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006948
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006949/* Override any GCC internal prototype to avoid an error.
6950 Use char because int might match the return type of a GCC
6951 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006952#ifdef __cplusplus
6953extern "C"
6954#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006955char i386_set_ldt ();
6956int
6957main ()
6958{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006959return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006960 ;
6961 return 0;
6962}
6963_ACEOF
6964rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02006965if { (ac_try="$ac_link"
6966case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969esac
6970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006972 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006977 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02006978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6979 { (case "(($ac_try" in
6980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6981 *) ac_try_echo=$ac_try;;
6982esac
6983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6984 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006985 ac_status=$?
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); }; } &&
6988 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02006989 { (case "(($ac_try" in
6990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991 *) ac_try_echo=$ac_try;;
6992esac
6993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006995 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006997 (exit $ac_status); }; }; then
6998 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00006999else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007000 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007001sed 's/^/| /' conftest.$ac_ext >&5
7002
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007003 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00007004fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007005
Jeremy White0ebeb532006-06-20 13:18:41 +02007006rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007007 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007008LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00007009fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007010{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7011echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007012if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007013 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007014#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007015_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00007016
7017 LIBS="-li386 $LIBS"
7018
Alexandre Julliard02e90081998-01-04 17:49:09 +00007019fi
7020
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007021
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007022{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7023echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007024if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00007026else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007027 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007028LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007029cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007030/* confdefs.h. */
7031_ACEOF
7032cat confdefs.h >>conftest.$ac_ext
7033cat >>conftest.$ac_ext <<_ACEOF
7034/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007035
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007036/* Override any GCC internal prototype to avoid an error.
7037 Use char because int might match the return type of a GCC
7038 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007039#ifdef __cplusplus
7040extern "C"
7041#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007042char _oss_ioctl ();
7043int
7044main ()
7045{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007046return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007047 ;
7048 return 0;
7049}
7050_ACEOF
7051rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007052if { (ac_try="$ac_link"
7053case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056esac
7057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007059 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007064 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7066 { (case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069esac
7070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007072 ac_status=$?
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; } &&
7075 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007076 { (case "(($ac_try" in
7077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078 *) ac_try_echo=$ac_try;;
7079esac
7080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007082 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007084 (exit $ac_status); }; }; then
7085 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00007086else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007087 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007088sed 's/^/| /' conftest.$ac_ext >&5
7089
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007090 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00007091fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007092
Jeremy White0ebeb532006-06-20 13:18:41 +02007093rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007094 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007095LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007096fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007097{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7098echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007099if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007100 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007101#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007102_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00007103
7104 LIBS="-lossaudio $LIBS"
7105
Todd Vierlingecc76691998-12-15 17:49:02 +00007106fi
7107
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007108
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007109for ac_func in gethostbyname
7110do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007111as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007112{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7113echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7114if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007115 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007116else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007117 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007118/* confdefs.h. */
7119_ACEOF
7120cat confdefs.h >>conftest.$ac_ext
7121cat >>conftest.$ac_ext <<_ACEOF
7122/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007123/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7125#define $ac_func innocuous_$ac_func
7126
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007127/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007128 which can conflict with char $ac_func (); below.
7129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007131
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007132#ifdef __STDC__
7133# include <limits.h>
7134#else
7135# include <assert.h>
7136#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007137
7138#undef $ac_func
7139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007140/* Override any GCC internal prototype to avoid an error.
7141 Use char because int might match the return type of a GCC
7142 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007143#ifdef __cplusplus
7144extern "C"
7145#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007146char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007147/* The GNU C library defines this for functions which it implements
7148 to always fail with ENOSYS. Some functions are actually named
7149 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007150#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007151choke me
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007152#endif
7153
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007154int
7155main ()
7156{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007157return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007158 ;
7159 return 0;
7160}
7161_ACEOF
7162rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007163if { (ac_try="$ac_link"
7164case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167esac
7168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007170 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007175 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7177 { (case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180esac
7181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; } &&
7186 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007187 { (case "(($ac_try" in
7188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7189 *) ac_try_echo=$ac_try;;
7190esac
7191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7192 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007193 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007195 (exit $ac_status); }; }; then
7196 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00007197else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007198 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007199sed 's/^/| /' conftest.$ac_ext >&5
7200
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007201 eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00007202fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007203
Jeremy White0ebeb532006-06-20 13:18:41 +02007204rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007205 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00007206fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007207ac_res=`eval echo '${'$as_ac_var'}'`
7208 { echo "$as_me:$LINENO: result: $ac_res" >&5
7209echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007210if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007211 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007213_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00007214
Patrik Stridvallea584721998-11-01 16:22:07 +00007215else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007216
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007217{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7218echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007219if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00007221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007222 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007223LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007224cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007225/* confdefs.h. */
7226_ACEOF
7227cat confdefs.h >>conftest.$ac_ext
7228cat >>conftest.$ac_ext <<_ACEOF
7229/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007230
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007231/* Override any GCC internal prototype to avoid an error.
7232 Use char because int might match the return type of a GCC
7233 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007234#ifdef __cplusplus
7235extern "C"
7236#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007237char gethostbyname ();
7238int
7239main ()
7240{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007241return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007242 ;
7243 return 0;
7244}
7245_ACEOF
7246rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007247if { (ac_try="$ac_link"
7248case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007254 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007255 grep -v '^ *+' conftest.er1 >conftest.err
7256 rm -f conftest.er1
7257 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007259 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7261 { (case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264esac
7265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007271 { (case "(($ac_try" in
7272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7273 *) ac_try_echo=$ac_try;;
7274esac
7275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7276 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007277 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007279 (exit $ac_status); }; }; then
7280 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00007281else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007282 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007283sed 's/^/| /' conftest.$ac_ext >&5
7284
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007285 ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00007286fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007287
Jeremy White0ebeb532006-06-20 13:18:41 +02007288rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007289 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007290LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00007291fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007292{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7293echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007294if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007295 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007296#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007297_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00007298
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007299 LIBS="-lnsl $LIBS"
7300
Ron Recorde977d6c1999-09-05 12:32:05 +00007301fi
7302
Patrik Stridvallea584721998-11-01 16:22:07 +00007303fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00007304done
7305
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007306
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007307for ac_func in connect
7308do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007310{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007313 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007314else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007315 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007316/* confdefs.h. */
7317_ACEOF
7318cat confdefs.h >>conftest.$ac_ext
7319cat >>conftest.$ac_ext <<_ACEOF
7320/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7323#define $ac_func innocuous_$ac_func
7324
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007325/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007326 which can conflict with char $ac_func (); below.
7327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7328 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007329
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007330#ifdef __STDC__
7331# include <limits.h>
7332#else
7333# include <assert.h>
7334#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007335
7336#undef $ac_func
7337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007338/* Override any GCC internal prototype to avoid an error.
7339 Use char because int might match the return type of a GCC
7340 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007341#ifdef __cplusplus
7342extern "C"
7343#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007344char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007345/* The GNU C library defines this for functions which it implements
7346 to always fail with ENOSYS. Some functions are actually named
7347 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007348#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007349choke me
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007350#endif
7351
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007352int
7353main ()
7354{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007355return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007356 ;
7357 return 0;
7358}
7359_ACEOF
7360rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007361if { (ac_try="$ac_link"
7362case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
7366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007368 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007373 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7375 { (case "(($ac_try" in
7376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7377 *) ac_try_echo=$ac_try;;
7378esac
7379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7380 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007381 ac_status=$?
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; } &&
7384 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007385 { (case "(($ac_try" in
7386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7388esac
7389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007391 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007393 (exit $ac_status); }; }; then
7394 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007395else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007396 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007397sed 's/^/| /' conftest.$ac_ext >&5
7398
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007399 eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007400fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007401
Jeremy White0ebeb532006-06-20 13:18:41 +02007402rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007403 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007404fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007405ac_res=`eval echo '${'$as_ac_var'}'`
7406 { echo "$as_me:$LINENO: result: $ac_res" >&5
7407echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007408if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007409 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007411_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007412
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007413else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007414
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007415{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7416echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007417if test "${ac_cv_lib_socket_connect+set}" = set; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007419else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007420 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007421LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007422cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007423/* confdefs.h. */
7424_ACEOF
7425cat confdefs.h >>conftest.$ac_ext
7426cat >>conftest.$ac_ext <<_ACEOF
7427/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007428
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007429/* Override any GCC internal prototype to avoid an error.
7430 Use char because int might match the return type of a GCC
7431 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007432#ifdef __cplusplus
7433extern "C"
7434#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007435char connect ();
7436int
7437main ()
7438{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007439return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007440 ;
7441 return 0;
7442}
7443_ACEOF
7444rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007445if { (ac_try="$ac_link"
7446case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449esac
7450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007452 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007457 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7459 { (case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462esac
7463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007465 ac_status=$?
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); }; } &&
7468 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007469 { (case "(($ac_try" in
7470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7471 *) ac_try_echo=$ac_try;;
7472esac
7473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7474 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007475 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007477 (exit $ac_status); }; }; then
7478 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007479else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007480 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007481sed 's/^/| /' conftest.$ac_ext >&5
7482
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007483 ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007484fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007485
Jeremy White0ebeb532006-06-20 13:18:41 +02007486rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007487 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007488LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007489fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007490{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7491echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007492if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007493 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007494#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007495_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007496
7497 LIBS="-lsocket $LIBS"
7498
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007499fi
7500
7501fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00007502done
7503
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007504
Alexandre Julliardc5552742002-04-03 20:24:44 +00007505for ac_func in inet_aton
7506do
7507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007508{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7510if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardc5552742002-04-03 20:24:44 +00007511 echo $ECHO_N "(cached) $ECHO_C" >&6
7512else
7513 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007514/* confdefs.h. */
7515_ACEOF
7516cat confdefs.h >>conftest.$ac_ext
7517cat >>conftest.$ac_ext <<_ACEOF
7518/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7521#define $ac_func innocuous_$ac_func
7522
Alexandre Julliardc5552742002-04-03 20:24:44 +00007523/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007524 which can conflict with char $ac_func (); below.
7525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7526 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007527
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007528#ifdef __STDC__
7529# include <limits.h>
7530#else
7531# include <assert.h>
7532#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007533
7534#undef $ac_func
7535
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007536/* Override any GCC internal prototype to avoid an error.
7537 Use char because int might match the return type of a GCC
7538 builtin and then its argument prototype would still apply. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00007539#ifdef __cplusplus
7540extern "C"
7541#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00007542char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007543/* The GNU C library defines this for functions which it implements
7544 to always fail with ENOSYS. Some functions are actually named
7545 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007546#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardc5552742002-04-03 20:24:44 +00007547choke me
Alexandre Julliardc5552742002-04-03 20:24:44 +00007548#endif
7549
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007550int
7551main ()
7552{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007553return $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007554 ;
7555 return 0;
7556}
7557_ACEOF
7558rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007559if { (ac_try="$ac_link"
7560case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563esac
7564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00007566 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007567 grep -v '^ *+' conftest.er1 >conftest.err
7568 rm -f conftest.er1
7569 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007571 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7573 { (case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576esac
7577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); }; } &&
7582 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007583 { (case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586esac
7587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_try") 2>&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007589 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007591 (exit $ac_status); }; }; then
7592 eval "$as_ac_var=yes"
7593else
7594 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007595sed 's/^/| /' conftest.$ac_ext >&5
7596
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007597 eval "$as_ac_var=no"
Alexandre Julliardc5552742002-04-03 20:24:44 +00007598fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007599
Jeremy White0ebeb532006-06-20 13:18:41 +02007600rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007601 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00007602fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007603ac_res=`eval echo '${'$as_ac_var'}'`
7604 { echo "$as_me:$LINENO: result: $ac_res" >&5
7605echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardc5552742002-04-03 20:24:44 +00007606if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007607 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007608#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007609_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007610
7611else
7612
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007613{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7614echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007615if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618 ac_check_lib_save_LIBS=$LIBS
7619LIBS="-lresolv $LIBS"
7620cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007626
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007627/* Override any GCC internal prototype to avoid an error.
7628 Use char because int might match the return type of a GCC
7629 builtin and then its argument prototype would still apply. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007630#ifdef __cplusplus
7631extern "C"
7632#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00007633char inet_aton ();
7634int
7635main ()
7636{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007637return inet_aton ();
Francois Gouget3b943bc2002-04-01 21:05:15 +00007638 ;
7639 return 0;
7640}
7641_ACEOF
7642rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007643if { (ac_try="$ac_link"
7644case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647esac
7648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_link") 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00007650 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007651 grep -v '^ *+' conftest.er1 >conftest.err
7652 rm -f conftest.er1
7653 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007655 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7657 { (case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660esac
7661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7662 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007667 { (case "(($ac_try" in
7668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669 *) ac_try_echo=$ac_try;;
7670esac
7671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672 (eval "$ac_try") 2>&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007673 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007675 (exit $ac_status); }; }; then
7676 ac_cv_lib_resolv_inet_aton=yes
7677else
7678 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007679sed 's/^/| /' conftest.$ac_ext >&5
7680
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007681 ac_cv_lib_resolv_inet_aton=no
Francois Gouget3b943bc2002-04-01 21:05:15 +00007682fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007683
Jeremy White0ebeb532006-06-20 13:18:41 +02007684rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007685 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00007686LIBS=$ac_check_lib_save_LIBS
7687fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007688{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7689echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007690if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007691 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007692#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007693_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007694
7695 LIBS="-lresolv $LIBS"
7696
7697fi
7698
Alexandre Julliardc5552742002-04-03 20:24:44 +00007699fi
7700done
7701
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007702
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007703{ echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7704echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007705if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007707else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007708 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007709LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007710cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007711/* confdefs.h. */
7712_ACEOF
7713cat confdefs.h >>conftest.$ac_ext
7714cat >>conftest.$ac_ext <<_ACEOF
7715/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007716
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007717/* Override any GCC internal prototype to avoid an error.
7718 Use char because int might match the return type of a GCC
7719 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007720#ifdef __cplusplus
7721extern "C"
7722#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007723char _xpg4_setrunelocale ();
7724int
7725main ()
7726{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007727return _xpg4_setrunelocale ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007728 ;
7729 return 0;
7730}
7731_ACEOF
7732rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007733if { (ac_try="$ac_link"
7734case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737esac
7738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007740 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007745 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7747 { (case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750esac
7751eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007757 { (case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760esac
7761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007763 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007765 (exit $ac_status); }; }; then
7766 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007767else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007768 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007769sed 's/^/| /' conftest.$ac_ext >&5
7770
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007771 ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007772fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007773
Jeremy White0ebeb532006-06-20 13:18:41 +02007774rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007775 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007776LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007777fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007778{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7779echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007780if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007781 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007782#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007783_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007784
7785 LIBS="-lxpg4 $LIBS"
7786
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007787fi
7788
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007789
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007790{ echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7791echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007792if test "${ac_cv_lib_poll_poll+set}" = set; then
7793 echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795 ac_check_lib_save_LIBS=$LIBS
7796LIBS="-lpoll $LIBS"
7797cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007798/* confdefs.h. */
7799_ACEOF
7800cat confdefs.h >>conftest.$ac_ext
7801cat >>conftest.$ac_ext <<_ACEOF
7802/* end confdefs.h. */
7803
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007804/* Override any GCC internal prototype to avoid an error.
7805 Use char because int might match the return type of a GCC
7806 builtin and then its argument prototype would still apply. */
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007807#ifdef __cplusplus
7808extern "C"
7809#endif
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007810char poll ();
7811int
7812main ()
7813{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007814return poll ();
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007815 ;
7816 return 0;
7817}
7818_ACEOF
7819rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007820if { (ac_try="$ac_link"
7821case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824esac
7825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_link") 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007827 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007828 grep -v '^ *+' conftest.er1 >conftest.err
7829 rm -f conftest.er1
7830 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7834 { (case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 ac_cv_lib_poll_poll=yes
7854else
7855 echo "$as_me: failed program was:" >&5
7856sed 's/^/| /' conftest.$ac_ext >&5
7857
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007858 ac_cv_lib_poll_poll=no
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007859fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007860
Jeremy White0ebeb532006-06-20 13:18:41 +02007861rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007862 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007863LIBS=$ac_check_lib_save_LIBS
7864fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007865{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7866echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007867if test $ac_cv_lib_poll_poll = yes; then
7868 cat >>confdefs.h <<_ACEOF
7869#define HAVE_LIBPOLL 1
7870_ACEOF
7871
7872 LIBS="-lpoll $LIBS"
7873
7874fi
7875
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007876
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007877{ echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
7878echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6; }
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007879if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882 ac_check_lib_save_LIBS=$LIBS
7883LIBS="-lresolv $LIBS"
7884cat >conftest.$ac_ext <<_ACEOF
7885/* confdefs.h. */
7886_ACEOF
7887cat confdefs.h >>conftest.$ac_ext
7888cat >>conftest.$ac_ext <<_ACEOF
7889/* end confdefs.h. */
7890
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007891/* Override any GCC internal prototype to avoid an error.
7892 Use char because int might match the return type of a GCC
7893 builtin and then its argument prototype would still apply. */
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007894#ifdef __cplusplus
7895extern "C"
7896#endif
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007897char res_9_init ();
7898int
7899main ()
7900{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007901return res_9_init ();
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007902 ;
7903 return 0;
7904}
7905_ACEOF
7906rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007907if { (ac_try="$ac_link"
7908case "(($ac_try" in
7909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910 *) ac_try_echo=$ac_try;;
7911esac
7912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7913 (eval "$ac_link") 2>conftest.er1
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007914 ac_status=$?
7915 grep -v '^ *+' conftest.er1 >conftest.err
7916 rm -f conftest.er1
7917 cat conftest.err >&5
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7921 { (case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_try") 2>&5
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007927 ac_status=$?
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; } &&
7930 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007931 { (case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934esac
7935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_try") 2>&5
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007937 ac_status=$?
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7940 ac_cv_lib_resolv_res_9_init=yes
7941else
7942 echo "$as_me: failed program was:" >&5
7943sed 's/^/| /' conftest.$ac_ext >&5
7944
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007945 ac_cv_lib_resolv_res_9_init=no
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007946fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007947
Jeremy White0ebeb532006-06-20 13:18:41 +02007948rm -f core conftest.err conftest.$ac_objext \
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007949 conftest$ac_exeext conftest.$ac_ext
7950LIBS=$ac_check_lib_save_LIBS
7951fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007952{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
7953echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6; }
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00007954if test $ac_cv_lib_resolv_res_9_init = yes; then
7955 cat >>confdefs.h <<_ACEOF
7956#define HAVE_LIBRESOLV 1
7957_ACEOF
7958
7959 LIBS="-lresolv $LIBS"
7960
7961fi
7962
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007963{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7964echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007965if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007966 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007967else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007968 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007969LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007970cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007971/* confdefs.h. */
7972_ACEOF
7973cat confdefs.h >>conftest.$ac_ext
7974cat >>conftest.$ac_ext <<_ACEOF
7975/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007976
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007977/* Override any GCC internal prototype to avoid an error.
7978 Use char because int might match the return type of a GCC
7979 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980#ifdef __cplusplus
7981extern "C"
7982#endif
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007983char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007984int
7985main ()
7986{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007987return pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007988 ;
7989 return 0;
7990}
7991_ACEOF
7992rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007993if { (ac_try="$ac_link"
7994case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997esac
7998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008000 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008005 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac
8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; } &&
8016 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008017 { (case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020esac
8021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008023 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008025 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00008026 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008027else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008028 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008029sed 's/^/| /' conftest.$ac_ext >&5
8030
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008031 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008032fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008033
Jeremy White0ebeb532006-06-20 13:18:41 +02008034rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008035 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008036LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008037fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008038{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
8039echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00008040if test $ac_cv_lib_pthread_pthread_create = yes; then
8041 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008042
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00008043fi
8044
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008045
Alexandre Julliard82776022005-08-08 11:17:25 +00008046XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00008047
8048XFILES=""
8049
8050OPENGLFILES=""
8051
8052GLU32FILES=""
8053
8054OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00008055
Rein Klazes7ff12562004-11-09 20:16:35 +00008056
Alexandre Julliard82776022005-08-08 11:17:25 +00008057
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008058{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8059echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008060if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008061 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00008062else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008063 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008064/* confdefs.h. */
8065_ACEOF
8066cat confdefs.h >>conftest.$ac_ext
8067cat >>conftest.$ac_ext <<_ACEOF
8068/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008069#include <stdlib.h>
8070#include <stdarg.h>
8071#include <string.h>
8072#include <float.h>
8073
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008074int
8075main ()
8076{
8077
8078 ;
8079 return 0;
8080}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008081_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008082rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008083if { (ac_try="$ac_compile"
8084case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087esac
8088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008090 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008091 grep -v '^ *+' conftest.er1 >conftest.err
8092 rm -f conftest.er1
8093 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008095 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8097 { (case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
8101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008103 ac_status=$?
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); }; } &&
8106 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008107 { (case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110esac
8111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8112 (eval "$ac_try") 2>&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008113 ac_status=$?
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008116 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008117else
8118 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008119sed 's/^/| /' conftest.$ac_ext >&5
8120
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008121 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00008122fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008123
Jeremy White0ebeb532006-06-20 13:18:41 +02008124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008125
8126if test $ac_cv_header_stdc = yes; then
8127 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8128 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008134#include <string.h>
8135
8136_ACEOF
8137if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008138 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008139 :
8140else
8141 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00008142fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008143rm -f conftest*
8144
8145fi
8146
8147if test $ac_cv_header_stdc = yes; then
8148 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8149 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008155#include <stdlib.h>
8156
8157_ACEOF
8158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008159 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008160 :
8161else
8162 ac_cv_header_stdc=no
8163fi
8164rm -f conftest*
8165
8166fi
8167
8168if test $ac_cv_header_stdc = yes; then
8169 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8170 if test "$cross_compiling" = yes; then
8171 :
8172else
8173 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008174/* confdefs.h. */
8175_ACEOF
8176cat confdefs.h >>conftest.$ac_ext
8177cat >>conftest.$ac_ext <<_ACEOF
8178/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008179#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008180#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008181#if ((' ' & 0x0FF) == 0x020)
8182# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8183# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8184#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008185# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008186 (('a' <= (c) && (c) <= 'i') \
8187 || ('j' <= (c) && (c) <= 'r') \
8188 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008189# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8190#endif
8191
8192#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8193int
8194main ()
8195{
8196 int i;
8197 for (i = 0; i < 256; i++)
8198 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00008199 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008200 return 2;
8201 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008202}
8203_ACEOF
8204rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02008205if { (ac_try="$ac_link"
8206case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209esac
8210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_link") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008215 { (case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008221 ac_status=$?
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); }; }; then
8224 :
8225else
8226 echo "$as_me: program exited with status $ac_status" >&5
8227echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008228sed 's/^/| /' conftest.$ac_ext >&5
8229
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008230( exit $ac_status )
8231ac_cv_header_stdc=no
8232fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8234fi
8235
8236
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008237fi
8238fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008239{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8240echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008241if test $ac_cv_header_stdc = yes; then
8242
8243cat >>confdefs.h <<\_ACEOF
8244#define STDC_HEADERS 1
8245_ACEOF
8246
8247fi
8248
8249# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008260 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008261do
8262as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008263{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8265if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008266 echo $ECHO_N "(cached) $ECHO_C" >&6
8267else
8268 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008274$ac_includes_default
8275
8276#include <$ac_header>
8277_ACEOF
8278rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008279if { (ac_try="$ac_compile"
8280case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283esac
8284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008286 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8293 { (case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296esac
8297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008299 ac_status=$?
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; } &&
8302 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008303 { (case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; }; then
8312 eval "$as_ac_Header=yes"
8313else
8314 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008315sed 's/^/| /' conftest.$ac_ext >&5
8316
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008317 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008318fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008319
Jeremy White0ebeb532006-06-20 13:18:41 +02008320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008321fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008322ac_res=`eval echo '${'$as_ac_Header'}'`
8323 { echo "$as_me:$LINENO: result: $ac_res" >&5
8324echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008325if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008326 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008327#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008328_ACEOF
8329
8330fi
8331
8332done
8333
8334
8335
Rein Klazes7ff12562004-11-09 20:16:35 +00008336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
Steven Edwards57279182005-03-04 12:38:36 +00008418
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00008419
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008420
8421
Phil Krylov0f6c0392005-07-01 19:15:26 +00008422
Hans Leidekkerea524de2005-07-15 16:39:42 +00008423
8424
Alexandre Julliard73482142005-08-03 19:21:04 +00008425
8426
8427
8428
8429
8430
8431
8432
8433
8434
Gerald Pfeiferebe04842005-08-22 09:33:37 +00008435
Robert Shearman1e5153c2005-12-01 11:18:43 +01008436
Mike McCormack0cd06262006-03-01 01:07:04 +09008437
Alexandre Julliard9603ee02006-04-06 11:57:37 +02008438
Emmanuel Maillard144a5352006-05-28 22:46:23 +02008439
8440
Rein Klazes7ff12562004-11-09 20:16:35 +00008441for ac_header in \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02008442 AudioUnit/AudioUnit.h \
8443 CoreAudio/CoreAudio.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00008444 IOKit/IOKitLib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008445 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008446 arpa/inet.h \
8447 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00008448 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008449 capi20.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008450 cups/cups.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008451 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008452 direct.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008453 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008454 elf.h \
8455 float.h \
8456 fontconfig/fontconfig.h \
8457 getopt.h \
8458 gif_lib.h \
8459 ieeefp.h \
8460 io.h \
8461 jack/jack.h \
8462 jpeglib.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00008463 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008464 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008465 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00008466 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008467 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008468 link.h \
8469 linux/cdrom.h \
8470 linux/compiler.h \
8471 linux/hdreg.h \
8472 linux/input.h \
8473 linux/ioctl.h \
8474 linux/joystick.h \
8475 linux/major.h \
8476 linux/param.h \
8477 linux/serial.h \
8478 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008479 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008480 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008481 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008482 machine/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008483 mntent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008484 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008485 netdb.h \
8486 netinet/in.h \
8487 netinet/in_systm.h \
8488 netinet/tcp.h \
8489 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01008490 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008491 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00008492 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008493 process.h \
8494 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008495 pwd.h \
8496 regex.h \
8497 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008498 scsi/scsi.h \
8499 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008500 scsi/sg.h \
8501 soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008502 stdint.h \
8503 strings.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008504 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008505 sys/cdio.h \
8506 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008507 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008508 sys/errno.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008509 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008510 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008511 sys/ioctl.h \
8512 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00008513 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008514 sys/link.h \
8515 sys/lwp.h \
8516 sys/mman.h \
8517 sys/modem.h \
8518 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01008519 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008520 sys/param.h \
8521 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02008522 sys/prctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008523 sys/ptrace.h \
8524 sys/reg.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09008525 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008526 sys/scsiio.h \
8527 sys/shm.h \
8528 sys/signal.h \
8529 sys/socket.h \
8530 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008531 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008532 sys/statvfs.h \
8533 sys/strtio.h \
8534 sys/syscall.h \
8535 sys/sysctl.h \
8536 sys/time.h \
8537 sys/times.h \
8538 sys/uio.h \
8539 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008540 sys/vm86.h \
8541 sys/wait.h \
8542 syscall.h \
8543 termios.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008544 unicode/ubidi.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008545 unistd.h \
8546 utime.h \
8547 valgrind/memcheck.h
8548
8549do
8550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8554if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008555 echo $ECHO_N "(cached) $ECHO_C" >&6
8556fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008557ac_res=`eval echo '${'$as_ac_Header'}'`
8558 { echo "$as_me:$LINENO: result: $ac_res" >&5
8559echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008560else
8561 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008562{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008564cat >conftest.$ac_ext <<_ACEOF
8565/* confdefs.h. */
8566_ACEOF
8567cat confdefs.h >>conftest.$ac_ext
8568cat >>conftest.$ac_ext <<_ACEOF
8569/* end confdefs.h. */
8570$ac_includes_default
8571#include <$ac_header>
8572_ACEOF
8573rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008574if { (ac_try="$ac_compile"
8575case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578esac
8579eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00008581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8588 { (case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591esac
8592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00008594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; } &&
8597 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601esac
8602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00008604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_header_compiler=yes
8608else
8609 echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008612 ac_header_compiler=no
Rein Klazes7ff12562004-11-09 20:16:35 +00008613fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008614
Jeremy White0ebeb532006-06-20 13:18:41 +02008615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008616{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617echo "${ECHO_T}$ac_header_compiler" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008618
8619# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008620{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628#include <$ac_header>
8629_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02008630if { (ac_try="$ac_cpp conftest.$ac_ext"
8631case "(($ac_try" in
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8634esac
8635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00008637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } >/dev/null; then
8643 if test -s conftest.err; then
8644 ac_cpp_err=$ac_c_preproc_warn_flag
8645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8646 else
8647 ac_cpp_err=
8648 fi
8649else
8650 ac_cpp_err=yes
8651fi
8652if test -z "$ac_cpp_err"; then
8653 ac_header_preproc=yes
8654else
8655 echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 ac_header_preproc=no
8659fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008660
Rein Klazes7ff12562004-11-09 20:16:35 +00008661rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008662{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8663echo "${ECHO_T}$ac_header_preproc" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008664
8665# So? What about this header?
8666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8667 yes:no: )
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8672 ac_header_preproc=yes
8673 ;;
8674 no:yes:* )
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008687 ( cat <<\_ASBOX
Rein Klazes7ff12562004-11-09 20:16:35 +00008688## ------------------------------------ ##
8689## Report this to wine-devel@winehq.org ##
8690## ------------------------------------ ##
8691_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008692 ) | sed "s/^/$as_me: WARNING: /" >&2
Rein Klazes7ff12562004-11-09 20:16:35 +00008693 ;;
8694esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008695{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8696echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8697if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008698 echo $ECHO_N "(cached) $ECHO_C" >&6
8699else
8700 eval "$as_ac_Header=\$ac_header_preproc"
8701fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008702ac_res=`eval echo '${'$as_ac_Header'}'`
8703 { echo "$as_me:$LINENO: result: $ac_res" >&5
8704echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008705
8706fi
8707if test `eval echo '${'$as_ac_Header'}'` = yes; then
8708 cat >>confdefs.h <<_ACEOF
8709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8710_ACEOF
8711
8712fi
8713
8714done
8715
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008716{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8717echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008718if test "${ac_cv_header_stat_broken+set}" = set; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8720else
8721 cat >conftest.$ac_ext <<_ACEOF
8722/* confdefs.h. */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h. */
8727#include <sys/types.h>
8728#include <sys/stat.h>
8729
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008730#if defined S_ISBLK && defined S_IFDIR
Rein Klazes7ff12562004-11-09 20:16:35 +00008731# if S_ISBLK (S_IFDIR)
8732You lose.
8733# endif
8734#endif
8735
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008736#if defined S_ISBLK && defined S_IFCHR
Rein Klazes7ff12562004-11-09 20:16:35 +00008737# if S_ISBLK (S_IFCHR)
8738You lose.
8739# endif
8740#endif
8741
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008742#if defined S_ISLNK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008743# if S_ISLNK (S_IFREG)
8744You lose.
8745# endif
8746#endif
8747
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008748#if defined S_ISSOCK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008749# if S_ISSOCK (S_IFREG)
8750You lose.
8751# endif
8752#endif
8753
8754_ACEOF
8755if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8756 $EGREP "You lose" >/dev/null 2>&1; then
8757 ac_cv_header_stat_broken=yes
8758else
8759 ac_cv_header_stat_broken=no
8760fi
8761rm -f conftest*
8762
8763fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008764{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8765echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008766if test $ac_cv_header_stat_broken = yes; then
8767
8768cat >>confdefs.h <<\_ACEOF
8769#define STAT_MACROS_BROKEN 1
8770_ACEOF
8771
8772fi
8773
8774
8775
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008776
8777
8778
8779
8780for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8781do
8782as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008783{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8785if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008786 echo $ECHO_N "(cached) $ECHO_C" >&6
8787else
8788 cat >conftest.$ac_ext <<_ACEOF
8789/* confdefs.h. */
8790_ACEOF
8791cat confdefs.h >>conftest.$ac_ext
8792cat >>conftest.$ac_ext <<_ACEOF
8793/* end confdefs.h. */
8794#include <sys/types.h>
8795 #if HAVE_SYS_PARAM_H
8796 # include <sys/param.h>
8797 #endif
8798
8799#include <$ac_header>
8800_ACEOF
8801rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008802if { (ac_try="$ac_compile"
8803case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806esac
8807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008809 ac_status=$?
8810 grep -v '^ *+' conftest.er1 >conftest.err
8811 rm -f conftest.er1
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8816 { (case "(($ac_try" in
8817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818 *) ac_try_echo=$ac_try;;
8819esac
8820eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008822 ac_status=$?
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); }; } &&
8825 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008826 { (case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829esac
8830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 eval "$as_ac_Header=yes"
8836else
8837 echo "$as_me: failed program was:" >&5
8838sed 's/^/| /' conftest.$ac_ext >&5
8839
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008840 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008841fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008842
Jeremy White0ebeb532006-06-20 13:18:41 +02008843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008844fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008845ac_res=`eval echo '${'$as_ac_Header'}'`
8846 { echo "$as_me:$LINENO: result: $ac_res" >&5
8847echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008848if test `eval echo '${'$as_ac_Header'}'` = yes; then
8849 cat >>confdefs.h <<_ACEOF
8850#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8851_ACEOF
8852
8853fi
8854
8855done
8856
8857
8858
8859
8860
8861
8862
8863
8864for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8865do
8866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008870 echo $ECHO_N "(cached) $ECHO_C" >&6
8871else
8872 cat >conftest.$ac_ext <<_ACEOF
8873/* confdefs.h. */
8874_ACEOF
8875cat confdefs.h >>conftest.$ac_ext
8876cat >>conftest.$ac_ext <<_ACEOF
8877/* end confdefs.h. */
8878#include <sys/types.h>
8879 #if HAVE_SYS_SOCKET_H
8880 # include <sys/socket.h>
8881 #endif
8882
8883#include <$ac_header>
8884_ACEOF
8885rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008886if { (ac_try="$ac_compile"
8887case "(($ac_try" in
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8890esac
8891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008893 ac_status=$?
8894 grep -v '^ *+' conftest.er1 >conftest.err
8895 rm -f conftest.er1
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8900 { (case "(($ac_try" in
8901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8903esac
8904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913esac
8914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 eval "$as_ac_Header=yes"
8920else
8921 echo "$as_me: failed program was:" >&5
8922sed 's/^/| /' conftest.$ac_ext >&5
8923
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008924 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008925fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008926
Jeremy White0ebeb532006-06-20 13:18:41 +02008927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008928fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008929ac_res=`eval echo '${'$as_ac_Header'}'`
8930 { echo "$as_me:$LINENO: result: $ac_res" >&5
8931echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008932if test `eval echo '${'$as_ac_Header'}'` = yes; then
8933 cat >>confdefs.h <<_ACEOF
8934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935_ACEOF
8936
8937fi
8938
8939done
8940
8941
8942
8943for ac_header in resolv.h
8944do
8945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008946{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008949 echo $ECHO_N "(cached) $ECHO_C" >&6
8950else
8951 cat >conftest.$ac_ext <<_ACEOF
8952/* confdefs.h. */
8953_ACEOF
8954cat confdefs.h >>conftest.$ac_ext
8955cat >>conftest.$ac_ext <<_ACEOF
8956/* end confdefs.h. */
8957#include <sys/types.h>
8958 #if HAVE_SYS_SOCKET_H
8959 # include <sys/socket.h>
8960 #endif
8961 #if HAVE_NETINET_IN_H
8962 # include <netinet/in.h>
8963 #endif
8964 #if HAVE_ARPA_NAMESER_H
8965 # include <arpa/nameser.h>
8966 #endif
8967
8968#include <$ac_header>
8969_ACEOF
8970rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008971if { (ac_try="$ac_compile"
8972case "(($ac_try" in
8973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8974 *) ac_try_echo=$ac_try;;
8975esac
8976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8977 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8985 { (case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988esac
8989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008995 { (case "(($ac_try" in
8996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997 *) ac_try_echo=$ac_try;;
8998esac
8999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 eval "$as_ac_Header=yes"
9005else
9006 echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009009 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009010fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009011
Jeremy White0ebeb532006-06-20 13:18:41 +02009012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009013fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009014ac_res=`eval echo '${'$as_ac_Header'}'`
9015 { echo "$as_me:$LINENO: result: $ac_res" >&5
9016echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009017if test `eval echo '${'$as_ac_Header'}'` = yes; then
9018 cat >>confdefs.h <<_ACEOF
9019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9020_ACEOF
9021
9022fi
9023
9024done
9025
9026
9027
9028for ac_header in ucontext.h
9029do
9030as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009031{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9033if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009034 echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036 cat >conftest.$ac_ext <<_ACEOF
9037/* confdefs.h. */
9038_ACEOF
9039cat confdefs.h >>conftest.$ac_ext
9040cat >>conftest.$ac_ext <<_ACEOF
9041/* end confdefs.h. */
9042#include <signal.h>
9043
9044#include <$ac_header>
9045_ACEOF
9046rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009047if { (ac_try="$ac_compile"
9048case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9064esac
9065eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009071 { (case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9074esac
9075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009077 ac_status=$?
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 eval "$as_ac_Header=yes"
9081else
9082 echo "$as_me: failed program was:" >&5
9083sed 's/^/| /' conftest.$ac_ext >&5
9084
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009085 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009086fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009087
Jeremy White0ebeb532006-06-20 13:18:41 +02009088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009089fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009090ac_res=`eval echo '${'$as_ac_Header'}'`
9091 { echo "$as_me:$LINENO: result: $ac_res" >&5
9092echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009093if test `eval echo '${'$as_ac_Header'}'` = yes; then
9094 cat >>confdefs.h <<_ACEOF
9095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9096_ACEOF
9097
9098fi
9099
9100done
9101
9102
9103
9104
9105for ac_header in linux/ipx.h linux/videodev.h
9106do
9107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009108{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112else
9113 cat >conftest.$ac_ext <<_ACEOF
9114/* confdefs.h. */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h. */
9119#ifdef HAVE_SYS_TIME_H
9120#include <sys/time.h>
9121#endif
9122#include <sys/types.h>
9123#ifdef HAVE_ASM_TYPES_H
9124#include <asm/types.h>
9125#endif
9126
9127#include <$ac_header>
9128_ACEOF
9129rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009130if { (ac_try="$ac_compile"
9131case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134esac
9135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9144 { (case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147esac
9148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009154 { (case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157esac
9158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009160 ac_status=$?
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); }; }; then
9163 eval "$as_ac_Header=yes"
9164else
9165 echo "$as_me: failed program was:" >&5
9166sed 's/^/| /' conftest.$ac_ext >&5
9167
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009168 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009169fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009170
Jeremy White0ebeb532006-06-20 13:18:41 +02009171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009172fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009173ac_res=`eval echo '${'$as_ac_Header'}'`
9174 { echo "$as_me:$LINENO: result: $ac_res" >&5
9175echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009176if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9179_ACEOF
9180
9181fi
9182
9183done
9184
9185
9186
Alexandre Julliardb079add2006-02-24 11:46:17 +01009187for ac_header in linux/capi.h
9188do
9189as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009190{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardb079add2006-02-24 11:46:17 +01009193 echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195 cat >conftest.$ac_ext <<_ACEOF
9196/* confdefs.h. */
9197_ACEOF
9198cat confdefs.h >>conftest.$ac_ext
9199cat >>conftest.$ac_ext <<_ACEOF
9200/* end confdefs.h. */
9201#define __user
9202
9203#include <$ac_header>
9204_ACEOF
9205rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009206if { (ac_try="$ac_compile"
9207case "(($ac_try" in
9208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9209 *) ac_try_echo=$ac_try;;
9210esac
9211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9212 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb079add2006-02-24 11:46:17 +01009213 ac_status=$?
9214 grep -v '^ *+' conftest.er1 >conftest.err
9215 rm -f conftest.er1
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9220 { (case "(($ac_try" in
9221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9222 *) ac_try_echo=$ac_try;;
9223esac
9224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9225 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01009226 ac_status=$?
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; } &&
9229 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009230 { (case "(($ac_try" in
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9233esac
9234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01009236 ac_status=$?
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; }; then
9239 eval "$as_ac_Header=yes"
9240else
9241 echo "$as_me: failed program was:" >&5
9242sed 's/^/| /' conftest.$ac_ext >&5
9243
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009244 eval "$as_ac_Header=no"
Alexandre Julliardb079add2006-02-24 11:46:17 +01009245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009246
Jeremy White0ebeb532006-06-20 13:18:41 +02009247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb079add2006-02-24 11:46:17 +01009248fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009249ac_res=`eval echo '${'$as_ac_Header'}'`
9250 { echo "$as_me:$LINENO: result: $ac_res" >&5
9251echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardb079add2006-02-24 11:46:17 +01009252if test `eval echo '${'$as_ac_Header'}'` = yes; then
9253 cat >>confdefs.h <<_ACEOF
9254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9255_ACEOF
9256
9257fi
9258
9259done
9260
9261
9262
Rein Klazes7ff12562004-11-09 20:16:35 +00009263if test "$have_x" = "yes"
9264then
9265 XLIB="-lXext -lX11"
9266 ac_save_CPPFLAGS="$CPPFLAGS"
9267 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9268
9269
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009270
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009271
Alexandre Julliard255b4862003-10-15 04:09:55 +00009272
9273
9274
9275
9276
9277
9278
Alexandre Julliard73482142005-08-03 19:21:04 +00009279for ac_header in X11/Xlib.h \
9280 X11/XKBlib.h \
9281 X11/Xutil.h \
9282 X11/extensions/shape.h \
9283 X11/extensions/XInput.h \
9284 X11/extensions/XShm.h \
9285 X11/extensions/Xrandr.h \
9286 X11/extensions/Xrender.h \
9287 X11/extensions/xf86dga.h \
9288 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009289do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009291{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9293if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009294 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009295else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009296 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009297/* confdefs.h. */
9298_ACEOF
9299cat confdefs.h >>conftest.$ac_ext
9300cat >>conftest.$ac_ext <<_ACEOF
9301/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009302#ifdef HAVE_X11_XLIB_H
9303# include <X11/Xlib.h>
9304#endif
9305#ifdef HAVE_X11_XUTIL_H
9306# include <X11/Xutil.h>
9307#endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009308
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009309#include <$ac_header>
9310_ACEOF
9311rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009312if { (ac_try="$ac_compile"
9313case "(($ac_try" in
9314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315 *) ac_try_echo=$ac_try;;
9316esac
9317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009319 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009320 grep -v '^ *+' conftest.er1 >conftest.err
9321 rm -f conftest.er1
9322 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329esac
9330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009332 ac_status=$?
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); }; } &&
9335 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009336 { (case "(($ac_try" in
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9339esac
9340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009345 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009346else
9347 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009348sed 's/^/| /' conftest.$ac_ext >&5
9349
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009350 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009351fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009352
Jeremy White0ebeb532006-06-20 13:18:41 +02009353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009354fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009355ac_res=`eval echo '${'$as_ac_Header'}'`
9356 { echo "$as_me:$LINENO: result: $ac_res" >&5
9357echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009358if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009359 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009361_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00009362
9363fi
9364
9365done
9366
9367
9368 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9369 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009370 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9371echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009372if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009374else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009375 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00009376LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009377cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009378/* confdefs.h. */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009383
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009384/* Override any GCC internal prototype to avoid an error.
9385 Use char because int might match the return type of a GCC
9386 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009387#ifdef __cplusplus
9388extern "C"
9389#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009390char XkbQueryExtension ();
9391int
9392main ()
9393{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009394return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009395 ;
9396 return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009400if { (ac_try="$ac_link"
9401case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404esac
9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009407 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009412 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9414 { (case "(($ac_try" in
9415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9417esac
9418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; } &&
9423 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009424 { (case "(($ac_try" in
9425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426 *) ac_try_echo=$ac_try;;
9427esac
9428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009430 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009432 (exit $ac_status); }; }; then
9433 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009434else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009435 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009436sed 's/^/| /' conftest.$ac_ext >&5
9437
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009438 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009439fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009440
Jeremy White0ebeb532006-06-20 13:18:41 +02009441rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009442 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009443LIBS=$ac_check_lib_save_LIBS
9444fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009445{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9446echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009447if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009448
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009449cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009450#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009451_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009452
Patrik Stridvall24110281999-02-04 10:09:54 +00009453fi
9454
Alexandre Julliard255b4862003-10-15 04:09:55 +00009455 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009456
Alexandre Julliard255b4862003-10-15 04:09:55 +00009457 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9458 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009459 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9460echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009461if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00009463else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009464 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00009465LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009466cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009467/* confdefs.h. */
9468_ACEOF
9469cat confdefs.h >>conftest.$ac_ext
9470cat >>conftest.$ac_ext <<_ACEOF
9471/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009472
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009473/* Override any GCC internal prototype to avoid an error.
9474 Use char because int might match the return type of a GCC
9475 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009476#ifdef __cplusplus
9477extern "C"
9478#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009479char XShmQueryExtension ();
9480int
9481main ()
9482{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009483return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009484 ;
9485 return 0;
9486}
9487_ACEOF
9488rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009489if { (ac_try="$ac_link"
9490case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493esac
9494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009496 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009501 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9503 { (case "(($ac_try" in
9504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9505 *) ac_try_echo=$ac_try;;
9506esac
9507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9508 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; } &&
9512 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009513 { (case "(($ac_try" in
9514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9515 *) ac_try_echo=$ac_try;;
9516esac
9517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9518 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009519 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009521 (exit $ac_status); }; }; then
9522 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00009523else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009524 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009525sed 's/^/| /' conftest.$ac_ext >&5
9526
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009527 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00009528fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009529
Jeremy White0ebeb532006-06-20 13:18:41 +02009530rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009531 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009532LIBS=$ac_check_lib_save_LIBS
9533fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009534{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9535echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009536if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00009537
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009538cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009539#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009540_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00009541
Francois Jacques5b6879c2000-07-28 23:04:54 +00009542fi
9543
Alexandre Julliard255b4862003-10-15 04:09:55 +00009544 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009545
Alexandre Julliard255b4862003-10-15 04:09:55 +00009546 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9547 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009548 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9549echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009550if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00009552else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009553 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00009554LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009555cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009556/* confdefs.h. */
9557_ACEOF
9558cat confdefs.h >>conftest.$ac_ext
9559cat >>conftest.$ac_ext <<_ACEOF
9560/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009561
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009562/* Override any GCC internal prototype to avoid an error.
9563 Use char because int might match the return type of a GCC
9564 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009565#ifdef __cplusplus
9566extern "C"
9567#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009568char XShapeQueryExtension ();
9569int
9570main ()
9571{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009572return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009573 ;
9574 return 0;
9575}
9576_ACEOF
9577rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009578if { (ac_try="$ac_link"
9579case "(($ac_try" in
9580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581 *) ac_try_echo=$ac_try;;
9582esac
9583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9584 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009585 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009586 grep -v '^ *+' conftest.er1 >conftest.err
9587 rm -f conftest.er1
9588 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009590 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9592 { (case "(($ac_try" in
9593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9594 *) ac_try_echo=$ac_try;;
9595esac
9596eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9597 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009598 ac_status=$?
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); }; } &&
9601 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009602 { (case "(($ac_try" in
9603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604 *) ac_try_echo=$ac_try;;
9605esac
9606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009608 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009610 (exit $ac_status); }; }; then
9611 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00009612else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009613 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009614sed 's/^/| /' conftest.$ac_ext >&5
9615
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009616 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00009617fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009618
Jeremy White0ebeb532006-06-20 13:18:41 +02009619rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009620 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009621LIBS=$ac_check_lib_save_LIBS
9622fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009623{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9624echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009625if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00009626
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009627cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009628#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009629_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009630
Ove Kaavenc90fb252001-01-02 22:39:14 +00009631fi
9632
Alexandre Julliard255b4862003-10-15 04:09:55 +00009633 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009634
Alexandre Julliard255b4862003-10-15 04:09:55 +00009635 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
9636 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009637 { echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
9638echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009639if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009641else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009642 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00009643LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009644cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009645/* confdefs.h. */
9646_ACEOF
9647cat confdefs.h >>conftest.$ac_ext
9648cat >>conftest.$ac_ext <<_ACEOF
9649/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009650
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009651/* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009654#ifdef __cplusplus
9655extern "C"
9656#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009657char XDGAQueryExtension ();
9658int
9659main ()
9660{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009661return XDGAQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009662 ;
9663 return 0;
9664}
9665_ACEOF
9666rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009667if { (ac_try="$ac_link"
9668case "(($ac_try" in
9669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670 *) ac_try_echo=$ac_try;;
9671esac
9672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009674 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009675 grep -v '^ *+' conftest.er1 >conftest.err
9676 rm -f conftest.er1
9677 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009679 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684esac
9685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009687 ac_status=$?
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; } &&
9690 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009691 { (case "(($ac_try" in
9692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693 *) ac_try_echo=$ac_try;;
9694esac
9695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009697 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009699 (exit $ac_status); }; }; then
9700 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00009701else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009702 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009703sed 's/^/| /' conftest.$ac_ext >&5
9704
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009705 ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00009706fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009707
Jeremy White0ebeb532006-06-20 13:18:41 +02009708rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009709 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009710LIBS=$ac_check_lib_save_LIBS
9711fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009712{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
9713echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009714if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00009715
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009716cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00009717#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009718_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00009719
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009720 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009721
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009722fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009723
Alexandre Julliard255b4862003-10-15 04:09:55 +00009724 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009725
Alexandre Julliard255b4862003-10-15 04:09:55 +00009726 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9727 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009728 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9729echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009730if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009732else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009733 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00009734LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009735cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009736/* confdefs.h. */
9737_ACEOF
9738cat confdefs.h >>conftest.$ac_ext
9739cat >>conftest.$ac_ext <<_ACEOF
9740/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009741
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009742/* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009745#ifdef __cplusplus
9746extern "C"
9747#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009748char XF86VidModeQueryExtension ();
9749int
9750main ()
9751{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009752return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009753 ;
9754 return 0;
9755}
9756_ACEOF
9757rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009758if { (ac_try="$ac_link"
9759case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762esac
9763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009765 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009770 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9772 { (case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775esac
9776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009778 ac_status=$?
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); }; } &&
9781 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009782 { (case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785esac
9786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009788 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009790 (exit $ac_status); }; }; then
9791 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009792else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009793 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009794sed 's/^/| /' conftest.$ac_ext >&5
9795
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009796 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009797fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009798
Jeremy White0ebeb532006-06-20 13:18:41 +02009799rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009800 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009801LIBS=$ac_check_lib_save_LIBS
9802fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009803{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9804echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009805if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009806
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009807cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009808#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009809_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009810
9811 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009812
Patrik Stridvall24110281999-02-04 10:09:54 +00009813fi
9814
Alexandre Julliard255b4862003-10-15 04:09:55 +00009815 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009816
Alexandre Julliard255b4862003-10-15 04:09:55 +00009817 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9818 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00009819 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00009825#include <X11/Xlib.h>
9826#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009827int
9828main ()
9829{
Mike McCormackc7c9f932004-04-07 03:57:35 +00009830static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009831 ;
9832 return 0;
9833}
9834_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00009835rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009836if { (ac_try="$ac_compile"
9837case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840esac
9841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842 (eval "$ac_compile") 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009843 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9850 { (case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009856 ac_status=$?
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00009859 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009860 { (case "(($ac_try" in
9861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9862 *) ac_try_echo=$ac_try;;
9863esac
9864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9865 (eval "$ac_try") 2>&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009866 ac_status=$?
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009869
9870cat >>confdefs.h <<\_ACEOF
9871#define HAVE_LIBXRANDR 1
9872_ACEOF
9873
Mike McCormackc7c9f932004-04-07 03:57:35 +00009874else
9875 echo "$as_me: failed program was:" >&5
9876sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009877
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009878
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009879fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009880
Jeremy White0ebeb532006-06-20 13:18:41 +02009881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00009882 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009883
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009884 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9885 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009886 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9887echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009888if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9890else
9891 ac_check_lib_save_LIBS=$LIBS
9892LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
9898/* end confdefs.h. */
9899
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009900/* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009903#ifdef __cplusplus
9904extern "C"
9905#endif
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009906char XRenderSetPictureTransform ();
9907int
9908main ()
9909{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009910return XRenderSetPictureTransform ();
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9930 { (case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933esac
9934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009936 ac_status=$?
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); }; } &&
9939 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009940 { (case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943esac
9944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9950else
9951 echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009954 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009955fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009956
Jeremy White0ebeb532006-06-20 13:18:41 +02009957rm -f core conftest.err conftest.$ac_objext \
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009958 conftest$ac_exeext conftest.$ac_ext
9959LIBS=$ac_check_lib_save_LIBS
9960fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009961{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9962echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009963if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9964
9965cat >>confdefs.h <<\_ACEOF
9966#define HAVE_XRENDERSETPICTURETRANSFORM 1
9967_ACEOF
9968
9969fi
9970
9971 fi
9972
Alexandre Julliardb8074992002-11-21 21:51:24 +00009973 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009974 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009975
9976
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009977
Huw Davies4eb45462006-03-07 13:55:35 +00009978
9979for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009980do
9981as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009982{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9984if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009985 echo $ECHO_N "(cached) $ECHO_C" >&6
9986else
9987 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009993#ifdef HAVE_GL_GLX_H
9994# include <GL/glx.h>
9995#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009996
9997#include <$ac_header>
9998_ACEOF
9999rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010000if { (ac_try="$ac_compile"
10001case "(($ac_try" in
10002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10003 *) ac_try_echo=$ac_try;;
10004esac
10005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10006 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010007 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010008 grep -v '^ *+' conftest.er1 >conftest.err
10009 rm -f conftest.er1
10010 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10014 { (case "(($ac_try" in
10015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10016 *) ac_try_echo=$ac_try;;
10017esac
10018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10019 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010020 ac_status=$?
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); }; } &&
10023 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010024 { (case "(($ac_try" in
10025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10026 *) ac_try_echo=$ac_try;;
10027esac
10028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10029 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010030 ac_status=$?
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); }; }; then
10033 eval "$as_ac_Header=yes"
10034else
10035 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010036sed 's/^/| /' conftest.$ac_ext >&5
10037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010038 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010039fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010040
Jeremy White0ebeb532006-06-20 13:18:41 +020010041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010042fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010043ac_res=`eval echo '${'$as_ac_Header'}'`
10044 { echo "$as_me:$LINENO: result: $ac_res" >&5
10045echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010046if test `eval echo '${'$as_ac_Header'}'` = yes; then
10047 cat >>confdefs.h <<_ACEOF
10048#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10049_ACEOF
10050
10051fi
10052
10053done
10054
Alexandre Julliard73482142005-08-03 19:21:04 +000010055 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
10056 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010057 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
10058echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010059if test "${wine_cv_opengl_version_OK+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +000010061else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010062 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010063/* confdefs.h. */
10064_ACEOF
10065cat confdefs.h >>conftest.$ac_ext
10066cat >>conftest.$ac_ext <<_ACEOF
10067/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +000010068#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010069int
10070main ()
10071{
Lionel Ulmer5c085701999-02-28 19:48:53 +000010072GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010073 ;
10074 return 0;
10075}
10076_ACEOF
10077rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010078if { (ac_try="$ac_compile"
10079case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10082esac
10083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010085 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010090 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10092 { (case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095esac
10096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10097 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010098 ac_status=$?
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; } &&
10101 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010102 { (case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10105esac
10106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010108 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010110 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000010111 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +000010112else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010113 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010114sed 's/^/| /' conftest.$ac_ext >&5
10115
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010116 wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000010117
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010118fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010119
Jeremy White0ebeb532006-06-20 13:18:41 +020010120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +000010121
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010122fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010123{ echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
10124echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010125
Alexandre Julliardb8074992002-11-21 21:51:24 +000010126 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010127 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010128 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
10129echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010130if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +000010132else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010133 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +000010134LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010135cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010136/* confdefs.h. */
10137_ACEOF
10138cat confdefs.h >>conftest.$ac_ext
10139cat >>conftest.$ac_ext <<_ACEOF
10140/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010141
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010142/* Override any GCC internal prototype to avoid an error.
10143 Use char because int might match the return type of a GCC
10144 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010145#ifdef __cplusplus
10146extern "C"
10147#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010148char glXCreateContext ();
10149int
10150main ()
10151{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010152return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010158if { (ac_try="$ac_link"
10159case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
10163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10164 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010165 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010170 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10172 { (case "(($ac_try" in
10173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10174 *) ac_try_echo=$ac_try;;
10175esac
10176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010178 ac_status=$?
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); }; } &&
10181 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010182 { (case "(($ac_try" in
10183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10184 *) ac_try_echo=$ac_try;;
10185esac
10186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010188 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010190 (exit $ac_status); }; }; then
10191 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +000010192else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010193 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010194sed 's/^/| /' conftest.$ac_ext >&5
10195
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010196 ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +000010197fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010198
Jeremy White0ebeb532006-06-20 13:18:41 +020010199rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010200 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010201LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +000010202fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010203{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10204echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010205if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010206 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +000010207
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010208fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010209
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010210
Alexandre Julliardb508a1d2002-01-21 18:06:10 +000010211 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +000010212 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +000010213 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010214
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010215cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +000010216#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010217_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +000010218
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +000010219 else
10220 if test -f /usr/X11R6/lib/libGL.a
10221 then
10222 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10223This prevents linking to OpenGL. Delete the file and restart configure." >&5
10224echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10225This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10226 { (exit 1); exit 1; }; }
10227 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010228 fi
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +000010229
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010230 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10231echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010232if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010234else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010235 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010236LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010237 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010238cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010239/* confdefs.h. */
10240_ACEOF
10241cat confdefs.h >>conftest.$ac_ext
10242cat >>conftest.$ac_ext <<_ACEOF
10243/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010245/* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010248#ifdef __cplusplus
10249extern "C"
10250#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010251char gluLookAt ();
10252int
10253main ()
10254{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010255return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010256 ;
10257 return 0;
10258}
10259_ACEOF
10260rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010261if { (ac_try="$ac_link"
10262case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265esac
10266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010268 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010273 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10275 { (case "(($ac_try" in
10276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277 *) ac_try_echo=$ac_try;;
10278esac
10279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; } &&
10284 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010285 { (case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288esac
10289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010291 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010293 (exit $ac_status); }; }; then
10294 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010295else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010296 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010297sed 's/^/| /' conftest.$ac_ext >&5
10298
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010299 ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010300fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010301
Jeremy White0ebeb532006-06-20 13:18:41 +020010302rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010303 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010304LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010305fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010306{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10307echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010308if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010309 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010310 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010311
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010312fi
10313
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010314 fi
Jacek Cabanef799c42003-12-02 04:11:09 +000010315
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010316 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10317echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +000010318if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +000010322LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +000010323cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +000010324/* confdefs.h. */
10325_ACEOF
10326cat confdefs.h >>conftest.$ac_ext
10327cat >>conftest.$ac_ext <<_ACEOF
10328/* end confdefs.h. */
10329
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010330/* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
Jacek Cabanef799c42003-12-02 04:11:09 +000010333#ifdef __cplusplus
10334extern "C"
10335#endif
Jacek Cabanef799c42003-12-02 04:11:09 +000010336char glutMainLoop ();
10337int
10338main ()
10339{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010340return glutMainLoop ();
Jacek Cabanef799c42003-12-02 04:11:09 +000010341 ;
10342 return 0;
10343}
10344_ACEOF
10345rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010346if { (ac_try="$ac_link"
10347case "(($ac_try" in
10348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10349 *) ac_try_echo=$ac_try;;
10350esac
10351eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10352 (eval "$ac_link") 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +000010353 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010354 grep -v '^ *+' conftest.er1 >conftest.err
10355 rm -f conftest.er1
10356 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +000010357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10358 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10360 { (case "(($ac_try" in
10361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362 *) ac_try_echo=$ac_try;;
10363esac
10364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; } &&
10369 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010370 { (case "(($ac_try" in
10371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10372 *) ac_try_echo=$ac_try;;
10373esac
10374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10375 (eval "$ac_try") 2>&5
Jacek Cabanef799c42003-12-02 04:11:09 +000010376 ac_status=$?
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); }; }; then
10379 ac_cv_lib_glut_glutMainLoop=yes
10380else
10381 echo "$as_me: failed program was:" >&5
10382sed 's/^/| /' conftest.$ac_ext >&5
10383
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010384 ac_cv_lib_glut_glutMainLoop=no
Jacek Cabanef799c42003-12-02 04:11:09 +000010385fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010386
Jeremy White0ebeb532006-06-20 13:18:41 +020010387rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010388 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +000010389LIBS=$ac_check_lib_save_LIBS
10390fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010391{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10392echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +000010393if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +000010394 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +000010395
10396 GLUT32FILES='$(GLUT32FILES)'
10397
10398fi
10399
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010400 fi
Patrik Stridvall24110281999-02-04 10:09:54 +000010401 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010402
Francois Gouget6f670b12002-10-10 17:54:27 +000010403 NASLIBS=""
10404
10405
10406for ac_header in audio/audiolib.h
10407do
10408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010409if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10412if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010413 echo $ECHO_N "(cached) $ECHO_C" >&6
10414fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010415ac_res=`eval echo '${'$as_ac_Header'}'`
10416 { echo "$as_me:$LINENO: result: $ac_res" >&5
10417echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010418else
10419 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010420{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10421echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010422cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010428$ac_includes_default
10429#include <$ac_header>
10430_ACEOF
10431rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010432if { (ac_try="$ac_compile"
10433case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436esac
10437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010439 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449esac
10450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459esac
10460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_header_compiler=yes
10466else
10467 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010468sed 's/^/| /' conftest.$ac_ext >&5
10469
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010470 ac_header_compiler=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010471fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010472
Jeremy White0ebeb532006-06-20 13:18:41 +020010473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010474{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10475echo "${ECHO_T}$ac_header_compiler" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010476
10477# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010478{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010480cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010481/* confdefs.h. */
10482_ACEOF
10483cat confdefs.h >>conftest.$ac_ext
10484cat >>conftest.$ac_ext <<_ACEOF
10485/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010486#include <$ac_header>
10487_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010488if { (ac_try="$ac_cpp conftest.$ac_ext"
10489case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10492esac
10493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010495 ac_status=$?
10496 grep -v '^ *+' conftest.er1 >conftest.err
10497 rm -f conftest.er1
10498 cat conftest.err >&5
10499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500 (exit $ac_status); } >/dev/null; then
10501 if test -s conftest.err; then
10502 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010503 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +000010504 else
10505 ac_cpp_err=
10506 fi
10507else
10508 ac_cpp_err=yes
10509fi
10510if test -z "$ac_cpp_err"; then
10511 ac_header_preproc=yes
10512else
10513 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010514sed 's/^/| /' conftest.$ac_ext >&5
10515
Francois Gouget6f670b12002-10-10 17:54:27 +000010516 ac_header_preproc=no
10517fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010518
Francois Gouget6f670b12002-10-10 17:54:27 +000010519rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010520{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10521echo "${ECHO_T}$ac_header_preproc" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010522
10523# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010524case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10525 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +000010526 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10527echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10529echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10530 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010531 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010532 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +000010533 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10534echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010535 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10536echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10537 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10538echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10539 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10540echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +000010541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010542echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010543 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10544echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010545 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010546## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010547## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010548## ------------------------------------ ##
10549_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010550 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010551 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +000010552esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010553{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10555if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010556 echo $ECHO_N "(cached) $ECHO_C" >&6
10557else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010558 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +000010559fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010560ac_res=`eval echo '${'$as_ac_Header'}'`
10561 { echo "$as_me:$LINENO: result: $ac_res" >&5
10562echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010563
10564fi
10565if test `eval echo '${'$as_ac_Header'}'` = yes; then
10566 cat >>confdefs.h <<_ACEOF
10567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10568_ACEOF
10569
10570for ac_header in audio/soundlib.h
10571do
10572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010573{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10575if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010576 echo $ECHO_N "(cached) $ECHO_C" >&6
10577else
10578 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010579/* confdefs.h. */
10580_ACEOF
10581cat confdefs.h >>conftest.$ac_ext
10582cat >>conftest.$ac_ext <<_ACEOF
10583/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010584#include <audio/audiolib.h>
10585
10586#include <$ac_header>
10587_ACEOF
10588rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010589if { (ac_try="$ac_compile"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010596 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10603 { (case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606esac
10607eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616esac
10617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010619 ac_status=$?
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); }; }; then
10622 eval "$as_ac_Header=yes"
10623else
10624 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010625sed 's/^/| /' conftest.$ac_ext >&5
10626
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010627 eval "$as_ac_Header=no"
Francois Gouget6f670b12002-10-10 17:54:27 +000010628fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010629
Jeremy White0ebeb532006-06-20 13:18:41 +020010630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010631fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010632ac_res=`eval echo '${'$as_ac_Header'}'`
10633 { echo "$as_me:$LINENO: result: $ac_res" >&5
10634echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010635if test `eval echo '${'$as_ac_Header'}'` = yes; then
10636 cat >>confdefs.h <<_ACEOF
10637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10638_ACEOF
10639
10640fi
10641
10642done
10643
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010644 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10645echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010646if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648else
10649 ac_check_lib_save_LIBS=$LIBS
10650LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10651cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010652/* confdefs.h. */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010657
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010658/* Override any GCC internal prototype to avoid an error.
10659 Use char because int might match the return type of a GCC
10660 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010661#ifdef __cplusplus
10662extern "C"
10663#endif
Francois Gouget6f670b12002-10-10 17:54:27 +000010664char AuCreateFlow ();
10665int
10666main ()
10667{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010668return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +000010669 ;
10670 return 0;
10671}
10672_ACEOF
10673rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010674if { (ac_try="$ac_link"
10675case "(($ac_try" in
10676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10677 *) ac_try_echo=$ac_try;;
10678esac
10679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010681 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010682 grep -v '^ *+' conftest.er1 >conftest.err
10683 rm -f conftest.er1
10684 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10688 { (case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
10692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10693 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010698 { (case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10701esac
10702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_lib_audio_AuCreateFlow=yes
10708else
10709 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010710sed 's/^/| /' conftest.$ac_ext >&5
10711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010712 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010713fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010714
Jeremy White0ebeb532006-06-20 13:18:41 +020010715rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010716 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010717LIBS=$ac_check_lib_save_LIBS
10718fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010719{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10720echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010721if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10722
10723cat >>confdefs.h <<\_ACEOF
10724#define HAVE_NAS 1
10725_ACEOF
10726
10727 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10728fi
10729
10730fi
10731
10732done
10733
10734
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010735 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +000010736 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +000010737else
10738 XLIB=""
10739 X_CFLAGS=""
10740 X_LIBS=""
10741fi
Alexandre Julliard902da691995-11-05 14:39:02 +000010742
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010743
10744XML2LIBS=""
10745
10746XML2INCL=""
10747
Mike McCormackf3719a82005-09-03 09:39:38 +000010748XSLTLIBS=""
10749
10750XSLTINCL=""
10751
Mike McCormack90c75bd2005-08-08 18:36:53 +000010752if test "$PKG_CONFIG" != "false"
10753then
10754 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010755 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10756 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
Mike McCormack90c75bd2005-08-08 18:36:53 +000010757 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010758
10759for ac_header in libxml/parser.h
10760do
10761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10765if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010766 echo $ECHO_N "(cached) $ECHO_C" >&6
10767fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010768ac_res=`eval echo '${'$as_ac_Header'}'`
10769 { echo "$as_me:$LINENO: result: $ac_res" >&5
10770echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010771else
10772 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010773{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10774echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010775cat >conftest.$ac_ext <<_ACEOF
10776/* confdefs.h. */
10777_ACEOF
10778cat confdefs.h >>conftest.$ac_ext
10779cat >>conftest.$ac_ext <<_ACEOF
10780/* end confdefs.h. */
10781$ac_includes_default
10782#include <$ac_header>
10783_ACEOF
10784rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010785if { (ac_try="$ac_compile"
10786case "(($ac_try" in
10787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10788 *) ac_try_echo=$ac_try;;
10789esac
10790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10791 (eval "$ac_compile") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010792 ac_status=$?
10793 grep -v '^ *+' conftest.er1 >conftest.err
10794 rm -f conftest.er1
10795 cat conftest.err >&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10802esac
10803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; } &&
10808 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010809 { (case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010815 ac_status=$?
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); }; }; then
10818 ac_header_compiler=yes
10819else
10820 echo "$as_me: failed program was:" >&5
10821sed 's/^/| /' conftest.$ac_ext >&5
10822
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010823 ac_header_compiler=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010824fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010825
Jeremy White0ebeb532006-06-20 13:18:41 +020010826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010827{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10828echo "${ECHO_T}$ac_header_compiler" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010829
10830# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010831{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010833cat >conftest.$ac_ext <<_ACEOF
10834/* confdefs.h. */
10835_ACEOF
10836cat confdefs.h >>conftest.$ac_ext
10837cat >>conftest.$ac_ext <<_ACEOF
10838/* end confdefs.h. */
10839#include <$ac_header>
10840_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010841if { (ac_try="$ac_cpp conftest.$ac_ext"
10842case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845esac
10846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } >/dev/null; then
10854 if test -s conftest.err; then
10855 ac_cpp_err=$ac_c_preproc_warn_flag
10856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10857 else
10858 ac_cpp_err=
10859 fi
10860else
10861 ac_cpp_err=yes
10862fi
10863if test -z "$ac_cpp_err"; then
10864 ac_header_preproc=yes
10865else
10866 echo "$as_me: failed program was:" >&5
10867sed 's/^/| /' conftest.$ac_ext >&5
10868
10869 ac_header_preproc=no
10870fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010871
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010872rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010873{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10874echo "${ECHO_T}$ac_header_preproc" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010875
10876# So? What about this header?
10877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10878 yes:no: )
10879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10883 ac_header_preproc=yes
10884 ;;
10885 no:yes:* )
10886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010898 ( cat <<\_ASBOX
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010899## ------------------------------------ ##
10900## Report this to wine-devel@winehq.org ##
10901## ------------------------------------ ##
10902_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010903 ) | sed "s/^/$as_me: WARNING: /" >&2
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010904 ;;
10905esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010906{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10908if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010909 echo $ECHO_N "(cached) $ECHO_C" >&6
10910else
10911 eval "$as_ac_Header=\$ac_header_preproc"
10912fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010913ac_res=`eval echo '${'$as_ac_Header'}'`
10914 { echo "$as_me:$LINENO: result: $ac_res" >&5
10915echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010916
10917fi
10918if test `eval echo '${'$as_ac_Header'}'` = yes; then
10919 cat >>confdefs.h <<_ACEOF
10920#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10921_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010922 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10923echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010924if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010925 echo $ECHO_N "(cached) $ECHO_C" >&6
10926else
10927 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +000010928LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010929cat >conftest.$ac_ext <<_ACEOF
10930/* confdefs.h. */
10931_ACEOF
10932cat confdefs.h >>conftest.$ac_ext
10933cat >>conftest.$ac_ext <<_ACEOF
10934/* end confdefs.h. */
10935
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010936/* Override any GCC internal prototype to avoid an error.
10937 Use char because int might match the return type of a GCC
10938 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010939#ifdef __cplusplus
10940extern "C"
10941#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +000010942char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010943int
10944main ()
10945{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010946return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010947 ;
10948 return 0;
10949}
10950_ACEOF
10951rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010952if { (ac_try="$ac_link"
10953case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956esac
10957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_link") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10966 { (case "(($ac_try" in
10967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10969esac
10970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010972 ac_status=$?
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; } &&
10975 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010976 { (case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979esac
10980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10981 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010982 ac_status=$?
10983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984 (exit $ac_status); }; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +000010985 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010986else
10987 echo "$as_me: failed program was:" >&5
10988sed 's/^/| /' conftest.$ac_ext >&5
10989
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010990 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010991fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010992
Jeremy White0ebeb532006-06-20 13:18:41 +020010993rm -f core conftest.err conftest.$ac_objext \
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010994 conftest$ac_exeext conftest.$ac_ext
10995LIBS=$ac_check_lib_save_LIBS
10996fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010997{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10998echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010999if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011000
11001cat >>confdefs.h <<\_ACEOF
11002#define HAVE_LIBXML2 1
11003_ACEOF
11004
Mike McCormack90c75bd2005-08-08 18:36:53 +000011005 XML2LIBS="$ac_xml_libs"
11006 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011007fi
11008
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011009 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
11010echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000011011if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
11012 echo $ECHO_N "(cached) $ECHO_C" >&6
11013else
11014 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +000011015LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormack70adb8f2005-08-12 10:35:17 +000011016cat >conftest.$ac_ext <<_ACEOF
11017/* confdefs.h. */
11018_ACEOF
11019cat confdefs.h >>conftest.$ac_ext
11020cat >>conftest.$ac_ext <<_ACEOF
11021/* end confdefs.h. */
11022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011023/* Override any GCC internal prototype to avoid an error.
11024 Use char because int might match the return type of a GCC
11025 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +000011026#ifdef __cplusplus
11027extern "C"
11028#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +000011029char xmlReadMemory ();
11030int
11031main ()
11032{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011033return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +000011034 ;
11035 return 0;
11036}
11037_ACEOF
11038rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011039if { (ac_try="$ac_link"
11040case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11043esac
11044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
Mike McCormack70adb8f2005-08-12 10:35:17 +000011046 ac_status=$?
11047 grep -v '^ *+' conftest.er1 >conftest.err
11048 rm -f conftest.er1
11049 cat conftest.err >&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056esac
11057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000011059 ac_status=$?
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011063 { (case "(($ac_try" in
11064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11065 *) ac_try_echo=$ac_try;;
11066esac
11067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000011069 ac_status=$?
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_cv_lib_xml2_xmlReadMemory=yes
11073else
11074 echo "$as_me: failed program was:" >&5
11075sed 's/^/| /' conftest.$ac_ext >&5
11076
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011077 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +000011078fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011079
Jeremy White0ebeb532006-06-20 13:18:41 +020011080rm -f core conftest.err conftest.$ac_objext \
Mike McCormack70adb8f2005-08-12 10:35:17 +000011081 conftest$ac_exeext conftest.$ac_ext
11082LIBS=$ac_check_lib_save_LIBS
11083fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011084{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
11085echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000011086if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
11087
11088cat >>confdefs.h <<\_ACEOF
11089#define HAVE_XMLREADMEMORY 1
11090_ACEOF
11091
11092fi
11093
11094
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011095fi
11096
11097done
11098
Mike McCormack90c75bd2005-08-08 18:36:53 +000011099 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020011100 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
11101 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
Mike McCormackf3719a82005-09-03 09:39:38 +000011102 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
11103
11104
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000011105for ac_header in libxslt/pattern.h libxslt/transform.h
Mike McCormackf3719a82005-09-03 09:39:38 +000011106do
11107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011108{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11109echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackf3719a82005-09-03 09:39:38 +000011111 echo $ECHO_N "(cached) $ECHO_C" >&6
Mike McCormackf3719a82005-09-03 09:39:38 +000011112else
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000011113 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +000011114/* confdefs.h. */
11115_ACEOF
11116cat confdefs.h >>conftest.$ac_ext
11117cat >>conftest.$ac_ext <<_ACEOF
11118/* end confdefs.h. */
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000011119#ifdef HAVE_LIBXSLT_PATTERN_H
11120# include <libxslt/pattern.h>
11121#endif
11122
Mike McCormackf3719a82005-09-03 09:39:38 +000011123#include <$ac_header>
11124_ACEOF
11125rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011126if { (ac_try="$ac_compile"
11127case "(($ac_try" in
11128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11129 *) ac_try_echo=$ac_try;;
11130esac
11131eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11132 (eval "$ac_compile") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000011133 ac_status=$?
11134 grep -v '^ *+' conftest.er1 >conftest.err
11135 rm -f conftest.er1
11136 cat conftest.err >&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11140 { (case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11143esac
11144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011146 ac_status=$?
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; } &&
11149 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011150 { (case "(($ac_try" in
11151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11152 *) ac_try_echo=$ac_try;;
11153esac
11154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11155 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000011159 eval "$as_ac_Header=yes"
Mike McCormackf3719a82005-09-03 09:39:38 +000011160else
11161 echo "$as_me: failed program was:" >&5
11162sed 's/^/| /' conftest.$ac_ext >&5
11163
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011164 eval "$as_ac_Header=no"
Mike McCormackf3719a82005-09-03 09:39:38 +000011165fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011166
Jeremy White0ebeb532006-06-20 13:18:41 +020011167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +000011168fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011169ac_res=`eval echo '${'$as_ac_Header'}'`
11170 { echo "$as_me:$LINENO: result: $ac_res" >&5
11171echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011172if test `eval echo '${'$as_ac_Header'}'` = yes; then
11173 cat >>confdefs.h <<_ACEOF
11174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11175_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011176 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
11177echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011178if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180else
11181 ac_check_lib_save_LIBS=$LIBS
11182LIBS="-lxslt $ac_xslt_libs $LIBS"
11183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011190/* Override any GCC internal prototype to avoid an error.
11191 Use char because int might match the return type of a GCC
11192 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +000011193#ifdef __cplusplus
11194extern "C"
11195#endif
Mike McCormackf3719a82005-09-03 09:39:38 +000011196char xsltCompilePattern ();
11197int
11198main ()
11199{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011200return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +000011201 ;
11202 return 0;
11203}
11204_ACEOF
11205rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011206if { (ac_try="$ac_link"
11207case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210esac
11211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000011213 ac_status=$?
11214 grep -v '^ *+' conftest.er1 >conftest.err
11215 rm -f conftest.er1
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011226 ac_status=$?
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011230 { (case "(($ac_try" in
11231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11233esac
11234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011236 ac_status=$?
11237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11238 (exit $ac_status); }; }; then
11239 ac_cv_lib_xslt_xsltCompilePattern=yes
11240else
11241 echo "$as_me: failed program was:" >&5
11242sed 's/^/| /' conftest.$ac_ext >&5
11243
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011244 ac_cv_lib_xslt_xsltCompilePattern=no
Mike McCormackf3719a82005-09-03 09:39:38 +000011245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011246
Jeremy White0ebeb532006-06-20 13:18:41 +020011247rm -f core conftest.err conftest.$ac_objext \
Mike McCormackf3719a82005-09-03 09:39:38 +000011248 conftest$ac_exeext conftest.$ac_ext
11249LIBS=$ac_check_lib_save_LIBS
11250fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011251{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11252echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011253if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11254
11255cat >>confdefs.h <<\_ACEOF
11256#define HAVE_LIBXSLT 1
11257_ACEOF
11258
11259 XSLTLIBS="$ac_xslt_libs"
11260 XSLTINCL="$ac_xslt_cflags"
11261fi
11262
11263
11264fi
11265
11266done
11267
11268 CPPFLAGS="$ac_save_CPPFLAGS"
Mike McCormack90c75bd2005-08-08 18:36:53 +000011269fi
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011270
Alexandre Julliard00068982006-04-18 16:47:53 +020011271HALINCL=""
11272
11273if test "$PKG_CONFIG" != "false"
11274then
11275 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020011276 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11277 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
Alexandre Julliard00068982006-04-18 16:47:53 +020011278 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11279
11280
11281for ac_header in dbus/dbus.h hal/libhal.h
11282do
11283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11287if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011290ac_res=`eval echo '${'$as_ac_Header'}'`
11291 { echo "$as_me:$LINENO: result: $ac_res" >&5
11292echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011293else
11294 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011295{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011297cat >conftest.$ac_ext <<_ACEOF
11298/* confdefs.h. */
11299_ACEOF
11300cat confdefs.h >>conftest.$ac_ext
11301cat >>conftest.$ac_ext <<_ACEOF
11302/* end confdefs.h. */
11303$ac_includes_default
11304#include <$ac_header>
11305_ACEOF
11306rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011307if { (ac_try="$ac_compile"
11308case "(($ac_try" in
11309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11310 *) ac_try_echo=$ac_try;;
11311esac
11312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11313 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011314 ac_status=$?
11315 grep -v '^ *+' conftest.er1 >conftest.err
11316 rm -f conftest.er1
11317 cat conftest.err >&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11321 { (case "(($ac_try" in
11322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11323 *) ac_try_echo=$ac_try;;
11324esac
11325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11326 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; } &&
11330 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011331 { (case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_header_compiler=yes
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011345 ac_header_compiler=no
Alexandre Julliard00068982006-04-18 16:47:53 +020011346fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011347
Jeremy White0ebeb532006-06-20 13:18:41 +020011348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011349{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11350echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011351
11352# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011353{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11354echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011355cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361#include <$ac_header>
11362_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011363if { (ac_try="$ac_cpp conftest.$ac_ext"
11364case "(($ac_try" in
11365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11367esac
11368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011370 ac_status=$?
11371 grep -v '^ *+' conftest.er1 >conftest.err
11372 rm -f conftest.er1
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
11378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11379 else
11380 ac_cpp_err=
11381 fi
11382else
11383 ac_cpp_err=yes
11384fi
11385if test -z "$ac_cpp_err"; then
11386 ac_header_preproc=yes
11387else
11388 echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 ac_header_preproc=no
11392fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011393
Alexandre Julliard00068982006-04-18 16:47:53 +020011394rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011395{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11396echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011397
11398# So? What about this header?
11399case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11400 yes:no: )
11401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11402echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11404echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11405 ac_header_preproc=yes
11406 ;;
11407 no:yes:* )
11408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11409echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11411echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11413echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11415echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11417echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11419echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011420 ( cat <<\_ASBOX
Alexandre Julliard00068982006-04-18 16:47:53 +020011421## ------------------------------------ ##
11422## Report this to wine-devel@winehq.org ##
11423## ------------------------------------ ##
11424_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011425 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliard00068982006-04-18 16:47:53 +020011426 ;;
11427esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011428{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11430if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011431 echo $ECHO_N "(cached) $ECHO_C" >&6
11432else
11433 eval "$as_ac_Header=\$ac_header_preproc"
11434fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011435ac_res=`eval echo '${'$as_ac_Header'}'`
11436 { echo "$as_me:$LINENO: result: $ac_res" >&5
11437echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011438
11439fi
11440if test `eval echo '${'$as_ac_Header'}'` = yes; then
11441 cat >>confdefs.h <<_ACEOF
11442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11443_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011444
11445fi
11446
11447done
11448
11449 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11450 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011451 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11452echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011453if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11454 echo $ECHO_N "(cached) $ECHO_C" >&6
11455else
11456 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011457LIBS="-lhal $LIBS"
Alexandre Julliard00068982006-04-18 16:47:53 +020011458cat >conftest.$ac_ext <<_ACEOF
11459/* confdefs.h. */
11460_ACEOF
11461cat confdefs.h >>conftest.$ac_ext
11462cat >>conftest.$ac_ext <<_ACEOF
11463/* end confdefs.h. */
11464
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011465/* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020011468#ifdef __cplusplus
11469extern "C"
11470#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020011471char libhal_ctx_new ();
11472int
11473main ()
11474{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011475return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020011476 ;
11477 return 0;
11478}
11479_ACEOF
11480rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011481if { (ac_try="$ac_link"
11482case "(($ac_try" in
11483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11484 *) ac_try_echo=$ac_try;;
11485esac
11486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11487 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11495 { (case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498esac
11499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011501 ac_status=$?
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011505 { (case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508esac
11509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011511 ac_status=$?
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_lib_hal_libhal_ctx_new=yes
11515else
11516 echo "$as_me: failed program was:" >&5
11517sed 's/^/| /' conftest.$ac_ext >&5
11518
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011519 ac_cv_lib_hal_libhal_ctx_new=no
Alexandre Julliard00068982006-04-18 16:47:53 +020011520fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011521
Jeremy White0ebeb532006-06-20 13:18:41 +020011522rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020011523 conftest$ac_exeext conftest.$ac_ext
11524LIBS=$ac_check_lib_save_LIBS
11525fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011526{ echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11527echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011528if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011529 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11530echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011531if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11532 echo $ECHO_N "(cached) $ECHO_C" >&6
11533else
11534 ac_check_lib_save_LIBS=$LIBS
11535LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11536cat >conftest.$ac_ext <<_ACEOF
11537/* confdefs.h. */
11538_ACEOF
11539cat confdefs.h >>conftest.$ac_ext
11540cat >>conftest.$ac_ext <<_ACEOF
11541/* end confdefs.h. */
11542
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011543/* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011546#ifdef __cplusplus
11547extern "C"
11548#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011549char dbus_connection_close ();
11550int
11551main ()
11552{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011553return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011554 ;
11555 return 0;
11556}
11557_ACEOF
11558rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011559if { (ac_try="$ac_link"
11560case "(($ac_try" in
11561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11562 *) ac_try_echo=$ac_try;;
11563esac
11564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11565 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11573 { (case "(($ac_try" in
11574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575 *) ac_try_echo=$ac_try;;
11576esac
11577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011583 { (case "(($ac_try" in
11584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11585 *) ac_try_echo=$ac_try;;
11586esac
11587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11588 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
11592 ac_cv_lib_dbus_1_dbus_connection_close=yes
11593else
11594 echo "$as_me: failed program was:" >&5
11595sed 's/^/| /' conftest.$ac_ext >&5
11596
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011597 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011598fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011599
Jeremy White0ebeb532006-06-20 13:18:41 +020011600rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011601 conftest$ac_exeext conftest.$ac_ext
11602LIBS=$ac_check_lib_save_LIBS
11603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011604{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11605echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011606if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011607
11608cat >>confdefs.h <<\_ACEOF
11609#define HAVE_LIBHAL 1
11610_ACEOF
11611
11612 HALINCL="$ac_hal_cflags"
11613fi
11614
11615fi
11616
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011617 fi
Alexandre Julliard00068982006-04-18 16:47:53 +020011618 CPPFLAGS="$ac_save_CPPFLAGS"
11619fi
11620
Alexandre Julliard48957682001-12-26 23:08:31 +000011621CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011622if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000011623then
Alexandre Julliard73482142005-08-03 19:21:04 +000011624 if test "$ac_cv_header_ncurses_h" = "yes"
11625 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011626 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11627echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011628if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011630else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011631 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011632LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011633cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011634/* confdefs.h. */
11635_ACEOF
11636cat confdefs.h >>conftest.$ac_ext
11637cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011639
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011640/* Override any GCC internal prototype to avoid an error.
11641 Use char because int might match the return type of a GCC
11642 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011643#ifdef __cplusplus
11644extern "C"
11645#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011646char waddch ();
11647int
11648main ()
11649{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011650return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011651 ;
11652 return 0;
11653}
11654_ACEOF
11655rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011656if { (ac_try="$ac_link"
11657case "(($ac_try" in
11658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11659 *) ac_try_echo=$ac_try;;
11660esac
11661eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11662 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011663 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011668 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11670 { (case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011676 ac_status=$?
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; } &&
11679 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011680 { (case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683esac
11684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011686 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011688 (exit $ac_status); }; }; then
11689 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011690else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011691 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011692sed 's/^/| /' conftest.$ac_ext >&5
11693
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011694 ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011695fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011696
Jeremy White0ebeb532006-06-20 13:18:41 +020011697rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011698 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011699LIBS=$ac_check_lib_save_LIBS
11700fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011701{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11702echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011703if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011704
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011705cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011706#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011707_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011708
Alexandre Julliard48957682001-12-26 23:08:31 +000011709 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011710fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011711
Alexandre Julliard73482142005-08-03 19:21:04 +000011712 elif test "$ac_cv_header_curses_h" = "yes"
11713 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011714 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11715echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011716if test "${ac_cv_lib_curses_waddch+set}" = set; then
11717 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011718else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011719 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011720LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011721cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011722/* confdefs.h. */
11723_ACEOF
11724cat confdefs.h >>conftest.$ac_ext
11725cat >>conftest.$ac_ext <<_ACEOF
11726/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011728/* Override any GCC internal prototype to avoid an error.
11729 Use char because int might match the return type of a GCC
11730 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011731#ifdef __cplusplus
11732extern "C"
11733#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011734char waddch ();
11735int
11736main ()
11737{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011738return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011739 ;
11740 return 0;
11741}
11742_ACEOF
11743rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011744if { (ac_try="$ac_link"
11745case "(($ac_try" in
11746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11747 *) ac_try_echo=$ac_try;;
11748esac
11749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11750 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011751 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011752 grep -v '^ *+' conftest.er1 >conftest.err
11753 rm -f conftest.er1
11754 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011756 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11758 { (case "(($ac_try" in
11759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11760 *) ac_try_echo=$ac_try;;
11761esac
11762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011768 { (case "(($ac_try" in
11769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11770 *) ac_try_echo=$ac_try;;
11771esac
11772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11773 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011774 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011776 (exit $ac_status); }; }; then
11777 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011778else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011779 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011780sed 's/^/| /' conftest.$ac_ext >&5
11781
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011782 ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011783fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011784
Jeremy White0ebeb532006-06-20 13:18:41 +020011785rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011786 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011787LIBS=$ac_check_lib_save_LIBS
11788fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011789{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11790echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011791if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011792
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011793cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011794#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011795_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011796
Alexandre Julliard73482142005-08-03 19:21:04 +000011797 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011798fi
11799
Alexandre Julliard73482142005-08-03 19:21:04 +000011800 fi
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020011801 ac_save_LIBS="$LIBS"
11802 LIBS="$LIBS $CURSESLIBS"
11803
11804for ac_func in mousemask
11805do
11806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11807{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11809if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11811else
11812 cat >conftest.$ac_ext <<_ACEOF
11813/* confdefs.h. */
11814_ACEOF
11815cat confdefs.h >>conftest.$ac_ext
11816cat >>conftest.$ac_ext <<_ACEOF
11817/* end confdefs.h. */
11818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11820#define $ac_func innocuous_$ac_func
11821
11822/* System header to define __stub macros and hopefully few prototypes,
11823 which can conflict with char $ac_func (); below.
11824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11825 <limits.h> exists even on freestanding compilers. */
11826
11827#ifdef __STDC__
11828# include <limits.h>
11829#else
11830# include <assert.h>
11831#endif
11832
11833#undef $ac_func
11834
11835/* Override any GCC internal prototype to avoid an error.
11836 Use char because int might match the return type of a GCC
11837 builtin and then its argument prototype would still apply. */
11838#ifdef __cplusplus
11839extern "C"
11840#endif
11841char $ac_func ();
11842/* The GNU C library defines this for functions which it implements
11843 to always fail with ENOSYS. Some functions are actually named
11844 something starting with __ and the normal name is an alias. */
11845#if defined __stub_$ac_func || defined __stub___$ac_func
11846choke me
11847#endif
11848
11849int
11850main ()
11851{
11852return $ac_func ();
11853 ;
11854 return 0;
11855}
11856_ACEOF
11857rm -f conftest.$ac_objext conftest$ac_exeext
11858if { (ac_try="$ac_link"
11859case "(($ac_try" in
11860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11862esac
11863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_link") 2>conftest.er1
11865 ac_status=$?
11866 grep -v '^ *+' conftest.er1 >conftest.err
11867 rm -f conftest.er1
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875esac
11876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try='test -s conftest$ac_exeext'
11882 { (case "(($ac_try" in
11883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11885esac
11886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 eval "$as_ac_var=yes"
11892else
11893 echo "$as_me: failed program was:" >&5
11894sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 eval "$as_ac_var=no"
11897fi
11898
11899rm -f core conftest.err conftest.$ac_objext \
11900 conftest$ac_exeext conftest.$ac_ext
11901fi
11902ac_res=`eval echo '${'$as_ac_var'}'`
11903 { echo "$as_me:$LINENO: result: $ac_res" >&5
11904echo "${ECHO_T}$ac_res" >&6; }
11905if test `eval echo '${'$as_ac_var'}'` = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11908_ACEOF
11909
11910fi
11911done
11912
11913 LIBS="$ac_save_LIBS"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011914fi
11915
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011916
Shi Quan He6b0720f2002-03-21 02:58:39 +000011917# Extract the first word of "sane-config", so it can be a program name with args.
11918set dummy sane-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011919{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011921if test "${ac_cv_prog_sane_devel+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11923else
11924 if test -n "$sane_devel"; then
11925 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11926else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011934 ac_cv_prog_sane_devel="sane-config"
11935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11936 break 2
11937 fi
11938done
Shi Quan He6b0720f2002-03-21 02:58:39 +000011939done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011940IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +000011941
11942 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11943fi
11944fi
11945sane_devel=$ac_cv_prog_sane_devel
11946if test -n "$sane_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011947 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11948echo "${ECHO_T}$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011949else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011950 { echo "$as_me:$LINENO: result: no" >&5
11951echo "${ECHO_T}no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011952fi
11953
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011954
Alexandre Julliard82776022005-08-08 11:17:25 +000011955SANELIBS=""
11956
11957SANEINCL=""
11958
11959if test "$sane_devel" != "no"
Shi Quan He6b0720f2002-03-21 02:58:39 +000011960then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011961 SANELIBS="`$sane_devel --libs`"
11962 SANEINCL="`$sane_devel --cflags`"
11963 ac_save_CPPFLAGS="$CPPFLAGS"
11964 ac_save_LIBS="$LIBS"
11965 CPPFLAGS="$CPPFLAGS $SANEINCL"
11966 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011967 if test "${ac_cv_header_sane_sane_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011968 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11969echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011970if test "${ac_cv_header_sane_sane_h+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011972fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011973{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11974echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011975else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011976 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011977{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11978echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011979cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011980/* confdefs.h. */
11981_ACEOF
11982cat confdefs.h >>conftest.$ac_ext
11983cat >>conftest.$ac_ext <<_ACEOF
11984/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011985$ac_includes_default
11986#include <sane/sane.h>
11987_ACEOF
11988rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011989if { (ac_try="$ac_compile"
11990case "(($ac_try" in
11991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11993esac
11994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011996 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12003 { (case "(($ac_try" in
12004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005 *) ac_try_echo=$ac_try;;
12006esac
12007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; } &&
12012 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 ac_header_compiler=yes
12023else
12024 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012025sed 's/^/| /' conftest.$ac_ext >&5
12026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012027 ac_header_compiler=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012028fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012029
Jeremy White0ebeb532006-06-20 13:18:41 +020012030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012031{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012033
12034# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012035{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
12036echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012037cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012038/* confdefs.h. */
12039_ACEOF
12040cat confdefs.h >>conftest.$ac_ext
12041cat >>conftest.$ac_ext <<_ACEOF
12042/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000012043#include <sane/sane.h>
12044_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020012045if { (ac_try="$ac_cpp conftest.$ac_ext"
12046case "(($ac_try" in
12047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12049esac
12050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000012052 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012053 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +000012054 rm -f conftest.er1
12055 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012057 (exit $ac_status); } >/dev/null; then
12058 if test -s conftest.err; then
12059 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +000012061 else
12062 ac_cpp_err=
12063 fi
12064else
12065 ac_cpp_err=yes
12066fi
12067if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012068 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +000012069else
12070 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012071sed 's/^/| /' conftest.$ac_ext >&5
12072
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012073 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000012074fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012075
Shi Quan He6b0720f2002-03-21 02:58:39 +000012076rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012077{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12078echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012079
12080# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012081case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12082 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012083 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
12084echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012085 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
12086echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
12087 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012088 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012089 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012090 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
12091echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012092 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
12093echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
12095echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
12096 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
12097echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012098 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012099echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012100 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
12101echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012102 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012103## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012104## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012105## ------------------------------------ ##
12106_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012107 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012108 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012109esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012110{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
12111echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012112if test "${ac_cv_header_sane_sane_h+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12114else
12115 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +000012116fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012117{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
12118echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012119
12120fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000012121if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012122 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
12123echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000012124if test "${ac_cv_lib_sane_sane_open+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12126else
12127 ac_check_lib_save_LIBS=$LIBS
12128LIBS="-lsane $LIBS"
12129cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012130/* confdefs.h. */
12131_ACEOF
12132cat confdefs.h >>conftest.$ac_ext
12133cat >>conftest.$ac_ext <<_ACEOF
12134/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000012135
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012136/* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000012139#ifdef __cplusplus
12140extern "C"
12141#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +000012142char sane_open ();
12143int
12144main ()
12145{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012146return sane_open ();
Shi Quan He6b0720f2002-03-21 02:58:39 +000012147 ;
12148 return 0;
12149}
12150_ACEOF
12151rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012152if { (ac_try="$ac_link"
12153case "(($ac_try" in
12154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12155 *) ac_try_echo=$ac_try;;
12156esac
12157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12158 (eval "$ac_link") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000012159 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012160 grep -v '^ *+' conftest.er1 >conftest.err
12161 rm -f conftest.er1
12162 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012164 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12166 { (case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012172 ac_status=$?
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; } &&
12175 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012176 { (case "(($ac_try" in
12177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178 *) ac_try_echo=$ac_try;;
12179esac
12180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181 (eval "$ac_try") 2>&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000012184 (exit $ac_status); }; }; then
12185 ac_cv_lib_sane_sane_open=yes
12186else
12187 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012188sed 's/^/| /' conftest.$ac_ext >&5
12189
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012190 ac_cv_lib_sane_sane_open=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000012191fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012192
Jeremy White0ebeb532006-06-20 13:18:41 +020012193rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000012194 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +000012195LIBS=$ac_check_lib_save_LIBS
12196fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012197{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12198echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000012199if test $ac_cv_lib_sane_sane_open = yes; then
12200
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012201cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000012202#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012203_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000012204
12205else
12206 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +000012207 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000012208fi
12209
Alexandre Julliard96328b32002-03-31 19:23:41 +000012210else
12211 SANELIBS=""
12212 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000012213fi
12214
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012215
Shi Quan He6b0720f2002-03-21 02:58:39 +000012216 LIBS="$ac_save_LIBS"
12217 CPPFLAGS="$ac_save_CPPFLAGS"
12218fi
12219
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012220# Extract the first word of "gphoto2-config", so it can be a program name with args.
12221set dummy gphoto2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012224if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12226else
12227 if test -n "$gphoto2_devel"; then
12228 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12229else
12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012237 ac_cv_prog_gphoto2_devel="gphoto2-config"
12238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241done
12242done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012243IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012244
12245 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12246fi
12247fi
12248gphoto2_devel=$ac_cv_prog_gphoto2_devel
12249if test -n "$gphoto2_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012250 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12251echo "${ECHO_T}$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012252else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012253 { echo "$as_me:$LINENO: result: no" >&5
12254echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012255fi
12256
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012257
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012258# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12259set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012262if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264else
12265 if test -n "$gphoto2port_devel"; then
12266 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12267else
12268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12269for as_dir in $PATH
12270do
12271 IFS=$as_save_IFS
12272 test -z "$as_dir" && as_dir=.
12273 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012275 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12277 break 2
12278 fi
12279done
12280done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012281IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012282
12283 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12284fi
12285fi
12286gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12287if test -n "$gphoto2port_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012288 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12289echo "${ECHO_T}$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012290else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012291 { echo "$as_me:$LINENO: result: no" >&5
12292echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012293fi
12294
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012295
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012296GPHOTO2LIBS=""
12297
12298GPHOTO2INCL=""
12299
12300if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12301then
12302 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12303 GPHOTO2LIBS=""
12304 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12305 do
12306 case "$i" in
12307 -L/usr/lib|-L/usr/lib64) ;;
12308 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12309 esac
12310 done
12311 ac_save_CPPFLAGS="$CPPFLAGS"
12312 ac_save_LIBS="$LIBS"
12313 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12314 LIBS="$LIBS $GPHOTO2LIBS"
12315 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012316 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12317echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012318if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12319 echo $ECHO_N "(cached) $ECHO_C" >&6
12320fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012321{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12322echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012323else
12324 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012325{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12326echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012327cat >conftest.$ac_ext <<_ACEOF
12328/* confdefs.h. */
12329_ACEOF
12330cat confdefs.h >>conftest.$ac_ext
12331cat >>conftest.$ac_ext <<_ACEOF
12332/* end confdefs.h. */
12333$ac_includes_default
12334#include <gphoto2-camera.h>
12335_ACEOF
12336rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020012337if { (ac_try="$ac_compile"
12338case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341esac
12342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_compile") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12351 { (case "(($ac_try" in
12352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12353 *) ac_try_echo=$ac_try;;
12354esac
12355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12356 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012357 ac_status=$?
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); }; } &&
12360 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012361 { (case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12364esac
12365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012367 ac_status=$?
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_header_compiler=yes
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012375 ac_header_compiler=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012376fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012377
Jeremy White0ebeb532006-06-20 13:18:41 +020012378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012379{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380echo "${ECHO_T}$ac_header_compiler" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012381
12382# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012383{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12384echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012385cat >conftest.$ac_ext <<_ACEOF
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391#include <gphoto2-camera.h>
12392_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020012393if { (ac_try="$ac_cpp conftest.$ac_ext"
12394case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } >/dev/null; then
12406 if test -s conftest.err; then
12407 ac_cpp_err=$ac_c_preproc_warn_flag
12408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12409 else
12410 ac_cpp_err=
12411 fi
12412else
12413 ac_cpp_err=yes
12414fi
12415if test -z "$ac_cpp_err"; then
12416 ac_header_preproc=yes
12417else
12418 echo "$as_me: failed program was:" >&5
12419sed 's/^/| /' conftest.$ac_ext >&5
12420
12421 ac_header_preproc=no
12422fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012423
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012424rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012425{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12426echo "${ECHO_T}$ac_header_preproc" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012427
12428# So? What about this header?
12429case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12430 yes:no: )
12431 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12432echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12433 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12434echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12435 ac_header_preproc=yes
12436 ;;
12437 no:yes:* )
12438 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12439echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12440 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12441echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12442 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12443echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12444 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12445echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12446 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12447echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12448 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12449echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012450 ( cat <<\_ASBOX
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012451## ------------------------------------ ##
12452## Report this to wine-devel@winehq.org ##
12453## ------------------------------------ ##
12454_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012455 ) | sed "s/^/$as_me: WARNING: /" >&2
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012456 ;;
12457esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012458{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12459echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012460if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462else
12463 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12464fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012465{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12466echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012467
12468fi
12469if test $ac_cv_header_gphoto2_camera_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012470 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12471echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012472if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475 ac_check_lib_save_LIBS=$LIBS
12476LIBS="-lgphoto2 $LIBS"
12477cat >conftest.$ac_ext <<_ACEOF
12478/* confdefs.h. */
12479_ACEOF
12480cat confdefs.h >>conftest.$ac_ext
12481cat >>conftest.$ac_ext <<_ACEOF
12482/* end confdefs.h. */
12483
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012484/* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012487#ifdef __cplusplus
12488extern "C"
12489#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012490char gp_camera_new ();
12491int
12492main ()
12493{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012494return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012495 ;
12496 return 0;
12497}
12498_ACEOF
12499rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012500if { (ac_try="$ac_link"
12501case "(($ac_try" in
12502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12504esac
12505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_link") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012507 ac_status=$?
12508 grep -v '^ *+' conftest.er1 >conftest.err
12509 rm -f conftest.er1
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12514 { (case "(($ac_try" in
12515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12516 *) ac_try_echo=$ac_try;;
12517esac
12518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12519 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012524 { (case "(($ac_try" in
12525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12527esac
12528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012530 ac_status=$?
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); }; }; then
12533 ac_cv_lib_gphoto2_gp_camera_new=yes
12534else
12535 echo "$as_me: failed program was:" >&5
12536sed 's/^/| /' conftest.$ac_ext >&5
12537
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012538 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012539fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012540
Jeremy White0ebeb532006-06-20 13:18:41 +020012541rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012542 conftest$ac_exeext conftest.$ac_ext
12543LIBS=$ac_check_lib_save_LIBS
12544fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012545{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12546echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012547if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12548
12549cat >>confdefs.h <<\_ACEOF
12550#define HAVE_GPHOTO2 1
12551_ACEOF
12552
12553else
12554 GPHOTO2LIBS=""
12555 GPHOTO2INCL=""
12556fi
12557
12558else
12559 GPHOTO2LIBS=""
12560 GPHOTO2INCL=""
12561fi
12562
12563
12564 LIBS="$ac_save_LIBS"
12565 CPPFLAGS="$ac_save_CPPFLAGS"
12566fi
12567
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012568if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12569then
Marcus Meissnerbc624582004-01-18 22:15:46 +000012570 saved_libs="$LIBS"
Scott Bambroughee112fc2006-06-16 10:42:20 -040012571 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12572 do
12573 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12574 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12575 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12576echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12577 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12578 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012579/* confdefs.h. */
12580_ACEOF
12581cat confdefs.h >>conftest.$ac_ext
12582cat >>conftest.$ac_ext <<_ACEOF
12583/* end confdefs.h. */
12584#include <unicode/ubidi.h>
12585int
12586main ()
12587{
12588ubidi_open()
12589 ;
12590 return 0;
12591}
12592_ACEOF
12593rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012594if { (ac_try="$ac_link"
12595case "(($ac_try" in
12596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12597 *) ac_try_echo=$ac_try;;
12598esac
12599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12600 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012601 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12608 { (case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611esac
12612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012618 { (case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12621esac
12622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_try") 2>&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012627
12628cat >>confdefs.h <<\_ACEOF
12629#define HAVE_ICU 1
12630_ACEOF
12631
Scott Bambroughee112fc2006-06-16 10:42:20 -040012632 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012633
Scott Bambroughee112fc2006-06-16 10:42:20 -040012634 { echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012635echo "${ECHO_T}yes" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000012636else
12637 echo "$as_me: failed program was:" >&5
12638sed 's/^/| /' conftest.$ac_ext >&5
12639
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012640 { echo "$as_me:$LINENO: result: no" >&5
12641echo "${ECHO_T}no" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000012642fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012643
Jeremy White0ebeb532006-06-20 13:18:41 +020012644rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerbc624582004-01-18 22:15:46 +000012645 conftest$ac_exeext conftest.$ac_ext
Scott Bambroughee112fc2006-06-16 10:42:20 -040012646 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000012647 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012648fi
12649
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012650RESOLVLIBS=""
12651
12652if test "$ac_cv_header_resolv_h" = "yes"
12653then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012654 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12655echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012656if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12657 echo $ECHO_N "(cached) $ECHO_C" >&6
12658else
12659 ac_check_lib_save_LIBS=$LIBS
12660LIBS="-lresolv $LIBS"
12661cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012668/* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012671#ifdef __cplusplus
12672extern "C"
12673#endif
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012674char res_query ();
12675int
12676main ()
12677{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012678return res_query ();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012684if { (ac_try="$ac_link"
12685case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688esac
12689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_link") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12698 { (case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12701esac
12702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012704 ac_status=$?
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012708 { (case "(($ac_try" in
12709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710 *) ac_try_echo=$ac_try;;
12711esac
12712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
12717 ac_cv_lib_resolv_res_query=yes
12718else
12719 echo "$as_me: failed program was:" >&5
12720sed 's/^/| /' conftest.$ac_ext >&5
12721
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012722 ac_cv_lib_resolv_res_query=no
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012723fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012724
Jeremy White0ebeb532006-06-20 13:18:41 +020012725rm -f core conftest.err conftest.$ac_objext \
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012726 conftest$ac_exeext conftest.$ac_ext
12727LIBS=$ac_check_lib_save_LIBS
12728fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012729{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12730echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012731if test $ac_cv_lib_resolv_res_query = yes; then
12732
12733cat >>confdefs.h <<\_ACEOF
12734#define HAVE_RESOLV 1
12735_ACEOF
12736
12737 RESOLVLIBS="-lresolv"
12738fi
12739
12740fi
12741
Hans Leidekkerd3447022005-07-15 10:09:43 +000012742LCMSLIBS=""
12743
12744if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12745then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012746 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12747echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012748if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12749 echo $ECHO_N "(cached) $ECHO_C" >&6
12750else
12751 ac_check_lib_save_LIBS=$LIBS
12752LIBS="-llcms $LIBS"
12753cat >conftest.$ac_ext <<_ACEOF
12754/* confdefs.h. */
12755_ACEOF
12756cat confdefs.h >>conftest.$ac_ext
12757cat >>conftest.$ac_ext <<_ACEOF
12758/* end confdefs.h. */
12759
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012760/* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000012763#ifdef __cplusplus
12764extern "C"
12765#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000012766char cmsOpenProfileFromFile ();
12767int
12768main ()
12769{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012770return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000012771 ;
12772 return 0;
12773}
12774_ACEOF
12775rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012776if { (ac_try="$ac_link"
12777case "(($ac_try" in
12778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779 *) ac_try_echo=$ac_try;;
12780esac
12781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerd3447022005-07-15 10:09:43 +000012783 ac_status=$?
12784 grep -v '^ *+' conftest.er1 >conftest.err
12785 rm -f conftest.er1
12786 cat conftest.err >&5
12787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12790 { (case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793esac
12794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012796 ac_status=$?
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); }; } &&
12799 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012800 { (case "(($ac_try" in
12801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12802 *) ac_try_echo=$ac_try;;
12803esac
12804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; }; then
12809 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12810else
12811 echo "$as_me: failed program was:" >&5
12812sed 's/^/| /' conftest.$ac_ext >&5
12813
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012814 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000012815fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012816
Jeremy White0ebeb532006-06-20 13:18:41 +020012817rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerd3447022005-07-15 10:09:43 +000012818 conftest$ac_exeext conftest.$ac_ext
12819LIBS=$ac_check_lib_save_LIBS
12820fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012821{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12822echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012823if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12824
12825cat >>confdefs.h <<\_ACEOF
12826#define HAVE_LCMS 1
12827_ACEOF
12828
12829 LCMSLIBS="-llcms"
12830fi
12831
12832fi
12833
Hans Leidekkerea524de2005-07-15 16:39:42 +000012834LDAPLIBS=""
12835
12836if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12837then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012838 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12839echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012840if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
Hans Leidekkerea524de2005-07-15 16:39:42 +000012841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842else
12843 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012844LIBS="-lldap_r $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012845cat >conftest.$ac_ext <<_ACEOF
12846/* confdefs.h. */
12847_ACEOF
12848cat confdefs.h >>conftest.$ac_ext
12849cat >>conftest.$ac_ext <<_ACEOF
12850/* end confdefs.h. */
12851
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012852/* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012855#ifdef __cplusplus
12856extern "C"
12857#endif
Hans Leidekker20d0e802005-11-18 16:56:44 +000012858char ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012859int
12860main ()
12861{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012862return ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012863 ;
12864 return 0;
12865}
12866_ACEOF
12867rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012868if { (ac_try="$ac_link"
12869case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872esac
12873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882 { (case "(($ac_try" in
12883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884 *) ac_try_echo=$ac_try;;
12885esac
12886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }; } &&
12891 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012892 { (case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895esac
12896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012901 ac_cv_lib_ldap_r_ldap_initialize=yes
Hans Leidekkerea524de2005-07-15 16:39:42 +000012902else
12903 echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012906 ac_cv_lib_ldap_r_ldap_initialize=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012907fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012908
Jeremy White0ebeb532006-06-20 13:18:41 +020012909rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012910 conftest$ac_exeext conftest.$ac_ext
12911LIBS=$ac_check_lib_save_LIBS
12912fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012913{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12914echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012915if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012916 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12917echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012918if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12919 echo $ECHO_N "(cached) $ECHO_C" >&6
12920else
12921 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012922LIBS="-llber $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012923cat >conftest.$ac_ext <<_ACEOF
12924/* confdefs.h. */
12925_ACEOF
12926cat confdefs.h >>conftest.$ac_ext
12927cat >>conftest.$ac_ext <<_ACEOF
12928/* end confdefs.h. */
12929
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012930/* Override any GCC internal prototype to avoid an error.
12931 Use char because int might match the return type of a GCC
12932 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012933#ifdef __cplusplus
12934extern "C"
12935#endif
Hans Leidekkerea524de2005-07-15 16:39:42 +000012936char ber_init ();
12937int
12938main ()
12939{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012940return ber_init ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012941 ;
12942 return 0;
12943}
12944_ACEOF
12945rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012946if { (ac_try="$ac_link"
12947case "(($ac_try" in
12948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12949 *) ac_try_echo=$ac_try;;
12950esac
12951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12952 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012953 ac_status=$?
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12960 { (case "(($ac_try" in
12961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12962 *) ac_try_echo=$ac_try;;
12963esac
12964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12965 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012970 { (case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12973esac
12974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012976 ac_status=$?
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_cv_lib_lber_ber_init=yes
12980else
12981 echo "$as_me: failed program was:" >&5
12982sed 's/^/| /' conftest.$ac_ext >&5
12983
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012984 ac_cv_lib_lber_ber_init=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012985fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012986
Jeremy White0ebeb532006-06-20 13:18:41 +020012987rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012988 conftest$ac_exeext conftest.$ac_ext
12989LIBS=$ac_check_lib_save_LIBS
12990fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012991{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12992echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012993if test $ac_cv_lib_lber_ber_init = yes; then
12994
12995cat >>confdefs.h <<\_ACEOF
12996#define HAVE_LDAP 1
12997_ACEOF
12998
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012999 LDAPLIBS="-lldap_r -llber"
Hans Leidekkerea524de2005-07-15 16:39:42 +000013000fi
13001
13002fi
13003
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013004 ac_wine_check_funcs_save_LIBS="$LIBS"
13005LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013006
13007
13008
13009
13010for ac_func in \
13011 ldap_count_references \
13012 ldap_first_reference \
13013 ldap_next_reference \
13014 ldap_parse_reference
13015do
13016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013017{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13019if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013020 echo $ECHO_N "(cached) $ECHO_C" >&6
13021else
13022 cat >conftest.$ac_ext <<_ACEOF
13023/* confdefs.h. */
13024_ACEOF
13025cat confdefs.h >>conftest.$ac_ext
13026cat >>conftest.$ac_ext <<_ACEOF
13027/* end confdefs.h. */
13028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13030#define $ac_func innocuous_$ac_func
13031
13032/* System header to define __stub macros and hopefully few prototypes,
13033 which can conflict with char $ac_func (); below.
13034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13035 <limits.h> exists even on freestanding compilers. */
13036
13037#ifdef __STDC__
13038# include <limits.h>
13039#else
13040# include <assert.h>
13041#endif
13042
13043#undef $ac_func
13044
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013045/* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013048#ifdef __cplusplus
13049extern "C"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013050#endif
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013051char $ac_func ();
13052/* The GNU C library defines this for functions which it implements
13053 to always fail with ENOSYS. Some functions are actually named
13054 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013055#if defined __stub_$ac_func || defined __stub___$ac_func
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013056choke me
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013057#endif
13058
13059int
13060main ()
13061{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013062return $ac_func ();
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013063 ;
13064 return 0;
13065}
13066_ACEOF
13067rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013068if { (ac_try="$ac_link"
13069case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13082 { (case "(($ac_try" in
13083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13084 *) ac_try_echo=$ac_try;;
13085esac
13086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13087 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; } &&
13091 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013092 { (case "(($ac_try" in
13093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13094 *) ac_try_echo=$ac_try;;
13095esac
13096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13097 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013098 ac_status=$?
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); }; }; then
13101 eval "$as_ac_var=yes"
13102else
13103 echo "$as_me: failed program was:" >&5
13104sed 's/^/| /' conftest.$ac_ext >&5
13105
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013106 eval "$as_ac_var=no"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013107fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013108
Jeremy White0ebeb532006-06-20 13:18:41 +020013109rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013110 conftest$ac_exeext conftest.$ac_ext
13111fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013112ac_res=`eval echo '${'$as_ac_var'}'`
13113 { echo "$as_me:$LINENO: result: $ac_res" >&5
13114echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010013115if test `eval echo '${'$as_ac_var'}'` = yes; then
13116 cat >>confdefs.h <<_ACEOF
13117#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13118_ACEOF
13119
13120fi
13121done
13122
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013123LIBS="$ac_wine_check_funcs_save_LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000013124fi
13125
Alexandre Julliard82776022005-08-08 11:17:25 +000013126FREETYPELIBS=""
13127
13128FREETYPEINCL=""
13129
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013130{ echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
13131echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013132if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000013134else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013135 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +000013136LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013137cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013138/* confdefs.h. */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013143
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013144/* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013147#ifdef __cplusplus
13148extern "C"
13149#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013150char FT_Init_FreeType ();
13151int
13152main ()
13153{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013154return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013155 ;
13156 return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013160if { (ac_try="$ac_link"
13161case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164esac
13165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013167 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013172 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13174 { (case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177esac
13178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; } &&
13183 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13187esac
13188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013190 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013192 (exit $ac_status); }; }; then
13193 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000013194else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013195 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013196sed 's/^/| /' conftest.$ac_ext >&5
13197
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013198 ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000013199fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013200
Jeremy White0ebeb532006-06-20 13:18:41 +020013201rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013202 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013203LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000013204fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013205{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13206echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013207if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000013208 ft_lib=yes
13209else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013210 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000013211fi
13212
13213if test "$ft_lib" = "no"
13214then
Ian Pilcher563598d2001-05-16 20:56:05 +000013215 wine_cv_msg_freetype=no
13216else
13217 # Extract the first word of "freetype-config", so it can be a program name with args.
13218set dummy freetype-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013221if test "${ac_cv_prog_ft_devel+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000013223else
13224 if test -n "$ft_devel"; then
13225 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
13226else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13228for as_dir in $PATH
13229do
13230 IFS=$as_save_IFS
13231 test -z "$as_dir" && as_dir=.
13232 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013234 ac_cv_prog_ft_devel="freetype-config"
13235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13236 break 2
13237 fi
13238done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013239done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013240IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013241
Ian Pilcher563598d2001-05-16 20:56:05 +000013242 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
13243fi
13244fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013245ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000013246if test -n "$ft_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013247 { echo "$as_me:$LINENO: result: $ft_devel" >&5
13248echo "${ECHO_T}$ft_devel" >&6; }
Ian Pilcher563598d2001-05-16 20:56:05 +000013249else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013250 { echo "$as_me:$LINENO: result: no" >&5
13251echo "${ECHO_T}no" >&6; }
Ian Pilcher563598d2001-05-16 20:56:05 +000013252fi
13253
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013254
Ian Pilcher563598d2001-05-16 20:56:05 +000013255 if test "$ft_devel" = "no"
13256 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013257 # Extract the first word of "freetype2-config", so it can be a program name with args.
13258set dummy freetype2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013259{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013261if test "${ac_cv_prog_ft_devel2+set}" = set; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013263else
13264 if test -n "$ft_devel2"; then
13265 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
13266else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268for as_dir in $PATH
13269do
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013274 ac_cv_prog_ft_devel2="freetype2-config"
13275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13277 fi
13278done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013279done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013280IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013281
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013282 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13283fi
13284fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013285ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013286if test -n "$ft_devel2"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013287 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13288echo "${ECHO_T}$ft_devel2" >&6; }
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013289else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013290 { echo "$as_me:$LINENO: result: no" >&5
13291echo "${ECHO_T}no" >&6; }
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013292fi
13293
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013294
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013295 if test "$ft_devel2" = "freetype2-config"
13296 then
13297 ft_devel=$ft_devel2
13298 fi
13299 fi
13300 if test "$ft_devel" = "no"
13301 then
Ian Pilcher563598d2001-05-16 20:56:05 +000013302 wine_cv_msg_freetype=yes
13303 else
Huw Davies00acb5f2004-08-17 22:33:14 +000013304 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013305 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000013306 ac_save_CPPFLAGS="$CPPFLAGS"
13307 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013308
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013309
13310
13311
13312
13313
13314
13315
Rein Klazese617a9c2003-11-19 02:18:13 +000013316
Huw Daviesc2217182004-06-16 20:06:26 +000013317
Huw Davies603d21c2006-01-24 10:57:35 +010013318
Rein Klazese617a9c2003-11-19 02:18:13 +000013319for ac_header in ft2build.h \
13320 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000013321 freetype/ftglyph.h \
13322 freetype/tttables.h \
13323 freetype/ftnames.h \
13324 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000013325 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000013326 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000013327 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010013328 freetype/ftmodapi.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000013329 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000013330do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013331as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013332{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13334if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013335 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013336else
Rein Klazes9c269172003-11-20 04:17:33 +000013337 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013338/* confdefs.h. */
13339_ACEOF
13340cat confdefs.h >>conftest.$ac_ext
13341cat >>conftest.$ac_ext <<_ACEOF
13342/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000013343#if HAVE_FT2BUILD_H
13344 #include <ft2build.h>
13345 #endif
13346
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013347#include <$ac_header>
13348_ACEOF
13349rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013350if { (ac_try="$ac_compile"
13351case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13354esac
13355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013357 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13364 { (case "(($ac_try" in
13365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366 *) ac_try_echo=$ac_try;;
13367esac
13368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013370 ac_status=$?
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); }; } &&
13373 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013374 { (case "(($ac_try" in
13375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13376 *) ac_try_echo=$ac_try;;
13377esac
13378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13379 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013380 ac_status=$?
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000013383 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013384else
13385 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013386sed 's/^/| /' conftest.$ac_ext >&5
13387
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013388 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013389fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013390
Jeremy White0ebeb532006-06-20 13:18:41 +020013391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013392fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013393ac_res=`eval echo '${'$as_ac_Header'}'`
13394 { echo "$as_me:$LINENO: result: $ac_res" >&5
13395echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013396if test `eval echo '${'$as_ac_Header'}'` = yes; then
13397 cat >>confdefs.h <<_ACEOF
13398#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13399_ACEOF
13400
13401fi
13402
Ian Pilcher40432fe2001-06-06 21:05:23 +000013403done
13404
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013405 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013406/* confdefs.h. */
13407_ACEOF
13408cat confdefs.h >>conftest.$ac_ext
13409cat >>conftest.$ac_ext <<_ACEOF
13410/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000013411#include <ft2build.h>
13412 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013413_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020013414if { (ac_try="$ac_cpp conftest.$ac_ext"
13415case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013421 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013422 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013423 rm -f conftest.er1
13424 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013426 (exit $ac_status); } >/dev/null; then
13427 if test -s conftest.err; then
13428 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013430 else
13431 ac_cpp_err=
13432 fi
13433else
13434 ac_cpp_err=yes
13435fi
13436if test -z "$ac_cpp_err"; then
13437
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013438cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000013439#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013440_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000013441
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013442 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000013443else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013444 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013445sed 's/^/| /' conftest.$ac_ext >&5
13446
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013447 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000013448fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013449
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013450rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013451 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13452echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000013453if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 cat >conftest.$ac_ext <<_ACEOF
13457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h. */
13462#include <freetype/ftmodapi.h>
13463
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013464typedef FT_TrueTypeEngineType ac__type_new_;
Huw Daviesd8a6c272006-02-22 12:24:25 +000013465int
13466main ()
13467{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013468if ((ac__type_new_ *) 0)
Huw Daviesd8a6c272006-02-22 12:24:25 +000013469 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013470if (sizeof (ac__type_new_))
Huw Daviesd8a6c272006-02-22 12:24:25 +000013471 return 0;
13472 ;
13473 return 0;
13474}
13475_ACEOF
13476rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013477if { (ac_try="$ac_compile"
13478case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13481esac
13482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_compile") 2>conftest.er1
Huw Daviesd8a6c272006-02-22 12:24:25 +000013484 ac_status=$?
13485 grep -v '^ *+' conftest.er1 >conftest.err
13486 rm -f conftest.er1
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13491 { (case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13494esac
13495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000013497 ac_status=$?
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } &&
13500 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013501 { (case "(($ac_try" in
13502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13503 *) ac_try_echo=$ac_try;;
13504esac
13505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13506 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000013507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13510 ac_cv_type_FT_TrueTypeEngineType=yes
13511else
13512 echo "$as_me: failed program was:" >&5
13513sed 's/^/| /' conftest.$ac_ext >&5
13514
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013515 ac_cv_type_FT_TrueTypeEngineType=no
Huw Daviesd8a6c272006-02-22 12:24:25 +000013516fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013517
Jeremy White0ebeb532006-06-20 13:18:41 +020013518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Huw Daviesd8a6c272006-02-22 12:24:25 +000013519fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013520{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13521echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000013522if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13523
13524cat >>confdefs.h <<_ACEOF
13525#define HAVE_FT_TRUETYPEENGINETYPE 1
13526_ACEOF
13527
13528
13529fi
13530
Huw Davies35bca772006-04-12 12:14:27 +010013531 ac_save_CFLAGS="$CFLAGS"
13532 CFLAGS="$CFLAGS $FREETYPELIBS"
13533
13534for ac_func in FT_Load_Sfnt_Table
13535do
13536as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013537{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13538echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13539if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Huw Davies35bca772006-04-12 12:14:27 +010013540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541else
13542 cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
13547/* end confdefs.h. */
13548/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13550#define $ac_func innocuous_$ac_func
13551
13552/* System header to define __stub macros and hopefully few prototypes,
13553 which can conflict with char $ac_func (); below.
13554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13555 <limits.h> exists even on freestanding compilers. */
13556
13557#ifdef __STDC__
13558# include <limits.h>
13559#else
13560# include <assert.h>
13561#endif
13562
13563#undef $ac_func
13564
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013565/* Override any GCC internal prototype to avoid an error.
13566 Use char because int might match the return type of a GCC
13567 builtin and then its argument prototype would still apply. */
Huw Davies35bca772006-04-12 12:14:27 +010013568#ifdef __cplusplus
13569extern "C"
Huw Davies35bca772006-04-12 12:14:27 +010013570#endif
Huw Davies35bca772006-04-12 12:14:27 +010013571char $ac_func ();
13572/* The GNU C library defines this for functions which it implements
13573 to always fail with ENOSYS. Some functions are actually named
13574 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013575#if defined __stub_$ac_func || defined __stub___$ac_func
Huw Davies35bca772006-04-12 12:14:27 +010013576choke me
Huw Davies35bca772006-04-12 12:14:27 +010013577#endif
13578
13579int
13580main ()
13581{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013582return $ac_func ();
Huw Davies35bca772006-04-12 12:14:27 +010013583 ;
13584 return 0;
13585}
13586_ACEOF
13587rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013588if { (ac_try="$ac_link"
13589case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13592esac
13593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_link") 2>conftest.er1
Huw Davies35bca772006-04-12 12:14:27 +010013595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13602 { (case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605esac
13606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010013608 ac_status=$?
13609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610 (exit $ac_status); }; } &&
13611 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013612 { (case "(($ac_try" in
13613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13614 *) ac_try_echo=$ac_try;;
13615esac
13616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13617 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010013618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; }; then
13621 eval "$as_ac_var=yes"
13622else
13623 echo "$as_me: failed program was:" >&5
13624sed 's/^/| /' conftest.$ac_ext >&5
13625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013626 eval "$as_ac_var=no"
Huw Davies35bca772006-04-12 12:14:27 +010013627fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013628
Jeremy White0ebeb532006-06-20 13:18:41 +020013629rm -f core conftest.err conftest.$ac_objext \
Huw Davies35bca772006-04-12 12:14:27 +010013630 conftest$ac_exeext conftest.$ac_ext
13631fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013632ac_res=`eval echo '${'$as_ac_var'}'`
13633 { echo "$as_me:$LINENO: result: $ac_res" >&5
13634echo "${ECHO_T}$ac_res" >&6; }
Huw Davies35bca772006-04-12 12:14:27 +010013635if test `eval echo '${'$as_ac_var'}'` = yes; then
13636 cat >>confdefs.h <<_ACEOF
13637#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13638_ACEOF
13639
13640fi
13641done
13642
13643 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000013644 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013645 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013646 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013647
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013648cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013649#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013650_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013651
13652 wine_cv_msg_freetype=no
13653 else
Huw Davies00acb5f2004-08-17 22:33:14 +000013654 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013655 FREETYPEINCL=""
13656 wine_cv_msg_freetype=yes
13657 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000013658 fi
13659fi
13660
Huw Davies00acb5f2004-08-17 22:33:14 +000013661if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13662then
13663 FONTSSUBDIRS="fonts"
13664
13665fi
13666
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013667{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13668echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013669if test "${ac_cv_c_ppdev+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000013671else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013672 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013673/* confdefs.h. */
13674_ACEOF
13675cat confdefs.h >>conftest.$ac_ext
13676cat >>conftest.$ac_ext <<_ACEOF
13677/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013678#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013679int
13680main ()
13681{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013682ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013683 ;
13684 return 0;
13685}
13686_ACEOF
13687rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013688if { (ac_try="$ac_compile"
13689case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692esac
13693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013695 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013700 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13702 { (case "(($ac_try" in
13703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704 *) ac_try_echo=$ac_try;;
13705esac
13706eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13707 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013712 { (case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13715esac
13716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013718 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013720 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013721 ac_cv_c_ppdev="yes"
13722else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013723 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013724sed 's/^/| /' conftest.$ac_ext >&5
13725
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013726 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013727fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013728
Jeremy White0ebeb532006-06-20 13:18:41 +020013729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013730
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013731fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013732{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13733echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013734if test "$ac_cv_c_ppdev" = "yes"
13735then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013736
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013737cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013738#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013739_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013740
13741fi
13742
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013743{ echo "$as_me:$LINENO: checking for va_copy" >&5
13744echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013745if test "${ac_cv_c_va_copy+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747else
13748 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013754#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013755int
13756main ()
13757{
13758va_list ap1, ap2;
13759 va_copy(ap1,ap2);
13760
13761 ;
13762 return 0;
13763}
13764_ACEOF
13765rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013766if { (ac_try="$ac_link"
13767case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13770esac
13771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013773 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013774 grep -v '^ *+' conftest.er1 >conftest.err
13775 rm -f conftest.er1
13776 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783esac
13784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013786 ac_status=$?
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13793esac
13794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_c_va_copy="yes"
13800else
13801 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013802sed 's/^/| /' conftest.$ac_ext >&5
13803
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013804 ac_cv_c_va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013805fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013806
Jeremy White0ebeb532006-06-20 13:18:41 +020013807rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013808 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013809
13810fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013811{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13812echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013813if test "$ac_cv_c_va_copy" = "yes"
13814then
13815
13816cat >>confdefs.h <<\_ACEOF
13817#define HAVE_VA_COPY 1
13818_ACEOF
13819
13820fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013821{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13822echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013823if test "${ac_cv_c___va_copy+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13825else
13826 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013832#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013833int
13834main ()
13835{
13836va_list ap1, ap2;
13837 __va_copy(ap1,ap2);
13838
13839 ;
13840 return 0;
13841}
13842_ACEOF
13843rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013844if { (ac_try="$ac_link"
13845case "(($ac_try" in
13846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13847 *) ac_try_echo=$ac_try;;
13848esac
13849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13850 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013851 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013852 grep -v '^ *+' conftest.er1 >conftest.err
13853 rm -f conftest.er1
13854 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13858 { (case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13861esac
13862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013868 { (case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13871esac
13872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; }; then
13877 ac_cv_c___va_copy="yes"
13878else
13879 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013880sed 's/^/| /' conftest.$ac_ext >&5
13881
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013882 ac_cv_c___va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013883fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013884
Jeremy White0ebeb532006-06-20 13:18:41 +020013885rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013886 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013887
13888fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013889{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13890echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013891if test "$ac_cv_c___va_copy" = "yes"
13892then
13893
13894cat >>confdefs.h <<\_ACEOF
13895#define HAVE___VA_COPY 1
13896_ACEOF
13897
13898fi
13899
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013900{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13901echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013902if test "${ac_cv_c_sigsetjmp+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
13911#include <setjmp.h>
13912int
13913main ()
13914{
13915sigjmp_buf buf;
13916 sigsetjmp( buf, 1 );
13917 siglongjmp( buf, 1 );
13918 ;
13919 return 0;
13920}
13921_ACEOF
13922rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013923if { (ac_try="$ac_link"
13924case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927esac
13928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013930 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13937 { (case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940esac
13941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013943 ac_status=$?
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; } &&
13946 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013947 { (case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950esac
13951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_try") 2>&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_cv_c_sigsetjmp="yes"
13957else
13958 echo "$as_me: failed program was:" >&5
13959sed 's/^/| /' conftest.$ac_ext >&5
13960
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013961 ac_cv_c_sigsetjmp="no"
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013962fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013963
Jeremy White0ebeb532006-06-20 13:18:41 +020013964rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013965 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013966
13967fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013968{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13969echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013970if test "$ac_cv_c_sigsetjmp" = "yes"
13971then
13972
13973cat >>confdefs.h <<\_ACEOF
13974#define HAVE_SIGSETJMP 1
13975_ACEOF
13976
13977fi
13978
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013979{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13980echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013981if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13983else
13984 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013985/* confdefs.h. */
13986_ACEOF
13987cat confdefs.h >>conftest.$ac_ext
13988cat >>conftest.$ac_ext <<_ACEOF
13989/* end confdefs.h. */
13990#define _GNU_SOURCE
13991#include <pthread.h>
13992
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013993typedef pthread_rwlock_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013994int
13995main ()
13996{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013997if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013998 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013999if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014000 return 0;
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014006if { (ac_try="$ac_compile"
14007case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010esac
14011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014013 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14020 { (case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023esac
14024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; } &&
14029 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014030 { (case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033esac
14034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_cv_type_pthread_rwlock_t=yes
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014044 ac_cv_type_pthread_rwlock_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014045fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014046
Jeremy White0ebeb532006-06-20 13:18:41 +020014047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014048fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014049{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
14050echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014051if test $ac_cv_type_pthread_rwlock_t = yes; then
14052
14053cat >>confdefs.h <<_ACEOF
14054#define HAVE_PTHREAD_RWLOCK_T 1
14055_ACEOF
14056
14057
14058fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014059{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
14060echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014061if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063else
14064 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014065/* confdefs.h. */
14066_ACEOF
14067cat confdefs.h >>conftest.$ac_ext
14068cat >>conftest.$ac_ext <<_ACEOF
14069/* end confdefs.h. */
14070#define _GNU_SOURCE
14071#include <pthread.h>
14072
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014073typedef pthread_rwlockattr_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014074int
14075main ()
14076{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014077if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014078 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014079if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014080 return 0;
14081 ;
14082 return 0;
14083}
14084_ACEOF
14085rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014086if { (ac_try="$ac_compile"
14087case "(($ac_try" in
14088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14090esac
14091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014093 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103esac
14104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014110 { (case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113esac
14114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014116 ac_status=$?
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); }; }; then
14119 ac_cv_type_pthread_rwlockattr_t=yes
14120else
14121 echo "$as_me: failed program was:" >&5
14122sed 's/^/| /' conftest.$ac_ext >&5
14123
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014124 ac_cv_type_pthread_rwlockattr_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014125fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014126
Jeremy White0ebeb532006-06-20 13:18:41 +020014127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014128fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014129{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
14130echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000014131if test $ac_cv_type_pthread_rwlockattr_t = yes; then
14132
14133cat >>confdefs.h <<_ACEOF
14134#define HAVE_PTHREAD_RWLOCKATTR_T 1
14135_ACEOF
14136
14137
14138fi
14139
14140
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014141ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014142LIBS="$LIBS $LIBPTHREAD"
14143
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000014144
14145
14146for ac_func in \
14147 pthread_getattr_np \
14148 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014149 pthread_get_stacksize_np
Alexandre Julliard821ab862003-11-12 22:44:56 +000014150do
14151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014152{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14154if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard821ab862003-11-12 22:44:56 +000014155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000014158/* confdefs.h. */
14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
14162/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000014163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14165#define $ac_func innocuous_$ac_func
14166
Alexandre Julliard821ab862003-11-12 22:44:56 +000014167/* System header to define __stub macros and hopefully few prototypes,
14168 which can conflict with char $ac_func (); below.
14169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14170 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000014171
Alexandre Julliard821ab862003-11-12 22:44:56 +000014172#ifdef __STDC__
14173# include <limits.h>
14174#else
14175# include <assert.h>
14176#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000014177
14178#undef $ac_func
14179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014180/* Override any GCC internal prototype to avoid an error.
14181 Use char because int might match the return type of a GCC
14182 builtin and then its argument prototype would still apply. */
Alexandre Julliard821ab862003-11-12 22:44:56 +000014183#ifdef __cplusplus
14184extern "C"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014185#endif
Alexandre Julliard821ab862003-11-12 22:44:56 +000014186char $ac_func ();
14187/* The GNU C library defines this for functions which it implements
14188 to always fail with ENOSYS. Some functions are actually named
14189 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014190#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard821ab862003-11-12 22:44:56 +000014191choke me
Alexandre Julliard821ab862003-11-12 22:44:56 +000014192#endif
14193
14194int
14195main ()
14196{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014197return $ac_func ();
Alexandre Julliard821ab862003-11-12 22:44:56 +000014198 ;
14199 return 0;
14200}
14201_ACEOF
14202rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014203if { (ac_try="$ac_link"
14204case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14207esac
14208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000014210 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014211 grep -v '^ *+' conftest.er1 >conftest.err
14212 rm -f conftest.er1
14213 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000014214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14217 { (case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220esac
14221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014227 { (case "(($ac_try" in
14228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14229 *) ac_try_echo=$ac_try;;
14230esac
14231eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14232 (eval "$ac_try") 2>&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000014233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); }; }; then
14236 eval "$as_ac_var=yes"
14237else
14238 echo "$as_me: failed program was:" >&5
14239sed 's/^/| /' conftest.$ac_ext >&5
14240
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014241 eval "$as_ac_var=no"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014242fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014243
Jeremy White0ebeb532006-06-20 13:18:41 +020014244rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014245 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000014246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014247ac_res=`eval echo '${'$as_ac_var'}'`
14248 { echo "$as_me:$LINENO: result: $ac_res" >&5
14249echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard821ab862003-11-12 22:44:56 +000014250if test `eval echo '${'$as_ac_var'}'` = yes; then
14251 cat >>confdefs.h <<_ACEOF
14252#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14253_ACEOF
14254
14255fi
14256done
14257
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014258LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014259
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014260# Extract the first word of "artsc-config", so it can be a program name with args.
14261set dummy artsc-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014262{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14263echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014264if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14265 echo $ECHO_N "(cached) $ECHO_C" >&6
14266else
14267 case $ARTSCCONFIG in
14268 [\\/]* | ?:[\\/]*)
14269 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14270 ;;
14271 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14273for as_dir in $PATH
14274do
14275 IFS=$as_save_IFS
14276 test -z "$as_dir" && as_dir=.
14277 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014279 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14281 break 2
14282 fi
14283done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014284done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014285IFS=$as_save_IFS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014286
14287 ;;
14288esac
14289fi
14290ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014291if test -n "$ARTSCCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014292 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14293echo "${ECHO_T}$ARTSCCONFIG" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014294else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014295 { echo "$as_me:$LINENO: result: no" >&5
14296echo "${ECHO_T}no" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014297fi
14298
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014299
Marcus Meissnerbc624582004-01-18 22:15:46 +000014300if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14301then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000014302 ARTSC_CFLAGS=""
14303 for i in `$ARTSCCONFIG --cflags`
14304 do
14305 case "$i" in
14306 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14307 esac
14308 done
Alexandre Julliard197a7d02006-04-04 12:08:30 +020014309 ARTSC_LIBS=""
14310 for i in `$ARTSCCONFIG --libs`
14311 do
14312 case "$i" in
14313 -L/usr/lib|-L/usr/lib64) ;;
14314 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14315 esac
14316 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000014317 save_CFLAGS="$CFLAGS"
14318 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014319 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14320echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000014321if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14323else
14324 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000014325LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000014326cat >conftest.$ac_ext <<_ACEOF
14327/* confdefs.h. */
14328_ACEOF
14329cat confdefs.h >>conftest.$ac_ext
14330cat >>conftest.$ac_ext <<_ACEOF
14331/* end confdefs.h. */
14332
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014333/* Override any GCC internal prototype to avoid an error.
14334 Use char because int might match the return type of a GCC
14335 builtin and then its argument prototype would still apply. */
Jacek Caban6f8f4752005-03-28 09:58:45 +000014336#ifdef __cplusplus
14337extern "C"
14338#endif
Jacek Caban6f8f4752005-03-28 09:58:45 +000014339char arts_init ();
14340int
14341main ()
14342{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014343return arts_init ();
Jacek Caban6f8f4752005-03-28 09:58:45 +000014344 ;
14345 return 0;
14346}
14347_ACEOF
14348rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014349if { (ac_try="$ac_link"
14350case "(($ac_try" in
14351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14352 *) ac_try_echo=$ac_try;;
14353esac
14354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14355 (eval "$ac_link") 2>conftest.er1
Jacek Caban6f8f4752005-03-28 09:58:45 +000014356 ac_status=$?
14357 grep -v '^ *+' conftest.er1 >conftest.err
14358 rm -f conftest.er1
14359 cat conftest.err >&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14363 { (case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14366esac
14367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000014369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); }; } &&
14372 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014373 { (case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376esac
14377eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000014379 ac_status=$?
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; }; then
14382 ac_cv_lib_artsc_arts_init=yes
14383else
14384 echo "$as_me: failed program was:" >&5
14385sed 's/^/| /' conftest.$ac_ext >&5
14386
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014387 ac_cv_lib_artsc_arts_init=no
Jacek Caban6f8f4752005-03-28 09:58:45 +000014388fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014389
Jeremy White0ebeb532006-06-20 13:18:41 +020014390rm -f core conftest.err conftest.$ac_objext \
Jacek Caban6f8f4752005-03-28 09:58:45 +000014391 conftest$ac_exeext conftest.$ac_ext
14392LIBS=$ac_check_lib_save_LIBS
14393fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014394{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14395echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000014396if test $ac_cv_lib_artsc_arts_init = yes; then
14397 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000014403#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014404int
14405main ()
14406{
Marcus Meissnerbc624582004-01-18 22:15:46 +000014407arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014408 ;
14409 return 0;
14410}
14411_ACEOF
14412rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014413if { (ac_try="$ac_compile"
14414case "(($ac_try" in
14415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14417esac
14418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_compile") 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014420 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014425 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14427 { (case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14430esac
14431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14440esac
14441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014443 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014445 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000014446 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014447
Jacek Caban6f8f4752005-03-28 09:58:45 +000014448 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000014449
14450
14451cat >>confdefs.h <<\_ACEOF
14452#define HAVE_ARTS 1
14453_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014454
14455else
14456 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014457sed 's/^/| /' conftest.$ac_ext >&5
14458
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014459
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014460fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014461
Jeremy White0ebeb532006-06-20 13:18:41 +020014462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000014463fi
14464
Marcus Meissnerbc624582004-01-18 22:15:46 +000014465 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014466fi
14467
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014468# Extract the first word of "esd-config", so it can be a program name with args.
14469set dummy esd-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014472if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14473 echo $ECHO_N "(cached) $ECHO_C" >&6
14474else
14475 case $ESDCONFIG in
14476 [\\/]* | ?:[\\/]*)
14477 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14478 ;;
14479 *)
14480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481for as_dir in $PATH
14482do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014487 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14489 break 2
14490 fi
14491done
14492done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014493IFS=$as_save_IFS
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014494
14495 ;;
14496esac
14497fi
14498ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014499if test -n "$ESDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014500 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14501echo "${ECHO_T}$ESDCONFIG" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014502else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014503 { echo "$as_me:$LINENO: result: no" >&5
14504echo "${ECHO_T}no" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014505fi
14506
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014507
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014508if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14509then
14510 ESD_CFLAGS=""
14511 for i in `$ESDCONFIG --cflags`
14512 do
14513 case "$i" in
14514 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14515 esac
14516 done
14517 ESD_LIBS=`$ESDCONFIG --libs`
14518 save_CFLAGS="$CFLAGS"
14519 CFLAGS="$CFLAGS $ESD_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014520 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14521echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014522if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524else
14525 ac_check_lib_save_LIBS=$LIBS
14526LIBS="-lesd $LIBS"
14527cat >conftest.$ac_ext <<_ACEOF
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014534/* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply. */
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014537#ifdef __cplusplus
14538extern "C"
14539#endif
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014540char esd_open_sound ();
14541int
14542main ()
14543{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014544return esd_open_sound ();
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014545 ;
14546 return 0;
14547}
14548_ACEOF
14549rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014550if { (ac_try="$ac_link"
14551case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14554esac
14555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_link") 2>conftest.er1
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14564 { (case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
14568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014570 ac_status=$?
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; } &&
14573 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014574 { (case "(($ac_try" in
14575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576 *) ac_try_echo=$ac_try;;
14577esac
14578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014580 ac_status=$?
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); }; }; then
14583 ac_cv_lib_esd_esd_open_sound=yes
14584else
14585 echo "$as_me: failed program was:" >&5
14586sed 's/^/| /' conftest.$ac_ext >&5
14587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014588 ac_cv_lib_esd_esd_open_sound=no
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014589fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014590
Jeremy White0ebeb532006-06-20 13:18:41 +020014591rm -f core conftest.err conftest.$ac_objext \
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014592 conftest$ac_exeext conftest.$ac_ext
14593LIBS=$ac_check_lib_save_LIBS
14594fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014595{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14596echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014597if test $ac_cv_lib_esd_esd_open_sound = yes; then
14598 ESDLIBS=$ESD_LIBS
14599
14600 ESDINCL=$ESD_CFLAGS
14601
14602
14603cat >>confdefs.h <<\_ACEOF
14604#define HAVE_ESD 1
14605_ACEOF
14606
14607fi
14608
14609 CFLAGS="$save_CFLAGS"
14610fi
14611
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014612ALSALIBS=""
14613
Marco Pietrobono0e79a412002-08-29 01:51:31 +000014614if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014615then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014616 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14617echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014618if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621 ac_check_lib_save_LIBS=$LIBS
14622LIBS="-lasound $LIBS"
14623cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014629
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014630/* Override any GCC internal prototype to avoid an error.
14631 Use char because int might match the return type of a GCC
14632 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014633#ifdef __cplusplus
14634extern "C"
14635#endif
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014636char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014637int
14638main ()
14639{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014640return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014641 ;
14642 return 0;
14643}
14644_ACEOF
14645rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014646if { (ac_try="$ac_link"
14647case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650esac
14651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014653 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14660 { (case "(($ac_try" in
14661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14662 *) ac_try_echo=$ac_try;;
14663esac
14664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14665 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014666 ac_status=$?
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); }; } &&
14669 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014670 { (case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_try") 2>&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014676 ac_status=$?
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; }; then
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014679 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014680else
14681 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014682sed 's/^/| /' conftest.$ac_ext >&5
14683
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014684 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014685fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014686
Jeremy White0ebeb532006-06-20 13:18:41 +020014687rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014688 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014689LIBS=$ac_check_lib_save_LIBS
14690fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014691{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14692echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014693if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14694 cat >conftest.$ac_ext <<_ACEOF
14695/* confdefs.h. */
14696_ACEOF
14697cat confdefs.h >>conftest.$ac_ext
14698cat >>conftest.$ac_ext <<_ACEOF
14699/* end confdefs.h. */
14700#ifdef HAVE_ALSA_ASOUNDLIB_H
14701#include <alsa/asoundlib.h>
14702#elif defined(HAVE_SYS_ASOUNDLIB_H)
14703#include <sys/asoundlib.h>
14704#endif
14705int
14706main ()
14707{
14708int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14709 ;
14710 return 0;
14711}
14712_ACEOF
14713rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014714if { (ac_try="$ac_compile"
14715case "(($ac_try" in
14716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14718esac
14719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_compile") 2>conftest.er1
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14728 { (case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731esac
14732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014738 { (case "(($ac_try" in
14739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740 *) ac_try_echo=$ac_try;;
14741esac
14742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743 (eval "$ac_try") 2>&5
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014744 ac_status=$?
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014747
14748cat >>confdefs.h <<\_ACEOF
14749#define HAVE_ALSA 1
14750_ACEOF
14751
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014752 ALSALIBS="-lasound"
14753else
14754 echo "$as_me: failed program was:" >&5
14755sed 's/^/| /' conftest.$ac_ext >&5
14756
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014757
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014758fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014759
Jeremy White0ebeb532006-06-20 13:18:41 +020014760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014761fi
14762
14763fi
14764
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014765
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014766AUDIOIOLIBS=""
14767
Alexandre Julliard73482142005-08-03 19:21:04 +000014768if test "$ac_cv_header_libaudioio_h" = "yes"
14769then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014770 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14771echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014772if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774else
14775 ac_check_lib_save_LIBS=$LIBS
14776LIBS="-laudioio $LIBS"
14777cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014778/* confdefs.h. */
14779_ACEOF
14780cat confdefs.h >>conftest.$ac_ext
14781cat >>conftest.$ac_ext <<_ACEOF
14782/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014783
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014784/* Override any GCC internal prototype to avoid an error.
14785 Use char because int might match the return type of a GCC
14786 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014787#ifdef __cplusplus
14788extern "C"
14789#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014790char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014791int
14792main ()
14793{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014794return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014800if { (ac_try="$ac_link"
14801case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14804esac
14805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_link") 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014807 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14814 { (case "(($ac_try" in
14815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14816 *) ac_try_echo=$ac_try;;
14817esac
14818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14819 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014820 ac_status=$?
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); }; } &&
14823 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014824 { (case "(($ac_try" in
14825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14826 *) ac_try_echo=$ac_try;;
14827esac
14828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14829 (eval "$ac_try") 2>&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014830 ac_status=$?
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); }; }; then
14833 ac_cv_lib_audioio_AudioIOGetVersion=yes
14834else
14835 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014836sed 's/^/| /' conftest.$ac_ext >&5
14837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014838 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014839fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014840
Jeremy White0ebeb532006-06-20 13:18:41 +020014841rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014842 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014843LIBS=$ac_check_lib_save_LIBS
14844fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014845{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14846echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014847if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14848 AUDIOIOLIBS="-laudioio"
14849
14850cat >>confdefs.h <<\_ACEOF
14851#define HAVE_LIBAUDIOIO 1
14852_ACEOF
14853
14854fi
14855
14856fi
14857
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014858
Alexandre Julliard73482142005-08-03 19:21:04 +000014859if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14860then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014861 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14862echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014863if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865else
14866 ac_check_lib_save_LIBS=$LIBS
14867LIBS="-lcapi20 $LIBS"
14868cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014869/* confdefs.h. */
14870_ACEOF
14871cat confdefs.h >>conftest.$ac_ext
14872cat >>conftest.$ac_ext <<_ACEOF
14873/* end confdefs.h. */
14874
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014875/* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014878#ifdef __cplusplus
14879extern "C"
14880#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014881char capi20_register ();
14882int
14883main ()
14884{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014885return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014886 ;
14887 return 0;
14888}
14889_ACEOF
14890rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014891if { (ac_try="$ac_link"
14892case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895esac
14896eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14897 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014898 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908esac
14909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014915 { (case "(($ac_try" in
14916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917 *) ac_try_echo=$ac_try;;
14918esac
14919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14920 (eval "$ac_try") 2>&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014921 ac_status=$?
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_lib_capi20_capi20_register=yes
14925else
14926 echo "$as_me: failed program was:" >&5
14927sed 's/^/| /' conftest.$ac_ext >&5
14928
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014929 ac_cv_lib_capi20_capi20_register=no
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014930fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014931
Jeremy White0ebeb532006-06-20 13:18:41 +020014932rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014933 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014934LIBS=$ac_check_lib_save_LIBS
14935fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014936{ echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14937echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014938if test $ac_cv_lib_capi20_capi20_register = yes; then
14939
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014940cat >>confdefs.h <<\_ACEOF
14941#define HAVE_CAPI4LINUX 1
14942_ACEOF
14943
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014944fi
14945
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014946fi
14947
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014948
Alexandre Julliardfc094232003-04-14 21:46:41 +000014949EXTRACFLAGS=""
14950
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014951if test "x${GCC}" = "xyes"
14952then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000014953 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000014954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014955 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14956echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014957if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14958 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014959else
14960 if test "$cross_compiling" = yes; then
14961 ac_cv_c_gcc_strength_bug="yes"
14962else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014963 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014964/* confdefs.h. */
14965_ACEOF
14966cat confdefs.h >>conftest.$ac_ext
14967cat >>conftest.$ac_ext <<_ACEOF
14968/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014969
Eric Pouech5aee80f2000-11-11 00:31:39 +000014970int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014971int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014972 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014973 unsigned int B = 3;
14974 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014975 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000014976 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14977 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014978
Eric Pouech5aee80f2000-11-11 00:31:39 +000014979 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014980}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014981_ACEOF
14982rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014983if { (ac_try="$ac_link"
14984case "(($ac_try" in
14985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14987esac
14988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014990 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014993 { (case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14996esac
14997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014999 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015001 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015002 ac_cv_c_gcc_strength_bug="no"
15003else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015004 echo "$as_me: program exited with status $ac_status" >&5
15005echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015006sed 's/^/| /' conftest.$ac_ext >&5
15007
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015008( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015009ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015010fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015011rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015012fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015013
15014
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015015fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015016{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
15017echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015018 if test "$ac_cv_c_gcc_strength_bug" = "yes"
15019 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015020 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015021 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000015022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015023 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
15024echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015025if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
15026 echo $ECHO_N "(cached) $ECHO_C" >&6
15027else
15028 ac_wine_try_cflags_saved=$CFLAGS
15029CFLAGS="$CFLAGS -fshort-wchar"
15030cat >conftest.$ac_ext <<_ACEOF
15031/* confdefs.h. */
15032_ACEOF
15033cat confdefs.h >>conftest.$ac_ext
15034cat >>conftest.$ac_ext <<_ACEOF
15035/* end confdefs.h. */
15036
15037int
15038main ()
15039{
15040
15041 ;
15042 return 0;
15043}
15044_ACEOF
15045rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015046if { (ac_try="$ac_link"
15047case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15050esac
15051eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_link") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015053 ac_status=$?
15054 grep -v '^ *+' conftest.er1 >conftest.err
15055 rm -f conftest.er1
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15060 { (case "(($ac_try" in
15061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15062 *) ac_try_echo=$ac_try;;
15063esac
15064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15065 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015070 { (case "(($ac_try" in
15071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15072 *) ac_try_echo=$ac_try;;
15073esac
15074eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15075 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015076 ac_status=$?
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); }; }; then
15079 ac_cv_c_gcc_fshort_wchar="yes"
15080else
15081 echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015084 ac_cv_c_gcc_fshort_wchar="no"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015085fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015086
Jeremy White0ebeb532006-06-20 13:18:41 +020015087rm -f core conftest.err conftest.$ac_objext \
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015088 conftest$ac_exeext conftest.$ac_ext
15089CFLAGS=$ac_wine_try_cflags_saved
15090fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015091{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
15092echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015093 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
15094 then
15095
15096cat >>confdefs.h <<\_ACEOF
15097#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
15098_ACEOF
15099
15100 fi
15101
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015102 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
15103echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015104if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106else
15107 ac_wine_try_cflags_saved=$CFLAGS
15108CFLAGS="$CFLAGS -fno-strict-aliasing"
15109cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015110/* confdefs.h. */
15111_ACEOF
15112cat confdefs.h >>conftest.$ac_ext
15113cat >>conftest.$ac_ext <<_ACEOF
15114/* end confdefs.h. */
15115
15116int
15117main ()
15118{
15119
15120 ;
15121 return 0;
15122}
15123_ACEOF
15124rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015125if { (ac_try="$ac_link"
15126case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15129esac
15130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015132 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142esac
15143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15152esac
15153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015155 ac_status=$?
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_cv_c_gcc_no_strict_aliasing="yes"
15159else
15160 echo "$as_me: failed program was:" >&5
15161sed 's/^/| /' conftest.$ac_ext >&5
15162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015163 ac_cv_c_gcc_no_strict_aliasing="no"
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015164fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015165
Jeremy White0ebeb532006-06-20 13:18:41 +020015166rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015167 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015168CFLAGS=$ac_wine_try_cflags_saved
15169fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015170{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15171echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015172 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15173 then
15174 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15175 fi
15176
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015177 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15178echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015179if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15180 echo $ECHO_N "(cached) $ECHO_C" >&6
15181else
15182 ac_wine_try_cflags_saved=$CFLAGS
15183CFLAGS="$CFLAGS -gstabs+"
15184cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015185/* confdefs.h. */
15186_ACEOF
15187cat confdefs.h >>conftest.$ac_ext
15188cat >>conftest.$ac_ext <<_ACEOF
15189/* end confdefs.h. */
15190
15191int
15192main ()
15193{
15194
15195 ;
15196 return 0;
15197}
15198_ACEOF
15199rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015200if { (ac_try="$ac_link"
15201case "(($ac_try" in
15202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203 *) ac_try_echo=$ac_try;;
15204esac
15205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015207 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15214 { (case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217esac
15218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015220 ac_status=$?
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); }; } &&
15223 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015224 { (case "(($ac_try" in
15225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15226 *) ac_try_echo=$ac_try;;
15227esac
15228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15229 (eval "$ac_try") 2>&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015230 ac_status=$?
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); }; }; then
15233 ac_cv_c_gcc_gstabs="yes"
15234else
15235 echo "$as_me: failed program was:" >&5
15236sed 's/^/| /' conftest.$ac_ext >&5
15237
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015238 ac_cv_c_gcc_gstabs="no"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015239fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015240
Jeremy White0ebeb532006-06-20 13:18:41 +020015241rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015242 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015243CFLAGS=$ac_wine_try_cflags_saved
15244fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015245{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15246echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015247 if test "$ac_cv_c_gcc_gstabs" = "yes"
15248 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015249 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015250 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000015251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015252 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15253echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015254if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15256else
15257 ac_wine_try_cflags_saved=$CFLAGS
15258CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15259cat >conftest.$ac_ext <<_ACEOF
15260/* confdefs.h. */
15261_ACEOF
15262cat confdefs.h >>conftest.$ac_ext
15263cat >>conftest.$ac_ext <<_ACEOF
15264/* end confdefs.h. */
15265
15266int
15267main ()
15268{
15269
15270 ;
15271 return 0;
15272}
15273_ACEOF
15274rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015275if { (ac_try="$ac_link"
15276case "(($ac_try" in
15277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15278 *) ac_try_echo=$ac_try;;
15279esac
15280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15281 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015282 ac_status=$?
15283 grep -v '^ *+' conftest.er1 >conftest.err
15284 rm -f conftest.er1
15285 cat conftest.err >&5
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15289 { (case "(($ac_try" in
15290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291 *) ac_try_echo=$ac_try;;
15292esac
15293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015295 ac_status=$?
15296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297 (exit $ac_status); }; } &&
15298 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015299 { (case "(($ac_try" in
15300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15301 *) ac_try_echo=$ac_try;;
15302esac
15303eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15304 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015305 ac_status=$?
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); }; }; then
15308 ac_cv_c_gcc_decl_after_statement="yes"
15309else
15310 echo "$as_me: failed program was:" >&5
15311sed 's/^/| /' conftest.$ac_ext >&5
15312
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015313 ac_cv_c_gcc_decl_after_statement="no"
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015314fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015315
Jeremy White0ebeb532006-06-20 13:18:41 +020015316rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015317 conftest$ac_exeext conftest.$ac_ext
15318CFLAGS=$ac_wine_try_cflags_saved
15319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015320{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15321echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015322 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15323 then
15324 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15325 fi
15326
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015327 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000015328 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015329 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15330echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
Mike McCormackc509bc42003-02-25 04:01:58 +000015331if test "${ac_cv_c_string_h_warnings+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000015335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340#include <string.h>
15341int
15342main ()
15343{
15344
15345 ;
15346 return 0;
15347}
15348_ACEOF
15349rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020015350if { (ac_try="$ac_compile"
15351case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354esac
15355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_compile") 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000015357 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015358 grep -v '^ *+' conftest.er1 >conftest.err
15359 rm -f conftest.er1
15360 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000015361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15364 { (case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367esac
15368eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; } &&
15373 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015374 { (case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377esac
15378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
Mike McCormackc509bc42003-02-25 04:01:58 +000015380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15383 ac_cv_c_string_h_warnings=no
15384else
15385 echo "$as_me: failed program was:" >&5
15386sed 's/^/| /' conftest.$ac_ext >&5
15387
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015388 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000015389fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015390
Jeremy White0ebeb532006-06-20 13:18:41 +020015391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000015392fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015393{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15394echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015395 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000015396 if test "$ac_cv_c_string_h_warnings" = "no"
15397 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015398 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000015399 fi
Mike McCormackb7443722005-08-11 17:12:18 +000015400
15401 BUILTINFLAG=""
15402
15403 saved_CFLAGS="$CFLAGS"
15404 CFLAGS="$CFLAGS -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015405 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15406echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000015407if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15409else
15410 cat >conftest.$ac_ext <<_ACEOF
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
15416
15417int
15418main ()
15419{
15420int iswlower(unsigned short);
15421 ;
15422 return 0;
15423}
15424_ACEOF
15425rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020015426if { (ac_try="$ac_compile"
15427case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430esac
15431eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_compile") 2>conftest.er1
Mike McCormackb7443722005-08-11 17:12:18 +000015433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15440 { (case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000015446 ac_status=$?
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; } &&
15449 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015450 { (case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15453esac
15454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000015456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_c_builtin_wchar_ctype=no
15460else
15461 echo "$as_me: failed program was:" >&5
15462sed 's/^/| /' conftest.$ac_ext >&5
15463
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015464 ac_cv_c_builtin_wchar_ctype=yes
Mike McCormackb7443722005-08-11 17:12:18 +000015465fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015466
Jeremy White0ebeb532006-06-20 13:18:41 +020015467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackb7443722005-08-11 17:12:18 +000015468fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015469{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15470echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000015471 CFLAGS="$saved_CFLAGS"
15472 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15473 then
15474 BUILTINFLAG=""
15475 for builtin in \
15476 iswalnum iswalpha iswcntrl iswdigit iswgraph iswlower \
15477 iswprint iswpunct iswspace iswupper iswxdigit towlower towupper
15478 do
15479 BUILTINFLAG="$BUILTINFLAG -fno-builtin-$builtin"
15480 done
15481 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015482fi
15483
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015484
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015485{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15486echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015487if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015488 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015489else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015490 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015491/* confdefs.h. */
15492_ACEOF
15493cat confdefs.h >>conftest.$ac_ext
15494cat >>conftest.$ac_ext <<_ACEOF
15495/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015496void ac_asm(void) { asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0"); }
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015497
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015498int
15499main ()
15500{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015501
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015502 ;
15503 return 0;
15504}
15505_ACEOF
15506rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015507if { (ac_try="$ac_link"
15508case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511esac
15512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015514 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015519 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15521 { (case "(($ac_try" in
15522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523 *) ac_try_echo=$ac_try;;
15524esac
15525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15526 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015531 { (case "(($ac_try" in
15532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15534esac
15535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015537 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015539 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015540 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015541else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015542 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015543sed 's/^/| /' conftest.$ac_ext >&5
15544
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015545 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015546/* confdefs.h. */
15547_ACEOF
15548cat confdefs.h >>conftest.$ac_ext
15549cat >>conftest.$ac_ext <<_ACEOF
15550/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015551void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0"); }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015552
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015553int
15554main ()
15555{
15556
15557 ;
15558 return 0;
15559}
15560_ACEOF
15561rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015562if { (ac_try="$ac_link"
15563case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15566esac
15567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015569 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015570 grep -v '^ *+' conftest.er1 >conftest.err
15571 rm -f conftest.er1
15572 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579esac
15580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015582 ac_status=$?
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
15590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015595 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015596else
15597 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015598sed 's/^/| /' conftest.$ac_ext >&5
15599
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015600 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015606void ac_asm(void) { asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0"); }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015607
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015608int
15609main ()
15610{
15611
15612 ;
15613 return 0;
15614}
15615_ACEOF
15616rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015617if { (ac_try="$ac_link"
15618case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15621esac
15622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015624 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15631 { (case "(($ac_try" in
15632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15633 *) ac_try_echo=$ac_try;;
15634esac
15635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15636 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015637 ac_status=$?
15638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); }; } &&
15640 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015641 { (case "(($ac_try" in
15642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643 *) ac_try_echo=$ac_try;;
15644esac
15645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15646 (eval "$ac_try") 2>&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015647 ac_status=$?
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); }; }; then
15650 ac_cv_asm_func_def=".type 2"
15651else
15652 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015653sed 's/^/| /' conftest.$ac_ext >&5
15654
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015655 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015656fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015657
Jeremy White0ebeb532006-06-20 13:18:41 +020015658rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015659 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015660fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015661
Jeremy White0ebeb532006-06-20 13:18:41 +020015662rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015663 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015664fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015665
Jeremy White0ebeb532006-06-20 13:18:41 +020015666rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015667 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015668fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015669{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15670echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015671
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015672
15673
15674case "$ac_cv_asm_func_def" in
15675 ".def")
15676 cat >>confdefs.h <<\_ACEOF
15677#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015678_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015679 ;;
15680 ".type @function")
15681 cat >>confdefs.h <<\_ACEOF
15682#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15683_ACEOF
15684 ;;
15685 ".type 2")
15686 cat >>confdefs.h <<\_ACEOF
15687#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15688_ACEOF
15689 ;;
15690 *)
15691 cat >>confdefs.h <<\_ACEOF
15692#define __ASM_FUNC(name) ""
15693_ACEOF
15694 ;;
15695esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015696
15697
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015698{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15699echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015700if test "${ac_cv_c_extern_prefix+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015702else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015703 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015704/* confdefs.h. */
15705_ACEOF
15706cat confdefs.h >>conftest.$ac_ext
15707cat >>conftest.$ac_ext <<_ACEOF
15708/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015709void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015710extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015711int
15712main ()
15713{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015714if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015720if { (ac_try="$ac_link"
15721case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724esac
15725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015727 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015728 grep -v '^ *+' conftest.er1 >conftest.err
15729 rm -f conftest.er1
15730 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015732 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15734 { (case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737esac
15738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015740 ac_status=$?
15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742 (exit $ac_status); }; } &&
15743 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015744 { (case "(($ac_try" in
15745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15746 *) ac_try_echo=$ac_try;;
15747esac
15748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15749 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015750 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015752 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015753 ac_cv_c_extern_prefix="yes"
15754else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015756sed 's/^/| /' conftest.$ac_ext >&5
15757
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015758 ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015759fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015760
Jeremy White0ebeb532006-06-20 13:18:41 +020015761rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015762 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015763fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015764{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15765echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015766
15767
15768
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015769if test "$ac_cv_c_extern_prefix" = "yes"
15770then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015771 cat >>confdefs.h <<\_ACEOF
15772#define __ASM_NAME(name) "_" name
15773_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015774
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015775else
15776 cat >>confdefs.h <<\_ACEOF
15777#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015778_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015779
15780fi
15781
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015782
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015783DLLEXT=""
15784
Alexandre Julliardfc094232003-04-14 21:46:41 +000015785DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015786
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015787DLLIBS=""
15788
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015789LDSHARED=""
15790
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015791LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000015792
Alexandre Julliardada5e652002-12-12 22:03:14 +000015793LIBEXT="so"
15794
15795IMPLIBEXT="def"
15796
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015797
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015798case $host_os in
15799 cygwin*|mingw32*)
15800 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000015801 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15802set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015805if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15807else
15808 if test -n "$DLLTOOL"; then
15809 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15810else
15811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15812for as_dir in $PATH
15813do
15814 IFS=$as_save_IFS
15815 test -z "$as_dir" && as_dir=.
15816 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000015818 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15820 break 2
15821 fi
15822done
15823done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015824IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015825
15826fi
15827fi
15828DLLTOOL=$ac_cv_prog_DLLTOOL
15829if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015830 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15831echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015832else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015833 { echo "$as_me:$LINENO: result: no" >&5
15834echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015835fi
15836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015837
Alexandre Julliardada5e652002-12-12 22:03:14 +000015838fi
15839if test -z "$ac_cv_prog_DLLTOOL"; then
15840 ac_ct_DLLTOOL=$DLLTOOL
15841 # Extract the first word of "dlltool", so it can be a program name with args.
15842set dummy dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015845if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15846 echo $ECHO_N "(cached) $ECHO_C" >&6
15847else
15848 if test -n "$ac_ct_DLLTOOL"; then
15849 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15850else
15851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15852for as_dir in $PATH
15853do
15854 IFS=$as_save_IFS
15855 test -z "$as_dir" && as_dir=.
15856 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000015858 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15860 break 2
15861 fi
15862done
15863done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015864IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015865
Alexandre Julliardada5e652002-12-12 22:03:14 +000015866fi
15867fi
15868ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15869if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015870 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15871echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015872else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015873 { echo "$as_me:$LINENO: result: no" >&5
15874echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015875fi
15876
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015877 if test "x$ac_ct_DLLTOOL" = x; then
15878 DLLTOOL="false"
15879 else
15880 case $cross_compiling:$ac_tool_warned in
15881yes:)
15882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15883whose name does not start with the host triplet. If you think this
15884configuration is useful to you, please write to autoconf@gnu.org." >&5
15885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15886whose name does not start with the host triplet. If you think this
15887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15888ac_tool_warned=yes ;;
15889esac
15890 DLLTOOL=$ac_ct_DLLTOOL
15891 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015892else
15893 DLLTOOL="$ac_cv_prog_DLLTOOL"
15894fi
15895
15896 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015897 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15898set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015899{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015901if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903else
15904 if test -n "$DLLWRAP"; then
15905 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15906else
15907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15908for as_dir in $PATH
15909do
15910 IFS=$as_save_IFS
15911 test -z "$as_dir" && as_dir=.
15912 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015914 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000015915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15916 break 2
15917 fi
15918done
15919done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015920IFS=$as_save_IFS
Alexandre Julliard466ae142002-05-07 18:33:47 +000015921
Alexandre Julliard466ae142002-05-07 18:33:47 +000015922fi
15923fi
15924DLLWRAP=$ac_cv_prog_DLLWRAP
15925if test -n "$DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015926 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15927echo "${ECHO_T}$DLLWRAP" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015928else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015929 { echo "$as_me:$LINENO: result: no" >&5
15930echo "${ECHO_T}no" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015931fi
15932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015933
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015934fi
15935if test -z "$ac_cv_prog_DLLWRAP"; then
15936 ac_ct_DLLWRAP=$DLLWRAP
15937 # Extract the first word of "dllwrap", so it can be a program name with args.
15938set dummy dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015939{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015941if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943else
15944 if test -n "$ac_ct_DLLWRAP"; then
15945 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15946else
15947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15948for as_dir in $PATH
15949do
15950 IFS=$as_save_IFS
15951 test -z "$as_dir" && as_dir=.
15952 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015954 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15956 break 2
15957 fi
15958done
15959done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015960IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015961
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015962fi
15963fi
15964ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15965if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015966 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15967echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015968else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015969 { echo "$as_me:$LINENO: result: no" >&5
15970echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015971fi
15972
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015973 if test "x$ac_ct_DLLWRAP" = x; then
15974 DLLWRAP="false"
15975 else
15976 case $cross_compiling:$ac_tool_warned in
15977yes:)
15978{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15979whose name does not start with the host triplet. If you think this
15980configuration is useful to you, please write to autoconf@gnu.org." >&5
15981echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15982whose name does not start with the host triplet. If you think this
15983configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15984ac_tool_warned=yes ;;
15985esac
15986 DLLWRAP=$ac_ct_DLLWRAP
15987 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015988else
15989 DLLWRAP="$ac_cv_prog_DLLWRAP"
15990fi
15991
15992 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015993 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015994 else
15995 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015996 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015997 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000015998 WIN16_FILES=""
15999 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016000 ;;
16001 *)
Alexandre Julliard73482142005-08-03 19:21:04 +000016002 if test "$ac_cv_header_dlfcn_h" = "yes"
16003 then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016004
16005for ac_func in dlopen
16006do
16007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016008{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16010if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016011 echo $ECHO_N "(cached) $ECHO_C" >&6
16012else
16013 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16021#define $ac_func innocuous_$ac_func
16022
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016023/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016024 which can conflict with char $ac_func (); below.
16025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16026 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016027
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016028#ifdef __STDC__
16029# include <limits.h>
16030#else
16031# include <assert.h>
16032#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016033
16034#undef $ac_func
16035
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016036/* Override any GCC internal prototype to avoid an error.
16037 Use char because int might match the return type of a GCC
16038 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016039#ifdef __cplusplus
16040extern "C"
16041#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016042char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016043/* The GNU C library defines this for functions which it implements
16044 to always fail with ENOSYS. Some functions are actually named
16045 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016046#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016047choke me
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016048#endif
16049
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016050int
16051main ()
16052{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016053return $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016059if { (ac_try="$ac_link"
16060case "(($ac_try" in
16061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16062 *) ac_try_echo=$ac_try;;
16063esac
16064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16065 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016066 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016072 { 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;;
16076esac
16077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16078 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016083 { (case "(($ac_try" in
16084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16085 *) ac_try_echo=$ac_try;;
16086esac
16087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16088 (eval "$ac_try") 2>&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 eval "$as_ac_var=yes"
16093else
16094 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016095sed 's/^/| /' conftest.$ac_ext >&5
16096
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016097 eval "$as_ac_var=no"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016098fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016099
Jeremy White0ebeb532006-06-20 13:18:41 +020016100rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016101 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016102fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016103ac_res=`eval echo '${'$as_ac_var'}'`
16104 { echo "$as_me:$LINENO: result: $ac_res" >&5
16105echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016106if test `eval echo '${'$as_ac_var'}'` = yes; then
16107 cat >>confdefs.h <<_ACEOF
16108#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16109_ACEOF
16110
16111else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016112 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16113echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016114if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16116else
16117 ac_check_lib_save_LIBS=$LIBS
16118LIBS="-ldl $LIBS"
16119cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016120/* confdefs.h. */
16121_ACEOF
16122cat confdefs.h >>conftest.$ac_ext
16123cat >>conftest.$ac_ext <<_ACEOF
16124/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016125
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016126/* Override any GCC internal prototype to avoid an error.
16127 Use char because int might match the return type of a GCC
16128 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016129#ifdef __cplusplus
16130extern "C"
16131#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016132char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016133int
16134main ()
16135{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016136return dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016137 ;
16138 return 0;
16139}
16140_ACEOF
16141rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016142if { (ac_try="$ac_link"
16143case "(($ac_try" in
16144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16146esac
16147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016149 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016150 grep -v '^ *+' conftest.er1 >conftest.err
16151 rm -f conftest.er1
16152 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16154 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16156 { (case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16159esac
16160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
16165 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016166 { (case "(($ac_try" in
16167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168 *) ac_try_echo=$ac_try;;
16169esac
16170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171 (eval "$ac_try") 2>&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016172 ac_status=$?
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); }; }; then
16175 ac_cv_lib_dl_dlopen=yes
16176else
16177 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016178sed 's/^/| /' conftest.$ac_ext >&5
16179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016180 ac_cv_lib_dl_dlopen=no
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016181fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016182
Jeremy White0ebeb532006-06-20 13:18:41 +020016183rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016184 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016185LIBS=$ac_check_lib_save_LIBS
16186fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016187{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16188echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016189if test $ac_cv_lib_dl_dlopen = yes; then
16190
16191cat >>confdefs.h <<\_ACEOF
16192#define HAVE_DLOPEN 1
16193_ACEOF
16194
16195 DLLIBS="-ldl"
16196else
16197 LIBEXT="a"
16198fi
16199
16200fi
16201done
16202
Alexandre Julliard266c6092006-02-11 20:55:50 +010016203 ac_wine_check_funcs_save_LIBS="$LIBS"
16204LIBS="$LIBS $DLLIBS"
16205
16206for ac_func in dladdr
16207do
16208as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016209{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16210echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16211if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard266c6092006-02-11 20:55:50 +010016212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213else
16214 cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
16220/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16222#define $ac_func innocuous_$ac_func
16223
16224/* System header to define __stub macros and hopefully few prototypes,
16225 which can conflict with char $ac_func (); below.
16226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227 <limits.h> exists even on freestanding compilers. */
16228
16229#ifdef __STDC__
16230# include <limits.h>
16231#else
16232# include <assert.h>
16233#endif
16234
16235#undef $ac_func
16236
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016237/* Override any GCC internal prototype to avoid an error.
16238 Use char because int might match the return type of a GCC
16239 builtin and then its argument prototype would still apply. */
Alexandre Julliard266c6092006-02-11 20:55:50 +010016240#ifdef __cplusplus
16241extern "C"
Alexandre Julliard266c6092006-02-11 20:55:50 +010016242#endif
Alexandre Julliard266c6092006-02-11 20:55:50 +010016243char $ac_func ();
16244/* The GNU C library defines this for functions which it implements
16245 to always fail with ENOSYS. Some functions are actually named
16246 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016247#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard266c6092006-02-11 20:55:50 +010016248choke me
Alexandre Julliard266c6092006-02-11 20:55:50 +010016249#endif
16250
16251int
16252main ()
16253{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016254return $ac_func ();
Alexandre Julliard266c6092006-02-11 20:55:50 +010016255 ;
16256 return 0;
16257}
16258_ACEOF
16259rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016260if { (ac_try="$ac_link"
16261case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16264esac
16265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard266c6092006-02-11 20:55:50 +010016267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16274 { (case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
16278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279 (eval "$ac_try") 2>&5
Alexandre Julliard266c6092006-02-11 20:55:50 +010016280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; } &&
16283 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016284 { (case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16287esac
16288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_try") 2>&5
Alexandre Julliard266c6092006-02-11 20:55:50 +010016290 ac_status=$?
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 eval "$as_ac_var=yes"
16294else
16295 echo "$as_me: failed program was:" >&5
16296sed 's/^/| /' conftest.$ac_ext >&5
16297
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016298 eval "$as_ac_var=no"
Alexandre Julliard266c6092006-02-11 20:55:50 +010016299fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016300
Jeremy White0ebeb532006-06-20 13:18:41 +020016301rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard266c6092006-02-11 20:55:50 +010016302 conftest$ac_exeext conftest.$ac_ext
16303fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016304ac_res=`eval echo '${'$as_ac_var'}'`
16305 { echo "$as_me:$LINENO: result: $ac_res" >&5
16306echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard266c6092006-02-11 20:55:50 +010016307if test `eval echo '${'$as_ac_var'}'` = yes; then
16308 cat >>confdefs.h <<_ACEOF
16309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16310_ACEOF
16311
16312fi
16313done
16314
16315LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard73482142005-08-03 19:21:04 +000016316 else
16317 LIBEXT="a"
16318 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016319
16320 if test "$LIBEXT" = "so"
16321 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000016322 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016323 DLLEXT=".so"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016324 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16325echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016326if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16327 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016328else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016329 ac_wine_try_cflags_saved=$CFLAGS
Jeremy White0ebeb532006-06-20 13:18:41 +020016330CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016331cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016332void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016333_ACEOF
16334rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016335if { (ac_try="$ac_link"
16336case "(($ac_try" in
16337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16338 *) ac_try_echo=$ac_try;;
16339esac
16340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16341 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016342 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016347 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16349 { (case "(($ac_try" in
16350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16351 *) ac_try_echo=$ac_try;;
16352esac
16353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16354 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016359 { (case "(($ac_try" in
16360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16362esac
16363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016367 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000016368 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016369else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016370 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016371sed 's/^/| /' conftest.$ac_ext >&5
16372
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016373 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016374fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016375
Jeremy White0ebeb532006-06-20 13:18:41 +020016376rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016377 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016378CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016379fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016380{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16381echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000016382 if test "$ac_cv_c_dll_gnuelf" = "yes"
16383 then
Jeremy White0ebeb532006-06-20 13:18:41 +020016384 LDSHARED="\$(CC) -shared"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016385 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Jeremy White0ebeb532006-06-20 13:18:41 +020016386 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16387echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16388if test "${ac_cv_c_sonames+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16390else
16391 ac_wine_try_cflags_saved=$CFLAGS
16392CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16393cat >conftest.$ac_ext <<_ACEOF
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399
16400int
16401main ()
16402{
16403
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408rm -f conftest.$ac_objext conftest$ac_exeext
16409if { (ac_try="$ac_link"
16410case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16413esac
16414eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_link") 2>conftest.er1
16416 ac_status=$?
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
16422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16426esac
16427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; } &&
16432 { ac_try='test -s conftest$ac_exeext'
16433 { (case "(($ac_try" in
16434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16435 *) ac_try_echo=$ac_try;;
16436esac
16437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16438 (eval "$ac_try") 2>&5
16439 ac_status=$?
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); }; }; then
16442 ac_cv_c_sonames="yes"
16443else
16444 echo "$as_me: failed program was:" >&5
16445sed 's/^/| /' conftest.$ac_ext >&5
16446
16447 ac_cv_c_sonames="no"
16448fi
16449
16450rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
16452CFLAGS=$ac_wine_try_cflags_saved
16453fi
16454{ echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16455echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16456 if test "$ac_cv_c_sonames" = "yes"
16457 then
16458 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16459 else
16460 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16461echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16462if test "${ac_cv_c_h_sonames+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16464else
16465 ac_wine_try_cflags_saved=$CFLAGS
16466CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16467cat >conftest.$ac_ext <<_ACEOF
16468/* confdefs.h. */
16469_ACEOF
16470cat confdefs.h >>conftest.$ac_ext
16471cat >>conftest.$ac_ext <<_ACEOF
16472/* end confdefs.h. */
16473
16474int
16475main ()
16476{
16477
16478 ;
16479 return 0;
16480}
16481_ACEOF
16482rm -f conftest.$ac_objext conftest$ac_exeext
16483if { (ac_try="$ac_link"
16484case "(($ac_try" in
16485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16487esac
16488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_link") 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
16496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16497 { (case "(($ac_try" in
16498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499 *) ac_try_echo=$ac_try;;
16500esac
16501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502 (eval "$ac_try") 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest$ac_exeext'
16507 { (case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16510esac
16511eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_try") 2>&5
16513 ac_status=$?
16514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16515 (exit $ac_status); }; }; then
16516 ac_cv_c_h_sonames="yes"
16517else
16518 echo "$as_me: failed program was:" >&5
16519sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_cv_c_h_sonames="no"
16522fi
16523
16524rm -f core conftest.err conftest.$ac_objext \
16525 conftest$ac_exeext conftest.$ac_ext
16526CFLAGS=$ac_wine_try_cflags_saved
16527fi
16528{ echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16529echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16530 if test "$ac_cv_c_h_sonames" = "yes"
16531 then
16532 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16533 fi
16534 fi
16535
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016536 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16537echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016538if test "${ac_cv_c_dll_zdefs+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540else
16541 ac_wine_try_cflags_saved=$CFLAGS
16542CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16543cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016544/* confdefs.h. */
16545_ACEOF
16546cat confdefs.h >>conftest.$ac_ext
16547cat >>conftest.$ac_ext <<_ACEOF
16548/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016549
16550int
16551main ()
16552{
16553
16554 ;
16555 return 0;
16556}
16557_ACEOF
16558rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016559if { (ac_try="$ac_link"
16560case "(($ac_try" in
16561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16562 *) ac_try_echo=$ac_try;;
16563esac
16564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16565 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016566 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16573 { (case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16576esac
16577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016579 ac_status=$?
16580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581 (exit $ac_status); }; } &&
16582 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016583 { (case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586esac
16587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_try") 2>&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016589 ac_status=$?
16590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); }; }; then
16592 ac_cv_c_dll_zdefs="yes"
16593else
16594 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016595sed 's/^/| /' conftest.$ac_ext >&5
16596
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016597 ac_cv_c_dll_zdefs="no"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016598fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016599
Jeremy White0ebeb532006-06-20 13:18:41 +020016600rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016601 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016602CFLAGS=$ac_wine_try_cflags_saved
16603fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016604{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16605echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016606 if test "$ac_cv_c_dll_zdefs" = "yes"
16607 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016608 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016609 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000016610
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016611 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16612echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000016613if test "${ac_cv_c_dll_init_fini+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16615else
16616 ac_wine_try_cflags_saved=$CFLAGS
16617CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16618cat >conftest.$ac_ext <<_ACEOF
16619/* confdefs.h. */
16620_ACEOF
16621cat confdefs.h >>conftest.$ac_ext
16622cat >>conftest.$ac_ext <<_ACEOF
16623/* end confdefs.h. */
16624
16625int
16626main ()
16627{
16628
16629 ;
16630 return 0;
16631}
16632_ACEOF
16633rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016634if { (ac_try="$ac_link"
16635case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638esac
16639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard36048242004-01-08 03:36:53 +000016641 ac_status=$?
16642 grep -v '^ *+' conftest.er1 >conftest.err
16643 rm -f conftest.er1
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16648 { (case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16651esac
16652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000016654 ac_status=$?
16655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } &&
16657 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016658 { (case "(($ac_try" in
16659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660 *) ac_try_echo=$ac_try;;
16661esac
16662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000016664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; }; then
16667 ac_cv_c_dll_init_fini="yes"
16668else
16669 echo "$as_me: failed program was:" >&5
16670sed 's/^/| /' conftest.$ac_ext >&5
16671
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016672 ac_cv_c_dll_init_fini="no"
Alexandre Julliard36048242004-01-08 03:36:53 +000016673fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016674
Jeremy White0ebeb532006-06-20 13:18:41 +020016675rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard36048242004-01-08 03:36:53 +000016676 conftest$ac_exeext conftest.$ac_ext
16677CFLAGS=$ac_wine_try_cflags_saved
16678fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016679{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16680echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000016681 if test "$ac_cv_c_dll_init_fini" = "yes"
16682 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016683 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000016684 fi
16685
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016686 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16687echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016688if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16689 echo $ECHO_N "(cached) $ECHO_C" >&6
16690else
16691 echo '{ global: *; };' >conftest.map
16692 ac_wine_try_cflags_saved=$CFLAGS
16693CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16694cat >conftest.$ac_ext <<_ACEOF
16695/* confdefs.h. */
16696_ACEOF
16697cat confdefs.h >>conftest.$ac_ext
16698cat >>conftest.$ac_ext <<_ACEOF
16699/* end confdefs.h. */
16700
16701int
16702main ()
16703{
16704
16705 ;
16706 return 0;
16707}
16708_ACEOF
16709rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016710if { (ac_try="$ac_link"
16711case "(($ac_try" in
16712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713 *) ac_try_echo=$ac_try;;
16714esac
16715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016717 ac_status=$?
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16724 { (case "(($ac_try" in
16725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726 *) ac_try_echo=$ac_try;;
16727esac
16728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016734 { (case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16737esac
16738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_c_ld_version_scripts="yes"
16744else
16745 echo "$as_me: failed program was:" >&5
16746sed 's/^/| /' conftest.$ac_ext >&5
16747
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016748 ac_cv_c_ld_version_scripts="no"
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016749fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016750
Jeremy White0ebeb532006-06-20 13:18:41 +020016751rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016752 conftest$ac_exeext conftest.$ac_ext
16753CFLAGS=$ac_wine_try_cflags_saved
16754 rm -f conftest.map
16755fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016756{ echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16757echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016758 if test "$ac_cv_c_ld_version_scripts" = "yes"
16759 then
16760 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16761 fi
16762
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016763 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16764echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016765if test "${ac_cv_c_export_dynamic+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767else
16768 ac_wine_try_cflags_saved=$CFLAGS
16769CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16770cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016771/* confdefs.h. */
16772_ACEOF
16773cat confdefs.h >>conftest.$ac_ext
16774cat >>conftest.$ac_ext <<_ACEOF
16775/* end confdefs.h. */
16776
16777int
16778main ()
16779{
16780
16781 ;
16782 return 0;
16783}
16784_ACEOF
16785rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016786if { (ac_try="$ac_link"
16787case "(($ac_try" in
16788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16789 *) ac_try_echo=$ac_try;;
16790esac
16791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16792 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016793 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16800 { (case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803esac
16804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; } &&
16809 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016810 { (case "(($ac_try" in
16811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16812 *) ac_try_echo=$ac_try;;
16813esac
16814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16815 (eval "$ac_try") 2>&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_c_export_dynamic="yes"
16820else
16821 echo "$as_me: failed program was:" >&5
16822sed 's/^/| /' conftest.$ac_ext >&5
16823
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016824 ac_cv_c_export_dynamic="no"
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016825fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016826
Jeremy White0ebeb532006-06-20 13:18:41 +020016827rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016828 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016829CFLAGS=$ac_wine_try_cflags_saved
16830fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016831{ echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16832echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016833 if test "$ac_cv_c_export_dynamic" = "yes"
16834 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016835 LDEXECFLAGS="-Wl,--export-dynamic"
16836
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016837 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016839 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16840echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016841if test "${ac_cv_ld_rpath+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16843else
16844 ac_wine_try_cflags_saved=$CFLAGS
16845CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16846cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852
16853int
16854main ()
16855{
16856
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016862if { (ac_try="$ac_link"
16863case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16876 { (case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16879esac
16880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016882 ac_status=$?
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; } &&
16885 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016886 { (case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016892 ac_status=$?
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); }; }; then
16895 ac_cv_ld_rpath="yes"
16896else
16897 echo "$as_me: failed program was:" >&5
16898sed 's/^/| /' conftest.$ac_ext >&5
16899
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016900 ac_cv_ld_rpath="no"
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016901fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016902
Jeremy White0ebeb532006-06-20 13:18:41 +020016903rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016904 conftest$ac_exeext conftest.$ac_ext
16905CFLAGS=$ac_wine_try_cflags_saved
16906fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016907{ echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16908echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016909 if test "$ac_cv_ld_rpath" = "yes"
16910 then
16911 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16912
Alexandre Julliard1fd32cf2006-03-20 22:08:26 +010016913 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16914
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016915 fi
16916
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016917 case $host_cpu in
Ge van Geldorp2adeefe2006-06-30 21:37:34 +020016918 *i[3456789]86* | x86_64)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016919 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16920echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016921if test "${ac_cv_ld_reloc_exec+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016924 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000016925CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016926cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016927/* confdefs.h. */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016932
16933int
16934main ()
16935{
16936
16937 ;
16938 return 0;
16939}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016940_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016941rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016942if { (ac_try="$ac_link"
16943case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16946esac
16947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016949 ac_status=$?
16950 grep -v '^ *+' conftest.er1 >conftest.err
16951 rm -f conftest.er1
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16956 { (case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959esac
16960eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016966 { (case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16969esac
16970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016972 ac_status=$?
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); }; }; then
16975 ac_cv_ld_reloc_exec="yes"
16976else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016977 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016978sed 's/^/| /' conftest.$ac_ext >&5
16979
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016980 ac_cv_ld_reloc_exec="no"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016981fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016982
Jeremy White0ebeb532006-06-20 13:18:41 +020016983rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016984 conftest$ac_exeext conftest.$ac_ext
16985CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016986fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016987{ echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16988echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016989 if test "$ac_cv_ld_reloc_exec" = "yes"
16990 then
Alexandre Julliard5729f582005-06-17 10:22:46 +000016991 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016992 fi
16993 ;;
16994 esac
16995
Alexandre Julliard466ae142002-05-07 18:33:47 +000016996 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016997 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16998echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016999if test "${ac_cv_c_dll_unixware+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000017001else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017002 ac_wine_try_cflags_saved=$CFLAGS
17003CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
17004cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000017005void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017006_ACEOF
17007rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017008if { (ac_try="$ac_link"
17009case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17012esac
17013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017015 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017020 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17025esac
17026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017028 ac_status=$?
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017032 { (case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17035esac
17036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017040 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000017041 ac_cv_c_dll_unixware="yes"
17042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017043 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017044sed 's/^/| /' conftest.$ac_ext >&5
17045
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017046 ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000017047fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017048
Jeremy White0ebeb532006-06-20 13:18:41 +020017049rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017050 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017051CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017052fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017053{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
17054echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000017055 if test "$ac_cv_c_dll_unixware" = "yes"
17056 then
17057 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017058 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017059
17060 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017061 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
17062echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017063if test "${ac_cv_c_dll_macho+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 ac_wine_try_cflags_saved=$CFLAGS
17067CFLAGS="$CFLAGS -bundle"
17068cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000017069void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017070_ACEOF
17071rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017072if { (ac_try="$ac_link"
17073case "(($ac_try" in
17074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17075 *) ac_try_echo=$ac_try;;
17076esac
17077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17078 (eval "$ac_link") 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017079 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017080 grep -v '^ *+' conftest.er1 >conftest.err
17081 rm -f conftest.er1
17082 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (case "(($ac_try" in
17087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17088 *) ac_try_echo=$ac_try;;
17089esac
17090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17091 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017096 { (case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17099esac
17100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_try") 2>&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_c_dll_macho="yes"
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017110 ac_cv_c_dll_macho="no"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017111fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017112
Jeremy White0ebeb532006-06-20 13:18:41 +020017113rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017114 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017115CFLAGS=$ac_wine_try_cflags_saved
17116fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017117{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
17118echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017119 if test "$ac_cv_c_dll_macho" = "yes"
17120 then
17121 LIBEXT="dylib"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017122 LDDLLFLAGS="-bundle"
Alexandre Julliard7ed7e8f2006-05-15 15:14:45 +020017123 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017124 STRIP="$STRIP -u -r"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017125 COREFOUNDATIONLIB="-framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000017126
Alexandre Julliard495bf512005-09-15 09:48:18 +000017127 IOKITLIB="-framework IOKit -framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000017128
Emmanuel Maillardaaae6602006-02-15 13:52:02 +010017129 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7ffe0000"
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000017130
Emmanuel Maillard144a5352006-05-28 22:46:23 +020017131 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17132 then
17133 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17134
17135 fi
Emmanuel Maillardaaae6602006-02-15 13:52:02 +010017136 case $host_cpu in
Alexandre Julliard495bf512005-09-15 09:48:18 +000017137 *powerpc*)
17138 CFLAGS="$CFLAGS -ffixed-r13"
17139 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017140 ;;
17141 esac
17142
Warren Baird421e8b92004-09-22 19:17:55 +000017143 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017144 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17145echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000017146if test "${ac_cv_c_dll_hpux+set}" = set; then
17147 echo $ECHO_N "(cached) $ECHO_C" >&6
17148else
17149 ac_wine_try_cflags_saved=$CFLAGS
17150CFLAGS="$CFLAGS -shared"
17151cat >conftest.$ac_ext <<_ACEOF
17152void myfunc() {}
17153_ACEOF
17154rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017155if { (ac_try="$ac_link"
17156case "(($ac_try" in
17157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158 *) ac_try_echo=$ac_try;;
17159esac
17160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17161 (eval "$ac_link") 2>conftest.er1
Warren Baird421e8b92004-09-22 19:17:55 +000017162 ac_status=$?
17163 grep -v '^ *+' conftest.er1 >conftest.err
17164 rm -f conftest.er1
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17169 { (case "(($ac_try" in
17170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17171 *) ac_try_echo=$ac_try;;
17172esac
17173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17174 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000017175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; } &&
17178 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017179 { (case "(($ac_try" in
17180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17181 *) ac_try_echo=$ac_try;;
17182esac
17183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17184 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000017185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_cv_c_dll_hpux="yes"
17189else
17190 echo "$as_me: failed program was:" >&5
17191sed 's/^/| /' conftest.$ac_ext >&5
17192
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017193 ac_cv_c_dll_hpux="no"
Warren Baird421e8b92004-09-22 19:17:55 +000017194fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017195
Jeremy White0ebeb532006-06-20 13:18:41 +020017196rm -f core conftest.err conftest.$ac_objext \
Warren Baird421e8b92004-09-22 19:17:55 +000017197 conftest$ac_exeext conftest.$ac_ext
17198CFLAGS=$ac_wine_try_cflags_saved
17199fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017200{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17201echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000017202 if test "$ac_cv_c_dll_hpux" = "yes"
17203 then
17204 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000017205 DLLEXT=".sl"
17206 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000017207 LDSHARED="\$(CC) -shared"
17208 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017209 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000017210 fi
17211 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000017212 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017213
17214 CROSSTEST=""
17215
17216 if test "$cross_compiling" = "no"
17217 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000017218 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017219do
17220 # Extract the first word of "$ac_prog", so it can be a program name with args.
17221set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017222{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017224if test "${ac_cv_prog_CROSSCC+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226else
17227 if test -n "$CROSSCC"; then
17228 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17229else
17230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231for as_dir in $PATH
17232do
17233 IFS=$as_save_IFS
17234 test -z "$as_dir" && as_dir=.
17235 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017237 ac_cv_prog_CROSSCC="$ac_prog"
17238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17239 break 2
17240 fi
17241done
17242done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017243IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017244
17245fi
17246fi
17247CROSSCC=$ac_cv_prog_CROSSCC
17248if test -n "$CROSSCC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017249 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17250echo "${ECHO_T}$CROSSCC" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017251else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017252 { echo "$as_me:$LINENO: result: no" >&5
17253echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017254fi
17255
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017256
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017257 test -n "$CROSSCC" && break
17258done
17259test -n "$CROSSCC" || CROSSCC="false"
17260
Kevin Koltzaud3444562004-04-15 00:01:05 +000017261 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017262do
17263 # Extract the first word of "$ac_prog", so it can be a program name with args.
17264set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017265{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017267if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269else
17270 if test -n "$DLLTOOL"; then
17271 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17272else
17273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17274for as_dir in $PATH
17275do
17276 IFS=$as_save_IFS
17277 test -z "$as_dir" && as_dir=.
17278 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017280 ac_cv_prog_DLLTOOL="$ac_prog"
17281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17282 break 2
17283 fi
17284done
17285done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017286IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017287
17288fi
17289fi
17290DLLTOOL=$ac_cv_prog_DLLTOOL
17291if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017292 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17293echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017294else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017295 { echo "$as_me:$LINENO: result: no" >&5
17296echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017297fi
17298
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017299
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017300 test -n "$DLLTOOL" && break
17301done
17302test -n "$DLLTOOL" || DLLTOOL="false"
17303
Kevin Koltzaud3444562004-04-15 00:01:05 +000017304 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017305do
17306 # Extract the first word of "$ac_prog", so it can be a program name with args.
17307set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017308{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017310if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
17313 if test -n "$CROSSWINDRES"; then
17314 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17315else
17316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17317for as_dir in $PATH
17318do
17319 IFS=$as_save_IFS
17320 test -z "$as_dir" && as_dir=.
17321 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017323 ac_cv_prog_CROSSWINDRES="$ac_prog"
17324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17325 break 2
17326 fi
17327done
17328done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017329IFS=$as_save_IFS
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017330
17331fi
17332fi
17333CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17334if test -n "$CROSSWINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017335 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17336echo "${ECHO_T}$CROSSWINDRES" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017337else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017338 { echo "$as_me:$LINENO: result: no" >&5
17339echo "${ECHO_T}no" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017340fi
17341
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017342
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017343 test -n "$CROSSWINDRES" && break
17344done
17345test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17346
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017347 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17348 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000017349 ;;
17350esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017351
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000017352if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017353 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017354It is currently not possible to build Wine without shared library
17355(.so) support to allow transparent switch between .so and .dll files.
17356If you are using Linux, you will need a newer binutils.
17357" >&5
17358echo "$as_me: error: could not find a way to build shared libraries.
17359It is currently not possible to build Wine without shared library
17360(.so) support to allow transparent switch between .so and .dll files.
17361If you are using Linux, you will need a newer binutils.
17362" >&2;}
17363 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000017364fi
17365
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017366case $build_os in
17367 cygwin*|mingw32*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017368 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017369 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017370 darwin*|macosx*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017371 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017372 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017373 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017374 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017375 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017376esac
17377
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017378case $host_os in
17379 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000017380 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000017381
17382 SOCKETLIBS="-lws2_32"
17383
17384 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000017385esac
17386
Alexandre Julliard40bbcfb2006-06-20 13:44:19 +020017387MAIN_BINARY="wine-pthread"
17388 case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017389 *i[3456789]86*)
17390 case $host_os in
17391 linux* | k*bsd*-gnu)
17392 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000017393
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017394 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17395 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017396 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000017397 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017398esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017399
17400
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017401if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017402then
17403 # Extract the first word of "ldd", so it can be a program name with args.
17404set dummy ldd; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017405{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17406echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017407if test "${ac_cv_path_LDD+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17409else
17410 case $LDD in
17411 [\\/]* | ?:[\\/]*)
17412 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17413 ;;
17414 *)
17415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017416as_dummy="/sbin:/usr/sbin:$PATH"
17417for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017418do
17419 IFS=$as_save_IFS
17420 test -z "$as_dir" && as_dir=.
17421 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017423 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17425 break 2
17426 fi
17427done
17428done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017429IFS=$as_save_IFS
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017430
17431 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17432 ;;
17433esac
17434fi
17435LDD=$ac_cv_path_LDD
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017436if test -n "$LDD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017437 { echo "$as_me:$LINENO: result: $LDD" >&5
17438echo "${ECHO_T}$LDD" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017439else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017440 { echo "$as_me:$LINENO: result: no" >&5
17441echo "${ECHO_T}no" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017442fi
17443
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017444
17445{ echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17446echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017447if test "${ac_cv_lib_soname_X11+set}" = set; then
17448 echo $ECHO_N "(cached) $ECHO_C" >&6
17449else
17450 ac_get_soname_save_LIBS=$LIBS
17451LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17452 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017453/* confdefs.h. */
17454_ACEOF
17455cat confdefs.h >>conftest.$ac_ext
17456cat >>conftest.$ac_ext <<_ACEOF
17457/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017458
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017459/* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017462#ifdef __cplusplus
17463extern "C"
17464#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017465char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017466int
17467main ()
17468{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017469return XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017470 ;
17471 return 0;
17472}
17473_ACEOF
17474rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017475if { (ac_try="$ac_link"
17476case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479esac
17480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017482 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489 { (case "(($ac_try" in
17490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491 *) ac_try_echo=$ac_try;;
17492esac
17493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017499 { (case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502esac
17503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017505 ac_status=$?
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017508 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017509 if test "x$ac_cv_lib_soname_X11" = "x"
17510 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017511 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017512 fi
17513else
17514 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017515sed 's/^/| /' conftest.$ac_ext >&5
17516
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017517 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017518fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017519
Jeremy White0ebeb532006-06-20 13:18:41 +020017520rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017521 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017522 LIBS=$ac_get_soname_save_LIBS
17523fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017524{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17525echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017526if test "${ac_cv_lib_soname_X11+set}" = set; then
17527
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017528cat >>confdefs.h <<_ACEOF
17529#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17530_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017531
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017532fi
17533
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017534 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17535echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017536if test "${ac_cv_lib_soname_Xext+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538else
17539 ac_get_soname_save_LIBS=$LIBS
17540LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17541 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017547
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017548/* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017551#ifdef __cplusplus
17552extern "C"
17553#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017554char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017555int
17556main ()
17557{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017558return XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017564if { (ac_try="$ac_link"
17565case "(($ac_try" in
17566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567 *) ac_try_echo=$ac_try;;
17568esac
17569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017571 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017572 grep -v '^ *+' conftest.er1 >conftest.err
17573 rm -f conftest.er1
17574 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17578 { (case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581esac
17582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017584 ac_status=$?
17585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586 (exit $ac_status); }; } &&
17587 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017588 { (case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17591esac
17592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017594 ac_status=$?
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017597 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017598 if test "x$ac_cv_lib_soname_Xext" = "x"
17599 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017600 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017601 fi
17602else
17603 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017604sed 's/^/| /' conftest.$ac_ext >&5
17605
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017606 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017607fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017608
Jeremy White0ebeb532006-06-20 13:18:41 +020017609rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017610 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017611 LIBS=$ac_get_soname_save_LIBS
17612fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017613{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17614echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017615if test "${ac_cv_lib_soname_Xext+set}" = set; then
17616
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017617cat >>confdefs.h <<_ACEOF
17618#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17619_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017620
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017621fi
17622
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017623 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17624echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017625if test "${ac_cv_lib_soname_Xi+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627else
17628 ac_get_soname_save_LIBS=$LIBS
17629LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17630 cat >conftest.$ac_ext <<_ACEOF
17631/* confdefs.h. */
17632_ACEOF
17633cat confdefs.h >>conftest.$ac_ext
17634cat >>conftest.$ac_ext <<_ACEOF
17635/* end confdefs.h. */
17636
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017637/* Override any GCC internal prototype to avoid an error.
17638 Use char because int might match the return type of a GCC
17639 builtin and then its argument prototype would still apply. */
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017640#ifdef __cplusplus
17641extern "C"
17642#endif
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017643char XOpenDevice ();
17644int
17645main ()
17646{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017647return XOpenDevice ();
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017653if { (ac_try="$ac_link"
17654case "(($ac_try" in
17655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17657esac
17658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_link") 2>conftest.er1
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017660 ac_status=$?
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17667 { (case "(($ac_try" in
17668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669 *) ac_try_echo=$ac_try;;
17670esac
17671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17680esac
17681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017683 ac_status=$?
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017686 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017687 if test "x$ac_cv_lib_soname_Xi" = "x"
17688 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017689 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017690 fi
17691else
17692 echo "$as_me: failed program was:" >&5
17693sed 's/^/| /' conftest.$ac_ext >&5
17694
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017695 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017696fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017697
Jeremy White0ebeb532006-06-20 13:18:41 +020017698rm -f core conftest.err conftest.$ac_objext \
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017699 conftest$ac_exeext conftest.$ac_ext
17700 LIBS=$ac_get_soname_save_LIBS
17701fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017702{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17703echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017704if test "${ac_cv_lib_soname_Xi+set}" = set; then
17705
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017706cat >>confdefs.h <<_ACEOF
17707#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17708_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017709
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017710fi
17711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017712 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17713echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017714if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17715 echo $ECHO_N "(cached) $ECHO_C" >&6
17716else
17717 ac_get_soname_save_LIBS=$LIBS
17718LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17719 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017725
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017726/* Override any GCC internal prototype to avoid an error.
17727 Use char because int might match the return type of a GCC
17728 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017729#ifdef __cplusplus
17730extern "C"
17731#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017732char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017733int
17734main ()
17735{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017736return XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017737 ;
17738 return 0;
17739}
17740_ACEOF
17741rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017742if { (ac_try="$ac_link"
17743case "(($ac_try" in
17744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745 *) ac_try_echo=$ac_try;;
17746esac
17747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017749 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017750 grep -v '^ *+' conftest.er1 >conftest.err
17751 rm -f conftest.er1
17752 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17756 { (case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17759esac
17760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; } &&
17765 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017766 { (case "(($ac_try" in
17767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768 *) ac_try_echo=$ac_try;;
17769esac
17770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017775 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017776 if test "x$ac_cv_lib_soname_Xrender" = "x"
17777 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017778 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017779 fi
17780else
17781 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017782sed 's/^/| /' conftest.$ac_ext >&5
17783
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017784 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017785fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017786
Jeremy White0ebeb532006-06-20 13:18:41 +020017787rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017788 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017789 LIBS=$ac_get_soname_save_LIBS
17790fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017791{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17792echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017793if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17794
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017795cat >>confdefs.h <<_ACEOF
17796#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17797_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017798
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017799fi
17800
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017801 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17802echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
Mike McCormackc7c9f932004-04-07 03:57:35 +000017803if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17804 echo $ECHO_N "(cached) $ECHO_C" >&6
17805else
17806 ac_get_soname_save_LIBS=$LIBS
17807LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17808 cat >conftest.$ac_ext <<_ACEOF
17809/* confdefs.h. */
17810_ACEOF
17811cat confdefs.h >>conftest.$ac_ext
17812cat >>conftest.$ac_ext <<_ACEOF
17813/* end confdefs.h. */
17814
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017815/* Override any GCC internal prototype to avoid an error.
17816 Use char because int might match the return type of a GCC
17817 builtin and then its argument prototype would still apply. */
Mike McCormackc7c9f932004-04-07 03:57:35 +000017818#ifdef __cplusplus
17819extern "C"
17820#endif
Mike McCormackc7c9f932004-04-07 03:57:35 +000017821char XRRQueryExtension ();
17822int
17823main ()
17824{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017825return XRRQueryExtension ();
Mike McCormackc7c9f932004-04-07 03:57:35 +000017826 ;
17827 return 0;
17828}
17829_ACEOF
17830rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017831if { (ac_try="$ac_link"
17832case "(($ac_try" in
17833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17834 *) ac_try_echo=$ac_try;;
17835esac
17836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17837 (eval "$ac_link") 2>conftest.er1
Mike McCormackc7c9f932004-04-07 03:57:35 +000017838 ac_status=$?
17839 grep -v '^ *+' conftest.er1 >conftest.err
17840 rm -f conftest.er1
17841 cat conftest.err >&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17845 { (case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848esac
17849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000017851 ac_status=$?
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); }; } &&
17854 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017855 { (case "(($ac_try" in
17856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17857 *) ac_try_echo=$ac_try;;
17858esac
17859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17860 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000017861 ac_status=$?
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017864 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormackc7c9f932004-04-07 03:57:35 +000017865 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17866 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017867 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000017868 fi
17869else
17870 echo "$as_me: failed program was:" >&5
17871sed 's/^/| /' conftest.$ac_ext >&5
17872
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017873 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000017874fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017875
Jeremy White0ebeb532006-06-20 13:18:41 +020017876rm -f core conftest.err conftest.$ac_objext \
Mike McCormackc7c9f932004-04-07 03:57:35 +000017877 conftest$ac_exeext conftest.$ac_ext
17878 LIBS=$ac_get_soname_save_LIBS
17879fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017880{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17881echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017882if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17883
Mike McCormackc7c9f932004-04-07 03:57:35 +000017884cat >>confdefs.h <<_ACEOF
17885#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17886_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017887
Mike McCormackc7c9f932004-04-07 03:57:35 +000017888fi
17889
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017890 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17891echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017892if test "${ac_cv_lib_soname_freetype+set}" = set; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894else
17895 ac_get_soname_save_LIBS=$LIBS
17896LIBS="-lfreetype $X_LIBS $LIBS"
17897 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017898/* confdefs.h. */
17899_ACEOF
17900cat confdefs.h >>conftest.$ac_ext
17901cat >>conftest.$ac_ext <<_ACEOF
17902/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017903
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017904/* Override any GCC internal prototype to avoid an error.
17905 Use char because int might match the return type of a GCC
17906 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017907#ifdef __cplusplus
17908extern "C"
17909#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017910char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017911int
17912main ()
17913{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017914return FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017920if { (ac_try="$ac_link"
17921case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17924esac
17925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017927 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017928 grep -v '^ *+' conftest.er1 >conftest.err
17929 rm -f conftest.er1
17930 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17934 { (case "(($ac_try" in
17935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17936 *) ac_try_echo=$ac_try;;
17937esac
17938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17939 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017940 ac_status=$?
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); }; } &&
17943 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017944 { (case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17947esac
17948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017953 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017954 if test "x$ac_cv_lib_soname_freetype" = "x"
17955 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017956 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017957 fi
17958else
17959 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017960sed 's/^/| /' conftest.$ac_ext >&5
17961
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017962 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017963fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017964
Jeremy White0ebeb532006-06-20 13:18:41 +020017965rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017966 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017967 LIBS=$ac_get_soname_save_LIBS
17968fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017969{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17970echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017971if test "${ac_cv_lib_soname_freetype+set}" = set; then
17972
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017973cat >>confdefs.h <<_ACEOF
17974#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17975_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017976
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017977fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000017978
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017979 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17980echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017981if test "${ac_cv_lib_soname_GL+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983else
17984 ac_get_soname_save_LIBS=$LIBS
17985LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17986 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017987/* confdefs.h. */
17988_ACEOF
17989cat confdefs.h >>conftest.$ac_ext
17990cat >>conftest.$ac_ext <<_ACEOF
17991/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017992
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017993/* Override any GCC internal prototype to avoid an error.
17994 Use char because int might match the return type of a GCC
17995 builtin and then its argument prototype would still apply. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017996#ifdef __cplusplus
17997extern "C"
17998#endif
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017999char glXQueryExtension ();
18000int
18001main ()
18002{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018003return glXQueryExtension ();
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018009if { (ac_try="$ac_link"
18010case "(($ac_try" in
18011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012 *) ac_try_echo=$ac_try;;
18013esac
18014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015 (eval "$ac_link") 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018016 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018017 grep -v '^ *+' conftest.er1 >conftest.err
18018 rm -f conftest.er1
18019 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18023 { (case "(($ac_try" in
18024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025 *) ac_try_echo=$ac_try;;
18026esac
18027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018029 ac_status=$?
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; } &&
18032 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18036esac
18037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018039 ac_status=$?
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018042 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018043 if test "x$ac_cv_lib_soname_GL" = "x"
18044 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018045 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018046 fi
18047else
18048 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018049sed 's/^/| /' conftest.$ac_ext >&5
18050
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018051 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018052fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018053
Jeremy White0ebeb532006-06-20 13:18:41 +020018054rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018055 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018056 LIBS=$ac_get_soname_save_LIBS
18057fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018058{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
18059echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018060if test "${ac_cv_lib_soname_GL+set}" = set; then
18061
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018062cat >>confdefs.h <<_ACEOF
18063#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
18064_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018065
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000018066fi
18067
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018068 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
18069echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018070if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18072else
18073 ac_get_soname_save_LIBS=$LIBS
18074LIBS="-ldbus-1 $LIBS"
18075 cat >conftest.$ac_ext <<_ACEOF
18076/* confdefs.h. */
18077_ACEOF
18078cat confdefs.h >>conftest.$ac_ext
18079cat >>conftest.$ac_ext <<_ACEOF
18080/* end confdefs.h. */
18081
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018082/* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020018085#ifdef __cplusplus
18086extern "C"
18087#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020018088char dbus_error_init ();
18089int
18090main ()
18091{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018092return dbus_error_init ();
Alexandre Julliard00068982006-04-18 16:47:53 +020018093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018098if { (ac_try="$ac_link"
18099case "(($ac_try" in
18100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18101 *) ac_try_echo=$ac_try;;
18102esac
18103eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18104 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020018105 ac_status=$?
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18112 { (case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115esac
18116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018118 ac_status=$?
18119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 (exit $ac_status); }; } &&
18121 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018122 { (case "(($ac_try" in
18123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18124 *) ac_try_echo=$ac_try;;
18125esac
18126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18127 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; }; then
18131 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18132 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18133 then
18134 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18135 fi
18136else
18137 echo "$as_me: failed program was:" >&5
18138sed 's/^/| /' conftest.$ac_ext >&5
18139
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018140 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020018141fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018142
Jeremy White0ebeb532006-06-20 13:18:41 +020018143rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020018144 conftest$ac_exeext conftest.$ac_ext
18145 LIBS=$ac_get_soname_save_LIBS
18146fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018147{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18148echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018149if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18150
18151cat >>confdefs.h <<_ACEOF
18152#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18153_ACEOF
18154
18155fi
18156
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018157 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18158echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018159if test "${ac_cv_lib_soname_hal+set}" = set; then
18160 echo $ECHO_N "(cached) $ECHO_C" >&6
18161else
18162 ac_get_soname_save_LIBS=$LIBS
18163LIBS="-lhal $LIBS"
18164 cat >conftest.$ac_ext <<_ACEOF
18165/* confdefs.h. */
18166_ACEOF
18167cat confdefs.h >>conftest.$ac_ext
18168cat >>conftest.$ac_ext <<_ACEOF
18169/* end confdefs.h. */
18170
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018171/* Override any GCC internal prototype to avoid an error.
18172 Use char because int might match the return type of a GCC
18173 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020018174#ifdef __cplusplus
18175extern "C"
18176#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020018177char libhal_ctx_new ();
18178int
18179main ()
18180{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018181return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020018182 ;
18183 return 0;
18184}
18185_ACEOF
18186rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018187if { (ac_try="$ac_link"
18188case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18191esac
18192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020018194 ac_status=$?
18195 grep -v '^ *+' conftest.er1 >conftest.err
18196 rm -f conftest.er1
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18201 { (case "(($ac_try" in
18202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18203 *) ac_try_echo=$ac_try;;
18204esac
18205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18206 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018211 { (case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18214esac
18215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18221 if test "x$ac_cv_lib_soname_hal" = "x"
18222 then
18223 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18224 fi
18225else
18226 echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018229 ac_cv_lib_soname_hal="libhal.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020018230fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018231
Jeremy White0ebeb532006-06-20 13:18:41 +020018232rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020018233 conftest$ac_exeext conftest.$ac_ext
18234 LIBS=$ac_get_soname_save_LIBS
18235fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018236{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18237echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018238if test "${ac_cv_lib_soname_hal+set}" = set; then
18239
18240cat >>confdefs.h <<_ACEOF
18241#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18242_ACEOF
18243
18244fi
18245
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018246 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18247echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
Christian Costaeac96b52004-07-30 18:54:32 +000018248if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18249 echo $ECHO_N "(cached) $ECHO_C" >&6
18250else
18251 ac_get_soname_save_LIBS=$LIBS
18252LIBS="-ltxc_dxtn $LIBS"
18253 cat >conftest.$ac_ext <<_ACEOF
18254/* confdefs.h. */
18255_ACEOF
18256cat confdefs.h >>conftest.$ac_ext
18257cat >>conftest.$ac_ext <<_ACEOF
18258/* end confdefs.h. */
18259
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018260/* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
Christian Costaeac96b52004-07-30 18:54:32 +000018263#ifdef __cplusplus
18264extern "C"
18265#endif
Christian Costaeac96b52004-07-30 18:54:32 +000018266char fetch_2d_texel_rgba_dxt1 ();
18267int
18268main ()
18269{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018270return fetch_2d_texel_rgba_dxt1 ();
Christian Costaeac96b52004-07-30 18:54:32 +000018271 ;
18272 return 0;
18273}
18274_ACEOF
18275rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018276if { (ac_try="$ac_link"
18277case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280esac
18281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_link") 2>conftest.er1
Christian Costaeac96b52004-07-30 18:54:32 +000018283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18290 { (case "(($ac_try" in
18291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292 *) ac_try_echo=$ac_try;;
18293esac
18294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000018296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; } &&
18299 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018300 { (case "(($ac_try" in
18301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302 *) ac_try_echo=$ac_try;;
18303esac
18304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000018306 ac_status=$?
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018309 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Christian Costaeac96b52004-07-30 18:54:32 +000018310 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18311 then
18312 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18313 fi
18314else
18315 echo "$as_me: failed program was:" >&5
18316sed 's/^/| /' conftest.$ac_ext >&5
18317
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018318 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
Christian Costaeac96b52004-07-30 18:54:32 +000018319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018320
Jeremy White0ebeb532006-06-20 13:18:41 +020018321rm -f core conftest.err conftest.$ac_objext \
Christian Costaeac96b52004-07-30 18:54:32 +000018322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_get_soname_save_LIBS
18324fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018325{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18326echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018327if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18328
Christian Costaeac96b52004-07-30 18:54:32 +000018329cat >>confdefs.h <<_ACEOF
18330#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18331_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018332
Christian Costaeac96b52004-07-30 18:54:32 +000018333fi
18334
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018335 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18336echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
Marcus Meissnerf061f762002-11-12 02:22:24 +000018337if test "${ac_cv_lib_soname_cups+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340 ac_get_soname_save_LIBS=$LIBS
18341LIBS="-lcups $LIBS"
18342 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018343/* confdefs.h. */
18344_ACEOF
18345cat confdefs.h >>conftest.$ac_ext
18346cat >>conftest.$ac_ext <<_ACEOF
18347/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000018348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018349/* Override any GCC internal prototype to avoid an error.
18350 Use char because int might match the return type of a GCC
18351 builtin and then its argument prototype would still apply. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000018352#ifdef __cplusplus
18353extern "C"
18354#endif
Marcus Meissnerf061f762002-11-12 02:22:24 +000018355char cupsGetDefault ();
18356int
18357main ()
18358{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018359return cupsGetDefault ();
Marcus Meissnerf061f762002-11-12 02:22:24 +000018360 ;
18361 return 0;
18362}
18363_ACEOF
18364rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018365if { (ac_try="$ac_link"
18366case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18369esac
18370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000018372 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000018376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18379 { (case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382esac
18383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; } &&
18388 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018389 { (case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392esac
18393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_try") 2>&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000018395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018398 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissnerf061f762002-11-12 02:22:24 +000018399 if test "x$ac_cv_lib_soname_cups" = "x"
18400 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018401 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000018402 fi
18403else
18404 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018405sed 's/^/| /' conftest.$ac_ext >&5
18406
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018407 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000018408fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018409
Jeremy White0ebeb532006-06-20 13:18:41 +020018410rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018411 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000018412 LIBS=$ac_get_soname_save_LIBS
18413fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018414{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18415echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018416if test "${ac_cv_lib_soname_cups+set}" = set; then
18417
Marcus Meissnerf061f762002-11-12 02:22:24 +000018418cat >>confdefs.h <<_ACEOF
18419#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18420_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018421
Marcus Meissnerf061f762002-11-12 02:22:24 +000018422fi
Chris Morgan4691b182002-12-13 02:26:18 +000018423
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018424 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18425echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
Chris Morgan4691b182002-12-13 02:26:18 +000018426if test "${ac_cv_lib_soname_jack+set}" = set; then
18427 echo $ECHO_N "(cached) $ECHO_C" >&6
18428else
18429 ac_get_soname_save_LIBS=$LIBS
18430LIBS="-ljack $LIBS"
18431 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018432/* confdefs.h. */
18433_ACEOF
18434cat confdefs.h >>conftest.$ac_ext
18435cat >>conftest.$ac_ext <<_ACEOF
18436/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000018437
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018438/* Override any GCC internal prototype to avoid an error.
18439 Use char because int might match the return type of a GCC
18440 builtin and then its argument prototype would still apply. */
Chris Morgan4691b182002-12-13 02:26:18 +000018441#ifdef __cplusplus
18442extern "C"
18443#endif
Chris Morgan4691b182002-12-13 02:26:18 +000018444char jack_client_new ();
18445int
18446main ()
18447{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018448return jack_client_new ();
Chris Morgan4691b182002-12-13 02:26:18 +000018449 ;
18450 return 0;
18451}
18452_ACEOF
18453rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018454if { (ac_try="$ac_link"
18455case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458esac
18459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000018461 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000018465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18468 { (case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18471esac
18472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018478 { (case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481esac
18482eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_try") 2>&5
Chris Morgan4691b182002-12-13 02:26:18 +000018484 ac_status=$?
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018487 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Chris Morgan4691b182002-12-13 02:26:18 +000018488 if test "x$ac_cv_lib_soname_jack" = "x"
18489 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018490 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000018491 fi
18492else
18493 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018494sed 's/^/| /' conftest.$ac_ext >&5
18495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018496 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000018497fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018498
Jeremy White0ebeb532006-06-20 13:18:41 +020018499rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018500 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000018501 LIBS=$ac_get_soname_save_LIBS
18502fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018503{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18504echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018505if test "${ac_cv_lib_soname_jack+set}" = set; then
18506
Chris Morgan4691b182002-12-13 02:26:18 +000018507cat >>confdefs.h <<_ACEOF
18508#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18509_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018510
Chris Morgan4691b182002-12-13 02:26:18 +000018511fi
David Hammerton852c7ae2003-06-20 23:26:56 +000018512
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018513 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18514echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
Huw Davies6e128072003-11-09 00:30:13 +000018515if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517else
18518 ac_get_soname_save_LIBS=$LIBS
18519LIBS="-lfontconfig $LIBS"
18520 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000018521/* confdefs.h. */
18522_ACEOF
18523cat confdefs.h >>conftest.$ac_ext
18524cat >>conftest.$ac_ext <<_ACEOF
18525/* end confdefs.h. */
18526
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018527/* Override any GCC internal prototype to avoid an error.
18528 Use char because int might match the return type of a GCC
18529 builtin and then its argument prototype would still apply. */
Huw Davies6e128072003-11-09 00:30:13 +000018530#ifdef __cplusplus
18531extern "C"
18532#endif
Huw Davies6e128072003-11-09 00:30:13 +000018533char FcInit ();
18534int
18535main ()
18536{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018537return FcInit ();
Huw Davies6e128072003-11-09 00:30:13 +000018538 ;
18539 return 0;
18540}
18541_ACEOF
18542rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018543if { (ac_try="$ac_link"
18544case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18547esac
18548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000018550 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018551 grep -v '^ *+' conftest.er1 >conftest.err
18552 rm -f conftest.er1
18553 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000018554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18557 { (case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18560esac
18561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; } &&
18566 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018567 { (case "(($ac_try" in
18568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569 *) ac_try_echo=$ac_try;;
18570esac
18571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572 (eval "$ac_try") 2>&5
Huw Davies6e128072003-11-09 00:30:13 +000018573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018576 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Davies6e128072003-11-09 00:30:13 +000018577 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18578 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018579 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000018580 fi
18581else
18582 echo "$as_me: failed program was:" >&5
18583sed 's/^/| /' conftest.$ac_ext >&5
18584
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018585 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000018586fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018587
Jeremy White0ebeb532006-06-20 13:18:41 +020018588rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018589 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000018590 LIBS=$ac_get_soname_save_LIBS
18591fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018592{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18593echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018594if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18595
Huw Davies6e128072003-11-09 00:30:13 +000018596cat >>confdefs.h <<_ACEOF
18597#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18598_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018599
Alexandre Julliard79994692003-11-13 20:58:55 +000018600fi
Huw Davies6e128072003-11-09 00:30:13 +000018601
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018602 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18603echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000018604if test "${ac_cv_lib_soname_ssl+set}" = set; then
18605 echo $ECHO_N "(cached) $ECHO_C" >&6
18606else
18607 ac_get_soname_save_LIBS=$LIBS
18608LIBS="-lssl $LIBS"
18609 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000018610/* confdefs.h. */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h. */
18615
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018616/* Override any GCC internal prototype to avoid an error.
18617 Use char because int might match the return type of a GCC
18618 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000018619#ifdef __cplusplus
18620extern "C"
18621#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000018622char SSL_library_init ();
18623int
18624main ()
18625{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018626return SSL_library_init ();
David Hammerton852c7ae2003-06-20 23:26:56 +000018627 ;
18628 return 0;
18629}
18630_ACEOF
18631rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018632if { (ac_try="$ac_link"
18633case "(($ac_try" in
18634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635 *) ac_try_echo=$ac_try;;
18636esac
18637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18638 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000018639 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018640 grep -v '^ *+' conftest.er1 >conftest.err
18641 rm -f conftest.er1
18642 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18646 { (case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18649esac
18650eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018652 ac_status=$?
18653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654 (exit $ac_status); }; } &&
18655 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659esac
18660eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018665 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
David Hammerton852c7ae2003-06-20 23:26:56 +000018666 if test "x$ac_cv_lib_soname_ssl" = "x"
18667 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018668 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018669 fi
18670else
18671 echo "$as_me: failed program was:" >&5
18672sed 's/^/| /' conftest.$ac_ext >&5
18673
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018674 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018675fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018676
Jeremy White0ebeb532006-06-20 13:18:41 +020018677rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018678 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000018679 LIBS=$ac_get_soname_save_LIBS
18680fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018681{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18682echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018683if test "${ac_cv_lib_soname_ssl+set}" = set; then
18684
David Hammerton852c7ae2003-06-20 23:26:56 +000018685cat >>confdefs.h <<_ACEOF
18686#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18687_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018688
David Hammerton852c7ae2003-06-20 23:26:56 +000018689fi
18690
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018691 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18692echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000018693if test "${ac_cv_lib_soname_crypto+set}" = set; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18695else
18696 ac_get_soname_save_LIBS=$LIBS
18697LIBS="-lcrypto $LIBS"
18698 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000018699/* confdefs.h. */
18700_ACEOF
18701cat confdefs.h >>conftest.$ac_ext
18702cat >>conftest.$ac_ext <<_ACEOF
18703/* end confdefs.h. */
18704
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018705/* Override any GCC internal prototype to avoid an error.
18706 Use char because int might match the return type of a GCC
18707 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000018708#ifdef __cplusplus
18709extern "C"
18710#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000018711char BIO_new_socket ();
18712int
18713main ()
18714{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018715return BIO_new_socket ();
David Hammerton852c7ae2003-06-20 23:26:56 +000018716 ;
18717 return 0;
18718}
18719_ACEOF
18720rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018721if { (ac_try="$ac_link"
18722case "(($ac_try" in
18723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18724 *) ac_try_echo=$ac_try;;
18725esac
18726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18727 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000018728 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018729 grep -v '^ *+' conftest.er1 >conftest.err
18730 rm -f conftest.er1
18731 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18735 { (case "(($ac_try" in
18736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737 *) ac_try_echo=$ac_try;;
18738esac
18739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018741 ac_status=$?
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); }; } &&
18744 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018745 { (case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748esac
18749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018751 ac_status=$?
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018754 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
David Hammerton852c7ae2003-06-20 23:26:56 +000018755 if test "x$ac_cv_lib_soname_crypto" = "x"
18756 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018757 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018758 fi
18759else
18760 echo "$as_me: failed program was:" >&5
18761sed 's/^/| /' conftest.$ac_ext >&5
18762
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018763 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018764fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018765
Jeremy White0ebeb532006-06-20 13:18:41 +020018766rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018767 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000018768 LIBS=$ac_get_soname_save_LIBS
18769fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018770{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18771echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018772if test "${ac_cv_lib_soname_crypto+set}" = set; then
18773
David Hammerton852c7ae2003-06-20 23:26:56 +000018774cat >>confdefs.h <<_ACEOF
18775#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18776_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018777
David Hammerton852c7ae2003-06-20 23:26:56 +000018778fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000018779
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018780 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18781echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000018782if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18783 echo $ECHO_N "(cached) $ECHO_C" >&6
18784else
18785 ac_get_soname_save_LIBS=$LIBS
18786LIBS="-lncurses $LIBS"
18787 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000018788/* confdefs.h. */
18789_ACEOF
18790cat confdefs.h >>conftest.$ac_ext
18791cat >>conftest.$ac_ext <<_ACEOF
18792/* end confdefs.h. */
18793
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018794/* Override any GCC internal prototype to avoid an error.
18795 Use char because int might match the return type of a GCC
18796 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000018797#ifdef __cplusplus
18798extern "C"
18799#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000018800char waddch ();
18801int
18802main ()
18803{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018804return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000018805 ;
18806 return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018810if { (ac_try="$ac_link"
18811case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18814esac
18815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018817 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018818 grep -v '^ *+' conftest.er1 >conftest.err
18819 rm -f conftest.er1
18820 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18822 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18824 { (case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18827esac
18828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018834 { (case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18837esac
18838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018840 ac_status=$?
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018843 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormack9557d1b2003-08-20 04:19:01 +000018844 if test "x$ac_cv_lib_soname_ncurses" = "x"
18845 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018846 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018847 fi
18848else
18849 echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018852 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018853fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018854
Jeremy White0ebeb532006-06-20 13:18:41 +020018855rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018856 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018857 LIBS=$ac_get_soname_save_LIBS
18858fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018859{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18860echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018861if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18862
Mike McCormack9557d1b2003-08-20 04:19:01 +000018863cat >>confdefs.h <<_ACEOF
18864#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18865_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018866
Mike McCormack9557d1b2003-08-20 04:19:01 +000018867fi
18868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018869 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18870echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000018871if test "${ac_cv_lib_soname_curses+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873else
18874 ac_get_soname_save_LIBS=$LIBS
18875LIBS="-lcurses $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000018877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018883/* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000018886#ifdef __cplusplus
18887extern "C"
18888#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000018889char waddch ();
18890int
18891main ()
18892{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018893return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000018894 ;
18895 return 0;
18896}
18897_ACEOF
18898rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018899if { (ac_try="$ac_link"
18900case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903esac
18904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018906 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018907 grep -v '^ *+' conftest.er1 >conftest.err
18908 rm -f conftest.er1
18909 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18916esac
18917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18926esac
18927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018932 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormack9557d1b2003-08-20 04:19:01 +000018933 if test "x$ac_cv_lib_soname_curses" = "x"
18934 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018935 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018936 fi
18937else
18938 echo "$as_me: failed program was:" >&5
18939sed 's/^/| /' conftest.$ac_ext >&5
18940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018941 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018942fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018943
Jeremy White0ebeb532006-06-20 13:18:41 +020018944rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018945 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018946 LIBS=$ac_get_soname_save_LIBS
18947fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018948{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18949echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018950if test "${ac_cv_lib_soname_curses+set}" = set; then
18951
Mike McCormack9557d1b2003-08-20 04:19:01 +000018952cat >>confdefs.h <<_ACEOF
18953#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18954_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018955
Mike McCormack9557d1b2003-08-20 04:19:01 +000018956fi
Huw Daviese82dfab2004-08-04 19:10:26 +000018957
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018958 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18959echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000018960if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962else
18963 ac_get_soname_save_LIBS=$LIBS
18964LIBS="-ljpeg $LIBS"
18965 cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
18971
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018972/* Override any GCC internal prototype to avoid an error.
18973 Use char because int might match the return type of a GCC
18974 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000018975#ifdef __cplusplus
18976extern "C"
18977#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000018978char jpeg_start_decompress ();
18979int
18980main ()
18981{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018982return jpeg_start_decompress ();
Huw Daviese82dfab2004-08-04 19:10:26 +000018983 ;
18984 return 0;
18985}
18986_ACEOF
18987rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018988if { (ac_try="$ac_link"
18989case "(($ac_try" in
18990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18991 *) ac_try_echo=$ac_try;;
18992esac
18993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18994 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000018995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19002 { (case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19005esac
19006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000019008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019012 { (case "(($ac_try" in
19013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014 *) ac_try_echo=$ac_try;;
19015esac
19016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000019018 ac_status=$?
19019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019021 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Daviese82dfab2004-08-04 19:10:26 +000019022 if test "x$ac_cv_lib_soname_jpeg" = "x"
19023 then
19024 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
19025 fi
19026else
19027 echo "$as_me: failed program was:" >&5
19028sed 's/^/| /' conftest.$ac_ext >&5
19029
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019030 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000019031fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019032
Jeremy White0ebeb532006-06-20 13:18:41 +020019033rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000019034 conftest$ac_exeext conftest.$ac_ext
19035 LIBS=$ac_get_soname_save_LIBS
19036fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019037{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
19038echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019039if test "${ac_cv_lib_soname_jpeg+set}" = set; then
19040
Huw Daviese82dfab2004-08-04 19:10:26 +000019041cat >>confdefs.h <<_ACEOF
19042#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
19043_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019044
Huw Daviese82dfab2004-08-04 19:10:26 +000019045fi
19046
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019047 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
19048echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000019049if test "${ac_cv_lib_soname_ungif+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19051else
19052 ac_get_soname_save_LIBS=$LIBS
19053LIBS="-lungif $LIBS"
19054 cat >conftest.$ac_ext <<_ACEOF
19055/* confdefs.h. */
19056_ACEOF
19057cat confdefs.h >>conftest.$ac_ext
19058cat >>conftest.$ac_ext <<_ACEOF
19059/* end confdefs.h. */
19060
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019061/* Override any GCC internal prototype to avoid an error.
19062 Use char because int might match the return type of a GCC
19063 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000019064#ifdef __cplusplus
19065extern "C"
19066#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000019067char DGifOpen ();
19068int
19069main ()
19070{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019071return DGifOpen ();
Huw Daviese82dfab2004-08-04 19:10:26 +000019072 ;
19073 return 0;
19074}
19075_ACEOF
19076rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019077if { (ac_try="$ac_link"
19078case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081esac
19082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000019084 ac_status=$?
19085 grep -v '^ *+' conftest.er1 >conftest.err
19086 rm -f conftest.er1
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19094esac
19095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000019097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019101 { (case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19104esac
19105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000019107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019110 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Daviese82dfab2004-08-04 19:10:26 +000019111 if test "x$ac_cv_lib_soname_ungif" = "x"
19112 then
19113 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
19114 fi
19115else
19116 echo "$as_me: failed program was:" >&5
19117sed 's/^/| /' conftest.$ac_ext >&5
19118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019119 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000019120fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019121
Jeremy White0ebeb532006-06-20 13:18:41 +020019122rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000019123 conftest$ac_exeext conftest.$ac_ext
19124 LIBS=$ac_get_soname_save_LIBS
19125fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019126{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19127echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019128if test "${ac_cv_lib_soname_ungif+set}" = set; then
19129
Huw Daviese82dfab2004-08-04 19:10:26 +000019130cat >>confdefs.h <<_ACEOF
19131#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19132_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019133
Huw Daviese82dfab2004-08-04 19:10:26 +000019134fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019135
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019136 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19137echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019138if test "${ac_cv_lib_soname_gif+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140else
19141 ac_get_soname_save_LIBS=$LIBS
19142LIBS="-lgif $LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
19144/* confdefs.h. */
19145_ACEOF
19146cat confdefs.h >>conftest.$ac_ext
19147cat >>conftest.$ac_ext <<_ACEOF
19148/* end confdefs.h. */
19149
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019150/* Override any GCC internal prototype to avoid an error.
19151 Use char because int might match the return type of a GCC
19152 builtin and then its argument prototype would still apply. */
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019153#ifdef __cplusplus
19154extern "C"
19155#endif
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019156char DGifOpen ();
19157int
19158main ()
19159{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019160return DGifOpen ();
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019161 ;
19162 return 0;
19163}
19164_ACEOF
19165rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019166if { (ac_try="$ac_link"
19167case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19170esac
19171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_link") 2>conftest.er1
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019173 ac_status=$?
19174 grep -v '^ *+' conftest.er1 >conftest.err
19175 rm -f conftest.er1
19176 cat conftest.err >&5
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19180 { (case "(($ac_try" in
19181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19182 *) ac_try_echo=$ac_try;;
19183esac
19184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19185 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019190 { (case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193esac
19194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019196 ac_status=$?
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019199 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019200 if test "x$ac_cv_lib_soname_gif" = "x"
19201 then
19202 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19203 fi
19204else
19205 echo "$as_me: failed program was:" >&5
19206sed 's/^/| /' conftest.$ac_ext >&5
19207
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019208 ac_cv_lib_soname_gif="libgif.$LIBEXT"
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019209fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019210
Jeremy White0ebeb532006-06-20 13:18:41 +020019211rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019212 conftest$ac_exeext conftest.$ac_ext
19213 LIBS=$ac_get_soname_save_LIBS
19214fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019215{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19216echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019217if test "${ac_cv_lib_soname_gif+set}" = set; then
19218
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019219cat >>confdefs.h <<_ACEOF
19220#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19221_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019222
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019223fi
Hans Leidekker081b2502004-10-07 19:12:41 +000019224
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019225 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19226echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019227if test "${ac_cv_lib_soname_capi20+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230 ac_get_soname_save_LIBS=$LIBS
19231LIBS="-lcapi20 $LIBS"
19232 cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019239/* Override any GCC internal prototype to avoid an error.
19240 Use char because int might match the return type of a GCC
19241 builtin and then its argument prototype would still apply. */
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019242#ifdef __cplusplus
19243extern "C"
19244#endif
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019245char capi20_isinstalled ();
19246int
19247main ()
19248{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019249return capi20_isinstalled ();
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019250 ;
19251 return 0;
19252}
19253_ACEOF
19254rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019255if { (ac_try="$ac_link"
19256case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259esac
19260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_link") 2>conftest.er1
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19269 { (case "(($ac_try" in
19270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19271 *) ac_try_echo=$ac_try;;
19272esac
19273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19274 (eval "$ac_try") 2>&5
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19282esac
19283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019288 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019289 if test "x$ac_cv_lib_soname_capi20" = "x"
19290 then
19291 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19292 fi
19293else
19294 echo "$as_me: failed program was:" >&5
19295sed 's/^/| /' conftest.$ac_ext >&5
19296
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019297 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019298fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019299
Jeremy White0ebeb532006-06-20 13:18:41 +020019300rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019301 conftest$ac_exeext conftest.$ac_ext
19302 LIBS=$ac_get_soname_save_LIBS
19303fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019304{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19305echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019306if test "${ac_cv_lib_soname_capi20+set}" = set; then
19307
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019308cat >>confdefs.h <<_ACEOF
19309#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19310_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019311
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019312fi
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019313
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000019314fi
19315
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019316
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000019317
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
Steven Edwardsb9627c12002-05-05 21:03:44 +000019360
19361
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019362
19363
Alexandre Julliard142dab82002-07-01 18:17:30 +000019364
Patrik Stridvall6caeb722002-11-25 21:12:26 +000019365
19366
19367
Pavel Roskin7add08a2003-09-24 18:54:40 +000019368
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000019369
Alexandre Julliarde2930742004-01-08 05:07:05 +000019370
Alexandre Julliard13af4892004-03-05 21:03:46 +000019371
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000019372
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000019373
19374
Alexandre Julliard969f57c2004-09-23 04:48:24 +000019375
Paul Millar10a6c562004-12-07 17:19:54 +000019376
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000019377
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000019378
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010019379
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010019380
Alexandre Julliard9603ee02006-04-06 11:57:37 +020019381
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019382for ac_func in \
19383 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000019384 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019385 _pclose \
19386 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019387 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000019388 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019389 _stricmp \
19390 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000019391 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010019392 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019393 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019394 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000019395 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000019396 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000019397 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000019398 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000019399 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000019400 fstatfs \
19401 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019402 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000019403 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000019404 futimesat \
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000019405 getaddrinfo \
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010019406 getnameinfo \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019407 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000019408 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019409 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019410 getprotobyname \
19411 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000019412 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019413 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000019414 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000019415 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000019416 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019417 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000019418 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019419 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000019420 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019421 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019422 popen \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020019423 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019424 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000019425 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000019426 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019427 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000019428 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019429 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019430 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019431 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019432 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000019433 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019434 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000019435 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019436 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000019437 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000019438 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019439 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000019440 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019441 tcgetattr \
19442 timegm \
19443 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000019444 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019445 wait4 \
19446 waitpid \
19447
19448do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019450{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19452if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019453 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019454else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019455 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019456/* confdefs.h. */
19457_ACEOF
19458cat confdefs.h >>conftest.$ac_ext
19459cat >>conftest.$ac_ext <<_ACEOF
19460/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000019461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19463#define $ac_func innocuous_$ac_func
19464
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019465/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019466 which can conflict with char $ac_func (); below.
19467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19468 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000019469
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019470#ifdef __STDC__
19471# include <limits.h>
19472#else
19473# include <assert.h>
19474#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000019475
19476#undef $ac_func
19477
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019478/* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019481#ifdef __cplusplus
19482extern "C"
19483#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019484char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019485/* The GNU C library defines this for functions which it implements
19486 to always fail with ENOSYS. Some functions are actually named
19487 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019488#if defined __stub_$ac_func || defined __stub___$ac_func
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019489choke me
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019490#endif
19491
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019492int
19493main ()
19494{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019495return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019496 ;
19497 return 0;
19498}
19499_ACEOF
19500rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019501if { (ac_try="$ac_link"
19502case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505esac
19506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019508 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019509 grep -v '^ *+' conftest.er1 >conftest.err
19510 rm -f conftest.er1
19511 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019513 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517 *) ac_try_echo=$ac_try;;
19518esac
19519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; } &&
19524 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019525 { (case "(($ac_try" in
19526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527 *) ac_try_echo=$ac_try;;
19528esac
19529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019531 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019533 (exit $ac_status); }; }; then
19534 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019535else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019536 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019537sed 's/^/| /' conftest.$ac_ext >&5
19538
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019539 eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019540fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019541
Jeremy White0ebeb532006-06-20 13:18:41 +020019542rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000019543 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019544fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019545ac_res=`eval echo '${'$as_ac_var'}'`
19546 { echo "$as_me:$LINENO: result: $ac_res" >&5
19547echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019548if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019549 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019550#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019551_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000019552
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019553fi
19554done
19555
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019556
19557
19558
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019559{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19560echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019561if test "${ac_cv_c_const+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19563else
19564 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019565/* confdefs.h. */
19566_ACEOF
19567cat confdefs.h >>conftest.$ac_ext
19568cat >>conftest.$ac_ext <<_ACEOF
19569/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019570
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019571int
19572main ()
19573{
19574/* FIXME: Include the comments suggested by Paul. */
19575#ifndef __cplusplus
19576 /* Ultrix mips cc rejects this. */
19577 typedef int charset[2];
19578 const charset x;
19579 /* SunOS 4.1.1 cc rejects this. */
19580 char const *const *ccp;
19581 char **p;
19582 /* NEC SVR4.0.2 mips cc rejects this. */
19583 struct point {int x, y;};
19584 static struct point const zero = {0,0};
19585 /* AIX XL C 1.02.0.0 rejects this.
19586 It does not let you subtract one const X* pointer from another in
19587 an arm of an if-expression whose if-part is not a constant
19588 expression */
19589 const char *g = "string";
19590 ccp = &g + (g ? g-g : 0);
19591 /* HPUX 7.0 cc rejects these. */
19592 ++ccp;
19593 p = (char**) ccp;
19594 ccp = (char const *const *) p;
19595 { /* SCO 3.2v4 cc rejects this. */
19596 char *t;
19597 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019598
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019599 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019600 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019601 }
19602 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19603 int x[] = {25, 17};
19604 const int *foo = &x[0];
19605 ++foo;
19606 }
19607 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19608 typedef const int *iptr;
19609 iptr p = 0;
19610 ++p;
19611 }
19612 { /* AIX XL C 1.02.0.0 rejects this saying
19613 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19614 struct s { int j; const int *ap[3]; };
19615 struct s *b; b->j = 5;
19616 }
19617 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19618 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019619 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019620 }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019621 return !x[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019622#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019623
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019624 ;
19625 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019626}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019627_ACEOF
19628rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019629if { (ac_try="$ac_compile"
19630case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633esac
19634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019636 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019637 grep -v '^ *+' conftest.er1 >conftest.err
19638 rm -f conftest.er1
19639 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019641 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643 { (case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646esac
19647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019653 { (case "(($ac_try" in
19654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19655 *) ac_try_echo=$ac_try;;
19656esac
19657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19658 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019659 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019661 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019662 ac_cv_c_const=yes
19663else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019664 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019665sed 's/^/| /' conftest.$ac_ext >&5
19666
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019667 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019668fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019669
Jeremy White0ebeb532006-06-20 13:18:41 +020019670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019671fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019672{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19673echo "${ECHO_T}$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019674if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019675
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019676cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019677#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019678_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019679
19680fi
19681
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019682{ echo "$as_me:$LINENO: checking for inline" >&5
19683echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019684if test "${ac_cv_c_inline+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019686else
19687 ac_cv_c_inline=no
19688for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019689 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
19694/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019695#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019696typedef int foo_t;
19697static $ac_kw foo_t static_foo () {return 0; }
19698$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019699#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019700
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019701_ACEOF
19702rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019703if { (ac_try="$ac_compile"
19704case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19707esac
19708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019710 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019711 grep -v '^ *+' conftest.er1 >conftest.err
19712 rm -f conftest.er1
19713 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019715 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717 { (case "(($ac_try" in
19718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719 *) ac_try_echo=$ac_try;;
19720esac
19721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; } &&
19726 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019727 { (case "(($ac_try" in
19728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19729 *) ac_try_echo=$ac_try;;
19730esac
19731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19732 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019733 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019735 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019736 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019737else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019738 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019739sed 's/^/| /' conftest.$ac_ext >&5
19740
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019741
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019742fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019743
Jeremy White0ebeb532006-06-20 13:18:41 +020019744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019745 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019746done
19747
19748fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019749{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19750echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000019751
19752
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019753case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019754 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000019755 *)
19756 case $ac_cv_c_inline in
19757 no) ac_val=;;
19758 *) ac_val=$ac_cv_c_inline;;
19759 esac
19760 cat >>confdefs.h <<_ACEOF
19761#ifndef __cplusplus
19762#define inline $ac_val
19763#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019764_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000019765 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019766esac
19767
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019768{ echo "$as_me:$LINENO: checking for mode_t" >&5
19769echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019770if test "${ac_cv_type_mode_t+set}" = set; then
19771 echo $ECHO_N "(cached) $ECHO_C" >&6
19772else
19773 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019774/* confdefs.h. */
19775_ACEOF
19776cat confdefs.h >>conftest.$ac_ext
19777cat >>conftest.$ac_ext <<_ACEOF
19778/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019779$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019780typedef mode_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019781int
19782main ()
19783{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019784if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019785 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019786if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019787 return 0;
19788 ;
19789 return 0;
19790}
19791_ACEOF
19792rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019793if { (ac_try="$ac_compile"
19794case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797esac
19798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019800 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019805 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810esac
19811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820esac
19821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019823 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019825 (exit $ac_status); }; }; then
19826 ac_cv_type_mode_t=yes
19827else
19828 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019829sed 's/^/| /' conftest.$ac_ext >&5
19830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019831 ac_cv_type_mode_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019832fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019833
Jeremy White0ebeb532006-06-20 13:18:41 +020019834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019835fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019836{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19837echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019838if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019839
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019840cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019841#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019842_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019843
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019844
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019845fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019846{ echo "$as_me:$LINENO: checking for off_t" >&5
19847echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019848if test "${ac_cv_type_off_t+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850else
19851 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019852/* confdefs.h. */
19853_ACEOF
19854cat confdefs.h >>conftest.$ac_ext
19855cat >>conftest.$ac_ext <<_ACEOF
19856/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019857$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019858typedef off_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019859int
19860main ()
19861{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019862if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019863 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019864if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019865 return 0;
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019871if { (ac_try="$ac_compile"
19872case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875esac
19876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19877 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019878 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019879 grep -v '^ *+' conftest.er1 >conftest.err
19880 rm -f conftest.er1
19881 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019883 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19885 { (case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19888esac
19889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; } &&
19894 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019895 { (case "(($ac_try" in
19896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897 *) ac_try_echo=$ac_try;;
19898esac
19899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019901 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019903 (exit $ac_status); }; }; then
19904 ac_cv_type_off_t=yes
19905else
19906 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019907sed 's/^/| /' conftest.$ac_ext >&5
19908
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019909 ac_cv_type_off_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019910fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019911
Jeremy White0ebeb532006-06-20 13:18:41 +020019912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019913fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019914{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19915echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019916if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019917
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019918cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019919#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019920_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019921
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019922
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019923fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019924{ echo "$as_me:$LINENO: checking for pid_t" >&5
19925echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019926if test "${ac_cv_type_pid_t+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928else
19929 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019930/* confdefs.h. */
19931_ACEOF
19932cat confdefs.h >>conftest.$ac_ext
19933cat >>conftest.$ac_ext <<_ACEOF
19934/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019935$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019936typedef pid_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019937int
19938main ()
19939{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019940if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019941 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019942if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019943 return 0;
19944 ;
19945 return 0;
19946}
19947_ACEOF
19948rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019949if { (ac_try="$ac_compile"
19950case "(($ac_try" in
19951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19952 *) ac_try_echo=$ac_try;;
19953esac
19954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19955 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019956 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019957 grep -v '^ *+' conftest.er1 >conftest.err
19958 rm -f conftest.er1
19959 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019961 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19963 { (case "(($ac_try" in
19964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19965 *) ac_try_echo=$ac_try;;
19966esac
19967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19968 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019969 ac_status=$?
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; } &&
19972 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019973 { (case "(($ac_try" in
19974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975 *) ac_try_echo=$ac_try;;
19976esac
19977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019979 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019981 (exit $ac_status); }; }; then
19982 ac_cv_type_pid_t=yes
19983else
19984 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019985sed 's/^/| /' conftest.$ac_ext >&5
19986
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019987 ac_cv_type_pid_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019988fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019989
Jeremy White0ebeb532006-06-20 13:18:41 +020019990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019991fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019992{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19993echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019994if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019995
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019996cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019997#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019998_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019999
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020000
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020001fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020002{ echo "$as_me:$LINENO: checking for size_t" >&5
20003echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020004if test "${ac_cv_type_size_t+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020008/* confdefs.h. */
20009_ACEOF
20010cat confdefs.h >>conftest.$ac_ext
20011cat >>conftest.$ac_ext <<_ACEOF
20012/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020013$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020014typedef size_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020015int
20016main ()
20017{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020018if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020019 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020020if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020021 return 0;
20022 ;
20023 return 0;
20024}
20025_ACEOF
20026rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020027if { (ac_try="$ac_compile"
20028case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20031esac
20032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020034 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020039 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20041 { (case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044esac
20045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020047 ac_status=$?
20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20049 (exit $ac_status); }; } &&
20050 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020051 { (case "(($ac_try" in
20052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053 *) ac_try_echo=$ac_try;;
20054esac
20055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020057 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020059 (exit $ac_status); }; }; then
20060 ac_cv_type_size_t=yes
20061else
20062 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020063sed 's/^/| /' conftest.$ac_ext >&5
20064
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020065 ac_cv_type_size_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020066fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020067
Jeremy White0ebeb532006-06-20 13:18:41 +020020068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020069fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020070{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20071echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020072if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020073
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020074cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020075#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020076_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020077
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020078
20079fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020080{ echo "$as_me:$LINENO: checking for ssize_t" >&5
20081echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020082if test "${ac_cv_type_ssize_t+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084else
20085 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020086/* confdefs.h. */
20087_ACEOF
20088cat confdefs.h >>conftest.$ac_ext
20089cat >>conftest.$ac_ext <<_ACEOF
20090/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020091$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020092typedef ssize_t ac__type_new_;
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020093int
20094main ()
20095{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020096if ((ac__type_new_ *) 0)
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020097 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020098if (sizeof (ac__type_new_))
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020099 return 0;
20100 ;
20101 return 0;
20102}
20103_ACEOF
20104rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020105if { (ac_try="$ac_compile"
20106case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20109esac
20110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020112 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20119 { (case "(($ac_try" in
20120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20121 *) ac_try_echo=$ac_try;;
20122esac
20123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20124 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020125 ac_status=$?
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020129 { (case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20132esac
20133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_type_ssize_t=yes
20139else
20140 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020141sed 's/^/| /' conftest.$ac_ext >&5
20142
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020143 ac_cv_type_ssize_t=no
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020144fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020145
Jeremy White0ebeb532006-06-20 13:18:41 +020020146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020147fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020148{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20149echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020150if test $ac_cv_type_ssize_t = yes; then
20151
20152cat >>confdefs.h <<_ACEOF
20153#define HAVE_SSIZE_T 1
20154_ACEOF
20155
20156
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020157fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020158{ echo "$as_me:$LINENO: checking for long long" >&5
20159echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020160if test "${ac_cv_type_long_long+set}" = set; then
20161 echo $ECHO_N "(cached) $ECHO_C" >&6
20162else
20163 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020164/* confdefs.h. */
20165_ACEOF
20166cat confdefs.h >>conftest.$ac_ext
20167cat >>conftest.$ac_ext <<_ACEOF
20168/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020169$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020170typedef long long ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020171int
20172main ()
20173{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020174if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020175 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020176if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020177 return 0;
20178 ;
20179 return 0;
20180}
20181_ACEOF
20182rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020183if { (ac_try="$ac_compile"
20184case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20187esac
20188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020190 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020195 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200esac
20201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; } &&
20206 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020207 { (case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210esac
20211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020213 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020215 (exit $ac_status); }; }; then
20216 ac_cv_type_long_long=yes
20217else
20218 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020219sed 's/^/| /' conftest.$ac_ext >&5
20220
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020221 ac_cv_type_long_long=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020222fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020223
Jeremy White0ebeb532006-06-20 13:18:41 +020020224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020225fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020226{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20227echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020228if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020229
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020230cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020231#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020232_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000020233
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020234
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020235fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020236{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20237echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020238if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240else
20241 cat >conftest.$ac_ext <<_ACEOF
20242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
20247$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020248typedef fsblkcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020249int
20250main ()
20251{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020252if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020253 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020254if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020255 return 0;
20256 ;
20257 return 0;
20258}
20259_ACEOF
20260rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020261if { (ac_try="$ac_compile"
20262case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20265esac
20266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020268 ac_status=$?
20269 grep -v '^ *+' conftest.er1 >conftest.err
20270 rm -f conftest.er1
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20275 { (case "(($ac_try" in
20276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20277 *) ac_try_echo=$ac_try;;
20278esac
20279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20280 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020281 ac_status=$?
20282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); }; } &&
20284 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288esac
20289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_type_fsblkcnt_t=yes
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020299 ac_cv_type_fsblkcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020300fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020301
Jeremy White0ebeb532006-06-20 13:18:41 +020020302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020303fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020304{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20305echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020306if test $ac_cv_type_fsblkcnt_t = yes; then
20307
20308cat >>confdefs.h <<_ACEOF
20309#define HAVE_FSBLKCNT_T 1
20310_ACEOF
20311
20312
20313fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020314{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20315echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020316if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20318else
20319 cat >conftest.$ac_ext <<_ACEOF
20320/* confdefs.h. */
20321_ACEOF
20322cat confdefs.h >>conftest.$ac_ext
20323cat >>conftest.$ac_ext <<_ACEOF
20324/* end confdefs.h. */
20325$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020326typedef fsfilcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020327int
20328main ()
20329{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020330if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020331 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020332if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020333 return 0;
20334 ;
20335 return 0;
20336}
20337_ACEOF
20338rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020339if { (ac_try="$ac_compile"
20340case "(($ac_try" in
20341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342 *) ac_try_echo=$ac_try;;
20343esac
20344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020346 ac_status=$?
20347 grep -v '^ *+' conftest.er1 >conftest.err
20348 rm -f conftest.er1
20349 cat conftest.err >&5
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20353 { (case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356esac
20357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020363 { (case "(($ac_try" in
20364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20366esac
20367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; }; then
20372 ac_cv_type_fsfilcnt_t=yes
20373else
20374 echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020377 ac_cv_type_fsfilcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020378fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020379
Jeremy White0ebeb532006-06-20 13:18:41 +020020380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020381fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020382{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20383echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020384if test $ac_cv_type_fsfilcnt_t = yes; then
20385
20386cat >>confdefs.h <<_ACEOF
20387#define HAVE_FSFILCNT_T 1
20388_ACEOF
20389
20390
20391fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020392
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020393{ echo "$as_me:$LINENO: checking for sigset_t" >&5
20394echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020395if test "${ac_cv_type_sigset_t+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
20397else
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
20404#include <signal.h>
20405
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020406typedef sigset_t ac__type_new_;
Paul Millar10a6c562004-12-07 17:19:54 +000020407int
20408main ()
20409{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020410if ((ac__type_new_ *) 0)
Paul Millar10a6c562004-12-07 17:19:54 +000020411 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020412if (sizeof (ac__type_new_))
Paul Millar10a6c562004-12-07 17:19:54 +000020413 return 0;
20414 ;
20415 return 0;
20416}
20417_ACEOF
20418rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020419if { (ac_try="$ac_compile"
20420case "(($ac_try" in
20421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20422 *) ac_try_echo=$ac_try;;
20423esac
20424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20425 (eval "$ac_compile") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020426 ac_status=$?
20427 grep -v '^ *+' conftest.er1 >conftest.err
20428 rm -f conftest.er1
20429 cat conftest.err >&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20433 { (case "(($ac_try" in
20434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20436esac
20437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; } &&
20442 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020443 { (case "(($ac_try" in
20444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20445 *) ac_try_echo=$ac_try;;
20446esac
20447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20448 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020449 ac_status=$?
20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20451 (exit $ac_status); }; }; then
20452 ac_cv_type_sigset_t=yes
20453else
20454 echo "$as_me: failed program was:" >&5
20455sed 's/^/| /' conftest.$ac_ext >&5
20456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020457 ac_cv_type_sigset_t=no
Paul Millar10a6c562004-12-07 17:19:54 +000020458fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020459
Jeremy White0ebeb532006-06-20 13:18:41 +020020460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000020461fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020462{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20463echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020464if test $ac_cv_type_sigset_t = yes; then
20465
20466cat >>confdefs.h <<_ACEOF
20467#define HAVE_SIGSET_T 1
20468_ACEOF
20469
20470
20471fi
20472
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020473{ echo "$as_me:$LINENO: checking for request_sense" >&5
20474echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020475if test "${ac_cv_type_request_sense+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20477else
20478 cat >conftest.$ac_ext <<_ACEOF
20479/* confdefs.h. */
20480_ACEOF
20481cat confdefs.h >>conftest.$ac_ext
20482cat >>conftest.$ac_ext <<_ACEOF
20483/* end confdefs.h. */
20484#include <linux/cdrom.h>
20485
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020486typedef request_sense ac__type_new_;
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020487int
20488main ()
20489{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020490if ((ac__type_new_ *) 0)
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020491 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020492if (sizeof (ac__type_new_))
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020493 return 0;
20494 ;
20495 return 0;
20496}
20497_ACEOF
20498rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020499if { (ac_try="$ac_compile"
20500case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503esac
20504eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020506 ac_status=$?
20507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20513 { (case "(($ac_try" in
20514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20515 *) ac_try_echo=$ac_try;;
20516esac
20517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20518 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; } &&
20522 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020523 { (case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20526esac
20527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020529 ac_status=$?
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_type_request_sense=yes
20533else
20534 echo "$as_me: failed program was:" >&5
20535sed 's/^/| /' conftest.$ac_ext >&5
20536
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020537 ac_cv_type_request_sense=no
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020538fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020539
Jeremy White0ebeb532006-06-20 13:18:41 +020020540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020541fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020542{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20543echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020544if test $ac_cv_type_request_sense = yes; then
20545
20546cat >>confdefs.h <<_ACEOF
20547#define HAVE_REQUEST_SENSE 1
20548_ACEOF
20549
20550
20551fi
20552
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020553
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020554{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20555echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020556if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20558else
20559 cat >conftest.$ac_ext <<_ACEOF
20560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
20565#ifdef HAVE_LINUX_INPUT_H
20566#include <linux/input.h>
20567#endif
20568
20569int
20570main ()
20571{
20572static struct ff_effect ac_aggr;
20573if (ac_aggr.direction)
20574return 0;
20575 ;
20576 return 0;
20577}
20578_ACEOF
20579rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020580if { (ac_try="$ac_compile"
20581case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20584esac
20585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020587 ac_status=$?
20588 grep -v '^ *+' conftest.er1 >conftest.err
20589 rm -f conftest.er1
20590 cat conftest.err >&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20594 { (case "(($ac_try" in
20595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596 *) ac_try_echo=$ac_try;;
20597esac
20598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020600 ac_status=$?
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; } &&
20603 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020604 { (case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20607esac
20608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020610 ac_status=$?
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); }; }; then
20613 ac_cv_member_struct_ff_effect_direction=yes
20614else
20615 echo "$as_me: failed program was:" >&5
20616sed 's/^/| /' conftest.$ac_ext >&5
20617
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020618 cat >conftest.$ac_ext <<_ACEOF
Daniel Remenake491e8f2005-07-29 14:18:58 +000020619/* confdefs.h. */
20620_ACEOF
20621cat confdefs.h >>conftest.$ac_ext
20622cat >>conftest.$ac_ext <<_ACEOF
20623/* end confdefs.h. */
20624#ifdef HAVE_LINUX_INPUT_H
20625#include <linux/input.h>
20626#endif
20627
20628int
20629main ()
20630{
20631static struct ff_effect ac_aggr;
20632if (sizeof ac_aggr.direction)
20633return 0;
20634 ;
20635 return 0;
20636}
20637_ACEOF
20638rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020639if { (ac_try="$ac_compile"
20640case "(($ac_try" in
20641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20642 *) ac_try_echo=$ac_try;;
20643esac
20644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20645 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20653 { (case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20656esac
20657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020659 ac_status=$?
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); }; } &&
20662 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020663 { (case "(($ac_try" in
20664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20665 *) ac_try_echo=$ac_try;;
20666esac
20667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20668 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; }; then
20672 ac_cv_member_struct_ff_effect_direction=yes
20673else
20674 echo "$as_me: failed program was:" >&5
20675sed 's/^/| /' conftest.$ac_ext >&5
20676
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020677 ac_cv_member_struct_ff_effect_direction=no
Daniel Remenake491e8f2005-07-29 14:18:58 +000020678fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020679
Jeremy White0ebeb532006-06-20 13:18:41 +020020680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020681fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020682
Jeremy White0ebeb532006-06-20 13:18:41 +020020683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020684fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020685{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20686echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020687if test $ac_cv_member_struct_ff_effect_direction = yes; then
20688
20689cat >>confdefs.h <<_ACEOF
20690#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20691_ACEOF
20692
20693
20694fi
20695
20696
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020697{ echo "$as_me:$LINENO: checking for sigaddset" >&5
20698echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020699if test "${wine_cv_have_sigaddset+set}" = set; then
20700 echo $ECHO_N "(cached) $ECHO_C" >&6
20701else
20702 cat >conftest.$ac_ext <<_ACEOF
20703/* confdefs.h. */
20704_ACEOF
20705cat confdefs.h >>conftest.$ac_ext
20706cat >>conftest.$ac_ext <<_ACEOF
20707/* end confdefs.h. */
20708#include <signal.h>
20709int
20710main ()
20711{
20712sigset_t set; sigaddset(&set,SIGTERM);
20713 ;
20714 return 0;
20715}
20716_ACEOF
20717rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020718if { (ac_try="$ac_link"
20719case "(($ac_try" in
20720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20721 *) ac_try_echo=$ac_try;;
20722esac
20723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20724 (eval "$ac_link") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020725 ac_status=$?
20726 grep -v '^ *+' conftest.er1 >conftest.err
20727 rm -f conftest.er1
20728 cat conftest.err >&5
20729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20730 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20732 { (case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735esac
20736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020738 ac_status=$?
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); }; } &&
20741 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020742 { (case "(($ac_try" in
20743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744 *) ac_try_echo=$ac_try;;
20745esac
20746eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 wine_cv_have_sigaddset=yes
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020756 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000020757fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020758
Jeremy White0ebeb532006-06-20 13:18:41 +020020759rm -f core conftest.err conftest.$ac_objext \
Paul Millar10a6c562004-12-07 17:19:54 +000020760 conftest$ac_exeext conftest.$ac_ext
20761fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020762{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20763echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020764if test "$wine_cv_have_sigaddset" = "yes"
20765then
20766
20767cat >>confdefs.h <<\_ACEOF
20768#define HAVE_SIGADDSET 1
20769_ACEOF
20770
20771fi
20772
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020773
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020774{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20775echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020776if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20777 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000020778else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020779 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020780/* confdefs.h. */
20781_ACEOF
20782cat confdefs.h >>conftest.$ac_ext
20783cat >>conftest.$ac_ext <<_ACEOF
20784/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000020785
20786#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020787
20788int
20789main ()
20790{
Rein Klazesff7a61f2000-09-24 19:41:57 +000020791
20792 char *name=NULL;
20793 struct hostent he;
20794 struct hostent *result;
20795 char *buf=NULL;
20796 int bufsize=0;
20797 int res,errnr;
20798 char *addr=NULL;
20799 int addrlen=0;
20800 int addrtype=0;
20801 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20802 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020803
20804 ;
20805 return 0;
20806}
20807_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020808rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020809if { (ac_try="$ac_link"
20810case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813esac
20814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020816 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020821 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826esac
20827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020832 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836esac
20837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020839 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020841 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000020842 wine_cv_linux_gethostbyname_r_6=yes
20843else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020844 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020845sed 's/^/| /' conftest.$ac_ext >&5
20846
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020847 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000020848
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020849fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020850
Jeremy White0ebeb532006-06-20 13:18:41 +020020851rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020852 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020853
20854fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020855{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20856echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000020857 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20858 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020859
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020860cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020861#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020862_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020863
20864 fi
20865
Marcus Meissner028e9a11999-08-04 15:07:56 +000020866if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020867then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020868 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20869echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020870if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20871 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020872else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020873 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020874/* confdefs.h. */
20875_ACEOF
20876cat confdefs.h >>conftest.$ac_ext
20877cat >>conftest.$ac_ext <<_ACEOF
20878/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020879
Marcus Meissner028e9a11999-08-04 15:07:56 +000020880 #include <sys/ioctl.h>
20881 #include <linux/joystick.h>
20882
20883 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000020884 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20885 #error "no 2.2 header"
20886 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020887
20888int
20889main ()
20890{
Marcus Meissner028e9a11999-08-04 15:07:56 +000020891/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020892 ;
20893 return 0;
20894}
20895_ACEOF
20896rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020897if { (ac_try="$ac_compile"
20898case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20901esac
20902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020904 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020909 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20911 { (case "(($ac_try" in
20912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20913 *) ac_try_echo=$ac_try;;
20914esac
20915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20916 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020917 ac_status=$?
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); }; } &&
20920 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020921 { (case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20924esac
20925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020927 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020929 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000020930 wine_cv_linux_joystick_22_api=yes
20931else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020932 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020933sed 's/^/| /' conftest.$ac_ext >&5
20934
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020935 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000020936fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020937
Jeremy White0ebeb532006-06-20 13:18:41 +020020938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000020939
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020940fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020941{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20942echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000020943 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000020944 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020945
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020946cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020947#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020948_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020949
20950 fi
20951fi
20952
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020953
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020954{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20955echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020956if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020957 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020958else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020959 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020960/* confdefs.h. */
20961_ACEOF
20962cat confdefs.h >>conftest.$ac_ext
20963cat >>conftest.$ac_ext <<_ACEOF
20964/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020965#include <sys/types.h>
20966#ifdef HAVE_SYS_PARAM_H
20967# include <sys/param.h>
20968#endif
Robert Millan55b74482006-02-06 21:53:27 +010020969#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020970# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020971#endif
20972#ifdef HAVE_SYS_VFS_H
20973# include <sys/vfs.h>
20974#endif
20975#ifdef HAVE_SYS_STATFS_H
20976# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020977#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020978
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020979int
20980main ()
20981{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020982static struct statfs ac_aggr;
20983if (ac_aggr.f_bfree)
20984return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020985 ;
20986 return 0;
20987}
20988_ACEOF
20989rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020990if { (ac_try="$ac_compile"
20991case "(($ac_try" in
20992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993 *) ac_try_echo=$ac_try;;
20994esac
20995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020997 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021002 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21004 { (case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21007esac
21008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021014 { (case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21017esac
21018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021020 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021022 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021023 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021024else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021025 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021026sed 's/^/| /' conftest.$ac_ext >&5
21027
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021028 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021029/* confdefs.h. */
21030_ACEOF
21031cat confdefs.h >>conftest.$ac_ext
21032cat >>conftest.$ac_ext <<_ACEOF
21033/* end confdefs.h. */
21034#include <sys/types.h>
21035#ifdef HAVE_SYS_PARAM_H
21036# include <sys/param.h>
21037#endif
Robert Millan55b74482006-02-06 21:53:27 +010021038#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021039# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021040#endif
21041#ifdef HAVE_SYS_VFS_H
21042# include <sys/vfs.h>
21043#endif
21044#ifdef HAVE_SYS_STATFS_H
21045# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021046#endif
21047
21048int
21049main ()
21050{
21051static struct statfs ac_aggr;
21052if (sizeof ac_aggr.f_bfree)
21053return 0;
21054 ;
21055 return 0;
21056}
21057_ACEOF
21058rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021059if { (ac_try="$ac_compile"
21060case "(($ac_try" in
21061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21062 *) ac_try_echo=$ac_try;;
21063esac
21064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21065 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021066 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21073 { (case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21076esac
21077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021079 ac_status=$?
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021083 { (case "(($ac_try" in
21084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21085 *) ac_try_echo=$ac_try;;
21086esac
21087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21088 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021089 ac_status=$?
21090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); }; }; then
21092 ac_cv_member_struct_statfs_f_bfree=yes
21093else
21094 echo "$as_me: failed program was:" >&5
21095sed 's/^/| /' conftest.$ac_ext >&5
21096
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021097 ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021098fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021099
Jeremy White0ebeb532006-06-20 13:18:41 +020021100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021101fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021102
Jeremy White0ebeb532006-06-20 13:18:41 +020021103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021104fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021105{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
21106echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021107if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021108
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021109cat >>confdefs.h <<_ACEOF
21110#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021111_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021112
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021113
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000021114fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021115{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
21116echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021117if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021118 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000021119else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021120 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021121/* confdefs.h. */
21122_ACEOF
21123cat confdefs.h >>conftest.$ac_ext
21124cat >>conftest.$ac_ext <<_ACEOF
21125/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021126#include <sys/types.h>
21127#ifdef HAVE_SYS_PARAM_H
21128# include <sys/param.h>
21129#endif
Robert Millan55b74482006-02-06 21:53:27 +010021130#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021131# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021132#endif
21133#ifdef HAVE_SYS_VFS_H
21134# include <sys/vfs.h>
21135#endif
21136#ifdef HAVE_SYS_STATFS_H
21137# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021138#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021139
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021140int
21141main ()
21142{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021143static struct statfs ac_aggr;
21144if (ac_aggr.f_bavail)
21145return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021146 ;
21147 return 0;
21148}
21149_ACEOF
21150rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021151if { (ac_try="$ac_compile"
21152case "(($ac_try" in
21153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154 *) ac_try_echo=$ac_try;;
21155esac
21156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021158 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021159 grep -v '^ *+' conftest.er1 >conftest.err
21160 rm -f conftest.er1
21161 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021163 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21165 { (case "(($ac_try" in
21166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21167 *) ac_try_echo=$ac_try;;
21168esac
21169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21170 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021171 ac_status=$?
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); }; } &&
21174 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021175 { (case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21178esac
21179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021181 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021183 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021184 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000021185else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021186 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021187sed 's/^/| /' conftest.$ac_ext >&5
21188
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021189 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021190/* confdefs.h. */
21191_ACEOF
21192cat confdefs.h >>conftest.$ac_ext
21193cat >>conftest.$ac_ext <<_ACEOF
21194/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000021195#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021196#ifdef HAVE_SYS_PARAM_H
21197# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000021198#endif
Robert Millan55b74482006-02-06 21:53:27 +010021199#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021200# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021201#endif
21202#ifdef HAVE_SYS_VFS_H
21203# include <sys/vfs.h>
21204#endif
21205#ifdef HAVE_SYS_STATFS_H
21206# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021207#endif
21208
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021209int
21210main ()
21211{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021212static struct statfs ac_aggr;
21213if (sizeof ac_aggr.f_bavail)
21214return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021215 ;
21216 return 0;
21217}
21218_ACEOF
21219rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021220if { (ac_try="$ac_compile"
21221case "(($ac_try" in
21222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223 *) ac_try_echo=$ac_try;;
21224esac
21225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021227 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021232 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21234 { (case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21237esac
21238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021240 ac_status=$?
21241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242 (exit $ac_status); }; } &&
21243 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021244 { (case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21247esac
21248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021250 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021252 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021253 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000021254else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021255 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021256sed 's/^/| /' conftest.$ac_ext >&5
21257
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021258 ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000021259fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021260
Jeremy White0ebeb532006-06-20 13:18:41 +020021261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000021262fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021263
Jeremy White0ebeb532006-06-20 13:18:41 +020021264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000021265fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021266{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21267echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021268if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000021269
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021270cat >>confdefs.h <<_ACEOF
21271#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021272_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000021273
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021274
Patrik Stridvall09da9662001-07-08 22:30:50 +000021275fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021276{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21277echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021278if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21279 echo $ECHO_N "(cached) $ECHO_C" >&6
21280else
21281 cat >conftest.$ac_ext <<_ACEOF
21282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
21287#include <sys/types.h>
21288#ifdef HAVE_SYS_PARAM_H
21289# include <sys/param.h>
21290#endif
Robert Millan55b74482006-02-06 21:53:27 +010021291#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021292# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021293#endif
21294#ifdef HAVE_SYS_VFS_H
21295# include <sys/vfs.h>
21296#endif
21297#ifdef HAVE_SYS_STATFS_H
21298# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021299#endif
21300
21301int
21302main ()
21303{
21304static struct statfs ac_aggr;
21305if (ac_aggr.f_frsize)
21306return 0;
21307 ;
21308 return 0;
21309}
21310_ACEOF
21311rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021312if { (ac_try="$ac_compile"
21313case "(($ac_try" in
21314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315 *) ac_try_echo=$ac_try;;
21316esac
21317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21326 { (case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329esac
21330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021336 { (case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21339esac
21340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_cv_member_struct_statfs_f_frsize=yes
21346else
21347 echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021350 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021351/* confdefs.h. */
21352_ACEOF
21353cat confdefs.h >>conftest.$ac_ext
21354cat >>conftest.$ac_ext <<_ACEOF
21355/* end confdefs.h. */
21356#include <sys/types.h>
21357#ifdef HAVE_SYS_PARAM_H
21358# include <sys/param.h>
21359#endif
Robert Millan55b74482006-02-06 21:53:27 +010021360#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021361# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021362#endif
21363#ifdef HAVE_SYS_VFS_H
21364# include <sys/vfs.h>
21365#endif
21366#ifdef HAVE_SYS_STATFS_H
21367# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021368#endif
21369
21370int
21371main ()
21372{
21373static struct statfs ac_aggr;
21374if (sizeof ac_aggr.f_frsize)
21375return 0;
21376 ;
21377 return 0;
21378}
21379_ACEOF
21380rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021381if { (ac_try="$ac_compile"
21382case "(($ac_try" in
21383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384 *) ac_try_echo=$ac_try;;
21385esac
21386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021388 ac_status=$?
21389 grep -v '^ *+' conftest.er1 >conftest.err
21390 rm -f conftest.er1
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21395 { (case "(($ac_try" in
21396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21397 *) ac_try_echo=$ac_try;;
21398esac
21399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21400 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; } &&
21404 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021405 { (case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21408esac
21409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_member_struct_statfs_f_frsize=yes
21415else
21416 echo "$as_me: failed program was:" >&5
21417sed 's/^/| /' conftest.$ac_ext >&5
21418
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021419 ac_cv_member_struct_statfs_f_frsize=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021420fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021421
Jeremy White0ebeb532006-06-20 13:18:41 +020021422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021423fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021424
Jeremy White0ebeb532006-06-20 13:18:41 +020021425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021426fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021427{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21428echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021429if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21430
21431cat >>confdefs.h <<_ACEOF
21432#define HAVE_STRUCT_STATFS_F_FRSIZE 1
21433_ACEOF
21434
21435
21436fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021437{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21438echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021439if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21440 echo $ECHO_N "(cached) $ECHO_C" >&6
21441else
21442 cat >conftest.$ac_ext <<_ACEOF
21443/* confdefs.h. */
21444_ACEOF
21445cat confdefs.h >>conftest.$ac_ext
21446cat >>conftest.$ac_ext <<_ACEOF
21447/* end confdefs.h. */
21448#include <sys/types.h>
21449#ifdef HAVE_SYS_PARAM_H
21450# include <sys/param.h>
21451#endif
Robert Millan55b74482006-02-06 21:53:27 +010021452#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021453# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021454#endif
21455#ifdef HAVE_SYS_VFS_H
21456# include <sys/vfs.h>
21457#endif
21458#ifdef HAVE_SYS_STATFS_H
21459# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021460#endif
21461
21462int
21463main ()
21464{
21465static struct statfs ac_aggr;
21466if (ac_aggr.f_ffree)
21467return 0;
21468 ;
21469 return 0;
21470}
21471_ACEOF
21472rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021473if { (ac_try="$ac_compile"
21474case "(($ac_try" in
21475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21476 *) ac_try_echo=$ac_try;;
21477esac
21478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21479 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021480 ac_status=$?
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21487 { (case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490esac
21491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021497 { (case "(($ac_try" in
21498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499 *) ac_try_echo=$ac_try;;
21500esac
21501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021503 ac_status=$?
21504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505 (exit $ac_status); }; }; then
21506 ac_cv_member_struct_statfs_f_ffree=yes
21507else
21508 echo "$as_me: failed program was:" >&5
21509sed 's/^/| /' conftest.$ac_ext >&5
21510
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021511 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517#include <sys/types.h>
21518#ifdef HAVE_SYS_PARAM_H
21519# include <sys/param.h>
21520#endif
Robert Millan55b74482006-02-06 21:53:27 +010021521#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021522# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021523#endif
21524#ifdef HAVE_SYS_VFS_H
21525# include <sys/vfs.h>
21526#endif
21527#ifdef HAVE_SYS_STATFS_H
21528# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021529#endif
21530
21531int
21532main ()
21533{
21534static struct statfs ac_aggr;
21535if (sizeof ac_aggr.f_ffree)
21536return 0;
21537 ;
21538 return 0;
21539}
21540_ACEOF
21541rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021542if { (ac_try="$ac_compile"
21543case "(($ac_try" in
21544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21545 *) ac_try_echo=$ac_try;;
21546esac
21547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21548 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021549 ac_status=$?
21550 grep -v '^ *+' conftest.er1 >conftest.err
21551 rm -f conftest.er1
21552 cat conftest.err >&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21556 { (case "(($ac_try" in
21557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558 *) ac_try_echo=$ac_try;;
21559esac
21560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021562 ac_status=$?
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); }; } &&
21565 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021566 { (case "(($ac_try" in
21567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568 *) ac_try_echo=$ac_try;;
21569esac
21570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; }; then
21575 ac_cv_member_struct_statfs_f_ffree=yes
21576else
21577 echo "$as_me: failed program was:" >&5
21578sed 's/^/| /' conftest.$ac_ext >&5
21579
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021580 ac_cv_member_struct_statfs_f_ffree=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021581fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021582
Jeremy White0ebeb532006-06-20 13:18:41 +020021583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021584fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021585
Jeremy White0ebeb532006-06-20 13:18:41 +020021586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021587fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021588{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21589echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021590if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21591
21592cat >>confdefs.h <<_ACEOF
21593#define HAVE_STRUCT_STATFS_F_FFREE 1
21594_ACEOF
21595
21596
21597fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021598{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21599echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021600if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602else
21603 cat >conftest.$ac_ext <<_ACEOF
21604/* confdefs.h. */
21605_ACEOF
21606cat confdefs.h >>conftest.$ac_ext
21607cat >>conftest.$ac_ext <<_ACEOF
21608/* end confdefs.h. */
21609#include <sys/types.h>
21610#ifdef HAVE_SYS_PARAM_H
21611# include <sys/param.h>
21612#endif
Robert Millan55b74482006-02-06 21:53:27 +010021613#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021614# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021615#endif
21616#ifdef HAVE_SYS_VFS_H
21617# include <sys/vfs.h>
21618#endif
21619#ifdef HAVE_SYS_STATFS_H
21620# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021621#endif
21622
21623int
21624main ()
21625{
21626static struct statfs ac_aggr;
21627if (ac_aggr.f_favail)
21628return 0;
21629 ;
21630 return 0;
21631}
21632_ACEOF
21633rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021634if { (ac_try="$ac_compile"
21635case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638esac
21639eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21648 { (case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21651esac
21652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021658 { (case "(($ac_try" in
21659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21660 *) ac_try_echo=$ac_try;;
21661esac
21662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21663 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021664 ac_status=$?
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; }; then
21667 ac_cv_member_struct_statfs_f_favail=yes
21668else
21669 echo "$as_me: failed program was:" >&5
21670sed 's/^/| /' conftest.$ac_ext >&5
21671
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021672 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021673/* confdefs.h. */
21674_ACEOF
21675cat confdefs.h >>conftest.$ac_ext
21676cat >>conftest.$ac_ext <<_ACEOF
21677/* end confdefs.h. */
21678#include <sys/types.h>
21679#ifdef HAVE_SYS_PARAM_H
21680# include <sys/param.h>
21681#endif
Robert Millan55b74482006-02-06 21:53:27 +010021682#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021683# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021684#endif
21685#ifdef HAVE_SYS_VFS_H
21686# include <sys/vfs.h>
21687#endif
21688#ifdef HAVE_SYS_STATFS_H
21689# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021690#endif
21691
21692int
21693main ()
21694{
21695static struct statfs ac_aggr;
21696if (sizeof ac_aggr.f_favail)
21697return 0;
21698 ;
21699 return 0;
21700}
21701_ACEOF
21702rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021703if { (ac_try="$ac_compile"
21704case "(($ac_try" in
21705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706 *) ac_try_echo=$ac_try;;
21707esac
21708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021710 ac_status=$?
21711 grep -v '^ *+' conftest.er1 >conftest.err
21712 rm -f conftest.er1
21713 cat conftest.err >&5
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21717 { (case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21720esac
21721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021723 ac_status=$?
21724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21725 (exit $ac_status); }; } &&
21726 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021727 { (case "(($ac_try" in
21728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21729 *) ac_try_echo=$ac_try;;
21730esac
21731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21732 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021733 ac_status=$?
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_member_struct_statfs_f_favail=yes
21737else
21738 echo "$as_me: failed program was:" >&5
21739sed 's/^/| /' conftest.$ac_ext >&5
21740
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021741 ac_cv_member_struct_statfs_f_favail=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021742fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021743
Jeremy White0ebeb532006-06-20 13:18:41 +020021744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021745fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021746
Jeremy White0ebeb532006-06-20 13:18:41 +020021747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021748fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021749{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21750echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021751if test $ac_cv_member_struct_statfs_f_favail = yes; then
21752
21753cat >>confdefs.h <<_ACEOF
21754#define HAVE_STRUCT_STATFS_F_FAVAIL 1
21755_ACEOF
21756
21757
21758fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021759{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21760echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021761if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763else
21764 cat >conftest.$ac_ext <<_ACEOF
21765/* confdefs.h. */
21766_ACEOF
21767cat confdefs.h >>conftest.$ac_ext
21768cat >>conftest.$ac_ext <<_ACEOF
21769/* end confdefs.h. */
21770#include <sys/types.h>
21771#ifdef HAVE_SYS_PARAM_H
21772# include <sys/param.h>
21773#endif
Robert Millan55b74482006-02-06 21:53:27 +010021774#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021775# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021776#endif
21777#ifdef HAVE_SYS_VFS_H
21778# include <sys/vfs.h>
21779#endif
21780#ifdef HAVE_SYS_STATFS_H
21781# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021782#endif
21783
21784int
21785main ()
21786{
21787static struct statfs ac_aggr;
21788if (ac_aggr.f_namelen)
21789return 0;
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021795if { (ac_try="$ac_compile"
21796case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799esac
21800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021808 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21809 { (case "(($ac_try" in
21810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811 *) ac_try_echo=$ac_try;;
21812esac
21813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; } &&
21818 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021819 { (case "(($ac_try" in
21820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21821 *) ac_try_echo=$ac_try;;
21822esac
21823eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21824 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_cv_member_struct_statfs_f_namelen=yes
21829else
21830 echo "$as_me: failed program was:" >&5
21831sed 's/^/| /' conftest.$ac_ext >&5
21832
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021833 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb859a682004-03-07 03:16:43 +000021834/* confdefs.h. */
21835_ACEOF
21836cat confdefs.h >>conftest.$ac_ext
21837cat >>conftest.$ac_ext <<_ACEOF
21838/* end confdefs.h. */
21839#include <sys/types.h>
21840#ifdef HAVE_SYS_PARAM_H
21841# include <sys/param.h>
21842#endif
Robert Millan55b74482006-02-06 21:53:27 +010021843#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021844# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021845#endif
21846#ifdef HAVE_SYS_VFS_H
21847# include <sys/vfs.h>
21848#endif
21849#ifdef HAVE_SYS_STATFS_H
21850# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021851#endif
21852
21853int
21854main ()
21855{
21856static struct statfs ac_aggr;
21857if (sizeof ac_aggr.f_namelen)
21858return 0;
21859 ;
21860 return 0;
21861}
21862_ACEOF
21863rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021864if { (ac_try="$ac_compile"
21865case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868esac
21869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878 { (case "(($ac_try" in
21879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880 *) ac_try_echo=$ac_try;;
21881esac
21882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021888 { (case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891esac
21892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; }; then
21897 ac_cv_member_struct_statfs_f_namelen=yes
21898else
21899 echo "$as_me: failed program was:" >&5
21900sed 's/^/| /' conftest.$ac_ext >&5
21901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021902 ac_cv_member_struct_statfs_f_namelen=no
Alexandre Julliardb859a682004-03-07 03:16:43 +000021903fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021904
Jeremy White0ebeb532006-06-20 13:18:41 +020021905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021906fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021907
Jeremy White0ebeb532006-06-20 13:18:41 +020021908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021909fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021910{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21911echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021912if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21913
21914cat >>confdefs.h <<_ACEOF
21915#define HAVE_STRUCT_STATFS_F_NAMELEN 1
21916_ACEOF
21917
21918
21919fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000021920
21921
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021922{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21923echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021924if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926else
21927 cat >conftest.$ac_ext <<_ACEOF
21928/* confdefs.h. */
21929_ACEOF
21930cat confdefs.h >>conftest.$ac_ext
21931cat >>conftest.$ac_ext <<_ACEOF
21932/* end confdefs.h. */
21933#ifdef HAVE_SYS_STATVFS_H
21934#include <sys/statvfs.h>
21935#endif
21936
21937int
21938main ()
21939{
21940static struct statvfs ac_aggr;
21941if (ac_aggr.f_blocks)
21942return 0;
21943 ;
21944 return 0;
21945}
21946_ACEOF
21947rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021948if { (ac_try="$ac_compile"
21949case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952esac
21953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21962 { (case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965esac
21966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021972 { (case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975esac
21976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021978 ac_status=$?
21979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21980 (exit $ac_status); }; }; then
21981 ac_cv_member_struct_statvfs_f_blocks=yes
21982else
21983 echo "$as_me: failed program was:" >&5
21984sed 's/^/| /' conftest.$ac_ext >&5
21985
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021986 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021987/* confdefs.h. */
21988_ACEOF
21989cat confdefs.h >>conftest.$ac_ext
21990cat >>conftest.$ac_ext <<_ACEOF
21991/* end confdefs.h. */
21992#ifdef HAVE_SYS_STATVFS_H
21993#include <sys/statvfs.h>
21994#endif
21995
21996int
21997main ()
21998{
21999static struct statvfs ac_aggr;
22000if (sizeof ac_aggr.f_blocks)
22001return 0;
22002 ;
22003 return 0;
22004}
22005_ACEOF
22006rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022007if { (ac_try="$ac_compile"
22008case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011esac
22012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000022014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22021 { (case "(($ac_try" in
22022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023 *) ac_try_echo=$ac_try;;
22024esac
22025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22026 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000022027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; } &&
22030 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022031 { (case "(($ac_try" in
22032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22033 *) ac_try_echo=$ac_try;;
22034esac
22035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22036 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000022037 ac_status=$?
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); }; }; then
22040 ac_cv_member_struct_statvfs_f_blocks=yes
22041else
22042 echo "$as_me: failed program was:" >&5
22043sed 's/^/| /' conftest.$ac_ext >&5
22044
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022045 ac_cv_member_struct_statvfs_f_blocks=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000022046fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022047
Jeremy White0ebeb532006-06-20 13:18:41 +020022048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000022049fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022050
Jeremy White0ebeb532006-06-20 13:18:41 +020022051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000022052fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022053{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
22054echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000022055if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
22056
22057cat >>confdefs.h <<_ACEOF
22058#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
22059_ACEOF
22060
22061
22062fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000022063
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022064
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022065{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
22066echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022067if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022068 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000022069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022070 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022071/* confdefs.h. */
22072_ACEOF
22073cat confdefs.h >>conftest.$ac_ext
22074cat >>conftest.$ac_ext <<_ACEOF
22075/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000022076#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000022077#ifdef HAVE_SYS_SOCKET_H
22078# include <sys/socket.h>
22079#endif
22080#ifdef HAVE_SYS_UN_H
22081# include <sys/un.h>
22082#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022083
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022084int
22085main ()
22086{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022087static struct msghdr ac_aggr;
22088if (ac_aggr.msg_accrights)
22089return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022090 ;
22091 return 0;
22092}
22093_ACEOF
22094rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022095if { (ac_try="$ac_compile"
22096case "(($ac_try" in
22097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098 *) ac_try_echo=$ac_try;;
22099esac
22100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022102 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022103 grep -v '^ *+' conftest.er1 >conftest.err
22104 rm -f conftest.er1
22105 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022107 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22109 { (case "(($ac_try" in
22110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111 *) ac_try_echo=$ac_try;;
22112esac
22113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; } &&
22118 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022119 { (case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22122esac
22123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022125 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022127 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022128 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000022129else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022130 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022131sed 's/^/| /' conftest.$ac_ext >&5
22132
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022133 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022134/* confdefs.h. */
22135_ACEOF
22136cat confdefs.h >>conftest.$ac_ext
22137cat >>conftest.$ac_ext <<_ACEOF
22138/* end confdefs.h. */
22139#include <sys/types.h>
22140#ifdef HAVE_SYS_SOCKET_H
22141# include <sys/socket.h>
22142#endif
22143#ifdef HAVE_SYS_UN_H
22144# include <sys/un.h>
22145#endif
22146
22147int
22148main ()
22149{
22150static struct msghdr ac_aggr;
22151if (sizeof ac_aggr.msg_accrights)
22152return 0;
22153 ;
22154 return 0;
22155}
22156_ACEOF
22157rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022158if { (ac_try="$ac_compile"
22159case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22162esac
22163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022165 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22172 { (case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175esac
22176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; } &&
22181 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022182 { (case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22185esac
22186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022188 ac_status=$?
22189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190 (exit $ac_status); }; }; then
22191 ac_cv_member_struct_msghdr_msg_accrights=yes
22192else
22193 echo "$as_me: failed program was:" >&5
22194sed 's/^/| /' conftest.$ac_ext >&5
22195
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022196 ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000022197fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022198
Jeremy White0ebeb532006-06-20 13:18:41 +020022199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000022200fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022201
Jeremy White0ebeb532006-06-20 13:18:41 +020022202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022203fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022204{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22205echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022206if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000022207
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022208cat >>confdefs.h <<_ACEOF
22209#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022210_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000022211
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022212
22213fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022214{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22215echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022216if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218else
22219 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022220/* confdefs.h. */
22221_ACEOF
22222cat confdefs.h >>conftest.$ac_ext
22223cat >>conftest.$ac_ext <<_ACEOF
22224/* end confdefs.h. */
22225#include <sys/types.h>
22226#ifdef HAVE_SYS_SOCKET_H
22227# include <sys/socket.h>
22228#endif
22229#ifdef HAVE_SYS_UN_H
22230# include <sys/un.h>
22231#endif
22232
22233int
22234main ()
22235{
22236static struct sockaddr ac_aggr;
22237if (ac_aggr.sa_len)
22238return 0;
22239 ;
22240 return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022244if { (ac_try="$ac_compile"
22245case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248esac
22249eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022251 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022252 grep -v '^ *+' conftest.er1 >conftest.err
22253 rm -f conftest.er1
22254 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022257 { 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;;
22261esac
22262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022264 ac_status=$?
22265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22266 (exit $ac_status); }; } &&
22267 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022268 { (case "(($ac_try" in
22269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22270 *) ac_try_echo=$ac_try;;
22271esac
22272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22273 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022274 ac_status=$?
22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276 (exit $ac_status); }; }; then
22277 ac_cv_member_struct_sockaddr_sa_len=yes
22278else
22279 echo "$as_me: failed program was:" >&5
22280sed 's/^/| /' conftest.$ac_ext >&5
22281
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022282 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022283/* confdefs.h. */
22284_ACEOF
22285cat confdefs.h >>conftest.$ac_ext
22286cat >>conftest.$ac_ext <<_ACEOF
22287/* end confdefs.h. */
22288#include <sys/types.h>
22289#ifdef HAVE_SYS_SOCKET_H
22290# include <sys/socket.h>
22291#endif
22292#ifdef HAVE_SYS_UN_H
22293# include <sys/un.h>
22294#endif
22295
22296int
22297main ()
22298{
22299static struct sockaddr ac_aggr;
22300if (sizeof ac_aggr.sa_len)
22301return 0;
22302 ;
22303 return 0;
22304}
22305_ACEOF
22306rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022307if { (ac_try="$ac_compile"
22308case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22311esac
22312eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022314 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022315 grep -v '^ *+' conftest.er1 >conftest.err
22316 rm -f conftest.er1
22317 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22321 { (case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22324esac
22325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022327 ac_status=$?
22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329 (exit $ac_status); }; } &&
22330 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022331 { (case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22334esac
22335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022337 ac_status=$?
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ac_cv_member_struct_sockaddr_sa_len=yes
22341else
22342 echo "$as_me: failed program was:" >&5
22343sed 's/^/| /' conftest.$ac_ext >&5
22344
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022345 ac_cv_member_struct_sockaddr_sa_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022346fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022347
Jeremy White0ebeb532006-06-20 13:18:41 +020022348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022349fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022350
Jeremy White0ebeb532006-06-20 13:18:41 +020022351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022352fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022353{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22354echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022355if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22356
22357cat >>confdefs.h <<_ACEOF
22358#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22359_ACEOF
22360
22361
22362fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022363{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22364echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022365if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367else
22368 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022369/* confdefs.h. */
22370_ACEOF
22371cat confdefs.h >>conftest.$ac_ext
22372cat >>conftest.$ac_ext <<_ACEOF
22373/* end confdefs.h. */
22374#include <sys/types.h>
22375#ifdef HAVE_SYS_SOCKET_H
22376# include <sys/socket.h>
22377#endif
22378#ifdef HAVE_SYS_UN_H
22379# include <sys/un.h>
22380#endif
22381
22382int
22383main ()
22384{
22385static struct sockaddr_un ac_aggr;
22386if (ac_aggr.sun_len)
22387return 0;
22388 ;
22389 return 0;
22390}
22391_ACEOF
22392rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022393if { (ac_try="$ac_compile"
22394case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397esac
22398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022400 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022401 grep -v '^ *+' conftest.er1 >conftest.err
22402 rm -f conftest.er1
22403 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22407 { (case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22410esac
22411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022413 ac_status=$?
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; } &&
22416 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022417 { (case "(($ac_try" in
22418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22419 *) ac_try_echo=$ac_try;;
22420esac
22421eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22422 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022423 ac_status=$?
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); }; }; then
22426 ac_cv_member_struct_sockaddr_un_sun_len=yes
22427else
22428 echo "$as_me: failed program was:" >&5
22429sed 's/^/| /' conftest.$ac_ext >&5
22430
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022431 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022432/* confdefs.h. */
22433_ACEOF
22434cat confdefs.h >>conftest.$ac_ext
22435cat >>conftest.$ac_ext <<_ACEOF
22436/* end confdefs.h. */
22437#include <sys/types.h>
22438#ifdef HAVE_SYS_SOCKET_H
22439# include <sys/socket.h>
22440#endif
22441#ifdef HAVE_SYS_UN_H
22442# include <sys/un.h>
22443#endif
22444
22445int
22446main ()
22447{
22448static struct sockaddr_un ac_aggr;
22449if (sizeof ac_aggr.sun_len)
22450return 0;
22451 ;
22452 return 0;
22453}
22454_ACEOF
22455rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022456if { (ac_try="$ac_compile"
22457case "(($ac_try" in
22458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459 *) ac_try_echo=$ac_try;;
22460esac
22461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022463 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470 { (case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22473esac
22474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; } &&
22479 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022480 { (case "(($ac_try" in
22481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482 *) ac_try_echo=$ac_try;;
22483esac
22484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022486 ac_status=$?
22487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488 (exit $ac_status); }; }; then
22489 ac_cv_member_struct_sockaddr_un_sun_len=yes
22490else
22491 echo "$as_me: failed program was:" >&5
22492sed 's/^/| /' conftest.$ac_ext >&5
22493
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022494 ac_cv_member_struct_sockaddr_un_sun_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022495fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022496
Jeremy White0ebeb532006-06-20 13:18:41 +020022497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022498fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022499
Jeremy White0ebeb532006-06-20 13:18:41 +020022500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022501fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022502{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22503echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022504if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22505
22506cat >>confdefs.h <<_ACEOF
22507#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22508_ACEOF
22509
22510
Juergen Lock2d33ab92000-02-13 16:03:29 +000022511fi
22512
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022513
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022514{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22515echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022516if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22518else
22519 cat >conftest.$ac_ext <<_ACEOF
22520/* confdefs.h. */
22521_ACEOF
22522cat confdefs.h >>conftest.$ac_ext
22523cat >>conftest.$ac_ext <<_ACEOF
22524/* end confdefs.h. */
22525#include <sys/types.h>
22526#ifdef HAVE_SCSI_SG_H
22527#include <scsi/sg.h>
22528#endif
22529
22530int
22531main ()
22532{
22533static scsireq_t ac_aggr;
22534if (ac_aggr.cmd)
22535return 0;
22536 ;
22537 return 0;
22538}
22539_ACEOF
22540rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022541if { (ac_try="$ac_compile"
22542case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22545esac
22546eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022548 ac_status=$?
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22555 { (case "(($ac_try" in
22556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22557 *) ac_try_echo=$ac_try;;
22558esac
22559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22560 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022561 ac_status=$?
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022565 { (case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22568esac
22569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022571 ac_status=$?
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); }; }; then
22574 ac_cv_member_scsireq_t_cmd=yes
22575else
22576 echo "$as_me: failed program was:" >&5
22577sed 's/^/| /' conftest.$ac_ext >&5
22578
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022579 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022580/* confdefs.h. */
22581_ACEOF
22582cat confdefs.h >>conftest.$ac_ext
22583cat >>conftest.$ac_ext <<_ACEOF
22584/* end confdefs.h. */
22585#include <sys/types.h>
22586#ifdef HAVE_SCSI_SG_H
22587#include <scsi/sg.h>
22588#endif
22589
22590int
22591main ()
22592{
22593static scsireq_t ac_aggr;
22594if (sizeof ac_aggr.cmd)
22595return 0;
22596 ;
22597 return 0;
22598}
22599_ACEOF
22600rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022601if { (ac_try="$ac_compile"
22602case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22605esac
22606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022608 ac_status=$?
22609 grep -v '^ *+' conftest.er1 >conftest.err
22610 rm -f conftest.er1
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22615 { (case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22618esac
22619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022621 ac_status=$?
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; } &&
22624 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022625 { (case "(($ac_try" in
22626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627 *) ac_try_echo=$ac_try;;
22628esac
22629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022631 ac_status=$?
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 ac_cv_member_scsireq_t_cmd=yes
22635else
22636 echo "$as_me: failed program was:" >&5
22637sed 's/^/| /' conftest.$ac_ext >&5
22638
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022639 ac_cv_member_scsireq_t_cmd=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022640fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022641
Jeremy White0ebeb532006-06-20 13:18:41 +020022642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022643fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022644
Jeremy White0ebeb532006-06-20 13:18:41 +020022645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022646fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022647{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22648echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022649if test $ac_cv_member_scsireq_t_cmd = yes; then
22650
22651cat >>confdefs.h <<_ACEOF
22652#define HAVE_SCSIREQ_T_CMD 1
22653_ACEOF
22654
22655
22656fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022657{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22658echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022659if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22660 echo $ECHO_N "(cached) $ECHO_C" >&6
22661else
22662 cat >conftest.$ac_ext <<_ACEOF
22663/* confdefs.h. */
22664_ACEOF
22665cat confdefs.h >>conftest.$ac_ext
22666cat >>conftest.$ac_ext <<_ACEOF
22667/* end confdefs.h. */
22668#include <sys/types.h>
22669#ifdef HAVE_SCSI_SG_H
22670#include <scsi/sg.h>
22671#endif
22672
22673int
22674main ()
22675{
22676static sg_io_hdr_t ac_aggr;
22677if (ac_aggr.interface_id)
22678return 0;
22679 ;
22680 return 0;
22681}
22682_ACEOF
22683rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022684if { (ac_try="$ac_compile"
22685case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688esac
22689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022691 ac_status=$?
22692 grep -v '^ *+' conftest.er1 >conftest.err
22693 rm -f conftest.er1
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22698 { (case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22701esac
22702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22703 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022704 ac_status=$?
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022708 { (case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711esac
22712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; }; then
22717 ac_cv_member_sg_io_hdr_t_interface_id=yes
22718else
22719 echo "$as_me: failed program was:" >&5
22720sed 's/^/| /' conftest.$ac_ext >&5
22721
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022722 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022723/* confdefs.h. */
22724_ACEOF
22725cat confdefs.h >>conftest.$ac_ext
22726cat >>conftest.$ac_ext <<_ACEOF
22727/* end confdefs.h. */
22728#include <sys/types.h>
22729#ifdef HAVE_SCSI_SG_H
22730#include <scsi/sg.h>
22731#endif
22732
22733int
22734main ()
22735{
22736static sg_io_hdr_t ac_aggr;
22737if (sizeof ac_aggr.interface_id)
22738return 0;
22739 ;
22740 return 0;
22741}
22742_ACEOF
22743rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022744if { (ac_try="$ac_compile"
22745case "(($ac_try" in
22746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22747 *) ac_try_echo=$ac_try;;
22748esac
22749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22750 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022751 ac_status=$?
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
22755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22758 { (case "(($ac_try" in
22759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22761esac
22762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22763 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022764 ac_status=$?
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); }; } &&
22767 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022768 { (case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22771esac
22772eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022774 ac_status=$?
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_member_sg_io_hdr_t_interface_id=yes
22778else
22779 echo "$as_me: failed program was:" >&5
22780sed 's/^/| /' conftest.$ac_ext >&5
22781
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022782 ac_cv_member_sg_io_hdr_t_interface_id=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022783fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022784
Jeremy White0ebeb532006-06-20 13:18:41 +020022785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022786fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022787
Jeremy White0ebeb532006-06-20 13:18:41 +020022788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022789fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022790{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22791echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022792if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22793
22794cat >>confdefs.h <<_ACEOF
22795#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22796_ACEOF
22797
22798
22799fi
22800
22801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022802{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22803echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022804if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22806else
22807 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022808/* confdefs.h. */
22809_ACEOF
22810cat confdefs.h >>conftest.$ac_ext
22811cat >>conftest.$ac_ext <<_ACEOF
22812/* end confdefs.h. */
22813#include <signal.h>
22814
22815int
22816main ()
22817{
22818static siginfo_t ac_aggr;
22819if (ac_aggr.si_fd)
22820return 0;
22821 ;
22822 return 0;
22823}
22824_ACEOF
22825rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022826if { (ac_try="$ac_compile"
22827case "(($ac_try" in
22828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829 *) ac_try_echo=$ac_try;;
22830esac
22831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022833 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22843esac
22844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022846 ac_status=$?
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); }; } &&
22849 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022850 { (case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853esac
22854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
22859 ac_cv_member_siginfo_t_si_fd=yes
22860else
22861 echo "$as_me: failed program was:" >&5
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022864 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022865/* confdefs.h. */
22866_ACEOF
22867cat confdefs.h >>conftest.$ac_ext
22868cat >>conftest.$ac_ext <<_ACEOF
22869/* end confdefs.h. */
22870#include <signal.h>
22871
22872int
22873main ()
22874{
22875static siginfo_t ac_aggr;
22876if (sizeof ac_aggr.si_fd)
22877return 0;
22878 ;
22879 return 0;
22880}
22881_ACEOF
22882rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022883if { (ac_try="$ac_compile"
22884case "(($ac_try" in
22885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886 *) ac_try_echo=$ac_try;;
22887esac
22888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022890 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022891 grep -v '^ *+' conftest.er1 >conftest.err
22892 rm -f conftest.er1
22893 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22897 { (case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22900esac
22901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022903 ac_status=$?
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); }; } &&
22906 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022907 { (case "(($ac_try" in
22908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22909 *) ac_try_echo=$ac_try;;
22910esac
22911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22912 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; }; then
22916 ac_cv_member_siginfo_t_si_fd=yes
22917else
22918 echo "$as_me: failed program was:" >&5
22919sed 's/^/| /' conftest.$ac_ext >&5
22920
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022921 ac_cv_member_siginfo_t_si_fd=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022922fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022923
Jeremy White0ebeb532006-06-20 13:18:41 +020022924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022925fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022926
Jeremy White0ebeb532006-06-20 13:18:41 +020022927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022928fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022929{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22930echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022931if test $ac_cv_member_siginfo_t_si_fd = yes; then
22932
22933cat >>confdefs.h <<_ACEOF
22934#define HAVE_SIGINFO_T_SI_FD 1
22935_ACEOF
22936
22937
22938fi
22939
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022941{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22942echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022943if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
22945else
22946 cat >conftest.$ac_ext <<_ACEOF
22947/* confdefs.h. */
22948_ACEOF
22949cat confdefs.h >>conftest.$ac_ext
22950cat >>conftest.$ac_ext <<_ACEOF
22951/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022952#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022953#ifdef HAVE_SYS_MTIO_H
22954#include <sys/mtio.h>
22955#endif
22956
22957int
22958main ()
22959{
22960static struct mtget ac_aggr;
22961if (ac_aggr.mt_blksiz)
22962return 0;
22963 ;
22964 return 0;
22965}
22966_ACEOF
22967rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022968if { (ac_try="$ac_compile"
22969case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22972esac
22973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22974 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022975 ac_status=$?
22976 grep -v '^ *+' conftest.er1 >conftest.err
22977 rm -f conftest.er1
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22982 { (case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22985esac
22986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022988 ac_status=$?
22989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990 (exit $ac_status); }; } &&
22991 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022992 { (case "(($ac_try" in
22993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994 *) ac_try_echo=$ac_try;;
22995esac
22996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_cv_member_struct_mtget_mt_blksiz=yes
23002else
23003 echo "$as_me: failed program was:" >&5
23004sed 's/^/| /' conftest.$ac_ext >&5
23005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023006 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023007/* confdefs.h. */
23008_ACEOF
23009cat confdefs.h >>conftest.$ac_ext
23010cat >>conftest.$ac_ext <<_ACEOF
23011/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023012#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023013#ifdef HAVE_SYS_MTIO_H
23014#include <sys/mtio.h>
23015#endif
23016
23017int
23018main ()
23019{
23020static struct mtget ac_aggr;
23021if (sizeof ac_aggr.mt_blksiz)
23022return 0;
23023 ;
23024 return 0;
23025}
23026_ACEOF
23027rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023028if { (ac_try="$ac_compile"
23029case "(($ac_try" in
23030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23031 *) ac_try_echo=$ac_try;;
23032esac
23033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23034 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023035 ac_status=$?
23036 grep -v '^ *+' conftest.er1 >conftest.err
23037 rm -f conftest.er1
23038 cat conftest.err >&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23042 { (case "(($ac_try" in
23043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23044 *) ac_try_echo=$ac_try;;
23045esac
23046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23047 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023048 ac_status=$?
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; } &&
23051 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023052 { (case "(($ac_try" in
23053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23054 *) ac_try_echo=$ac_try;;
23055esac
23056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23057 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023058 ac_status=$?
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_member_struct_mtget_mt_blksiz=yes
23062else
23063 echo "$as_me: failed program was:" >&5
23064sed 's/^/| /' conftest.$ac_ext >&5
23065
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023066 ac_cv_member_struct_mtget_mt_blksiz=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023067fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023068
Jeremy White0ebeb532006-06-20 13:18:41 +020023069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023070fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023071
Jeremy White0ebeb532006-06-20 13:18:41 +020023072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023073fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023074{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
23075echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023076if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
23077
23078cat >>confdefs.h <<_ACEOF
23079#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
23080_ACEOF
23081
23082
23083fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023084{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
23085echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023086if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
23087 echo $ECHO_N "(cached) $ECHO_C" >&6
23088else
23089 cat >conftest.$ac_ext <<_ACEOF
23090/* confdefs.h. */
23091_ACEOF
23092cat confdefs.h >>conftest.$ac_ext
23093cat >>conftest.$ac_ext <<_ACEOF
23094/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023095#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023096#ifdef HAVE_SYS_MTIO_H
23097#include <sys/mtio.h>
23098#endif
23099
23100int
23101main ()
23102{
23103static struct mtget ac_aggr;
23104if (ac_aggr.mt_gstat)
23105return 0;
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023111if { (ac_try="$ac_compile"
23112case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23115esac
23116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023118 ac_status=$?
23119 grep -v '^ *+' conftest.er1 >conftest.err
23120 rm -f conftest.er1
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23125 { (case "(($ac_try" in
23126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127 *) ac_try_echo=$ac_try;;
23128esac
23129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023131 ac_status=$?
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); }; } &&
23134 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023135 { (case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23138esac
23139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23140 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; }; then
23144 ac_cv_member_struct_mtget_mt_gstat=yes
23145else
23146 echo "$as_me: failed program was:" >&5
23147sed 's/^/| /' conftest.$ac_ext >&5
23148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023149 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023150/* confdefs.h. */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023155#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023156#ifdef HAVE_SYS_MTIO_H
23157#include <sys/mtio.h>
23158#endif
23159
23160int
23161main ()
23162{
23163static struct mtget ac_aggr;
23164if (sizeof ac_aggr.mt_gstat)
23165return 0;
23166 ;
23167 return 0;
23168}
23169_ACEOF
23170rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023171if { (ac_try="$ac_compile"
23172case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23175esac
23176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023178 ac_status=$?
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23185 { (case "(($ac_try" in
23186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23187 *) ac_try_echo=$ac_try;;
23188esac
23189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23190 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023195 { (case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23198esac
23199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023201 ac_status=$?
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 ac_cv_member_struct_mtget_mt_gstat=yes
23205else
23206 echo "$as_me: failed program was:" >&5
23207sed 's/^/| /' conftest.$ac_ext >&5
23208
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023209 ac_cv_member_struct_mtget_mt_gstat=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023210fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023211
Jeremy White0ebeb532006-06-20 13:18:41 +020023212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023213fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023214
Jeremy White0ebeb532006-06-20 13:18:41 +020023215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023216fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023217{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23218echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023219if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23220
23221cat >>confdefs.h <<_ACEOF
23222#define HAVE_STRUCT_MTGET_MT_GSTAT 1
23223_ACEOF
23224
23225
23226fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023227{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23228echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023229if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23230 echo $ECHO_N "(cached) $ECHO_C" >&6
23231else
23232 cat >conftest.$ac_ext <<_ACEOF
23233/* confdefs.h. */
23234_ACEOF
23235cat confdefs.h >>conftest.$ac_ext
23236cat >>conftest.$ac_ext <<_ACEOF
23237/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023238#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023239#ifdef HAVE_SYS_MTIO_H
23240#include <sys/mtio.h>
23241#endif
23242
23243int
23244main ()
23245{
23246static struct mtget ac_aggr;
23247if (ac_aggr.mt_blkno)
23248return 0;
23249 ;
23250 return 0;
23251}
23252_ACEOF
23253rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023254if { (ac_try="$ac_compile"
23255case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23258esac
23259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023261 ac_status=$?
23262 grep -v '^ *+' conftest.er1 >conftest.err
23263 rm -f conftest.er1
23264 cat conftest.err >&5
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23268 { (case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271esac
23272eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; } &&
23277 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023278 { (case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23281esac
23282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 ac_cv_member_struct_mtget_mt_blkno=yes
23288else
23289 echo "$as_me: failed program was:" >&5
23290sed 's/^/| /' conftest.$ac_ext >&5
23291
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023292 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023293/* confdefs.h. */
23294_ACEOF
23295cat confdefs.h >>conftest.$ac_ext
23296cat >>conftest.$ac_ext <<_ACEOF
23297/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023298#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023299#ifdef HAVE_SYS_MTIO_H
23300#include <sys/mtio.h>
23301#endif
23302
23303int
23304main ()
23305{
23306static struct mtget ac_aggr;
23307if (sizeof ac_aggr.mt_blkno)
23308return 0;
23309 ;
23310 return 0;
23311}
23312_ACEOF
23313rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023314if { (ac_try="$ac_compile"
23315case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23318esac
23319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23328 { (case "(($ac_try" in
23329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23330 *) ac_try_echo=$ac_try;;
23331esac
23332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23333 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023338 { (case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341esac
23342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23343 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_member_struct_mtget_mt_blkno=yes
23348else
23349 echo "$as_me: failed program was:" >&5
23350sed 's/^/| /' conftest.$ac_ext >&5
23351
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023352 ac_cv_member_struct_mtget_mt_blkno=no
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023353fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023354
Jeremy White0ebeb532006-06-20 13:18:41 +020023355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023356fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023357
Jeremy White0ebeb532006-06-20 13:18:41 +020023358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023359fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023360{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23361echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023362if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23363
23364cat >>confdefs.h <<_ACEOF
23365#define HAVE_STRUCT_MTGET_MT_BLKNO 1
23366_ACEOF
23367
23368
23369fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023370
23371
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023372{ echo "$as_me:$LINENO: checking for struct option.name" >&5
23373echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023374if test "${ac_cv_member_struct_option_name+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376else
23377 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023378/* confdefs.h. */
23379_ACEOF
23380cat confdefs.h >>conftest.$ac_ext
23381cat >>conftest.$ac_ext <<_ACEOF
23382/* end confdefs.h. */
23383#ifdef HAVE_GETOPT_H
23384#include <getopt.h>
23385#endif
23386
23387int
23388main ()
23389{
23390static struct option ac_aggr;
23391if (ac_aggr.name)
23392return 0;
23393 ;
23394 return 0;
23395}
23396_ACEOF
23397rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023398if { (ac_try="$ac_compile"
23399case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23402esac
23403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023405 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23412 { (case "(($ac_try" in
23413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414 *) ac_try_echo=$ac_try;;
23415esac
23416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023418 ac_status=$?
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023422 { (case "(($ac_try" in
23423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424 *) ac_try_echo=$ac_try;;
23425esac
23426eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; }; then
23431 ac_cv_member_struct_option_name=yes
23432else
23433 echo "$as_me: failed program was:" >&5
23434sed 's/^/| /' conftest.$ac_ext >&5
23435
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023436 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023437/* confdefs.h. */
23438_ACEOF
23439cat confdefs.h >>conftest.$ac_ext
23440cat >>conftest.$ac_ext <<_ACEOF
23441/* end confdefs.h. */
23442#ifdef HAVE_GETOPT_H
23443#include <getopt.h>
23444#endif
23445
23446int
23447main ()
23448{
23449static struct option ac_aggr;
23450if (sizeof ac_aggr.name)
23451return 0;
23452 ;
23453 return 0;
23454}
23455_ACEOF
23456rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023457if { (ac_try="$ac_compile"
23458case "(($ac_try" in
23459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23460 *) ac_try_echo=$ac_try;;
23461esac
23462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23463 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023464 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023465 grep -v '^ *+' conftest.er1 >conftest.err
23466 rm -f conftest.er1
23467 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23471 { (case "(($ac_try" in
23472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23473 *) ac_try_echo=$ac_try;;
23474esac
23475eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23476 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; } &&
23480 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023481 { (case "(($ac_try" in
23482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23483 *) ac_try_echo=$ac_try;;
23484esac
23485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23486 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023487 ac_status=$?
23488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); }; }; then
23490 ac_cv_member_struct_option_name=yes
23491else
23492 echo "$as_me: failed program was:" >&5
23493sed 's/^/| /' conftest.$ac_ext >&5
23494
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023495 ac_cv_member_struct_option_name=no
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023496fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023497
Jeremy White0ebeb532006-06-20 13:18:41 +020023498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023500
Jeremy White0ebeb532006-06-20 13:18:41 +020023501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023502fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023503{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23504echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023505if test $ac_cv_member_struct_option_name = yes; then
23506
23507cat >>confdefs.h <<_ACEOF
23508#define HAVE_STRUCT_OPTION_NAME 1
23509_ACEOF
23510
23511
23512fi
23513
23514
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023515{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23516echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023517if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519else
23520 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023521/* confdefs.h. */
23522_ACEOF
23523cat confdefs.h >>conftest.$ac_ext
23524cat >>conftest.$ac_ext <<_ACEOF
23525/* end confdefs.h. */
23526$ac_includes_default
23527int
23528main ()
23529{
23530static struct stat ac_aggr;
23531if (ac_aggr.st_blocks)
23532return 0;
23533 ;
23534 return 0;
23535}
23536_ACEOF
23537rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023538if { (ac_try="$ac_compile"
23539case "(($ac_try" in
23540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541 *) ac_try_echo=$ac_try;;
23542esac
23543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023545 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023546 grep -v '^ *+' conftest.er1 >conftest.err
23547 rm -f conftest.er1
23548 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23552 { (case "(($ac_try" in
23553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23554 *) ac_try_echo=$ac_try;;
23555esac
23556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23557 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023562 { (case "(($ac_try" in
23563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23564 *) ac_try_echo=$ac_try;;
23565esac
23566eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23567 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_member_struct_stat_st_blocks=yes
23572else
23573 echo "$as_me: failed program was:" >&5
23574sed 's/^/| /' conftest.$ac_ext >&5
23575
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023576 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023577/* confdefs.h. */
23578_ACEOF
23579cat confdefs.h >>conftest.$ac_ext
23580cat >>conftest.$ac_ext <<_ACEOF
23581/* end confdefs.h. */
23582$ac_includes_default
23583int
23584main ()
23585{
23586static struct stat ac_aggr;
23587if (sizeof ac_aggr.st_blocks)
23588return 0;
23589 ;
23590 return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023594if { (ac_try="$ac_compile"
23595case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23598esac
23599eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023601 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23608 { (case "(($ac_try" in
23609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610 *) ac_try_echo=$ac_try;;
23611esac
23612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; } &&
23617 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023618 { (case "(($ac_try" in
23619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23620 *) ac_try_echo=$ac_try;;
23621esac
23622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23623 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 ac_cv_member_struct_stat_st_blocks=yes
23628else
23629 echo "$as_me: failed program was:" >&5
23630sed 's/^/| /' conftest.$ac_ext >&5
23631
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023632 ac_cv_member_struct_stat_st_blocks=no
Pavel Roskind6507192003-10-03 03:28:40 +000023633fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023634
Jeremy White0ebeb532006-06-20 13:18:41 +020023635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023636fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023637
Jeremy White0ebeb532006-06-20 13:18:41 +020023638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023639fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023640{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23641echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023642if test $ac_cv_member_struct_stat_st_blocks = yes; then
23643
23644cat >>confdefs.h <<_ACEOF
23645#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23646_ACEOF
23647
23648
23649fi
23650
23651
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023652{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23653echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023654if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
23656else
23657 cat >conftest.$ac_ext <<_ACEOF
23658/* confdefs.h. */
23659_ACEOF
23660cat confdefs.h >>conftest.$ac_ext
23661cat >>conftest.$ac_ext <<_ACEOF
23662/* end confdefs.h. */
23663#ifdef HAVE_SYS_TYPES_H
23664#include <sys/types.h>
23665#endif
23666#ifdef HAVE_NETINET_IN_H
23667#include <netinet/in.h>
23668#endif
23669
23670int
23671main ()
23672{
23673static struct sockaddr_in6 ac_aggr;
23674if (ac_aggr.sin6_scope_id)
23675return 0;
23676 ;
23677 return 0;
23678}
23679_ACEOF
23680rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023681if { (ac_try="$ac_compile"
23682case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23685esac
23686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023688 ac_status=$?
23689 grep -v '^ *+' conftest.er1 >conftest.err
23690 rm -f conftest.er1
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23695 { (case "(($ac_try" in
23696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697 *) ac_try_echo=$ac_try;;
23698esac
23699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); }; } &&
23704 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023705 { (case "(($ac_try" in
23706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23707 *) ac_try_echo=$ac_try;;
23708esac
23709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23710 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; }; then
23714 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23715else
23716 echo "$as_me: failed program was:" >&5
23717sed 's/^/| /' conftest.$ac_ext >&5
23718
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023719 cat >conftest.$ac_ext <<_ACEOF
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023720/* confdefs.h. */
23721_ACEOF
23722cat confdefs.h >>conftest.$ac_ext
23723cat >>conftest.$ac_ext <<_ACEOF
23724/* end confdefs.h. */
23725#ifdef HAVE_SYS_TYPES_H
23726#include <sys/types.h>
23727#endif
23728#ifdef HAVE_NETINET_IN_H
23729#include <netinet/in.h>
23730#endif
23731
23732int
23733main ()
23734{
23735static struct sockaddr_in6 ac_aggr;
23736if (sizeof ac_aggr.sin6_scope_id)
23737return 0;
23738 ;
23739 return 0;
23740}
23741_ACEOF
23742rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023743if { (ac_try="$ac_compile"
23744case "(($ac_try" in
23745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746 *) ac_try_echo=$ac_try;;
23747esac
23748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23757 { (case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23760esac
23761eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; } &&
23766 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023767 { (case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23770esac
23771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023773 ac_status=$?
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); }; }; then
23776 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23777else
23778 echo "$as_me: failed program was:" >&5
23779sed 's/^/| /' conftest.$ac_ext >&5
23780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023781 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023782fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023783
Jeremy White0ebeb532006-06-20 13:18:41 +020023784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023785fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023786
Jeremy White0ebeb532006-06-20 13:18:41 +020023787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023788fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023789{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23790echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023791if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23792
23793cat >>confdefs.h <<_ACEOF
23794#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23795_ACEOF
23796
23797
23798fi
23799
23800
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023801{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23802echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23803if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23804 echo $ECHO_N "(cached) $ECHO_C" >&6
23805else
23806 cat >conftest.$ac_ext <<_ACEOF
23807/* confdefs.h. */
23808_ACEOF
23809cat confdefs.h >>conftest.$ac_ext
23810cat >>conftest.$ac_ext <<_ACEOF
23811/* end confdefs.h. */
23812#ifdef HAVE_SYS_TYPES_H
23813#include <sys/types.h>
23814#endif
23815#ifdef HAVE_NETINET_IN_H
23816# include <netinet/in.h>
23817#endif
23818#ifdef HAVE_ARPA_NAMESER_H
23819# include <arpa/nameser.h>
23820#endif
23821
23822int
23823main ()
23824{
23825static ns_msg ac_aggr;
23826if (ac_aggr._msg_ptr)
23827return 0;
23828 ;
23829 return 0;
23830}
23831_ACEOF
23832rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023833if { (ac_try="$ac_compile"
23834case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23837esac
23838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023840 ac_status=$?
23841 grep -v '^ *+' conftest.er1 >conftest.err
23842 rm -f conftest.er1
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23847 { (case "(($ac_try" in
23848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23849 *) ac_try_echo=$ac_try;;
23850esac
23851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23852 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023853 ac_status=$?
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); }; } &&
23856 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023857 { (case "(($ac_try" in
23858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23859 *) ac_try_echo=$ac_try;;
23860esac
23861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23862 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023863 ac_status=$?
23864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; }; then
23866 ac_cv_member_ns_msg__msg_ptr=yes
23867else
23868 echo "$as_me: failed program was:" >&5
23869sed 's/^/| /' conftest.$ac_ext >&5
23870
23871 cat >conftest.$ac_ext <<_ACEOF
23872/* confdefs.h. */
23873_ACEOF
23874cat confdefs.h >>conftest.$ac_ext
23875cat >>conftest.$ac_ext <<_ACEOF
23876/* end confdefs.h. */
23877#ifdef HAVE_SYS_TYPES_H
23878#include <sys/types.h>
23879#endif
23880#ifdef HAVE_NETINET_IN_H
23881# include <netinet/in.h>
23882#endif
23883#ifdef HAVE_ARPA_NAMESER_H
23884# include <arpa/nameser.h>
23885#endif
23886
23887int
23888main ()
23889{
23890static ns_msg ac_aggr;
23891if (sizeof ac_aggr._msg_ptr)
23892return 0;
23893 ;
23894 return 0;
23895}
23896_ACEOF
23897rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023898if { (ac_try="$ac_compile"
23899case "(($ac_try" in
23900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901 *) ac_try_echo=$ac_try;;
23902esac
23903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23904 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023905 ac_status=$?
23906 grep -v '^ *+' conftest.er1 >conftest.err
23907 rm -f conftest.er1
23908 cat conftest.err >&5
23909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23910 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23912 { (case "(($ac_try" in
23913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23914 *) ac_try_echo=$ac_try;;
23915esac
23916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23917 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023918 ac_status=$?
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; } &&
23921 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023922 { (case "(($ac_try" in
23923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23924 *) ac_try_echo=$ac_try;;
23925esac
23926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23927 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023928 ac_status=$?
23929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930 (exit $ac_status); }; }; then
23931 ac_cv_member_ns_msg__msg_ptr=yes
23932else
23933 echo "$as_me: failed program was:" >&5
23934sed 's/^/| /' conftest.$ac_ext >&5
23935
23936 ac_cv_member_ns_msg__msg_ptr=no
23937fi
23938
Jeremy White0ebeb532006-06-20 13:18:41 +020023939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023940fi
23941
Jeremy White0ebeb532006-06-20 13:18:41 +020023942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023943fi
23944{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23945echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23946if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23947
23948cat >>confdefs.h <<_ACEOF
23949#define HAVE_NS_MSG__MSG_PTR 1
23950_ACEOF
23951
23952
23953fi
23954
23955
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023956{ echo "$as_me:$LINENO: checking for timezone variable" >&5
23957echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023958if test "${ac_cv_have_timezone+set}" = set; then
23959 echo $ECHO_N "(cached) $ECHO_C" >&6
23960else
23961 cat >conftest.$ac_ext <<_ACEOF
23962/* confdefs.h. */
23963_ACEOF
23964cat confdefs.h >>conftest.$ac_ext
23965cat >>conftest.$ac_ext <<_ACEOF
23966/* end confdefs.h. */
23967#include <time.h>
23968int
23969main ()
23970{
23971timezone;
23972 ;
23973 return 0;
23974}
23975_ACEOF
23976rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020023977if { (ac_try="$ac_link"
23978case "(($ac_try" in
23979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980 *) ac_try_echo=$ac_try;;
23981esac
23982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000023984 ac_status=$?
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23991 { (case "(($ac_try" in
23992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993 *) ac_try_echo=$ac_try;;
23994esac
23995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023997 ac_status=$?
23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999 (exit $ac_status); }; } &&
24000 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020024001 { (case "(($ac_try" in
24002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003 *) ac_try_echo=$ac_try;;
24004esac
24005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000024007 ac_status=$?
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; }; then
24010 ac_cv_have_timezone="yes"
24011else
24012 echo "$as_me: failed program was:" >&5
24013sed 's/^/| /' conftest.$ac_ext >&5
24014
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024015 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000024016fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024017
Jeremy White0ebeb532006-06-20 13:18:41 +020024018rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000024019 conftest$ac_exeext conftest.$ac_ext
24020fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024021{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
24022echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000024023if test "$ac_cv_have_timezone" = "yes"
24024then
24025
24026cat >>confdefs.h <<\_ACEOF
24027#define HAVE_TIMEZONE 1
24028_ACEOF
24029
24030fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024031{ echo "$as_me:$LINENO: checking for daylight variable" >&5
24032echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000024033if test "${ac_cv_have_daylight+set}" = set; then
24034 echo $ECHO_N "(cached) $ECHO_C" >&6
24035else
24036 cat >conftest.$ac_ext <<_ACEOF
24037/* confdefs.h. */
24038_ACEOF
24039cat confdefs.h >>conftest.$ac_ext
24040cat >>conftest.$ac_ext <<_ACEOF
24041/* end confdefs.h. */
24042#include <time.h>
24043int
24044main ()
24045{
24046daylight;
24047 ;
24048 return 0;
24049}
24050_ACEOF
24051rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020024052if { (ac_try="$ac_link"
24053case "(($ac_try" in
24054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055 *) ac_try_echo=$ac_try;;
24056esac
24057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000024059 ac_status=$?
24060 grep -v '^ *+' conftest.er1 >conftest.err
24061 rm -f conftest.er1
24062 cat conftest.err >&5
24063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020024065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24066 { (case "(($ac_try" in
24067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24068 *) ac_try_echo=$ac_try;;
24069esac
24070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24071 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000024072 ac_status=$?
24073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074 (exit $ac_status); }; } &&
24075 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020024076 { (case "(($ac_try" in
24077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078 *) ac_try_echo=$ac_try;;
24079esac
24080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24081 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000024082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; }; then
24085 ac_cv_have_daylight="yes"
24086else
24087 echo "$as_me: failed program was:" >&5
24088sed 's/^/| /' conftest.$ac_ext >&5
24089
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024090 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000024091fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024092
Jeremy White0ebeb532006-06-20 13:18:41 +020024093rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000024094 conftest$ac_exeext conftest.$ac_ext
24095fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024096{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
24097echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000024098if test "$ac_cv_have_daylight" = "yes"
24099then
24100
24101cat >>confdefs.h <<\_ACEOF
24102#define HAVE_DAYLIGHT 1
24103_ACEOF
24104
24105fi
24106
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024107
Alexandre Julliardfc01b722002-05-12 03:16:39 +000024108case $host_cpu in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024109 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
24110echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024111if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024112 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000024113else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024114 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024115/* confdefs.h. */
24116_ACEOF
24117cat confdefs.h >>conftest.$ac_ext
24118cat >>conftest.$ac_ext <<_ACEOF
24119/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024120#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024121yes
24122#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024123_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024125 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024126 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024127else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024128 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024129fi
24130rm -f conftest*
24131
24132fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024133{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24134echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024135if test $ac_cv_cpp_def___i386__ = yes; then
24136 CFLAGS="$CFLAGS -D__i386__"
24137 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024138fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024139 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024140 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24141echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024142if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24143 echo $ECHO_N "(cached) $ECHO_C" >&6
24144else
24145 cat >conftest.$ac_ext <<_ACEOF
24146/* confdefs.h. */
24147_ACEOF
24148cat confdefs.h >>conftest.$ac_ext
24149cat >>conftest.$ac_ext <<_ACEOF
24150/* end confdefs.h. */
24151#ifndef __x86_64__
24152yes
24153#endif
24154_ACEOF
24155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24156 $EGREP "yes" >/dev/null 2>&1; then
24157 ac_cv_cpp_def___x86_64__=yes
24158else
24159 ac_cv_cpp_def___x86_64__=no
24160fi
24161rm -f conftest*
24162
24163fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024164{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24165echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024166if test $ac_cv_cpp_def___x86_64__ = yes; then
24167 CFLAGS="$CFLAGS -D__x86_64__"
24168 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24169fi
Alexandre Julliard58c64192006-07-10 13:05:20 +020024170
24171 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24172echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24173if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24174 echo $ECHO_N "(cached) $ECHO_C" >&6
24175else
24176 cat >conftest.$ac_ext <<_ACEOF
24177/* confdefs.h. */
24178_ACEOF
24179cat confdefs.h >>conftest.$ac_ext
24180cat >>conftest.$ac_ext <<_ACEOF
24181/* end confdefs.h. */
24182#ifndef _WIN64
24183yes
24184#endif
24185_ACEOF
24186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24187 $EGREP "yes" >/dev/null 2>&1; then
24188 ac_cv_cpp_def__WIN64=yes
24189else
24190 ac_cv_cpp_def__WIN64=no
24191fi
24192rm -f conftest*
24193
24194fi
24195{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24196echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24197if test $ac_cv_cpp_def__WIN64 = yes; then
24198 CFLAGS="$CFLAGS -D_WIN64"
24199 LINTFLAGS="$LINTFLAGS -D_WIN64"
24200fi
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024201 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024202 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24203echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024204if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000024205 echo $ECHO_N "(cached) $ECHO_C" >&6
24206else
24207 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024208/* confdefs.h. */
24209_ACEOF
24210cat confdefs.h >>conftest.$ac_ext
24211cat >>conftest.$ac_ext <<_ACEOF
24212/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000024213#ifndef __ALPHA__
24214yes
24215#endif
24216_ACEOF
24217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24218 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024219 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000024220else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024221 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000024222fi
24223rm -f conftest*
24224
24225fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024226{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24227echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024228if test $ac_cv_cpp_def___ALPHA__ = yes; then
24229 CFLAGS="$CFLAGS -D__ALPHA__"
24230 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000024231fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024232 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024233 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24234echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024235if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024236 echo $ECHO_N "(cached) $ECHO_C" >&6
24237else
24238 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024239/* confdefs.h. */
24240_ACEOF
24241cat confdefs.h >>conftest.$ac_ext
24242cat >>conftest.$ac_ext <<_ACEOF
24243/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024244#ifndef __sparc__
24245yes
24246#endif
24247_ACEOF
24248if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024249 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024250 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024251else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024252 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024253fi
24254rm -f conftest*
24255
24256fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024257{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24258echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024259if test $ac_cv_cpp_def___sparc__ = yes; then
24260 CFLAGS="$CFLAGS -D__sparc__"
24261 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024262fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024263 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024264 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24265echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024266if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268else
24269 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024270/* confdefs.h. */
24271_ACEOF
24272cat confdefs.h >>conftest.$ac_ext
24273cat >>conftest.$ac_ext <<_ACEOF
24274/* end confdefs.h. */
24275#ifndef __powerpc__
24276yes
24277#endif
24278_ACEOF
24279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24280 $EGREP "yes" >/dev/null 2>&1; then
24281 ac_cv_cpp_def___powerpc__=yes
24282else
24283 ac_cv_cpp_def___powerpc__=no
24284fi
24285rm -f conftest*
24286
24287fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024288{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24289echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024290if test $ac_cv_cpp_def___powerpc__ = yes; then
24291 CFLAGS="$CFLAGS -D__powerpc__"
24292 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24293fi
24294 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000024295esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024296
24297case $host_vendor in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024298 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24299echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024300if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024301 echo $ECHO_N "(cached) $ECHO_C" >&6
24302else
24303 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024304/* confdefs.h. */
24305_ACEOF
24306cat confdefs.h >>conftest.$ac_ext
24307cat >>conftest.$ac_ext <<_ACEOF
24308/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024309#ifndef __sun__
24310yes
24311#endif
24312_ACEOF
24313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024314 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024315 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024316else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024317 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024318fi
24319rm -f conftest*
24320
24321fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024322{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24323echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024324if test $ac_cv_cpp_def___sun__ = yes; then
24325 CFLAGS="$CFLAGS -D__sun__"
24326 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024327fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024328 ;;
24329esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024330
24331
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024332
24333
24334
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024335ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024336
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024337ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024338
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024339ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024340
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024341ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024342
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024343ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024344
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024345ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024346
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000024347
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000024348MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024349
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024350
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000024351MAKE_DLL_RULES=dlls/Makedll.rules
24352
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024353
Alexandre Julliard633b12d2005-08-25 12:14:13 +000024354MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24355
24356
Alexandre Julliardedeee892002-08-09 01:22:40 +000024357MAKE_TEST_RULES=dlls/Maketest.rules
24358
24359
Alexandre Julliard117436e2003-05-01 00:39:29 +000024360MAKE_LIB_RULES=libs/Makelib.rules
24361
24362
Alexandre Julliard626f4252000-11-10 23:35:20 +000024363MAKE_PROG_RULES=programs/Makeprog.rules
24364
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024365
Aric Stewart9c3b12b2006-07-13 14:16:59 -050024366ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules libs/Makelib.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/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/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/gphoto2.ds/Makefile dlls/hhctrl.ocx/Makefile dlls/hlink/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/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/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/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/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/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/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/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/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/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/wcmd/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/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024367
Alexandre Julliard626f4252000-11-10 23:35:20 +000024368
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024369cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024370# This file is a shell script that caches the results of configure
24371# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024372# scripts and configure runs, see configure's option --config-cache.
24373# It is not useful on other systems. If it contains results you don't
24374# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024375#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024376# config.status only pays attention to the cache file if you give it
24377# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024378#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024379# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024380# loading this file, other *unset* `ac_cv_foo' will be assigned the
24381# following values.
24382
24383_ACEOF
24384
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000024385# The following way of writing the cache mishandles newlines in values,
24386# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024387# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024388# Ultrix sh set writes to stderr and can't be redirected directly,
24389# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024390(
24391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24392 eval ac_val=\$$ac_var
24393 case $ac_val in #(
24394 *${as_nl}*)
24395 case $ac_var in #(
24396 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24397echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24398 esac
24399 case $ac_var in #(
24400 _ | IFS | as_nl) ;; #(
24401 *) $as_unset $ac_var ;;
24402 esac ;;
24403 esac
24404 done
24405
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024406 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24408 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024409 # `set' does not quote correctly, so add quotes (double-quote
24410 # substitution turns \\\\ into \\, and sed turns \\ into \).
24411 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000024412 "s/'/'\\\\''/g;
24413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024414 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024415 *)
24416 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024417 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024418 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024419 esac |
24420 sort
24421) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024422 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024423 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024424 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024425 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24427 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24429 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020024430if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24431 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024432 test "x$cache_file" != "x/dev/null" &&
24433 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24434echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024435 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024436 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024437 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24438echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024439 fi
24440fi
24441rm -f confcache
24442
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024443test "x$prefix" = xNONE && prefix=$ac_default_prefix
24444# Let make expand exec_prefix.
24445test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24446
Alexandre Julliard18f92e71996-07-17 20:02:21 +000024447DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024448
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024449ac_libobjs=
24450ac_ltlibobjs=
24451for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24452 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24454 ac_i=`echo "$ac_i" | sed "$ac_script"`
24455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24456 # will be set to the directory where LIBOBJS objects are built.
24457 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24458 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024459done
24460LIBOBJS=$ac_libobjs
24461
24462LTLIBOBJS=$ac_ltlibobjs
24463
24464
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024465
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024466: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024467ac_clean_files_save=$ac_clean_files
24468ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024469{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024470echo "$as_me: creating $CONFIG_STATUS" >&6;}
24471cat >$CONFIG_STATUS <<_ACEOF
24472#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024473# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024474# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024475# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024476# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024477
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024478debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024479ac_cs_recheck=false
24480ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024481SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024482_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024483
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024484cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024485## --------------------- ##
24486## M4sh Initialization. ##
24487## --------------------- ##
24488
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024489# Be Bourne compatible
24490if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24491 emulate sh
24492 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024493 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24494 # is contrary to our usage. Disable this feature.
24495 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024496 setopt NO_GLOB_SUBST
24497else
24498 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024500BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000024501DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024502
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024503
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024504# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024505# Avoid depending upon Character Ranges.
24506as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24507as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24508as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24509as_cr_digits='0123456789'
24510as_cr_alnum=$as_cr_Letters$as_cr_digits
24511
24512# The user is always right.
24513if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024514 echo "#! /bin/sh" >conf$$.sh
24515 echo "exit 0" >>conf$$.sh
24516 chmod +x conf$$.sh
24517 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024518 PATH_SEPARATOR=';'
24519 else
24520 PATH_SEPARATOR=:
24521 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024522 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024523fi
24524
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024525# Support unset when possible.
24526if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24527 as_unset=unset
24528else
24529 as_unset=false
24530fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024531
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024532
24533# IFS
24534# We need space, tab and new line, in precisely that order. Quoting is
24535# there to prevent editors from complaining about space-tab.
24536# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24537# splitting by setting IFS to empty value.)
24538as_nl='
24539'
24540IFS=" "" $as_nl"
24541
24542# Find who we are. Look in the path if we contain no directory separator.
24543case $0 in
24544 *[\\/]* ) as_myself=$0 ;;
24545 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024546for as_dir in $PATH
24547do
24548 IFS=$as_save_IFS
24549 test -z "$as_dir" && as_dir=.
24550 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24551done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024552IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024553
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024554 ;;
24555esac
24556# We did not find ourselves, most probably we were run as `sh COMMAND'
24557# in which case we are not to be found in the path.
24558if test "x$as_myself" = x; then
24559 as_myself=$0
24560fi
24561if test ! -f "$as_myself"; then
24562 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24563 { (exit 1); exit 1; }
24564fi
24565
24566# Work around bugs in pre-3.0 UWIN ksh.
24567for as_var in ENV MAIL MAILPATH
24568do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24569done
24570PS1='$ '
24571PS2='> '
24572PS4='+ '
24573
24574# NLS nuisances.
24575for as_var in \
24576 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24577 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24578 LC_TELEPHONE LC_TIME
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024579do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024580 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24581 eval $as_var=C; export $as_var
24582 else
24583 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24584 fi
24585done
24586
24587# Required to use basename.
24588if expr a : '\(a\)' >/dev/null 2>&1 &&
24589 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24590 as_expr=expr
24591else
24592 as_expr=false
24593fi
24594
24595if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24596 as_basename=basename
24597else
24598 as_basename=false
24599fi
24600
24601
24602# Name of the executable.
24603as_me=`$as_basename -- "$0" ||
24604$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24605 X"$0" : 'X\(//\)$' \| \
24606 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24607echo X/"$0" |
24608 sed '/^.*\/\([^/][^/]*\)\/*$/{
24609 s//\1/
24610 q
24611 }
24612 /^X\/\(\/\/\)$/{
24613 s//\1/
24614 q
24615 }
24616 /^X\/\(\/\).*/{
24617 s//\1/
24618 q
24619 }
24620 s/.*/./; q'`
24621
24622# CDPATH.
24623$as_unset CDPATH
24624
24625
24626
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024627 as_lineno_1=$LINENO
24628 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024629 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024630 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024631
24632 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24633 # uniformly replaced by the line number. The first 'sed' inserts a
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024634 # line-number line after each line using $LINENO; the second 'sed'
24635 # does the real work. The second script uses 'N' to pair each
24636 # line-number line with the line containing $LINENO, and appends
24637 # trailing '-' during substitution so that $LINENO is not a special
24638 # case at line end.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024639 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024640 # scripts with optimization help from Paolo Bonzini. Blame Lee
24641 # E. McMahon (1931-1989) for sed's syntax. :-)
24642 sed -n '
24643 p
24644 /[$]LINENO/=
24645 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024646 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024647 s/[$]LINENO.*/&-/
24648 t lineno
24649 b
24650 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024651 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024652 :loop
24653 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024654 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024655 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024656 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024657 chmod +x "$as_me.lineno" ||
24658 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024659 { (exit 1); exit 1; }; }
24660
24661 # Don't try to exec as it changes $[0], causing all sort of problems
24662 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024663 # original and so on. Autoconf is especially sensitive to this).
24664 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024665 # Exit status is that of the last command.
24666 exit
24667}
24668
24669
Jeremy White0ebeb532006-06-20 13:18:41 +020024670if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024671 as_dirname=dirname
24672else
24673 as_dirname=false
24674fi
24675
24676ECHO_C= ECHO_N= ECHO_T=
24677case `echo -n x` in
24678-n*)
24679 case `echo 'x\c'` in
24680 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24681 *) ECHO_C='\c';;
24682 esac;;
24683*)
24684 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024685esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024686
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024687if expr a : '\(a\)' >/dev/null 2>&1 &&
24688 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024689 as_expr=expr
24690else
24691 as_expr=false
24692fi
24693
24694rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024695if test -d conf$$.dir; then
24696 rm -f conf$$.dir/conf$$.file
24697else
24698 rm -f conf$$.dir
24699 mkdir conf$$.dir
24700fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024701echo >conf$$.file
24702if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024703 as_ln_s='ln -s'
24704 # ... but there are two gotchas:
24705 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24706 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24707 # In both cases, we have to default to `cp -p'.
24708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024709 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024710elif ln conf$$.file conf$$ 2>/dev/null; then
24711 as_ln_s=ln
24712else
24713 as_ln_s='cp -p'
24714fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024715rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24716rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024717
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024718if mkdir -p . 2>/dev/null; then
24719 as_mkdir_p=:
24720else
Alexandre Julliard875927f2004-01-02 01:55:29 +000024721 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024722 as_mkdir_p=false
24723fi
24724
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024725# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24726# systems may use methods other than mode bits to determine executability.
24727cat >conf$$.file <<_ASEOF
24728#! /bin/sh
24729exit 0
24730_ASEOF
24731chmod +x conf$$.file
24732if test -x conf$$.file >/dev/null 2>&1; then
24733 as_executable_p="test -x"
24734else
24735 as_executable_p=:
24736fi
24737rm -f conf$$.file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024738
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024739# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024740as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024741
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024742# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024743as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024744
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024745
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024746exec 6>&1
24747
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024748# Save the log message, to keep $[0] and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024749# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024750# values after options handling.
24751ac_log="
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +020024752This file was extended by Wine $as_me 0.9.17, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024753generated by GNU Autoconf 2.60a. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024754
24755 CONFIG_FILES = $CONFIG_FILES
24756 CONFIG_HEADERS = $CONFIG_HEADERS
24757 CONFIG_LINKS = $CONFIG_LINKS
24758 CONFIG_COMMANDS = $CONFIG_COMMANDS
24759 $ $0 $@
24760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024761on `(hostname || uname -n) 2>/dev/null | sed 1q`
24762"
24763
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024764_ACEOF
24765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024766cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024767# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024768config_files="$ac_config_files"
24769config_headers="$ac_config_headers"
24770config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024771
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024772_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024773
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024774cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024775ac_cs_usage="\
24776\`$as_me' instantiates files from templates according to the
24777current configuration.
24778
24779Usage: $0 [OPTIONS] [FILE]...
24780
24781 -h, --help print this help, then exit
24782 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024783 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024784 -d, --debug don't remove temporary files
24785 --recheck update $as_me by reconfiguring in the same conditions
24786 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024787 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024788 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024789 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024790
24791Configuration files:
24792$config_files
24793
24794Configuration headers:
24795$config_headers
24796
24797Configuration commands:
24798$config_commands
24799
24800Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024802_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024803cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024804ac_cs_version="\\
Alexandre Julliarddb5e98b2006-07-10 17:46:42 +020024805Wine config.status 0.9.17
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024806configured by $0, generated by GNU Autoconf 2.60a,
Jeremy White0ebeb532006-06-20 13:18:41 +020024807 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024808
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024809Copyright (C) 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024810This config.status script is free software; the Free Software Foundation
24811gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024812
24813ac_pwd='$ac_pwd'
24814srcdir='$srcdir'
24815INSTALL='$INSTALL'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024816_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024817
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024818cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024819# If no file are specified by the user, then we need to provide default
24820# value. By we need to know if files were specified by the user.
24821ac_need_defaults=:
24822while test $# != 0
24823do
24824 case $1 in
24825 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24827 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024828 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024829 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024830 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024831 ac_option=$1
24832 ac_optarg=$2
24833 ac_shift=shift
24834 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024835 esac
24836
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024837 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024838 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24840 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24842 echo "$ac_cs_version"; exit ;;
24843 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024844 debug=: ;;
24845 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024846 $ac_shift
24847 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024848 ac_need_defaults=false;;
24849 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024850 $ac_shift
24851 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024852 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024853 --he | --h)
24854 # Conflict between --help and --header
24855 { echo "$as_me: error: ambiguous option: $1
24856Try \`$0 --help' for more information." >&2
24857 { (exit 1); exit 1; }; };;
24858 --help | --hel | -h )
24859 echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24861 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24862 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024863
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024864 # This is an error.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024865 -*) { echo "$as_me: error: unrecognized option: $1
24866Try \`$0 --help' for more information." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024867 { (exit 1); exit 1; }; } ;;
24868
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024869 *) ac_config_targets="$ac_config_targets $1"
24870 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024871
24872 esac
24873 shift
24874done
24875
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024876ac_configure_extra_args=
24877
24878if $ac_cs_silent; then
24879 exec 6>/dev/null
24880 ac_configure_extra_args="$ac_configure_extra_args --silent"
24881fi
24882
24883_ACEOF
24884cat >>$CONFIG_STATUS <<_ACEOF
24885if \$ac_cs_recheck; then
Jeremy White0ebeb532006-06-20 13:18:41 +020024886 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024887 CONFIG_SHELL=$SHELL
24888 export CONFIG_SHELL
Jeremy White0ebeb532006-06-20 13:18:41 +020024889 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024890fi
24891
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024892_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024893cat >>$CONFIG_STATUS <<\_ACEOF
24894exec 5>>config.log
24895{
24896 echo
24897 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24898## Running $as_me. ##
24899_ASBOX
24900 echo "$ac_log"
24901} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024902
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024903_ACEOF
24904cat >>$CONFIG_STATUS <<_ACEOF
24905_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024906
24907cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024908
24909# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024910for ac_config_target in $ac_config_targets
24911do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024912 case $ac_config_target in
24913 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24914 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24915 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24916 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24917 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24918 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24919 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24920 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24921 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24922 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24923 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
24924 "libs/Makelib.rules") CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
24925 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24927 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24928 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24929 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24930 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24931 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24932 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24933 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24934 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24935 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24936 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24937 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24938 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24939 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24940 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24941 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24942 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Aric Stewart9c3b12b2006-07-13 14:16:59 -050024943 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024944 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24945 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24946 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
Detlef Riekenberg955fe0d2006-07-03 22:55:53 +020024947 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
Detlef Riekenberg5640b562006-06-20 06:12:36 +020024948 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024949 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24950 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24951 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24952 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Maarten Lankhorstd2ee3872006-06-28 16:51:41 +020024953 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024954 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24955 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24956 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24957 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24958 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24959 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24960 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24961 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24962 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24963 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24964 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24965 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24966 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24967 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24968 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24969 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24970 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24971 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24972 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24973 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24974 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24975 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24976 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24977 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24978 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24979 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24980 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24981 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24982 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24983 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24984 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24985 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24986 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24987 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24988 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24989 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24990 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24991 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24992 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24993 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24994 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24995 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24996 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24997 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24998 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Mike McCormackb732e9b2006-06-06 19:26:24 +090024999 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025000 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
25001 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
25002 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
25003 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
25004 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
25005 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Mike McCormack4d3877b2006-07-11 11:13:18 +090025006 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
25007 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025008 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
25009 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
25010 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
25011 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
25012 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
25013 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
25014 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
25015 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
25016 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
25017 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
25018 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
25019 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
25020 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
25021 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
25022 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
25023 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
25024 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
25025 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
25026 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
25027 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
25028 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
25029 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
25030 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
25031 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
25032 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
25033 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
25034 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
25035 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
25036 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
25037 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
25038 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
25039 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
25040 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
25041 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
25042 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
25043 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
25044 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
25045 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
25046 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
25047 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
25048 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
25049 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
25050 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
25051 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
25052 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
25053 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
25054 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
25055 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
25056 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
25057 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
25058 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
25059 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
25060 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
25061 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
25062 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
25063 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
25064 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
25065 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
25066 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
25067 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
25068 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
25069 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
25070 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
25071 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
25072 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
25073 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
25074 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
25075 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
25076 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
25077 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
25078 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
25079 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
25080 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Mike McCormackdefbc492006-07-07 18:21:36 +090025081 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025082 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
25083 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
25084 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
25085 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
25086 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
25087 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
25088 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
25089 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
25090 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
25091 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
25092 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
25093 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
25094 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
25095 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
25096 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
25097 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
25098 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
25099 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
25100 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
25101 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
25102 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
25103 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
25104 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
25105 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
25106 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
25107 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
25108 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
25109 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
25110 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
25111 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
25112 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
25113 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
25114 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
25115 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
25116 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
25117 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
25118 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
25119 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
25120 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
25121 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Mike McCormacka6ea0f62006-06-05 14:01:10 +090025122 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025123 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25124 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25125 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25126 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Paul Vriens569a4522006-06-13 14:16:58 +020025127 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025128 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25129 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25130 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25131 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25132 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25133 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25134 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25135 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25136 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25137 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25138 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25139 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25140 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25141 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25142 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
Alexandre Julliardbdb4fab2006-06-16 09:57:50 +020025143 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025144 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25145 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25146 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25147 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25148 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25149 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25150 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25151 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025152 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025153 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25154 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25155 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25156 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25157 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25158 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25159 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25160 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25161 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25162 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25163 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25164 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25165 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25166 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25167 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25168 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025169 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25170 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25171 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25172 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25173 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025174 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25175 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25176 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25177 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25178 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25179 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25180 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25181 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25182 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25183 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25184 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25185 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25186 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25187 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25188 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Piotr Caban68f590c2006-06-14 19:50:28 +020025189 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025190 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25191 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25192 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25193 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25194 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25195 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25196 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25197 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25198 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25199 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25200 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25201 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25202 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25203 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25204 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25205 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25206 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25207 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25208 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25209 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25210 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25211 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25212 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25213 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25214 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25215 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25216 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25217 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25218 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25219 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25220 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25221 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25222 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25223
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025224 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025225echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25226 { (exit 1); exit 1; }; };;
25227 esac
25228done
25229
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025230
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025231# If the user did not use the arguments to specify the items to instantiate,
25232# then the envvar interface is used. Set only those that are not.
25233# We use the long form for the default assignment because of an extremely
25234# bizarre bug on SunOS 4.1.3.
25235if $ac_need_defaults; then
25236 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25237 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25238 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25239fi
25240
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025241# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025242# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025243# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025244# Hook for its removal unless debugging.
25245# Note that there is a small window in which the directory will not be cleaned:
25246# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025247$debug ||
25248{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025249 tmp=
25250 trap 'exit_status=$?
25251 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25252' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025253 trap '{ (exit 1); exit 1; }' 1 2 13 15
25254}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025255# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025256
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025257{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025258 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025259 test -n "$tmp" && test -d "$tmp"
25260} ||
25261{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025262 tmp=./conf$$-$RANDOM
25263 (umask 077 && mkdir "$tmp")
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025264} ||
25265{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025266 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025267 { (exit 1); exit 1; }
25268}
25269
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025270#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025271# Set up the sed scripts for CONFIG_FILES section.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025272#
25273
25274# No need to generate the scripts if there are no CONFIG_FILES.
25275# This happens for instance when ./config.status config.h
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025276if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025277
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025278_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025279
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025280# Create sed commands to just substitute file output variables.
25281
25282# Remaining file output variables are in a fragment that also has non-file
25283# output varibles.
25284
25285
25286
25287ac_delim='%!_!# '
25288for ac_last_try in false false false false false :; do
25289 cat >conf$$subs.sed <<_ACEOF
25290SHELL!$SHELL$ac_delim
25291PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25292PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25293PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25294PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25295PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25296PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25297exec_prefix!$exec_prefix$ac_delim
25298prefix!$prefix$ac_delim
25299program_transform_name!$program_transform_name$ac_delim
25300bindir!$bindir$ac_delim
25301sbindir!$sbindir$ac_delim
25302libexecdir!$libexecdir$ac_delim
25303datarootdir!$datarootdir$ac_delim
25304datadir!$datadir$ac_delim
25305sysconfdir!$sysconfdir$ac_delim
25306sharedstatedir!$sharedstatedir$ac_delim
25307localstatedir!$localstatedir$ac_delim
25308includedir!$includedir$ac_delim
25309oldincludedir!$oldincludedir$ac_delim
25310docdir!$docdir$ac_delim
25311infodir!$infodir$ac_delim
25312htmldir!$htmldir$ac_delim
25313dvidir!$dvidir$ac_delim
25314pdfdir!$pdfdir$ac_delim
25315psdir!$psdir$ac_delim
25316libdir!$libdir$ac_delim
25317localedir!$localedir$ac_delim
25318mandir!$mandir$ac_delim
25319DEFS!$DEFS$ac_delim
25320ECHO_C!$ECHO_C$ac_delim
25321ECHO_N!$ECHO_N$ac_delim
25322ECHO_T!$ECHO_T$ac_delim
25323LIBS!$LIBS$ac_delim
25324build_alias!$build_alias$ac_delim
25325host_alias!$host_alias$ac_delim
25326target_alias!$target_alias$ac_delim
25327build!$build$ac_delim
25328build_cpu!$build_cpu$ac_delim
25329build_vendor!$build_vendor$ac_delim
25330build_os!$build_os$ac_delim
25331host!$host$ac_delim
25332host_cpu!$host_cpu$ac_delim
25333host_vendor!$host_vendor$ac_delim
25334host_os!$host_os$ac_delim
25335WIN16_FILES!$WIN16_FILES$ac_delim
25336WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25337SET_MAKE!$SET_MAKE$ac_delim
25338CC!$CC$ac_delim
25339CFLAGS!$CFLAGS$ac_delim
25340LDFLAGS!$LDFLAGS$ac_delim
25341CPPFLAGS!$CPPFLAGS$ac_delim
25342ac_ct_CC!$ac_ct_CC$ac_delim
25343EXEEXT!$EXEEXT$ac_delim
25344OBJEXT!$OBJEXT$ac_delim
25345CXX!$CXX$ac_delim
25346CXXFLAGS!$CXXFLAGS$ac_delim
25347ac_ct_CXX!$ac_ct_CXX$ac_delim
25348CPPBIN!$CPPBIN$ac_delim
25349TOOLSDIR!$TOOLSDIR$ac_delim
25350XMKMF!$XMKMF$ac_delim
25351CPP!$CPP$ac_delim
25352X_CFLAGS!$X_CFLAGS$ac_delim
25353X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25354X_LIBS!$X_LIBS$ac_delim
25355X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25356LEX!$LEX$ac_delim
25357LEXLIB!$LEXLIB$ac_delim
25358LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25359XLEX!$XLEX$ac_delim
25360BISON!$BISON$ac_delim
25361AS!$AS$ac_delim
25362ac_ct_AS!$ac_ct_AS$ac_delim
25363LD!$LD$ac_delim
25364AR!$AR$ac_delim
25365RANLIB!$RANLIB$ac_delim
25366STRIP!$STRIP$ac_delim
25367WINDRES!$WINDRES$ac_delim
25368LN_S!$LN_S$ac_delim
25369_ACEOF
25370
Jeremy White0ebeb532006-06-20 13:18:41 +020025371 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025372 break
25373 elif $ac_last_try; then
25374 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25375echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25376 { (exit 1); exit 1; }; }
25377 else
25378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025379 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025380done
25381
Jeremy White0ebeb532006-06-20 13:18:41 +020025382ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25383if test -n "$ac_eof"; then
25384 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25385 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025386fi
25387
25388cat >>$CONFIG_STATUS <<_ACEOF
25389cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25390/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25391/^[ ]*@MAKE_RULES@[ ]*$/{
25392r $MAKE_RULES
25393d
25394}
25395/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25396r $MAKE_DLL_RULES
25397d
25398}
25399/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25400r $MAKE_IMPLIB_RULES
25401d
25402}
25403/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25404r $MAKE_TEST_RULES
25405d
25406}
25407/^[ ]*@MAKE_LIB_RULES@[ ]*$/{
25408r $MAKE_LIB_RULES
25409d
25410}
25411/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25412r $MAKE_PROG_RULES
25413d
25414}
25415_ACEOF
25416sed '
25417s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25418s/^/s,@/; s/!/@,|#_!!_#|/
25419:n
25420t n
25421s/'"$ac_delim"'$/,g/; t
25422s/$/\\/; p
25423N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25424' >>$CONFIG_STATUS <conf$$subs.sed
25425rm -f conf$$subs.sed
25426cat >>$CONFIG_STATUS <<_ACEOF
25427CEOF$ac_eof
25428_ACEOF
25429
25430
25431ac_delim='%!_!# '
25432for ac_last_try in false false false false false :; do
25433 cat >conf$$subs.sed <<_ACEOF
25434LN!$LN$ac_delim
25435GREP!$GREP$ac_delim
25436EGREP!$EGREP$ac_delim
25437LDCONFIG!$LDCONFIG$ac_delim
25438INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25439INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25440INSTALL_DATA!$INSTALL_DATA$ac_delim
25441LINT!$LINT$ac_delim
25442LINTFLAGS!$LINTFLAGS$ac_delim
25443FONTFORGE!$FONTFORGE$ac_delim
25444PKG_CONFIG!$PKG_CONFIG$ac_delim
25445PRELINK!$PRELINK$ac_delim
25446LIBPTHREAD!$LIBPTHREAD$ac_delim
25447XLIB!$XLIB$ac_delim
25448XFILES!$XFILES$ac_delim
25449OPENGLFILES!$OPENGLFILES$ac_delim
25450GLU32FILES!$GLU32FILES$ac_delim
25451OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25452GLUT_LIBS!$GLUT_LIBS$ac_delim
25453GLUT32FILES!$GLUT32FILES$ac_delim
25454NASLIBS!$NASLIBS$ac_delim
25455XML2LIBS!$XML2LIBS$ac_delim
25456XML2INCL!$XML2INCL$ac_delim
25457XSLTLIBS!$XSLTLIBS$ac_delim
25458XSLTINCL!$XSLTINCL$ac_delim
25459HALINCL!$HALINCL$ac_delim
25460CURSESLIBS!$CURSESLIBS$ac_delim
25461sane_devel!$sane_devel$ac_delim
25462SANELIBS!$SANELIBS$ac_delim
25463SANEINCL!$SANEINCL$ac_delim
25464gphoto2_devel!$gphoto2_devel$ac_delim
25465gphoto2port_devel!$gphoto2port_devel$ac_delim
25466GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25467GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25468ICULIBS!$ICULIBS$ac_delim
25469RESOLVLIBS!$RESOLVLIBS$ac_delim
25470LCMSLIBS!$LCMSLIBS$ac_delim
25471LDAPLIBS!$LDAPLIBS$ac_delim
25472FREETYPELIBS!$FREETYPELIBS$ac_delim
25473FREETYPEINCL!$FREETYPEINCL$ac_delim
25474ft_devel!$ft_devel$ac_delim
25475ft_devel2!$ft_devel2$ac_delim
25476FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25477ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25478ARTSLIBS!$ARTSLIBS$ac_delim
25479ARTSINCL!$ARTSINCL$ac_delim
25480ESDCONFIG!$ESDCONFIG$ac_delim
25481ESDLIBS!$ESDLIBS$ac_delim
25482ESDINCL!$ESDINCL$ac_delim
25483ALSALIBS!$ALSALIBS$ac_delim
25484AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25485EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25486BUILTINFLAG!$BUILTINFLAG$ac_delim
25487DLLEXT!$DLLEXT$ac_delim
25488DLLFLAGS!$DLLFLAGS$ac_delim
25489DLLIBS!$DLLIBS$ac_delim
25490LDSHARED!$LDSHARED$ac_delim
25491LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25492LIBEXT!$LIBEXT$ac_delim
25493IMPLIBEXT!$IMPLIBEXT$ac_delim
25494DLLTOOL!$DLLTOOL$ac_delim
25495DLLWRAP!$DLLWRAP$ac_delim
25496LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25497LDEXERPATH!$LDEXERPATH$ac_delim
25498LDDLLRPATH!$LDDLLRPATH$ac_delim
25499COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25500IOKITLIB!$IOKITLIB$ac_delim
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025501COREAUDIO!$COREAUDIO$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025502CROSSTEST!$CROSSTEST$ac_delim
25503CROSSCC!$CROSSCC$ac_delim
25504CROSSWINDRES!$CROSSWINDRES$ac_delim
25505LDPATH!$LDPATH$ac_delim
25506CRTLIBS!$CRTLIBS$ac_delim
25507SOCKETLIBS!$SOCKETLIBS$ac_delim
25508MAIN_BINARY!$MAIN_BINARY$ac_delim
25509EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25510LDD!$LDD$ac_delim
25511LIBOBJS!$LIBOBJS$ac_delim
25512LTLIBOBJS!$LTLIBOBJS$ac_delim
25513_ACEOF
25514
Jeremy White0ebeb532006-06-20 13:18:41 +020025515 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 79; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025516 break
25517 elif $ac_last_try; then
25518 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25519echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25520 { (exit 1); exit 1; }; }
25521 else
25522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25523 fi
25524done
25525
Jeremy White0ebeb532006-06-20 13:18:41 +020025526ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25527if test -n "$ac_eof"; then
25528 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25529 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025530fi
25531
25532cat >>$CONFIG_STATUS <<_ACEOF
25533cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25534/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25535_ACEOF
25536sed '
25537s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25538s/^/s,@/; s/!/@,|#_!!_#|/
25539:n
25540t n
25541s/'"$ac_delim"'$/,g/; t
25542s/$/\\/; p
25543N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25544' >>$CONFIG_STATUS <conf$$subs.sed
25545rm -f conf$$subs.sed
25546cat >>$CONFIG_STATUS <<_ACEOF
25547:end
25548s/|#_!!_#|//g
25549CEOF$ac_eof
25550_ACEOF
25551
25552
25553# VPATH may cause trouble with some makes, so we remove $(srcdir),
25554# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25555# trailing colons and then remove the whole line if VPATH becomes empty
25556# (actually we leave an empty line to preserve line numbers).
25557if test "x$srcdir" = x.; then
25558 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25559s/:*\$(srcdir):*/:/
25560s/:*\${srcdir}:*/:/
25561s/:*@srcdir@:*/:/
25562s/^\([^=]*=[ ]*\):*/\1/
25563s/:*$//
25564s/^[^=]*=[ ]*$//
25565}'
25566fi
25567
25568cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025569fi # test -n "$CONFIG_FILES"
25570
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025571
25572for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25573do
25574 case $ac_tag in
25575 :[FHLC]) ac_mode=$ac_tag; continue;;
25576 esac
25577 case $ac_mode$ac_tag in
25578 :[FHL]*:*);;
25579 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25580echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25581 { (exit 1); exit 1; }; };;
25582 :[FH]-) ac_tag=-:-;;
25583 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25584 esac
25585 ac_save_IFS=$IFS
25586 IFS=:
25587 set x $ac_tag
25588 IFS=$ac_save_IFS
25589 shift
25590 ac_file=$1
25591 shift
25592
25593 case $ac_mode in
25594 :L) ac_source=$1;;
25595 :[FH])
25596 ac_file_inputs=
25597 for ac_f
25598 do
25599 case $ac_f in
25600 -) ac_f="$tmp/stdin";;
25601 *) # Look for the file first in the build tree, then in the source tree
25602 # (if the path is not absolute). The absolute path cannot be DOS-style,
25603 # because $ac_f cannot contain `:'.
25604 test -f "$ac_f" ||
25605 case $ac_f in
25606 [\\/$]*) false;;
25607 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25608 esac ||
25609 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25610echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25611 { (exit 1); exit 1; }; };;
25612 esac
25613 ac_file_inputs="$ac_file_inputs $ac_f"
25614 done
25615
25616 # Let's still pretend it is `configure' which instantiates (i.e., don't
25617 # use $as_me), people would be surprised to read:
25618 # /* config.h. Generated by config.status. */
25619 configure_input="Generated from "`IFS=:
25620 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25621 if test x"$ac_file" != x-; then
25622 configure_input="$ac_file. $configure_input"
25623 { echo "$as_me:$LINENO: creating $ac_file" >&5
25624echo "$as_me: creating $ac_file" >&6;}
25625 fi
25626
25627 case $ac_tag in
25628 *:-:* | *:-) cat >"$tmp/stdin";;
25629 esac
25630 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025631 esac
25632
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025633 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025635 X"$ac_file" : 'X\(//\)[^/]' \| \
25636 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025638echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25640 s//\1/
25641 q
25642 }
25643 /^X\(\/\/\)[^/].*/{
25644 s//\1/
25645 q
25646 }
25647 /^X\(\/\/\)$/{
25648 s//\1/
25649 q
25650 }
25651 /^X\(\/\).*/{
25652 s//\1/
25653 q
25654 }
25655 s/.*/./; q'`
25656 { as_dir="$ac_dir"
25657 case $as_dir in #(
25658 -*) as_dir=./$as_dir;;
25659 esac
25660 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025661 as_dirs=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025662 while :; do
25663 case $as_dir in #(
25664 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25665 *) as_qdir=$as_dir;;
25666 esac
25667 as_dirs="'$as_qdir' $as_dirs"
25668 as_dir=`$as_dirname -- "$as_dir" ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025669$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025670 X"$as_dir" : 'X\(//\)[^/]' \| \
25671 X"$as_dir" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025673echo X"$as_dir" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25675 s//\1/
25676 q
25677 }
25678 /^X\(\/\/\)[^/].*/{
25679 s//\1/
25680 q
25681 }
25682 /^X\(\/\/\)$/{
25683 s//\1/
25684 q
25685 }
25686 /^X\(\/\).*/{
25687 s//\1/
25688 q
25689 }
25690 s/.*/./; q'`
25691 test -d "$as_dir" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025692 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025693 test -z "$as_dirs" || eval "mkdir $as_dirs"
25694 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25695echo "$as_me: error: cannot create directory $as_dir" >&2;}
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025696 { (exit 1); exit 1; }; }; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025697 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025698
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025699case "$ac_dir" in
25700.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25701*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025702 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025703 # A ".." for each directory in $ac_dir_suffix.
25704 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25705 case $ac_top_builddir_sub in
25706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25708 esac ;;
25709esac
25710ac_abs_top_builddir=$ac_pwd
25711ac_abs_builddir=$ac_pwd$ac_dir_suffix
25712# for backward compatibility:
25713ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025714
25715case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025716 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025717 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025718 ac_top_srcdir=$ac_top_builddir_sub
25719 ac_abs_top_srcdir=$ac_pwd ;;
25720 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025721 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025722 ac_top_srcdir=$srcdir
25723 ac_abs_top_srcdir=$srcdir ;;
25724 *) # Relative name.
25725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25726 ac_top_srcdir=$ac_top_build_prefix$srcdir
25727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025728esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025729ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000025730
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025731
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025732 case $ac_mode in
25733 :F)
25734 #
25735 # CONFIG_FILE
25736 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025737
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025738 case $INSTALL in
25739 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025740 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000025741 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025742_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025743
25744cat >>$CONFIG_STATUS <<\_ACEOF
25745# If the template does not know about datarootdir, expand it.
25746# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020025747ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025748
25749case `sed -n '/datarootdir/ {
25750 p
25751 q
25752}
25753/@datadir@/p
25754/@docdir@/p
25755/@infodir@/p
25756/@localedir@/p
25757/@mandir@/p
25758' $ac_file_inputs` in
Jeremy White0ebeb532006-06-20 13:18:41 +020025759*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025760*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25761 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25762echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25763_ACEOF
25764cat >>$CONFIG_STATUS <<_ACEOF
25765 ac_datarootdir_hack='
25766 s&@datadir@&$datadir&g
25767 s&@docdir@&$docdir&g
25768 s&@infodir@&$infodir&g
25769 s&@localedir@&$localedir&g
25770 s&@mandir@&$mandir&g
25771 s&\\\${datarootdir}&$datarootdir&g' ;;
25772esac
25773_ACEOF
25774
25775# Neutralize VPATH when `$srcdir' = `.'.
25776# Shell code in configure.ac might set extrasub.
25777# FIXME: do we really want to maintain this feature?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025778cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025779 sed "$ac_vpsub
25780$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025781_ACEOF
25782cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025783:t
25784/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025785s&@configure_input@&$configure_input&;t t
25786s&@top_builddir@&$ac_top_builddir_sub&;t t
25787s&@srcdir@&$ac_srcdir&;t t
25788s&@abs_srcdir@&$ac_abs_srcdir&;t t
25789s&@top_srcdir@&$ac_top_srcdir&;t t
25790s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25791s&@builddir@&$ac_builddir&;t t
25792s&@abs_builddir@&$ac_abs_builddir&;t t
25793s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25794s&@INSTALL@&$ac_INSTALL&;t t
25795$ac_datarootdir_hack
25796" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025797
Jeremy White0ebeb532006-06-20 13:18:41 +020025798test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25799 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020025800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020025801 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25802which seems to be undefined. Please make sure it is defined." >&5
25803echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25804which seems to be undefined. Please make sure it is defined." >&2;}
25805
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025806 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025807 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025808 -) cat "$tmp/out"; rm -f "$tmp/out";;
25809 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025810 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025811 ;;
25812 :H)
25813 #
25814 # CONFIG_HEADER
25815 #
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025816_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025817
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025818# Transform confdefs.h into a sed script `conftest.defines', that
25819# substitutes the proper values into config.h.in to produce config.h.
25820rm -f conftest.defines conftest.tail
25821# First, append a space to every undef/define line, to ease matching.
25822echo 's/$/ /' >conftest.defines
25823# Then, protect against being on the right side of a sed subst, or in
25824# an unquoted here document, in config.status. If some macros were
25825# called several times there might be several #defines for the same
25826# symbol, which is useless. But do not sort them, since the last
25827# AC_DEFINE must be honored.
25828ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Jeremy White0ebeb532006-06-20 13:18:41 +020025829# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25830# NAME is the cpp macro being defined, VALUE is the value it is being given.
25831# PARAMS is the parameter list in the macro definition--in most cases, it's
25832# just an empty string.
25833ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25834ac_dB='\\)[ (].*,\\1define\\2'
25835ac_dC=' '
25836ac_dD=' ,'
25837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025838uniq confdefs.h |
25839 sed -n '
25840 t rset
25841 :rset
25842 s/^[ ]*#[ ]*define[ ][ ]*//
25843 t ok
25844 d
25845 :ok
25846 s/[\\&,]/\\&/g
Jeremy White0ebeb532006-06-20 13:18:41 +020025847 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25848 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025849 ' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025850
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025851# Remove the space that was appended to ease matching.
25852# Then replace #undef with comments. This is necessary, for
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025853# example, in the case of _POSIX_SOURCE, which is predefined and required
25854# on some systems where configure will not decide to define it.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025855# (The regexp can be short, since the line contains either #define or #undef.)
25856echo 's/ $//
25857s,^[ #]*u.*,/* & */,' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025859# Break up conftest.defines:
Jeremy White0ebeb532006-06-20 13:18:41 +020025860ac_max_sed_lines=50
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025861
25862# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25863# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25864# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25865# et cetera.
25866ac_in='$ac_file_inputs'
25867ac_out='"$tmp/out1"'
25868ac_nxt='"$tmp/out2"'
25869
25870while :
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025871do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025872 # Write a here document:
Jeremy White0ebeb532006-06-20 13:18:41 +020025873 cat >>$CONFIG_STATUS <<_ACEOF
25874 # First, check the format of the line:
25875 cat >"\$tmp/defines.sed" <<\\CEOF
25876/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25877/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025878b
Jeremy White0ebeb532006-06-20 13:18:41 +020025879:def
25880_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025881 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025882 echo 'CEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025883 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25884 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25885 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25886 grep . conftest.tail >/dev/null || break
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025887 rm -f conftest.defines
25888 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025889done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025890rm -f conftest.defines conftest.tail
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025891
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025892echo "ac_result=$ac_in" >>$CONFIG_STATUS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025893cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025894 if test x"$ac_file" != x-; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025895 echo "/* $configure_input */" >"$tmp/config.h"
25896 cat "$ac_result" >>"$tmp/config.h"
25897 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025898 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025899echo "$as_me: $ac_file is unchanged" >&6;}
25900 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025901 rm -f $ac_file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025902 mv "$tmp/config.h" $ac_file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025903 fi
25904 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025905 echo "/* $configure_input */"
25906 cat "$ac_result"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025907 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025908 rm -f "$tmp/out12"
25909 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025910
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025911 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25912echo "$as_me: executing $ac_file commands" >&6;}
25913 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025914 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025915
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025916
25917 case $ac_file$ac_mode in
25918 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25919echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25920 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25921echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25922 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25923echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25924 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25925echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25926 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25927echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25928 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25929echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25930
25931 esac
25932done # for ac_tag
25933
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000025934
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025935{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025936_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025937chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025938ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025939
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025940
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025941# configure is writing to config.log, and then calls config.status.
25942# config.status does its own redirection, appending to config.log.
25943# Unfortunately, on DOS this fails, as config.log is still kept open
25944# by configure, so config.status won't be able to write to it; its
25945# output is simply discarded. So we exec the FD to /dev/null,
25946# effectively closing config.log, so it can be properly (re)opened and
25947# appended to by config.status. When coming back to configure, we
25948# need to make the FD available again.
25949if test "$no_create" != yes; then
25950 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025951 ac_config_status_args=
25952 test "$silent" = yes &&
25953 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025954 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025956 exec 5>>config.log
25957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25958 # would make configure fail if this is the last instruction.
25959 $ac_cs_success || { (exit 1); exit 1; }
25960fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025961
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025962
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025963if test "$have_x" = "no"
25964then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025965 echo >&2
25966 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25967echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25969echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25970 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25971echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25972 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25973echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025974fi
25975
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000025976if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000025977then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025978 echo >&2
25979 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25980echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25981 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25982echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000025983fi
25984
Ian Pilcher563598d2001-05-16 20:56:05 +000025985if test "$wine_cv_msg_freetype" = "yes"
25986then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025987 echo >&2
25988 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25989echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25991echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25992 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25993echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25994 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25995echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
Ian Pilcher563598d2001-05-16 20:56:05 +000025996fi
25997
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025998if test -z "$FONTSSUBDIRS"
Mike McCormack8f6aa412006-04-04 13:36:51 +090025999then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020026000 echo >&2
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020026001 if test "$FONTFORGE" = "false"
26002 then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020026003 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
26004echo "$as_me: WARNING: FontForge is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020026005 else
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020026006 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
26007echo "$as_me: WARNING: FreeType is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020026008 fi
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020026009 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
26010echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
Mike McCormack8f6aa412006-04-04 13:36:51 +090026011fi
26012
Alexandre Julliard82776022005-08-08 11:17:25 +000026013if test -z "$ALSALIBS" -a \
26014 -z "$ARTSC_LIBS" -a \
26015 -z "$AUDIOIOLIBS" -a \
26016 -z "$NASLIBS" -a \
26017 -z "$ESD_LIBS" -a \
26018 -z "$ac_cv_lib_soname_jack" -a \
26019 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
26020 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
26021 "$ac_cv_header_soundcard_h" != "yes"
Francois Gouget99d026f2005-03-19 17:08:18 +000026022then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020026023 echo >&2
26024 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
26025echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
26026 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
26027echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
26028 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
26029echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
Francois Gouget99d026f2005-03-19 17:08:18 +000026030fi
26031
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026032echo
Vincent BĂ©ron5606d102004-08-19 00:03:45 +000026033echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000026034echo
26035