blob: c02192ef43b39ea92bb3c63f21ff6a1f89b6f82d [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 Julliardbf71a2f2006-08-24 16:11:45 +02003# Generated by GNU Autoconf 2.60a for Wine 0.9.20.
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 Julliardbf71a2f2006-08-24 16:11:45 +0200562PACKAGE_VERSION='0.9.20'
563PACKAGE_STRING='Wine 0.9.20'
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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200737LDSHARED
738LDDLLFLAGS
739LIBEXT
740IMPLIBEXT
Alexandre Julliard13a93b42006-08-25 17:23:44 +0200741LIBWINE_LDFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200742DLLTOOL
743DLLWRAP
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200744COREFOUNDATIONLIB
745IOKITLIB
Alexandre Julliard42b81ea2006-08-15 12:55:25 +0200746LDEXECFLAGS
Emmanuel Maillard144a5352006-05-28 22:46:23 +0200747COREAUDIO
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200748CROSSTEST
749CROSSCC
750CROSSWINDRES
751LDPATH
752CRTLIBS
753SOCKETLIBS
754MAIN_BINARY
755EXTRA_BINARIES
756LDD
Alexandre Julliarde533e972006-08-15 12:11:30 +0200757LIBDL
Alexandre Julliard10892602006-08-15 11:41:59 +0200758LIBPOLL
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200759LIBOBJS
760LTLIBOBJS'
761ac_subst_files='MAKE_RULES
762MAKE_DLL_RULES
763MAKE_IMPLIB_RULES
764MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200765MAKE_PROG_RULES'
766 ac_precious_vars='build_alias
767host_alias
768target_alias
769CC
770CFLAGS
771LDFLAGS
772CPPFLAGS
773CXX
774CXXFLAGS
775CCC
776XMKMF
777CPP'
778
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000779
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000780# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000781ac_init_help=
782ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000783# The variables have the same names as the options, with
784# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000785cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000786exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000787no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000788no_recursion=
789prefix=NONE
790program_prefix=NONE
791program_suffix=NONE
792program_transform_name=s,x,x,
793silent=
794site=
795srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000796verbose=
797x_includes=NONE
798x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000799
800# Installation directory options.
801# These are left unexpanded so users can "make install exec_prefix=/foo"
802# and all the variables that are supposed to be based on exec_prefix
803# by default will actually change.
804# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200805# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000806bindir='${exec_prefix}/bin'
807sbindir='${exec_prefix}/sbin'
808libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200809datarootdir='${prefix}/share'
810datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000811sysconfdir='${prefix}/etc'
812sharedstatedir='${prefix}/com'
813localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000814includedir='${prefix}/include'
815oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200816docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817infodir='${datarootdir}/info'
818htmldir='${docdir}'
819dvidir='${docdir}'
820pdfdir='${docdir}'
821psdir='${docdir}'
822libdir='${exec_prefix}/lib'
823localedir='${datarootdir}/locale'
824mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000825
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000826ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200827ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000828for ac_option
829do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200832 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000833 ac_prev=
834 continue
835 fi
836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200837 case $ac_option in
838 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *) ac_optarg=yes ;;
840 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000841
842 # Accept the important Cygnus configure options, so we can diagnose typos.
843
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000851 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000852
853 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000854 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000856 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000867
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200868 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000869 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000871 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000872
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000880 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000881 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000882 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000883 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
884 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
885 { (exit 1); exit 1; }; }
886 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200887 eval enable_$ac_feature=no ;;
888
889 -docdir | --docdir | --docdi | --doc | --do)
890 ac_prev=docdir ;;
891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 docdir=$ac_optarg ;;
893
894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
895 ac_prev=dvidir ;;
896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000898
899 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000900 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000901 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000902 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
903 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
904 { (exit 1); exit 1; }; }
905 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200906 eval enable_$ac_feature=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000907
908 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
909 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
910 | --exec | --exe | --ex)
911 ac_prev=exec_prefix ;;
912 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
913 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
914 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000915 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000916
917 -gas | --gas | --ga | --g)
918 # Obsolete; use --with-gas.
919 with_gas=yes ;;
920
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000921 -help | --help | --hel | --he | -h)
922 ac_init_help=long ;;
923 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
924 ac_init_help=recursive ;;
925 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
926 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000927
928 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000929 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000930 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000931 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200933 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
934 ac_prev=htmldir ;;
935 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
936 | --ht=*)
937 htmldir=$ac_optarg ;;
938
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000939 -includedir | --includedir | --includedi | --included | --include \
940 | --includ | --inclu | --incl | --inc)
941 ac_prev=includedir ;;
942 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
943 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000944 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000945
946 -infodir | --infodir | --infodi | --infod | --info | --inf)
947 ac_prev=infodir ;;
948 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000949 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000950
951 -libdir | --libdir | --libdi | --libd)
952 ac_prev=libdir ;;
953 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000954 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000955
956 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
957 | --libexe | --libex | --libe)
958 ac_prev=libexecdir ;;
959 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
960 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000961 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000962
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200963 -localedir | --localedir | --localedi | --localed | --locale)
964 ac_prev=localedir ;;
965 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
966 localedir=$ac_optarg ;;
967
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000968 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200969 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000970 ac_prev=localstatedir ;;
971 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200972 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000973 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000974
975 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
976 ac_prev=mandir ;;
977 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000978 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000979
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980 -nfp | --nfp | --nf)
981 # Obsolete; use --without-fp.
982 with_fp=no ;;
983
984 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000985 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000986 no_create=yes ;;
987
988 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
989 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 no_recursion=yes ;;
991
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000992 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
993 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
994 | --oldin | --oldi | --old | --ol | --o)
995 ac_prev=oldincludedir ;;
996 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
997 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
998 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000999 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001000
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001001 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1002 ac_prev=prefix ;;
1003 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001005
1006 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1007 | --program-pre | --program-pr | --program-p)
1008 ac_prev=program_prefix ;;
1009 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1010 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001011 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001012
1013 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1014 | --program-suf | --program-su | --program-s)
1015 ac_prev=program_suffix ;;
1016 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1017 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001019
1020 -program-transform-name | --program-transform-name \
1021 | --program-transform-nam | --program-transform-na \
1022 | --program-transform-n | --program-transform- \
1023 | --program-transform | --program-transfor \
1024 | --program-transfo | --program-transf \
1025 | --program-trans | --program-tran \
1026 | --progr-tra | --program-tr | --program-t)
1027 ac_prev=program_transform_name ;;
1028 -program-transform-name=* | --program-transform-name=* \
1029 | --program-transform-nam=* | --program-transform-na=* \
1030 | --program-transform-n=* | --program-transform-=* \
1031 | --program-transform=* | --program-transfor=* \
1032 | --program-transfo=* | --program-transf=* \
1033 | --program-trans=* | --program-tran=* \
1034 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001035 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001037 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1038 ac_prev=pdfdir ;;
1039 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1040 pdfdir=$ac_optarg ;;
1041
1042 -psdir | --psdir | --psdi | --psd | --ps)
1043 ac_prev=psdir ;;
1044 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 psdir=$ac_optarg ;;
1046
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1048 | -silent | --silent | --silen | --sile | --sil)
1049 silent=yes ;;
1050
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001051 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1052 ac_prev=sbindir ;;
1053 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1054 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001055 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001056
1057 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1058 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1059 | --sharedst | --shareds | --shared | --share | --shar \
1060 | --sha | --sh)
1061 ac_prev=sharedstatedir ;;
1062 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1063 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1064 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1065 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001066 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001067
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001068 -site | --site | --sit)
1069 ac_prev=site ;;
1070 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001071 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001072
1073 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1074 ac_prev=srcdir ;;
1075 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001076 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001077
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001078 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1079 | --syscon | --sysco | --sysc | --sys | --sy)
1080 ac_prev=sysconfdir ;;
1081 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1082 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001083 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001084
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001085 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001086 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001088 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001089
1090 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 verbose=yes ;;
1092
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001093 -version | --version | --versio | --versi | --vers | -V)
1094 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001095
1096 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001097 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001098 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1100 { echo "$as_me: error: invalid package name: $ac_package" >&2
1101 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001102 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001103 eval with_$ac_package=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001104
1105 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001106 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001107 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001108 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1109 { echo "$as_me: error: invalid package name: $ac_package" >&2
1110 { (exit 1); exit 1; }; }
1111 ac_package=`echo $ac_package | sed 's/-/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001112 eval with_$ac_package=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001113
1114 --x)
1115 # Obsolete; use --with-x.
1116 with_x=yes ;;
1117
1118 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119 | --x-incl | --x-inc | --x-in | --x-i)
1120 ac_prev=x_includes ;;
1121 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001123 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001124
1125 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127 ac_prev=x_libraries ;;
1128 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001130 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001131
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001132 -*) { echo "$as_me: error: unrecognized option: $ac_option
1133Try \`$0 --help' for more information." >&2
1134 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001135 ;;
1136
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1142 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001143 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001144 export $ac_envvar ;;
1145
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001146 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001147 # FIXME: should be removed in autoconf 3.0.
1148 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001152 ;;
1153
1154 esac
1155done
1156
1157if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 { echo "$as_me: error: missing argument to $ac_option" >&2
1160 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001161fi
1162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001163# Be sure to have absolute directory names.
1164for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001169 eval ac_val=\$$ac_var
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001170 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001171 [\\/$]* | ?:[\\/]* ) continue;;
1172 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001174 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1175 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001176done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001177
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001178# There might be people who depend on the old broken behavior: `$host'
1179# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001180# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001181build=$build_alias
1182host=$host_alias
1183target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001184
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001185# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001186if test "x$host_alias" != x; then
1187 if test "x$build_alias" = x; then
1188 cross_compiling=maybe
1189 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1190 If a cross compiler is detected then cross compile mode will be used." >&2
1191 elif test "x$build_alias" != "x$host_alias"; then
1192 cross_compiling=yes
1193 fi
1194fi
1195
1196ac_tool_prefix=
1197test -n "$host_alias" && ac_tool_prefix=$host_alias-
1198
1199test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001200
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001201
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001202ac_pwd=`pwd` && test -n "$ac_pwd" &&
1203ac_ls_di=`ls -di .` &&
1204ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1205 { echo "$as_me: error: Working directory cannot be determined" >&2
1206 { (exit 1); exit 1; }; }
1207test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1208 { echo "$as_me: error: pwd does not report name of working directory" >&2
1209 { (exit 1); exit 1; }; }
1210
1211
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001212# Find the source files, if location was not specified.
1213if test -z "$srcdir"; then
1214 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001215 # Try the directory containing this script, then the parent directory.
1216 ac_confdir=`$as_dirname -- "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001217$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +00001218 X"$0" : 'X\(//\)[^/]' \| \
1219 X"$0" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001221echo X"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 s//\1/
1224 q
1225 }
1226 /^X\(\/\/\)[^/].*/{
1227 s//\1/
1228 q
1229 }
1230 /^X\(\/\/\)$/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\).*/{
1235 s//\1/
1236 q
1237 }
1238 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001239 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001240 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001241 srcdir=..
1242 fi
1243else
1244 ac_srcdir_defaulted=no
1245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001246if test ! -r "$srcdir/$ac_unique_file"; then
1247 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1248 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001249 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001250fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
1253 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001254 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001255 pwd)`
1256# When building in place, set srcdir=.
1257if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 srcdir=.
1259fi
1260# Remove unnecessary trailing slashes from srcdir.
1261# Double slashes in file names in object file debugging info
1262# mess up M-x gdb in Emacs.
1263case $srcdir in
1264*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1265esac
1266for ac_var in $ac_precious_vars; do
1267 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_env_${ac_var}_value=\$${ac_var}
1269 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1271done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001272
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001273#
1274# Report the --help message.
1275#
1276if test "$ac_init_help" = "long"; then
1277 # Omit some internal or obsolete options to make the list less imposing.
1278 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001279 cat <<_ACEOF
Alexandre Julliardbf71a2f2006-08-24 16:11:45 +02001280\`configure' configures Wine 0.9.20 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281
1282Usage: $0 [OPTION]... [VAR=VALUE]...
1283
1284To assign environment variables (e.g., CC, CFLAGS...), specify them as
1285VAR=VALUE. See below for descriptions of some of the useful variables.
1286
1287Defaults for the options are specified in brackets.
1288
1289Configuration:
1290 -h, --help display this help and exit
1291 --help=short display options specific to this package
1292 --help=recursive display the short help of all the included packages
1293 -V, --version display version information and exit
1294 -q, --quiet, --silent do not print \`checking...' messages
1295 --cache-file=FILE cache test results in FILE [disabled]
1296 -C, --config-cache alias for \`--cache-file=config.cache'
1297 -n, --no-create do not create output files
1298 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1299
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001300Installation directories:
1301 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +00001302 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001303 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliard875927f2004-01-02 01:55:29 +00001304 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001305
1306By default, \`make install' will install all the files in
1307\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1308an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1309for instance \`--prefix=\$HOME'.
1310
1311For better control, use the options below.
1312
1313Fine tuning of the installation directories:
1314 --bindir=DIR user executables [EPREFIX/bin]
1315 --sbindir=DIR system admin executables [EPREFIX/sbin]
1316 --libexecdir=DIR program executables [EPREFIX/libexec]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001317 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1318 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1319 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1320 --libdir=DIR object code libraries [EPREFIX/lib]
1321 --includedir=DIR C header files [PREFIX/include]
1322 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001323 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1324 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1325 --infodir=DIR info documentation [DATAROOTDIR/info]
1326 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1327 --mandir=DIR man documentation [DATAROOTDIR/man]
1328 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1329 --htmldir=DIR html documentation [DOCDIR]
1330 --dvidir=DIR dvi documentation [DOCDIR]
1331 --pdfdir=DIR pdf documentation [DOCDIR]
1332 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001333_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001334
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001335 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001336
1337X features:
1338 --x-includes=DIR X include files are in DIR
1339 --x-libraries=DIR X library files are in DIR
1340
1341System types:
1342 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001343 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001344_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001345fi
1346
1347if test -n "$ac_init_help"; then
1348 case $ac_init_help in
Alexandre Julliardbf71a2f2006-08-24 16:11:45 +02001349 short | recursive ) echo "Configuration of Wine 0.9.20:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001350 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001351 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001352
1353Optional Features:
1354 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1355 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001356 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001357 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1358 binaries)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001359
1360Optional Packages:
1361 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1362 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Eric Pouech53fa0d52004-02-05 01:27:38 +00001363 --without-opengl do not use OpenGL
1364 --without-curses do not use curses
1365 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001366 --with-x use the X Window System
1367
1368Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001369 CC C compiler command
1370 CFLAGS C compiler flags
1371 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1372 nonstandard directory <lib dir>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001373 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1374 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001375 CXX C++ compiler command
1376 CXXFLAGS C++ compiler flags
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001377 XMKMF Path to xmkmf, Makefile generator for X Window System
Eric Pouech53fa0d52004-02-05 01:27:38 +00001378 CPP C preprocessor
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001379
1380Use these variables to override the choices made by `configure' or to help
1381it to find libraries and programs with nonstandard names/locations.
1382
Alexandre Julliard875927f2004-01-02 01:55:29 +00001383Report bugs to <wine-devel@winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001384_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001385ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001386fi
1387
1388if test "$ac_init_help" = "recursive"; then
1389 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001390 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Jeremy White0ebeb532006-06-20 13:18:41 +02001391 test -d "$ac_dir" || continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001392 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001393
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001394case "$ac_dir" in
1395.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1396*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001397 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001398 # A ".." for each directory in $ac_dir_suffix.
1399 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1400 case $ac_top_builddir_sub in
1401 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1402 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1403 esac ;;
1404esac
1405ac_abs_top_builddir=$ac_pwd
1406ac_abs_builddir=$ac_pwd$ac_dir_suffix
1407# for backward compatibility:
1408ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001410case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001411 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001412 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001413 ac_top_srcdir=$ac_top_builddir_sub
1414 ac_abs_top_srcdir=$ac_pwd ;;
1415 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001416 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001417 ac_top_srcdir=$srcdir
1418 ac_abs_top_srcdir=$srcdir ;;
1419 *) # Relative name.
1420 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1421 ac_top_srcdir=$ac_top_build_prefix$srcdir
1422 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001423esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001424ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001425
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001426 cd "$ac_dir" || { ac_status=$?; continue; }
1427 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001428 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001429 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001430 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1431 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001432 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001433 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001435 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001436 fi || ac_status=$?
1437 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001438 done
1439fi
1440
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001441test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001443 cat <<\_ACEOF
Alexandre Julliardbf71a2f2006-08-24 16:11:45 +02001444Wine configure 0.9.20
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02001445generated by GNU Autoconf 2.60a
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001446
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001447Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14482002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001449This configure script is free software; the Free Software Foundation
1450gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001452 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001453fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001454cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001455This file contains any messages produced by compilers while
1456running configure, to aid debugging if configure makes a mistake.
1457
Alexandre Julliardbf71a2f2006-08-24 16:11:45 +02001458It was created by Wine $as_me 0.9.20, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02001459generated by GNU Autoconf 2.60a. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001460
1461 $ $0 $@
1462
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001463_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001464exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001465{
1466cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001467## --------- ##
1468## Platform. ##
1469## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001470
1471hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1472uname -m = `(uname -m) 2>/dev/null || echo unknown`
1473uname -r = `(uname -r) 2>/dev/null || echo unknown`
1474uname -s = `(uname -s) 2>/dev/null || echo unknown`
1475uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476
1477/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1478/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479
1480/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1481/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1482/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001483/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001484/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1485/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1486/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1487
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001488_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001489
1490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491for as_dir in $PATH
1492do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 echo "PATH: $as_dir"
1496done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001497IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001498
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001499} >&5
1500
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001501cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001502
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001503
1504## ----------- ##
1505## Core tests. ##
1506## ----------- ##
1507
1508_ACEOF
1509
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001510
1511# Keep a trace of the command line.
1512# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001513# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001514# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001515# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001516ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001517ac_configure_args0=
1518ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001519ac_must_keep_next=false
1520for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001521do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001522 for ac_arg
1523 do
1524 case $ac_arg in
1525 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1526 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1527 | -silent | --silent | --silen | --sile | --sil)
1528 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001529 *\'*)
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001530 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1531 esac
1532 case $ac_pass in
1533 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1534 2)
1535 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1536 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001537 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001538 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00001539 case $ac_arg in
1540 *=* | --config-cache | -C | -disable-* | --disable-* \
1541 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1542 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1543 | -with-* | --with-* | -without-* | --without-* | --x)
1544 case "$ac_configure_args0 " in
1545 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1546 esac
1547 ;;
1548 -* ) ac_must_keep_next=true ;;
1549 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001550 fi
Jeremy White0ebeb532006-06-20 13:18:41 +02001551 ac_configure_args="$ac_configure_args '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001552 ;;
1553 esac
1554 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001555done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001556$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1557$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 +00001558
1559# When interrupted or exit'd, cleanup temporary files, and complete
1560# config.log. We remove comments because anyway the quotes in there
1561# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001562# WARNING: Use '\'' to represent an apostrophe within the trap.
1563# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001564trap 'exit_status=$?
1565 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001566 {
1567 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001568
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001569 cat <<\_ASBOX
1570## ---------------- ##
1571## Cache variables. ##
1572## ---------------- ##
1573_ASBOX
1574 echo
1575 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576(
1577 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1578 eval ac_val=\$$ac_var
1579 case $ac_val in #(
1580 *${as_nl}*)
1581 case $ac_var in #(
1582 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1583echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1584 esac
1585 case $ac_var in #(
1586 _ | IFS | as_nl) ;; #(
1587 *) $as_unset $ac_var ;;
1588 esac ;;
1589 esac
1590 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001591 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001592 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1593 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001595 "s/'\''/'\''\\\\'\'''\''/g;
1596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1597 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001598 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001599 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001600 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001601 esac |
1602 sort
1603)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001604 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001605
1606 cat <<\_ASBOX
1607## ----------------- ##
1608## Output variables. ##
1609## ----------------- ##
1610_ASBOX
1611 echo
1612 for ac_var in $ac_subst_vars
1613 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001614 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02001615 case $ac_val in
1616 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001618 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001619 done | sort
1620 echo
1621
1622 if test -n "$ac_subst_files"; then
1623 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001624## ------------------- ##
1625## File substitutions. ##
1626## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001627_ASBOX
1628 echo
1629 for ac_var in $ac_subst_files
1630 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001631 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02001632 case $ac_val in
1633 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001635 echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001636 done | sort
1637 echo
1638 fi
1639
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001640 if test -s confdefs.h; then
1641 cat <<\_ASBOX
1642## ----------- ##
1643## confdefs.h. ##
1644## ----------- ##
1645_ASBOX
1646 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001647 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001648 echo
1649 fi
1650 test "$ac_signal" != 0 &&
1651 echo "$as_me: caught signal $ac_signal"
1652 echo "$as_me: exit $exit_status"
1653 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001654 rm -f core *.core core.conftest.* &&
1655 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001656 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001657' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001658for ac_signal in 1 2 13 15; do
1659 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1660done
1661ac_signal=0
1662
1663# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001664rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001665
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001666# Predefined preprocessor variables.
1667
1668cat >>confdefs.h <<_ACEOF
1669#define PACKAGE_NAME "$PACKAGE_NAME"
1670_ACEOF
1671
1672
1673cat >>confdefs.h <<_ACEOF
1674#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1675_ACEOF
1676
1677
1678cat >>confdefs.h <<_ACEOF
1679#define PACKAGE_VERSION "$PACKAGE_VERSION"
1680_ACEOF
1681
1682
1683cat >>confdefs.h <<_ACEOF
1684#define PACKAGE_STRING "$PACKAGE_STRING"
1685_ACEOF
1686
1687
1688cat >>confdefs.h <<_ACEOF
1689#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1690_ACEOF
1691
1692
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001694# Prefer explicitly selected file to automatically selected ones.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001695if test -n "$CONFIG_SITE"; then
1696 set x "$CONFIG_SITE"
1697elif test "x$prefix" != xNONE; then
1698 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1699else
1700 set x "$ac_default_prefix/share/config.site" \
1701 "$ac_default_prefix/etc/config.site"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001702fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001703shift
1704for ac_site_file
1705do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001706 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001707 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001708echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001709 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001710 . "$ac_site_file"
1711 fi
1712done
1713
1714if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001715 # Some versions of bash will fail to source /dev/null (special
1716 # files actually), so we avoid doing that.
1717 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001718 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001719echo "$as_me: loading cache $cache_file" >&6;}
1720 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02001721 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1722 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001723 esac
1724 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001725else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001726 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001727echo "$as_me: creating cache $cache_file" >&6;}
1728 >$cache_file
1729fi
1730
1731# Check that the precious variables saved in the cache have kept the same
1732# value.
1733ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001734for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001735 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1736 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001737 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1738 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001739 case $ac_old_set,$ac_new_set in
1740 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001741 { 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 +00001742echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001745 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001746echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1747 ac_cache_corrupted=: ;;
1748 ,);;
1749 *)
1750 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00001751 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001752echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001753 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001754echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001755 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001756echo "$as_me: current value: $ac_new_val" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00001757 ac_cache_corrupted=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001758 fi;;
1759 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001760 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001761 if test "$ac_new_set" = set; then
1762 case $ac_new_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001763 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001764 *) ac_arg=$ac_var=$ac_new_val ;;
1765 esac
1766 case " $ac_configure_args " in
1767 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1768 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001769 esac
1770 fi
1771done
1772if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001773 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001774echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001775 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001776echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1777 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001778fi
1779
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001804ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001805ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1808ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001809
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001810
1811
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001812ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001813
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001814ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02001815for ac_dir in tools "$srcdir"/tools; do
1816 if test -f "$ac_dir/install-sh"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001817 ac_aux_dir=$ac_dir
1818 ac_install_sh="$ac_aux_dir/install-sh -c"
1819 break
Jeremy White0ebeb532006-06-20 13:18:41 +02001820 elif test -f "$ac_dir/install.sh"; then
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001821 ac_aux_dir=$ac_dir
1822 ac_install_sh="$ac_aux_dir/install.sh -c"
1823 break
Jeremy White0ebeb532006-06-20 13:18:41 +02001824 elif test -f "$ac_dir/shtool"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001825 ac_aux_dir=$ac_dir
1826 ac_install_sh="$ac_aux_dir/shtool install -c"
1827 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001828 fi
1829done
1830if test -z "$ac_aux_dir"; then
Jeremy White0ebeb532006-06-20 13:18:41 +02001831 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
1832echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001833 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001834fi
Jeremy White0ebeb532006-06-20 13:18:41 +02001835
1836# These three variables are undocumented and unsupported,
1837# and are intended to be withdrawn in a future Autoconf release.
1838# They can cause serious problems if a builder's source tree is in a directory
1839# whose full name contains unusual characters.
1840ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1841ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1842ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1843
Howard Abrams13277481999-07-10 13:16:29 +00001844
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001845
1846
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001847# Check whether --enable-win16 was given.
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001848if test "${enable_win16+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001849 enableval=$enable_win16;
1850fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001851
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001852# Check whether --enable-win64 was given.
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001853if test "${enable_win64+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001854 enableval=$enable_win64;
1855fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00001856
1857
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001858
1859# Check whether --with-opengl was given.
Alexandre Julliardb8074992002-11-21 21:51:24 +00001860if test "${with_opengl+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001861 withval=$with_opengl;
1862fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001863
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001864
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001865# Check whether --with-curses was given.
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001866if test "${with_curses+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001867 withval=$with_curses;
1868fi
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001869
1870
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001871# Check whether --with-wine-tools was given.
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001872if test "${with_wine_tools+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001873 withval=$with_wine_tools;
1874fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001875
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001876
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001877# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02001878$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1879 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1880echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001881 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001882
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001883{ echo "$as_me:$LINENO: checking build system type" >&5
1884echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885if test "${ac_cv_build+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001887else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001888 ac_build_alias=$build_alias
1889test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001890 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001891test "x$ac_build_alias" = x &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001892 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001893echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1894 { (exit 1); exit 1; }; }
Jeremy White0ebeb532006-06-20 13:18:41 +02001895ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1896 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1897echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001898 { (exit 1); exit 1; }; }
1899
1900fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001901{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1902echo "${ECHO_T}$ac_cv_build" >&6; }
1903case $ac_cv_build in
1904*-*-*) ;;
1905*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1906echo "$as_me: error: invalid value of canonical build" >&2;}
1907 { (exit 1); exit 1; }; };;
1908esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001909build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001910ac_save_IFS=$IFS; IFS='-'
1911set x $ac_cv_build
1912shift
1913build_cpu=$1
1914build_vendor=$2
1915shift; shift
1916# Remember, the first character of IFS is used to create $*,
1917# except with old shells:
1918build_os=$*
1919IFS=$ac_save_IFS
1920case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001921
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001922
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001923{ echo "$as_me:$LINENO: checking host system type" >&5
1924echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001925if test "${ac_cv_host+set}" = set; then
1926 echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001928 if test "x$host_alias" = x; then
1929 ac_cv_host=$ac_cv_build
1930else
Jeremy White0ebeb532006-06-20 13:18:41 +02001931 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1932 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1933echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001934 { (exit 1); exit 1; }; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001935fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001936
1937fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001938{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1939echo "${ECHO_T}$ac_cv_host" >&6; }
1940case $ac_cv_host in
1941*-*-*) ;;
1942*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1943echo "$as_me: error: invalid value of canonical host" >&2;}
1944 { (exit 1); exit 1; }; };;
1945esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001946host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001947ac_save_IFS=$IFS; IFS='-'
1948set x $ac_cv_host
1949shift
1950host_cpu=$1
1951host_vendor=$2
1952shift; shift
1953# Remember, the first character of IFS is used to create $*,
1954# except with old shells:
1955host_os=$*
1956IFS=$ac_save_IFS
1957case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001959
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001960case $host in
1961 x86_64*linux*)
1962 if test "x$enable_win64" != "xyes"
1963 then
1964 test -n "$CC" || CC="gcc -m32"
1965 test -n "$LD" || LD="ld -m elf_i386"
1966 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001967 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001968 fi
1969 ;;
1970esac
1971
Alexandre Julliard71440f32005-05-19 14:28:17 +00001972case $host_cpu in
1973 *i[3456789]86*)
1974 if test "x$enable_win16" != "xno"
1975 then
1976 enable_win16="yes"
1977 fi
1978 ;;
1979esac
1980
1981WIN16_FILES="\$(WIN16_FILES)"
1982
1983WIN16_INSTALL="\$(WIN16_INSTALL)"
1984
1985if test "x$enable_win16" != "xyes"
1986then
1987 WIN16_FILES=""
1988 WIN16_INSTALL=""
1989fi
1990
1991
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001992{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1993echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02001994set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001995if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996 echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001998 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001999SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002000all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002001 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002002_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002003# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002004case `${MAKE-make} -f conftest.make 2>/dev/null` in
2005 *@@@%%%=?*=@@@%%%*)
2006 eval ac_cv_prog_make_${ac_make}_set=yes;;
2007 *)
2008 eval ac_cv_prog_make_${ac_make}_set=no;;
2009esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002010rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002011fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002012if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002013 { echo "$as_me:$LINENO: result: yes" >&5
2014echo "${ECHO_T}yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002015 SET_MAKE=
2016else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002017 { echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002019 SET_MAKE="MAKE=${MAKE-make}"
2020fi
2021
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002022ac_ext=c
2023ac_cpp='$CPP $CPPFLAGS'
2024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027if test -n "$ac_tool_prefix"; then
2028 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002030{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002032if test "${ac_cv_prog_CC+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002034else
2035 if test -n "$CC"; then
2036 ac_cv_prog_CC="$CC" # Let the user override the test.
2037else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002044 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 +00002045 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002050done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002051IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002052
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002053fi
2054fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002055CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002056if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002057 { echo "$as_me:$LINENO: result: $CC" >&5
2058echo "${ECHO_T}$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002059else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002060 { echo "$as_me:$LINENO: result: no" >&5
2061echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002062fi
2063
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002064
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065fi
2066if test -z "$ac_cv_prog_CC"; then
2067 ac_ct_CC=$CC
2068 # Extract the first word of "gcc", so it can be a program name with args.
2069set dummy gcc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002070{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075 if test -n "$ac_ct_CC"; then
2076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081 IFS=$as_save_IFS
2082 test -z "$as_dir" && as_dir=.
2083 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002084 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 +00002085 ac_cv_prog_ac_ct_CC="gcc"
2086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087 break 2
2088 fi
2089done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002090done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002091IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002092
2093fi
2094fi
2095ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002097 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002099else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002100 { echo "$as_me:$LINENO: result: no" >&5
2101echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002102fi
2103
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002104 if test "x$ac_ct_CC" = x; then
2105 CC=""
2106 else
2107 case $cross_compiling:$ac_tool_warned in
2108yes:)
2109{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110whose name does not start with the host triplet. If you think this
2111configuration is useful to you, please write to autoconf@gnu.org." >&5
2112echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113whose name does not start with the host triplet. If you think this
2114configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115ac_tool_warned=yes ;;
2116esac
2117 CC=$ac_ct_CC
2118 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002119else
2120 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002121fi
2122
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002123if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002124 if test -n "$ac_tool_prefix"; then
2125 # 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 +00002126set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002127{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002129if test "${ac_cv_prog_CC+set}" = set; then
2130 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002131else
2132 if test -n "$CC"; then
2133 ac_cv_prog_CC="$CC" # Let the user override the test.
2134else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136for as_dir in $PATH
2137do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002141 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 +00002142 ac_cv_prog_CC="${ac_tool_prefix}cc"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144 break 2
2145 fi
2146done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002147done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002148IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002149
2150fi
2151fi
2152CC=$ac_cv_prog_CC
2153if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002154 { echo "$as_me:$LINENO: result: $CC" >&5
2155echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002156else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002157 { echo "$as_me:$LINENO: result: no" >&5
2158echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002159fi
2160
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002161
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002162 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002163fi
2164if test -z "$CC"; then
2165 # Extract the first word of "cc", so it can be a program name with args.
2166set dummy cc; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002167{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002169if test "${ac_cv_prog_CC+set}" = set; then
2170 echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2174else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002175 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002182 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 +00002183 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2184 ac_prog_rejected=yes
2185 continue
2186 fi
2187 ac_cv_prog_CC="cc"
2188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189 break 2
2190 fi
2191done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002192done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002193IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002194
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002195if test $ac_prog_rejected = yes; then
2196 # We found a bogon in the path, so make sure we never use it.
2197 set dummy $ac_cv_prog_CC
2198 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002199 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002200 # We chose a different compiler from the bogus one.
2201 # However, it has the same basename, so the bogon will be chosen
2202 # first if we set CC to just the basename; use the full file name.
2203 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002204 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002205 fi
2206fi
2207fi
2208fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002209CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002210if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002211 { echo "$as_me:$LINENO: result: $CC" >&5
2212echo "${ECHO_T}$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002213else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002214 { echo "$as_me:$LINENO: result: no" >&5
2215echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002216fi
2217
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002218
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002219fi
2220if test -z "$CC"; then
2221 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002222 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002223 do
2224 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2225set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002228if test "${ac_cv_prog_CC+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002230else
2231 if test -n "$CC"; then
2232 ac_cv_prog_CC="$CC" # Let the user override the test.
2233else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235for as_dir in $PATH
2236do
2237 IFS=$as_save_IFS
2238 test -z "$as_dir" && as_dir=.
2239 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002240 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 +00002241 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 break 2
2244 fi
2245done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002246done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002247IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002248
Eric Pouech18ad24a2000-01-16 22:16:33 +00002249fi
2250fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002251CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00002252if test -n "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002253 { echo "$as_me:$LINENO: result: $CC" >&5
2254echo "${ECHO_T}$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002255else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002256 { echo "$as_me:$LINENO: result: no" >&5
2257echo "${ECHO_T}no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002258fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002259
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002260
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002261 test -n "$CC" && break
2262 done
2263fi
2264if test -z "$CC"; then
2265 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002266 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002267do
2268 # Extract the first word of "$ac_prog", so it can be a program name with args.
2269set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273 echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275 if test -n "$ac_ct_CC"; then
2276 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279for as_dir in $PATH
2280do
2281 IFS=$as_save_IFS
2282 test -z "$as_dir" && as_dir=.
2283 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002284 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 +00002285 ac_cv_prog_ac_ct_CC="$ac_prog"
2286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 break 2
2288 fi
2289done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002290done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002291IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002292
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002293fi
2294fi
2295ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296if test -n "$ac_ct_CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002297 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298echo "${ECHO_T}$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002299else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002300 { echo "$as_me:$LINENO: result: no" >&5
2301echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002303
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002304
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002305 test -n "$ac_ct_CC" && break
2306done
Eric Pouech18ad24a2000-01-16 22:16:33 +00002307
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002308 if test "x$ac_ct_CC" = x; then
2309 CC=""
2310 else
2311 case $cross_compiling:$ac_tool_warned in
2312yes:)
2313{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2314whose name does not start with the host triplet. If you think this
2315configuration is useful to you, please write to autoconf@gnu.org." >&5
2316echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2317whose name does not start with the host triplet. If you think this
2318configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2319ac_tool_warned=yes ;;
2320esac
2321 CC=$ac_ct_CC
2322 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002323fi
2324
2325fi
2326
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002327
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002328test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329See \`config.log' for more details." >&5
2330echo "$as_me: error: no acceptable C compiler found in \$PATH
2331See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002332 { (exit 1); exit 1; }; }
2333
2334# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002335echo "$as_me:$LINENO: checking for C compiler version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002336ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02002337{ (ac_try="$ac_compiler --version >&5"
2338case "(($ac_try" in
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2341esac
2342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2343 (eval "$ac_compiler --version >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002344 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002346 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02002347{ (ac_try="$ac_compiler -v >&5"
2348case "(($ac_try" in
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2351esac
2352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compiler -v >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002354 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002356 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02002357{ (ac_try="$ac_compiler -V >&5"
2358case "(($ac_try" in
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2361esac
2362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compiler -V >&5") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002364 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002366 (exit $ac_status); }
2367
2368cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00002374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375int
2376main ()
2377{
2378
2379 ;
2380 return 0;
2381}
2382_ACEOF
2383ac_clean_files_save=$ac_clean_files
Jeremy White0ebeb532006-06-20 13:18:41 +02002384ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002385# Try to create an executable without -o first, disregard a.out.
2386# It will help us diagnose broken compilers, and finding out an intuition
2387# of exeext.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002388{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2389echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002390ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Jeremy White0ebeb532006-06-20 13:18:41 +02002391#
2392# List of possible output files, starting from the most likely.
2393# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2394# only as a last resort. b.out is created by i960 compilers.
2395ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2396#
2397# The IRIX 6 linker writes into existing files which may not be
2398# executable, retaining their permissions. Remove them first so a
2399# subsequent execution test works.
2400ac_rmfiles=
2401for ac_file in $ac_files
2402do
2403 case $ac_file in
2404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2405 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2406 esac
2407done
2408rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002409
Jeremy White0ebeb532006-06-20 13:18:41 +02002410if { (ac_try="$ac_link_default"
2411case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414esac
2415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002419 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002420 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2421# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2422# in a Makefile. We should not override ac_cv_exeext if it was cached,
2423# so that the user can short-circuit this test for compilers unknown to
2424# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02002425for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002426do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002427 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002428 case $ac_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2430 ;;
2431 [ab].out )
2432 # We found the default executable, but exeext='' is most
2433 # certainly right.
2434 break;;
2435 *.* )
2436 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2437 then :; else
2438 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439 fi
2440 # We set ac_cv_exeext here because the later test for it is not
2441 # safe: cross compilers may not add the suffix if given an `-o'
2442 # argument, so we may need to know it at that point already.
2443 # Even if this section looks crufty: it has the advantage of
2444 # actually working.
2445 break;;
2446 * )
2447 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002448 esac
2449done
Jeremy White0ebeb532006-06-20 13:18:41 +02002450test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002451
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002452else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02002453 ac_file=''
2454fi
2455
2456{ echo "$as_me:$LINENO: result: $ac_file" >&5
2457echo "${ECHO_T}$ac_file" >&6; }
2458if test -z "$ac_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002459 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002460sed 's/^/| /' conftest.$ac_ext >&5
2461
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002462{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002463See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002464echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002465See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002466 { (exit 77); exit 77; }; }
2467fi
2468
Jeremy White0ebeb532006-06-20 13:18:41 +02002469ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02002470
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002471# Check that the compiler produces executables we can run. If not, either
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002472# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002473{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2474echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002475# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476# If not cross compiling, check that we can run a simple program.
2477if test "$cross_compiling" != yes; then
2478 if { ac_try='./$ac_file'
Jeremy White0ebeb532006-06-20 13:18:41 +02002479 { (case "(($ac_try" in
2480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481 *) ac_try_echo=$ac_try;;
2482esac
2483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2484 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002485 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002487 (exit $ac_status); }; }; then
2488 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002489 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002490 if test "$cross_compiling" = maybe; then
2491 cross_compiling=yes
2492 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002493 { { echo "$as_me:$LINENO: 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." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002496echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002497If you meant to cross compile, use \`--host'.
2498See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002499 { (exit 1); exit 1; }; }
2500 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002501 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002502fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002503{ echo "$as_me:$LINENO: result: yes" >&5
2504echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002505
Jeremy White0ebeb532006-06-20 13:18:41 +02002506rm -f a.out a.exe conftest$ac_cv_exeext b.out
2507ac_clean_files=$ac_clean_files_save
2508# Check that the compiler produces executables we can run. If not, either
2509# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002510{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2511echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2512{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2513echo "${ECHO_T}$cross_compiling" >&6; }
2514
2515{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2516echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002517if { (ac_try="$ac_link"
2518case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521esac
2522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002524 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002526 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002527 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2528# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2529# work properly (i.e., refer to `conftest.exe'), while it won't with
2530# `rm'.
2531for ac_file in conftest.exe conftest conftest.*; do
2532 test -f "$ac_file" || continue
2533 case $ac_file in
2534 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2535 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536 break;;
2537 * ) break;;
2538 esac
2539done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002540else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002541 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2542See \`config.log' for more details." >&5
2543echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2544See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002545 { (exit 1); exit 1; }; }
2546fi
2547
Jeremy White0ebeb532006-06-20 13:18:41 +02002548rm -f conftest$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002549{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2550echo "${ECHO_T}$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002551
2552rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002553EXEEXT=$ac_cv_exeext
2554ac_exeext=$EXEEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002555{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2556echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002557if test "${ac_cv_objext+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
Jeremy White0ebeb532006-06-20 13:18:41 +02002560 cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h. */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h. */
2566
2567int
2568main ()
2569{
2570
2571 ;
2572 return 0;
2573}
2574_ACEOF
2575rm -f conftest.o conftest.obj
2576if { (ac_try="$ac_compile"
2577case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2580esac
2581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002585 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002586 for ac_file in conftest.o conftest.obj conftest.*; do
2587 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002588 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002590 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2591 break;;
2592 esac
2593done
2594else
2595 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002596sed 's/^/| /' conftest.$ac_ext >&5
2597
2598{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2599See \`config.log' for more details." >&5
2600echo "$as_me: error: cannot compute suffix of object files: cannot compile
2601See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002602 { (exit 1); exit 1; }; }
2603fi
2604
Jeremy White0ebeb532006-06-20 13:18:41 +02002605rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002606fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002607{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2608echo "${ECHO_T}$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002609OBJEXT=$ac_cv_objext
2610ac_objext=$OBJEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002611{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2612echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002613if test "${ac_cv_c_compiler_gnu+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002617/* confdefs.h. */
2618_ACEOF
2619cat confdefs.h >>conftest.$ac_ext
2620cat >>conftest.$ac_ext <<_ACEOF
2621/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002622
2623int
2624main ()
2625{
2626#ifndef __GNUC__
2627 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002628#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002629
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002630 ;
2631 return 0;
2632}
2633_ACEOF
2634rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002635if { (ac_try="$ac_compile"
2636case "(($ac_try" in
2637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638 *) ac_try_echo=$ac_try;;
2639esac
2640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002642 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002647 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2649 { (case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652esac
2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002659 { (case "(($ac_try" in
2660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2661 *) ac_try_echo=$ac_try;;
2662esac
2663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2664 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002665 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002667 (exit $ac_status); }; }; then
2668 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002669else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002670 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002671sed 's/^/| /' conftest.$ac_ext >&5
2672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002673 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002674fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002675
Jeremy White0ebeb532006-06-20 13:18:41 +02002676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002677ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002678
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002679fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002680{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2681echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002682GCC=`test $ac_compiler_gnu = yes && echo yes`
2683ac_test_CFLAGS=${CFLAGS+set}
2684ac_save_CFLAGS=$CFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002685{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002687if test "${ac_cv_prog_cc_g+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002689else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002690 ac_save_c_werror_flag=$ac_c_werror_flag
2691 ac_c_werror_flag=yes
2692 ac_cv_prog_cc_g=no
2693 CFLAGS="-g"
2694 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002695/* confdefs.h. */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002700
2701int
2702main ()
2703{
2704
2705 ;
2706 return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002710if { (ac_try="$ac_compile"
2711case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714esac
2715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002717 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002722 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2724 { (case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2727esac
2728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002730 ac_status=$?
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; } &&
2733 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002734 { (case "(($ac_try" in
2735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2736 *) ac_try_echo=$ac_try;;
2737esac
2738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2739 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002740 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002742 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002743 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002744else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002745 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002746sed 's/^/| /' conftest.$ac_ext >&5
2747
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002748 CFLAGS=""
2749 cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h. */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h. */
2755
2756int
2757main ()
2758{
2759
2760 ;
2761 return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002765if { (ac_try="$ac_compile"
2766case "(($ac_try" in
2767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2769esac
2770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002772 ac_status=$?
2773 grep -v '^ *+' conftest.er1 >conftest.err
2774 rm -f conftest.er1
2775 cat conftest.err >&5
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2779 { (case "(($ac_try" in
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2782esac
2783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002785 ac_status=$?
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); }; } &&
2788 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002789 { (case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792esac
2793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002795 ac_status=$?
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; }; then
2798 :
2799else
2800 echo "$as_me: failed program was:" >&5
2801sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 ac_c_werror_flag=$ac_save_c_werror_flag
2804 CFLAGS="-g"
2805 cat >conftest.$ac_ext <<_ACEOF
2806/* confdefs.h. */
2807_ACEOF
2808cat confdefs.h >>conftest.$ac_ext
2809cat >>conftest.$ac_ext <<_ACEOF
2810/* end confdefs.h. */
2811
2812int
2813main ()
2814{
2815
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002821if { (ac_try="$ac_compile"
2822case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825esac
2826eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2827 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002828 ac_status=$?
2829 grep -v '^ *+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2835 { (case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838esac
2839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; } &&
2844 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002845 { (case "(($ac_try" in
2846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2847 *) ac_try_echo=$ac_try;;
2848esac
2849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2850 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002851 ac_status=$?
2852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }; }; then
2854 ac_cv_prog_cc_g=yes
2855else
2856 echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859
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 Julliarde2991ea1995-07-29 13:09:43 +00002863fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002864
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 +02002866fi
2867
Jeremy White0ebeb532006-06-20 13:18:41 +02002868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002869 ac_c_werror_flag=$ac_save_c_werror_flag
2870fi
2871{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002873if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002874 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002875elif test $ac_cv_prog_cc_g = yes; then
2876 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002877 CFLAGS="-g -O2"
2878 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002879 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002880 fi
2881else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002882 if test "$GCC" = yes; then
2883 CFLAGS="-O2"
2884 else
2885 CFLAGS=
2886 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002887fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002888{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2890if test "${ac_cv_prog_cc_c89+set}" = set; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002893 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002894ac_save_CC=$CC
2895cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002896/* confdefs.h. */
2897_ACEOF
2898cat confdefs.h >>conftest.$ac_ext
2899cat >>conftest.$ac_ext <<_ACEOF
2900/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002901#include <stdarg.h>
2902#include <stdio.h>
2903#include <sys/types.h>
2904#include <sys/stat.h>
2905/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2906struct buf { int x; };
2907FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908static char *e (p, i)
2909 char **p;
2910 int i;
2911{
2912 return p[i];
2913}
2914static char *f (char * (*g) (char **, int), char **p, ...)
2915{
2916 char *s;
2917 va_list v;
2918 va_start (v,p);
2919 s = g (p, va_arg (v,int));
2920 va_end (v);
2921 return s;
2922}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002923
2924/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2925 function prototypes and stuff, but not '\xHH' hex character constants.
2926 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002927 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00002928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2929 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002930 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00002931int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02002933/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934 inside strings and character constants. */
2935#define FOO(x) 'x'
2936int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002938int test (int i, double x);
2939struct s1 {int (*f) (int a);};
2940struct s2 {int (*f) (double a);};
2941int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942int argc;
2943char **argv;
2944int
2945main ()
2946{
2947return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2948 ;
2949 return 0;
2950}
2951_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002952for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002954do
2955 CC="$ac_save_CC $ac_arg"
2956 rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2963 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002964 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2971 { (case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974esac
2975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2976 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; } &&
2980 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002981 { (case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2984esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_try") 2>&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002990 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002991else
2992 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002993sed 's/^/| /' conftest.$ac_ext >&5
2994
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002995
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002996fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002997
Jeremy White0ebeb532006-06-20 13:18:41 +02002998rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002999 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003000done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003001rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003002CC=$ac_save_CC
3003
3004fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003005# AC_CACHE_VAL
3006case "x$ac_cv_prog_cc_c89" in
3007 x)
3008 { echo "$as_me:$LINENO: result: none needed" >&5
3009echo "${ECHO_T}none needed" >&6; } ;;
3010 xno)
3011 { echo "$as_me:$LINENO: result: unsupported" >&5
3012echo "${ECHO_T}unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003013 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003014 CC="$CC $ac_cv_prog_cc_c89"
3015 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3016echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003017esac
3018
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003019
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003020ac_ext=c
3021ac_cpp='$CPP $CPPFLAGS'
3022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003026ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003027ac_cpp='$CXXCPP $CPPFLAGS'
3028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003031if test -z "$CXX"; then
3032 if test -n "$CCC"; then
3033 CXX=$CCC
3034 else
3035 if test -n "$ac_tool_prefix"; then
3036 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 +00003037 do
3038 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3039set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003040{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003042if test "${ac_cv_prog_CXX+set}" = set; then
3043 echo $ECHO_N "(cached) $ECHO_C" >&6
3044else
3045 if test -n "$CXX"; then
3046 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3047else
3048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
3053 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003054 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 +00003055 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3057 break 2
3058 fi
3059done
3060done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003061IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003062
3063fi
3064fi
3065CXX=$ac_cv_prog_CXX
3066if test -n "$CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003067 { echo "$as_me:$LINENO: result: $CXX" >&5
3068echo "${ECHO_T}$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003069else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003070 { echo "$as_me:$LINENO: result: no" >&5
3071echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003072fi
3073
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003074
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003075 test -n "$CXX" && break
3076 done
3077fi
3078if test -z "$CXX"; then
3079 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003080 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 +00003081do
3082 # Extract the first word of "$ac_prog", so it can be a program name with args.
3083set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003084{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003086if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3088else
3089 if test -n "$ac_ct_CXX"; then
3090 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3091else
3092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093for as_dir in $PATH
3094do
3095 IFS=$as_save_IFS
3096 test -z "$as_dir" && as_dir=.
3097 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003098 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 +00003099 ac_cv_prog_ac_ct_CXX="$ac_prog"
3100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3101 break 2
3102 fi
3103done
3104done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003105IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003106
3107fi
3108fi
3109ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3110if test -n "$ac_ct_CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003111 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3112echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003113else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003114 { echo "$as_me:$LINENO: result: no" >&5
3115echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003116fi
3117
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003118
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003119 test -n "$ac_ct_CXX" && break
3120done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003121
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003122 if test "x$ac_ct_CXX" = x; then
3123 CXX="g++"
3124 else
3125 case $cross_compiling:$ac_tool_warned in
3126yes:)
3127{ echo "$as_me:$LINENO: 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." >&5
3130echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3131whose name does not start with the host triplet. If you think this
3132configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3133ac_tool_warned=yes ;;
3134esac
3135 CXX=$ac_ct_CXX
3136 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003137fi
3138
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003139 fi
3140fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003141# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003142echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003143ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02003144{ (ac_try="$ac_compiler --version >&5"
3145case "(($ac_try" in
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3148esac
3149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_compiler --version >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003151 ac_status=$?
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003154{ (ac_try="$ac_compiler -v >&5"
3155case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158esac
3159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compiler -v >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003164{ (ac_try="$ac_compiler -V >&5"
3165case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168esac
3169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3170 (eval "$ac_compiler -V >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003171 ac_status=$?
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); }
3174
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003175{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3176echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003177if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180 cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h. */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h. */
3186
3187int
3188main ()
3189{
3190#ifndef __GNUC__
3191 choke me
3192#endif
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003199if { (ac_try="$ac_compile"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3205 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003206 ac_status=$?
3207 grep -v '^ *+' conftest.er1 >conftest.err
3208 rm -f conftest.er1
3209 cat conftest.err >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3213 { (case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
3217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; } &&
3222 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003223 { (case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226esac
3227eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3228 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003229 ac_status=$?
3230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231 (exit $ac_status); }; }; then
3232 ac_compiler_gnu=yes
3233else
3234 echo "$as_me: failed program was:" >&5
3235sed 's/^/| /' conftest.$ac_ext >&5
3236
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003237 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003238fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003239
Jeremy White0ebeb532006-06-20 13:18:41 +02003240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003241ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3242
3243fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003244{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003246GXX=`test $ac_compiler_gnu = yes && echo yes`
3247ac_test_CXXFLAGS=${CXXFLAGS+set}
3248ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003249{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003251if test "${ac_cv_prog_cxx_g+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003254 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255 ac_cxx_werror_flag=yes
3256 ac_cv_prog_cxx_g=no
3257 CXXFLAGS="-g"
3258 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003259/* confdefs.h. */
3260_ACEOF
3261cat confdefs.h >>conftest.$ac_ext
3262cat >>conftest.$ac_ext <<_ACEOF
3263/* end confdefs.h. */
3264
3265int
3266main ()
3267{
3268
3269 ;
3270 return 0;
3271}
3272_ACEOF
3273rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003274if { (ac_try="$ac_compile"
3275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
3279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3288 { (case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291esac
3292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003294 ac_status=$?
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; } &&
3297 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003298 { (case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301esac
3302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003304 ac_status=$?
3305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306 (exit $ac_status); }; }; then
3307 ac_cv_prog_cxx_g=yes
3308else
3309 echo "$as_me: failed program was:" >&5
3310sed 's/^/| /' conftest.$ac_ext >&5
3311
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003312 CXXFLAGS=""
3313 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003319
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003320int
3321main ()
3322{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003323
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003324 ;
3325 return 0;
3326}
3327_ACEOF
3328rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003329if { (ac_try="$ac_compile"
3330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
3334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003336 ac_status=$?
3337 grep -v '^ *+' conftest.er1 >conftest.err
3338 rm -f conftest.er1
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346esac
3347eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; } &&
3352 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003353 { (case "(($ac_try" in
3354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355 *) ac_try_echo=$ac_try;;
3356esac
3357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 :
3363else
3364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
3366
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003367 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3368 CXXFLAGS="-g"
3369 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003370/* confdefs.h. */
3371_ACEOF
3372cat confdefs.h >>conftest.$ac_ext
3373cat >>conftest.$ac_ext <<_ACEOF
3374/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003375
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003376int
3377main ()
3378{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003379
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003385if { (ac_try="$ac_compile"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003398 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3399 { (case "(($ac_try" in
3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3402esac
3403eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }; } &&
3408 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003409 { (case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003418 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003423
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003424fi
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 +02003430fi
3431
Jeremy White0ebeb532006-06-20 13:18:41 +02003432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3434fi
3435{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3436echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3437if test "$ac_test_CXXFLAGS" = set; then
3438 CXXFLAGS=$ac_save_CXXFLAGS
3439elif test $ac_cv_prog_cxx_g = yes; then
3440 if test "$GXX" = yes; then
3441 CXXFLAGS="-g -O2"
3442 else
3443 CXXFLAGS="-g"
3444 fi
3445else
3446 if test "$GXX" = yes; then
3447 CXXFLAGS="-O2"
3448 else
3449 CXXFLAGS=
3450 fi
3451fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003452ac_ext=c
3453ac_cpp='$CPP $CPPFLAGS'
3454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003458if test -n "$ac_tool_prefix"; then
3459 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3460set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003463if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003466 if test -n "$CPPBIN"; then
3467 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003468else
3469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470for as_dir in $PATH
3471do
3472 IFS=$as_save_IFS
3473 test -z "$as_dir" && as_dir=.
3474 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003475 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 +00003476 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 break 2
3479 fi
3480done
3481done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003482IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003483
3484fi
3485fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003486CPPBIN=$ac_cv_prog_CPPBIN
3487if test -n "$CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003488 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3489echo "${ECHO_T}$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003490else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003491 { echo "$as_me:$LINENO: result: no" >&5
3492echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003493fi
3494
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003495
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003496fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003497if test -z "$ac_cv_prog_CPPBIN"; then
3498 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003499 # Extract the first word of "cpp", so it can be a program name with args.
3500set dummy cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003501{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003503if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003506 if test -n "$ac_ct_CPPBIN"; then
3507 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003508else
3509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
3514 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003515 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 +00003516 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 break 2
3519 fi
3520done
3521done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003522IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003523
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003524fi
3525fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003526ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3527if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003528 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3529echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003530else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003531 { echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003533fi
3534
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003535 if test "x$ac_ct_CPPBIN" = x; then
3536 CPPBIN="cpp"
3537 else
3538 case $cross_compiling:$ac_tool_warned in
3539yes:)
3540{ echo "$as_me:$LINENO: 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." >&5
3543echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3544whose name does not start with the host triplet. If you think this
3545configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3546ac_tool_warned=yes ;;
3547esac
3548 CPPBIN=$ac_ct_CPPBIN
3549 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003550else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003551 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003552fi
3553
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003554
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003555{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3556echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003557if test "${wine_cv_toolsdir+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3559else
3560 if test -z "$with_wine_tools"; then
3561 if test "$cross_compiling" = "yes"; then
3562 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3563echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3564 { (exit 1); exit 1; }; }
3565 else
3566 wine_cv_toolsdir="\$(TOPOBJDIR)"
3567 fi
3568 elif test -d "$with_wine_tools/tools/winebuild"; then
3569 case $with_wine_tools in
3570 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3571 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3572 esac
3573 else
3574 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3575echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3576 { (exit 1); exit 1; }; }
3577 fi
3578fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003579{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3580echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003581TOOLSDIR=$wine_cv_toolsdir
3582
3583
3584
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003585ac_ext=c
3586ac_cpp='$CPP $CPPFLAGS'
3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003590{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3591echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003592# On Suns, sometimes $CPP names a directory.
3593if test -n "$CPP" && test -d "$CPP"; then
3594 CPP=
3595fi
3596if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003597 if test "${ac_cv_prog_CPP+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003599else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003600 # Double quotes because CPP needs to be expanded
3601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3602 do
3603 ac_preproc_ok=false
3604for ac_c_preproc_warn_flag in '' yes
3605do
3606 # Use a header file that comes with gcc, so configuring glibc
3607 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003610 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003613/* confdefs.h. */
3614_ACEOF
3615cat confdefs.h >>conftest.$ac_ext
3616cat >>conftest.$ac_ext <<_ACEOF
3617/* end confdefs.h. */
3618#ifdef __STDC__
3619# include <limits.h>
3620#else
3621# include <assert.h>
3622#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003623 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003624_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003625if { (ac_try="$ac_cpp conftest.$ac_ext"
3626case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629esac
3630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003633 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003634 rm -f conftest.er1
3635 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003637 (exit $ac_status); } >/dev/null; then
3638 if test -s conftest.err; then
3639 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003641 else
3642 ac_cpp_err=
3643 fi
3644else
3645 ac_cpp_err=yes
3646fi
3647if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003648 :
3649else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003651sed 's/^/| /' conftest.$ac_ext >&5
3652
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003653 # Broken: fails on valid input.
3654continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003655fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003656
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003657rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003658
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003659 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003660 # can be detected and how.
3661 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003667#include <ac_nonexistent.h>
3668_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003669if { (ac_try="$ac_cpp conftest.$ac_ext"
3670case "(($ac_try" in
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3673esac
3674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003676 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003677 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003678 rm -f conftest.er1
3679 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003681 (exit $ac_status); } >/dev/null; then
3682 if test -s conftest.err; then
3683 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003684 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003685 else
3686 ac_cpp_err=
3687 fi
3688else
3689 ac_cpp_err=yes
3690fi
3691if test -z "$ac_cpp_err"; then
3692 # Broken: success on invalid input.
3693continue
3694else
3695 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003696sed 's/^/| /' conftest.$ac_ext >&5
3697
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003698 # Passes both tests.
3699ac_preproc_ok=:
3700break
3701fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003702
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003703rm -f conftest.err conftest.$ac_ext
3704
3705done
3706# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3707rm -f conftest.err conftest.$ac_ext
3708if $ac_preproc_ok; then
3709 break
3710fi
3711
3712 done
3713 ac_cv_prog_CPP=$CPP
3714
3715fi
3716 CPP=$ac_cv_prog_CPP
3717else
3718 ac_cv_prog_CPP=$CPP
3719fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003720{ echo "$as_me:$LINENO: result: $CPP" >&5
3721echo "${ECHO_T}$CPP" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722ac_preproc_ok=false
3723for ac_c_preproc_warn_flag in '' yes
3724do
3725 # Use a header file that comes with gcc, so configuring glibc
3726 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3728 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003729 # On the NeXT, cc -E runs the code through the compiler's parser,
3730 # not just through cpp. "Syntax error" is here to catch this case.
3731 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003732/* confdefs.h. */
3733_ACEOF
3734cat confdefs.h >>conftest.$ac_ext
3735cat >>conftest.$ac_ext <<_ACEOF
3736/* end confdefs.h. */
3737#ifdef __STDC__
3738# include <limits.h>
3739#else
3740# include <assert.h>
3741#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003742 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003743_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003744if { (ac_try="$ac_cpp conftest.$ac_ext"
3745case "(($ac_try" in
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3748esac
3749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003751 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003752 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003753 rm -f conftest.er1
3754 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003756 (exit $ac_status); } >/dev/null; then
3757 if test -s conftest.err; then
3758 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003760 else
3761 ac_cpp_err=
3762 fi
3763else
3764 ac_cpp_err=yes
3765fi
3766if test -z "$ac_cpp_err"; then
3767 :
3768else
3769 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003770sed 's/^/| /' conftest.$ac_ext >&5
3771
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003772 # Broken: fails on valid input.
3773continue
3774fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003775
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003776rm -f conftest.err conftest.$ac_ext
3777
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003778 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003779 # can be detected and how.
3780 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003781/* confdefs.h. */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003786#include <ac_nonexistent.h>
3787_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003788if { (ac_try="$ac_cpp conftest.$ac_ext"
3789case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792esac
3793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003795 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003796 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797 rm -f conftest.er1
3798 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800 (exit $ac_status); } >/dev/null; then
3801 if test -s conftest.err; then
3802 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003804 else
3805 ac_cpp_err=
3806 fi
3807else
3808 ac_cpp_err=yes
3809fi
3810if test -z "$ac_cpp_err"; then
3811 # Broken: success on invalid input.
3812continue
3813else
3814 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003815sed 's/^/| /' conftest.$ac_ext >&5
3816
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003817 # Passes both tests.
3818ac_preproc_ok=:
3819break
3820fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003821
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003822rm -f conftest.err conftest.$ac_ext
3823
3824done
3825# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3826rm -f conftest.err conftest.$ac_ext
3827if $ac_preproc_ok; then
3828 :
3829else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003830 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3831See \`config.log' for more details." >&5
3832echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3833See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003834 { (exit 1); exit 1; }; }
3835fi
3836
3837ac_ext=c
3838ac_cpp='$CPP $CPPFLAGS'
3839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003843
Jeremy White0ebeb532006-06-20 13:18:41 +02003844{ echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003845echo $ECHO_N "checking for X... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003846
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003847
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003848# Check whether --with-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003849if test "${with_x+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003850 withval=$with_x;
3851fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003852
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003853# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003854if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003855 # The user explicitly disabled X.
3856 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003857else
Jeremy White0ebeb532006-06-20 13:18:41 +02003858 case $x_includes,$x_libraries in #(
3859 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3860echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3861 { (exit 1); exit 1; }; };; #(
3862 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003864else
3865 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003866ac_x_includes=no ac_x_libraries=no
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003867rm -f -r conftest.dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003868if mkdir conftest.dir; then
3869 cd conftest.dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003870 cat >Imakefile <<'_ACEOF'
Jeremy White0ebeb532006-06-20 13:18:41 +02003871incroot:
3872 @echo incroot='${INCROOT}'
3873usrlibdir:
3874 @echo usrlibdir='${USRLIBDIR}'
3875libdir:
3876 @echo libdir='${LIBDIR}'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003877_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003878 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003879 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02003880 for ac_var in incroot usrlibdir libdir; do
3881 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3882 done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003883 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3884 for ac_extension in a so sl; do
Jeremy White0ebeb532006-06-20 13:18:41 +02003885 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3886 test -f "$ac_im_libdir/libX11.$ac_extension"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003887 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003888 fi
3889 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003890 # Screen out bogus values from the imake configuration. They are
3891 # bogus both because they are the default anyway, and because
3892 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003893 case $ac_im_incroot in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003894 /usr/include) ac_x_includes= ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003896 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003897 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003898 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003899 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003900 esac
3901 fi
3902 cd ..
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003903 rm -f -r conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003904fi
3905
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003906# Standard set of common directories for X headers.
3907# Check X11 before X11Rn because it is often a symlink to the current release.
3908ac_x_header_dirs='
3909/usr/X11/include
3910/usr/X11R6/include
3911/usr/X11R5/include
3912/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003913
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003914/usr/include/X11
3915/usr/include/X11R6
3916/usr/include/X11R5
3917/usr/include/X11R4
3918
3919/usr/local/X11/include
3920/usr/local/X11R6/include
3921/usr/local/X11R5/include
3922/usr/local/X11R4/include
3923
3924/usr/local/include/X11
3925/usr/local/include/X11R6
3926/usr/local/include/X11R5
3927/usr/local/include/X11R4
3928
3929/usr/X386/include
3930/usr/x386/include
3931/usr/XFree86/include/X11
3932
3933/usr/include
3934/usr/local/include
3935/usr/unsupported/include
3936/usr/athena/include
3937/usr/local/x11r5/include
3938/usr/lpp/Xamples/include
3939
3940/usr/openwin/include
3941/usr/openwin/share/include'
3942
3943if test "$ac_x_includes" = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003944 # Guess where to find include files, by looking for Xlib.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003945 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003946 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
Jeremy White0ebeb532006-06-20 13:18:41 +02003952#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003953_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003954if { (ac_try="$ac_cpp conftest.$ac_ext"
3955case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958esac
3959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003961 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003962 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003963 rm -f conftest.er1
3964 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003966 (exit $ac_status); } >/dev/null; then
3967 if test -s conftest.err; then
3968 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003970 else
3971 ac_cpp_err=
3972 fi
3973else
3974 ac_cpp_err=yes
3975fi
3976if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003977 # We can compile using X headers with no special include directory.
3978ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003979else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003980 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003981sed 's/^/| /' conftest.$ac_ext >&5
3982
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003983 for ac_dir in $ac_x_header_dirs; do
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003984 if test -r "$ac_dir/X11/Xlib.h"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003985 ac_x_includes=$ac_dir
3986 break
3987 fi
3988done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003989fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003990
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003991rm -f conftest.err conftest.$ac_ext
3992fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003993
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003994if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003995 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003996 # See if we find them without any special options.
3997 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003998 ac_save_LIBS=$LIBS
Alexandre Julliardd01063e2006-06-22 12:07:57 +02003999 LIBS="-lX11 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004000 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004006#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004007int
4008main ()
4009{
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004010XrmInitialize ()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004011 ;
4012 return 0;
4013}
4014_ACEOF
4015rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004016if { (ac_try="$ac_link"
4017case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020esac
4021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004023 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004028 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030 { (case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; } &&
4039 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004040 { (case "(($ac_try" in
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4043esac
4044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004046 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004048 (exit $ac_status); }; }; then
4049 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004050# We can link X programs with no special library path.
4051ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004052else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004053 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004054sed 's/^/| /' conftest.$ac_ext >&5
4055
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004056 LIBS=$ac_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004057for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004058do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004059 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004060 for ac_extension in a so sl; do
Alexandre Julliardd01063e2006-06-22 12:07:57 +02004061 if test -r "$ac_dir/libX11.$ac_extension"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004062 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004063 break 2
4064 fi
4065 done
4066done
4067fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004068
Jeremy White0ebeb532006-06-20 13:18:41 +02004069rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004070 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004071fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004072
Jeremy White0ebeb532006-06-20 13:18:41 +02004073case $ac_x_includes,$ac_x_libraries in #(
4074 no,* | *,no | *\'*)
4075 # Didn't find X, or a directory has "'" in its name.
4076 ac_cv_have_x="have_x=no";; #(
4077 *)
4078 # Record where we found X for the cache.
4079 ac_cv_have_x="have_x=yes\
4080 ac_x_includes='$ac_x_includes'\
4081 ac_x_libraries='$ac_x_libraries'"
4082esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004083fi
Jeremy White0ebeb532006-06-20 13:18:41 +02004084;; #(
4085 *) have_x=yes;;
4086 esac
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004087 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004088fi # $with_x != no
4089
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004090if test "$have_x" != yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004091 { echo "$as_me:$LINENO: result: $have_x" >&5
4092echo "${ECHO_T}$have_x" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004093 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004094else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004095 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004096 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4097 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004098 # Update the cache value to reflect the command line values.
Jeremy White0ebeb532006-06-20 13:18:41 +02004099 ac_cv_have_x="have_x=yes\
4100 ac_x_includes='$x_includes'\
4101 ac_x_libraries='$x_libraries'"
4102 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4103echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004104fi
4105
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004106if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004107 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004109cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004110#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004111_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004112
4113 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004114else
4115 if test -n "$x_includes"; then
4116 X_CFLAGS="$X_CFLAGS -I$x_includes"
4117 fi
4118
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004119 # It would also be nice to do this for all -L options, not just this one.
4120 if test -n "$x_libraries"; then
4121 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004122 # For Solaris; some versions of Sun CC require a space after -R and
4123 # others require no space. Words are not sufficient . . . .
Alexandre Julliardc8278922006-08-04 22:11:00 +02004124 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004125echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
Alexandre Julliardc8278922006-08-04 22:11:00 +02004126 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4127 ac_xsave_c_werror_flag=$ac_c_werror_flag
4128 ac_c_werror_flag=yes
4129 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004135
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004136int
4137main ()
4138{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004140 ;
4141 return 0;
4142}
4143_ACEOF
4144rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004145if { (ac_try="$ac_link"
4146case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4149esac
4150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004152 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004153 grep -v '^ *+' conftest.er1 >conftest.err
4154 rm -f conftest.er1
4155 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004157 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4159 { (case "(($ac_try" in
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4162esac
4163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4164 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; } &&
4168 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4172esac
4173eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004175 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004177 (exit $ac_status); }; }; then
Alexandre Julliardc8278922006-08-04 22:11:00 +02004178 { echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004179echo "${ECHO_T}no" >&6; }
Alexandre Julliardc8278922006-08-04 22:11:00 +02004180 X_LIBS="$X_LIBS -R$x_libraries"
4181else
4182 echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004185 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardc8278922006-08-04 22:11:00 +02004186 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004193int
4194main ()
4195{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004196
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004197 ;
4198 return 0;
4199}
4200_ACEOF
4201rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004202if { (ac_try="$ac_link"
4203case "(($ac_try" in
4204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4205 *) ac_try_echo=$ac_try;;
4206esac
4207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4208 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004209 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004210 grep -v '^ *+' conftest.er1 >conftest.err
4211 rm -f conftest.er1
4212 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004214 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4216 { (case "(($ac_try" in
4217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4218 *) ac_try_echo=$ac_try;;
4219esac
4220eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4221 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004222 ac_status=$?
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; } &&
4225 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004226 { (case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4231 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004232 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004234 (exit $ac_status); }; }; then
Alexandre Julliardc8278922006-08-04 22:11:00 +02004235 { echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004236echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004237 X_LIBS="$X_LIBS -R $x_libraries"
Alexandre Julliardc8278922006-08-04 22:11:00 +02004238else
4239 echo "$as_me: failed program was:" >&5
4240sed 's/^/| /' conftest.$ac_ext >&5
4241
4242 { echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004243echo "${ECHO_T}neither works" >&6; }
Alexandre Julliardc8278922006-08-04 22:11:00 +02004244fi
4245
4246rm -f core conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248fi
4249
4250rm -f core conftest.err conftest.$ac_objext \
4251 conftest$ac_exeext conftest.$ac_ext
4252 ac_c_werror_flag=$ac_xsave_c_werror_flag
4253 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004254 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004255
4256 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004257 # Do this before checking for the system-independent R6 libraries
4258 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004259
4260 if test "$ISC" = yes; then
4261 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4262 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004263 # Martyn Johnson says this is needed for Ultrix, if the X
4264 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004265 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004266 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4267 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004273
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004274/* Override any GCC internal prototype to avoid an error.
4275 Use char because int might match the return type of a GCC
4276 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004277#ifdef __cplusplus
4278extern "C"
4279#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004280char XOpenDisplay ();
4281int
4282main ()
4283{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004284return XOpenDisplay ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004285 ;
4286 return 0;
4287}
4288_ACEOF
4289rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004290if { (ac_try="$ac_link"
4291case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294esac
4295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004297 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004298 grep -v '^ *+' conftest.er1 >conftest.err
4299 rm -f conftest.er1
4300 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004302 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4304 { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307esac
4308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4309 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }; } &&
4313 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4317esac
4318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004320 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004322 (exit $ac_status); }; }; then
4323 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004324else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004325 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004326sed 's/^/| /' conftest.$ac_ext >&5
4327
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004328 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4329echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004330if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333 ac_check_lib_save_LIBS=$LIBS
4334LIBS="-ldnet $LIBS"
4335cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004336/* confdefs.h. */
4337_ACEOF
4338cat confdefs.h >>conftest.$ac_ext
4339cat >>conftest.$ac_ext <<_ACEOF
4340/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004341
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004342/* Override any GCC internal prototype to avoid an error.
4343 Use char because int might match the return type of a GCC
4344 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004345#ifdef __cplusplus
4346extern "C"
4347#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004348char dnet_ntoa ();
4349int
4350main ()
4351{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004352return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004353 ;
4354 return 0;
4355}
4356_ACEOF
4357rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004358if { (ac_try="$ac_link"
4359case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4362esac
4363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004365 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004370 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4372 { (case "(($ac_try" in
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4375esac
4376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004378 ac_status=$?
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }; } &&
4381 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004382 { (case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004388 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004390 (exit $ac_status); }; }; then
4391 ac_cv_lib_dnet_dnet_ntoa=yes
4392else
4393 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004394sed 's/^/| /' conftest.$ac_ext >&5
4395
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004396 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004397fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004398
Jeremy White0ebeb532006-06-20 13:18:41 +02004399rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004400 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004401LIBS=$ac_check_lib_save_LIBS
4402fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004403{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4404echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004405if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004406 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004407fi
4408
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004409 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004410 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4411echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004414else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004416LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004417cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004418/* confdefs.h. */
4419_ACEOF
4420cat confdefs.h >>conftest.$ac_ext
4421cat >>conftest.$ac_ext <<_ACEOF
4422/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004423
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004424/* Override any GCC internal prototype to avoid an error.
4425 Use char because int might match the return type of a GCC
4426 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004427#ifdef __cplusplus
4428extern "C"
4429#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430char dnet_ntoa ();
4431int
4432main ()
4433{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004434return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004435 ;
4436 return 0;
4437}
4438_ACEOF
4439rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004440if { (ac_try="$ac_link"
4441case "(($ac_try" in
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4444esac
4445eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004447 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004448 grep -v '^ *+' conftest.er1 >conftest.err
4449 rm -f conftest.er1
4450 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4454 { (case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457esac
4458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004460 ac_status=$?
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); }; } &&
4463 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004464 { (case "(($ac_try" in
4465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466 *) ac_try_echo=$ac_try;;
4467esac
4468eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4469 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004472 (exit $ac_status); }; }; then
4473 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004474else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004475 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004476sed 's/^/| /' conftest.$ac_ext >&5
4477
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004478 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004479fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004480
Jeremy White0ebeb532006-06-20 13:18:41 +02004481rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004482 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004483LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004484fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004485{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4486echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004487if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004488 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004489fi
4490
4491 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004492fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004493
Jeremy White0ebeb532006-06-20 13:18:41 +02004494rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004495 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004496 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004497
4498 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4499 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004501 # needs -lnsl.
4502 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004503 # on Irix 5.2, according to T.E. Dickey.
4504 # The functions gethostbyname, getservbyname, and inet_addr are
4505 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004506 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4507echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004508if test "${ac_cv_func_gethostbyname+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004510else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004511 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004512/* confdefs.h. */
4513_ACEOF
4514cat confdefs.h >>conftest.$ac_ext
4515cat >>conftest.$ac_ext <<_ACEOF
4516/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004517/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4519#define gethostbyname innocuous_gethostbyname
4520
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004521/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004522 which can conflict with char gethostbyname (); below.
4523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4524 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004525
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004526#ifdef __STDC__
4527# include <limits.h>
4528#else
4529# include <assert.h>
4530#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004531
4532#undef gethostbyname
4533
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004534/* Override any GCC internal prototype to avoid an error.
4535 Use char because int might match the return type of a GCC
4536 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004537#ifdef __cplusplus
4538extern "C"
4539#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004540char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004541/* The GNU C library defines this for functions which it implements
4542 to always fail with ENOSYS. Some functions are actually named
4543 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004544#if defined __stub_gethostbyname || defined __stub___gethostbyname
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004545choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004546#endif
4547
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004548int
4549main ()
4550{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004551return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004552 ;
4553 return 0;
4554}
4555_ACEOF
4556rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004557if { (ac_try="$ac_link"
4558case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561esac
4562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004564 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004569 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4571 { (case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574esac
4575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4576 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004577 ac_status=$?
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }; } &&
4580 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004581 { (case "(($ac_try" in
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4584esac
4585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4586 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004587 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004589 (exit $ac_status); }; }; then
4590 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004591else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004592 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004593sed 's/^/| /' conftest.$ac_ext >&5
4594
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004595 ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004596fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004597
Jeremy White0ebeb532006-06-20 13:18:41 +02004598rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004599 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004600fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004601{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4602echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004603
4604 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004605 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4606echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004607if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004609else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004610 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004611LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004612cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004613/* confdefs.h. */
4614_ACEOF
4615cat confdefs.h >>conftest.$ac_ext
4616cat >>conftest.$ac_ext <<_ACEOF
4617/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004618
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004619/* Override any GCC internal prototype to avoid an error.
4620 Use char because int might match the return type of a GCC
4621 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004622#ifdef __cplusplus
4623extern "C"
4624#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004625char gethostbyname ();
4626int
4627main ()
4628{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004629return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004630 ;
4631 return 0;
4632}
4633_ACEOF
4634rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004635if { (ac_try="$ac_link"
4636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
4640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4641 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004642 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004647 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4649 { (case "(($ac_try" in
4650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4652esac
4653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4654 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; } &&
4658 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004659 { (case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662esac
4663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004665 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004667 (exit $ac_status); }; }; then
4668 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004669else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004670 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004671sed 's/^/| /' conftest.$ac_ext >&5
4672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004673 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004674fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004675
Jeremy White0ebeb532006-06-20 13:18:41 +02004676rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004677 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004678LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004679fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004680{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4681echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004682if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004684fi
4685
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004686 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004687 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4688echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692 ac_check_lib_save_LIBS=$LIBS
4693LIBS="-lbsd $LIBS"
4694cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004695/* confdefs.h. */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004701/* Override any GCC internal prototype to avoid an error.
4702 Use char because int might match the return type of a GCC
4703 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004704#ifdef __cplusplus
4705extern "C"
4706#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004707char gethostbyname ();
4708int
4709main ()
4710{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004711return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004712 ;
4713 return 0;
4714}
4715_ACEOF
4716rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004717if { (ac_try="$ac_link"
4718case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
4722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004724 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004729 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4731 { (case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734esac
4735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004737 ac_status=$?
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004741 { (case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004747 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004749 (exit $ac_status); }; }; then
4750 ac_cv_lib_bsd_gethostbyname=yes
4751else
4752 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004753sed 's/^/| /' conftest.$ac_ext >&5
4754
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004755 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004756fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004757
Jeremy White0ebeb532006-06-20 13:18:41 +02004758rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004759 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004760LIBS=$ac_check_lib_save_LIBS
4761fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004762{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4763echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004764if test $ac_cv_lib_bsd_gethostbyname = yes; then
4765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4766fi
4767
4768 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004769 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004770
4771 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004772 # socket/setsockopt and other routines are undefined under SCO ODT
4773 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004774 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00004775 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004776 # must be given before -lnsl if both are needed. We assume that
4777 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004778 { echo "$as_me:$LINENO: checking for connect" >&5
4779echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004780if test "${ac_cv_func_connect+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004782else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004783 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004784/* confdefs.h. */
4785_ACEOF
4786cat confdefs.h >>conftest.$ac_ext
4787cat >>conftest.$ac_ext <<_ACEOF
4788/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004789/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4791#define connect innocuous_connect
4792
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004793/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004794 which can conflict with char connect (); below.
4795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004797
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004798#ifdef __STDC__
4799# include <limits.h>
4800#else
4801# include <assert.h>
4802#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004803
4804#undef connect
4805
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004806/* Override any GCC internal prototype to avoid an error.
4807 Use char because int might match the return type of a GCC
4808 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004809#ifdef __cplusplus
4810extern "C"
4811#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004812char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004813/* The GNU C library defines this for functions which it implements
4814 to always fail with ENOSYS. Some functions are actually named
4815 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004816#if defined __stub_connect || defined __stub___connect
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004817choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004818#endif
4819
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004820int
4821main ()
4822{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004823return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004824 ;
4825 return 0;
4826}
4827_ACEOF
4828rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004829if { (ac_try="$ac_link"
4830case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833esac
4834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004836 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004841 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4843 { (case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846esac
4847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }; } &&
4852 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004853 { (case "(($ac_try" in
4854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4855 *) ac_try_echo=$ac_try;;
4856esac
4857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4858 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004859 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004861 (exit $ac_status); }; }; then
4862 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004863else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004864 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004865sed 's/^/| /' conftest.$ac_ext >&5
4866
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004867 ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004868fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004869
Jeremy White0ebeb532006-06-20 13:18:41 +02004870rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004871 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004872fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004873{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4874echo "${ECHO_T}$ac_cv_func_connect" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004875
4876 if test $ac_cv_func_connect = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004877 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4878echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004879if test "${ac_cv_lib_socket_connect+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004881else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004882 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004883LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004884cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004885/* confdefs.h. */
4886_ACEOF
4887cat confdefs.h >>conftest.$ac_ext
4888cat >>conftest.$ac_ext <<_ACEOF
4889/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004890
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004891/* Override any GCC internal prototype to avoid an error.
4892 Use char because int might match the return type of a GCC
4893 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004894#ifdef __cplusplus
4895extern "C"
4896#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897char connect ();
4898int
4899main ()
4900{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004901return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004902 ;
4903 return 0;
4904}
4905_ACEOF
4906rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004907if { (ac_try="$ac_link"
4908case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911esac
4912eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004914 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004919 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4921 { (case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924esac
4925eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4926 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004927 ac_status=$?
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); }; } &&
4930 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004931 { (case "(($ac_try" in
4932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4933 *) ac_try_echo=$ac_try;;
4934esac
4935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4936 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004937 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004939 (exit $ac_status); }; }; then
4940 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004941else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004942 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004943sed 's/^/| /' conftest.$ac_ext >&5
4944
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004945 ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004946fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004947
Jeremy White0ebeb532006-06-20 13:18:41 +02004948rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004949 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004950LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004951fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004952{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4953echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004954if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004955 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004956fi
4957
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004958 fi
4959
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004960 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004961 { echo "$as_me:$LINENO: checking for remove" >&5
4962echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004963if test "${ac_cv_func_remove+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004965else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004966 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004967/* confdefs.h. */
4968_ACEOF
4969cat confdefs.h >>conftest.$ac_ext
4970cat >>conftest.$ac_ext <<_ACEOF
4971/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004972/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4974#define remove innocuous_remove
4975
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004976/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004977 which can conflict with char remove (); below.
4978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4979 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004980
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004981#ifdef __STDC__
4982# include <limits.h>
4983#else
4984# include <assert.h>
4985#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004986
4987#undef remove
4988
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004989/* Override any GCC internal prototype to avoid an error.
4990 Use char because int might match the return type of a GCC
4991 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004992#ifdef __cplusplus
4993extern "C"
4994#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004995char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004996/* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004999#if defined __stub_remove || defined __stub___remove
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005000choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005001#endif
5002
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005003int
5004main ()
5005{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005006return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005007 ;
5008 return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005012if { (ac_try="$ac_link"
5013case "(($ac_try" in
5014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5015 *) ac_try_echo=$ac_try;;
5016esac
5017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5018 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005019 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005024 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026 { (case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029esac
5030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005036 { (case "(($ac_try" in
5037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038 *) ac_try_echo=$ac_try;;
5039esac
5040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005042 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005044 (exit $ac_status); }; }; then
5045 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005046else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005047 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005048sed 's/^/| /' conftest.$ac_ext >&5
5049
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005050 ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005051fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005052
Jeremy White0ebeb532006-06-20 13:18:41 +02005053rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005054 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005055fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005056{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5057echo "${ECHO_T}$ac_cv_func_remove" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005058
5059 if test $ac_cv_func_remove = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005060 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5061echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005062if test "${ac_cv_lib_posix_remove+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005064else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005065 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005066LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005067cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005068/* confdefs.h. */
5069_ACEOF
5070cat confdefs.h >>conftest.$ac_ext
5071cat >>conftest.$ac_ext <<_ACEOF
5072/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005073
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005074/* Override any GCC internal prototype to avoid an error.
5075 Use char because int might match the return type of a GCC
5076 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005077#ifdef __cplusplus
5078extern "C"
5079#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005080char remove ();
5081int
5082main ()
5083{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005084return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005085 ;
5086 return 0;
5087}
5088_ACEOF
5089rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005090if { (ac_try="$ac_link"
5091case "(($ac_try" in
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5094esac
5095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005097 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005102 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5104 { (case "(($ac_try" in
5105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5106 *) ac_try_echo=$ac_try;;
5107esac
5108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5109 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005114 { (case "(($ac_try" in
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5117esac
5118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005120 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005122 (exit $ac_status); }; }; then
5123 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005124else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005125 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005126sed 's/^/| /' conftest.$ac_ext >&5
5127
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005128 ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005129fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005130
Jeremy White0ebeb532006-06-20 13:18:41 +02005131rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005132 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005133LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005134fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005135{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5136echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005137if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005139fi
5140
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005141 fi
5142
5143 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005144 { echo "$as_me:$LINENO: checking for shmat" >&5
5145echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005146if test "${ac_cv_func_shmat+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005148else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005149 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005155/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5157#define shmat innocuous_shmat
5158
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005159/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005160 which can conflict with char shmat (); below.
5161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5162 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005163
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005164#ifdef __STDC__
5165# include <limits.h>
5166#else
5167# include <assert.h>
5168#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005169
5170#undef shmat
5171
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005172/* Override any GCC internal prototype to avoid an error.
5173 Use char because int might match the return type of a GCC
5174 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005175#ifdef __cplusplus
5176extern "C"
5177#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005178char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005179/* The GNU C library defines this for functions which it implements
5180 to always fail with ENOSYS. Some functions are actually named
5181 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005182#if defined __stub_shmat || defined __stub___shmat
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005183choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005184#endif
5185
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005186int
5187main ()
5188{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005189return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005190 ;
5191 return 0;
5192}
5193_ACEOF
5194rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005195if { (ac_try="$ac_link"
5196case "(($ac_try" in
5197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5198 *) ac_try_echo=$ac_try;;
5199esac
5200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5201 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005202 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005207 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5209 { (case "(($ac_try" in
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5212esac
5213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005219 { (case "(($ac_try" in
5220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5222esac
5223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5224 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005225 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005227 (exit $ac_status); }; }; then
5228 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005229else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005230 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005231sed 's/^/| /' conftest.$ac_ext >&5
5232
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005233 ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005234fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005235
Jeremy White0ebeb532006-06-20 13:18:41 +02005236rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005237 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005238fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005239{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5240echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005241
5242 if test $ac_cv_func_shmat = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005243 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5244echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005245if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005247else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005248 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005249LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005250cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005251/* confdefs.h. */
5252_ACEOF
5253cat confdefs.h >>conftest.$ac_ext
5254cat >>conftest.$ac_ext <<_ACEOF
5255/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005256
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005257/* Override any GCC internal prototype to avoid an error.
5258 Use char because int might match the return type of a GCC
5259 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005260#ifdef __cplusplus
5261extern "C"
5262#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005263char shmat ();
5264int
5265main ()
5266{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005267return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005268 ;
5269 return 0;
5270}
5271_ACEOF
5272rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005273if { (ac_try="$ac_link"
5274case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277esac
5278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005280 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005281 grep -v '^ *+' conftest.er1 >conftest.err
5282 rm -f conftest.er1
5283 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005285 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5287 { (case "(($ac_try" in
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5290esac
5291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005293 ac_status=$?
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; } &&
5296 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005297 { (case "(($ac_try" in
5298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5299 *) ac_try_echo=$ac_try;;
5300esac
5301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5302 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005303 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005305 (exit $ac_status); }; }; then
5306 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005307else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005308 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005309sed 's/^/| /' conftest.$ac_ext >&5
5310
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005311 ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005312fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005313
Jeremy White0ebeb532006-06-20 13:18:41 +02005314rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005315 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005317fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005318{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5319echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005320if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005322fi
5323
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005324 fi
5325 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005326
5327 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005328 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005329 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5330 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5331 # check for ICE first), but we must link in the order -lSM -lICE or
5332 # we get undefined symbols. So assume we have SM if we have ICE.
5333 # These have to be linked with before -lX11, unlike the other
5334 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005335 # John Interrante, Karl Berry
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005336 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5337echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005338if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5339 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005340else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005341 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00005342LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005343cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005344/* confdefs.h. */
5345_ACEOF
5346cat confdefs.h >>conftest.$ac_ext
5347cat >>conftest.$ac_ext <<_ACEOF
5348/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005349
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005350/* Override any GCC internal prototype to avoid an error.
5351 Use char because int might match the return type of a GCC
5352 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005353#ifdef __cplusplus
5354extern "C"
5355#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005356char IceConnectionNumber ();
5357int
5358main ()
5359{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005360return IceConnectionNumber ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005361 ;
5362 return 0;
5363}
5364_ACEOF
5365rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005366if { (ac_try="$ac_link"
5367case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005373 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005374 grep -v '^ *+' conftest.er1 >conftest.err
5375 rm -f conftest.er1
5376 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005378 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5380 { (case "(($ac_try" in
5381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5382 *) ac_try_echo=$ac_try;;
5383esac
5384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5385 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005386 ac_status=$?
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); }; } &&
5389 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005390 { (case "(($ac_try" in
5391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392 *) ac_try_echo=$ac_try;;
5393esac
5394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005396 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005398 (exit $ac_status); }; }; then
5399 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005400else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005401 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005402sed 's/^/| /' conftest.$ac_ext >&5
5403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005404 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005405fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005406
Jeremy White0ebeb532006-06-20 13:18:41 +02005407rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005408 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005409LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005410fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005411{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5412echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005413if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005414 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005415fi
5416
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005418
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005419fi
5420
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005421for ac_prog in flex lex
5422do
5423 # Extract the first word of "$ac_prog", so it can be a program name with args.
5424set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005425{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005427if test "${ac_cv_prog_LEX+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005429else
5430 if test -n "$LEX"; then
5431 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5432else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH
5435do
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005439 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 +00005440 ac_cv_prog_LEX="$ac_prog"
5441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5443 fi
5444done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005445done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005446IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005447
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005448fi
5449fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005450LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005451if test -n "$LEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005452 { echo "$as_me:$LINENO: result: $LEX" >&5
5453echo "${ECHO_T}$LEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005454else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005455 { echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005457fi
5458
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005459
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005460 test -n "$LEX" && break
5461done
5462test -n "$LEX" || LEX=":"
5463
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005464if test -z "$LEXLIB"
5465then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005466 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5467echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005468if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005471 ac_check_lib_save_LIBS=$LIBS
5472LIBS="-lfl $LIBS"
5473cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005474/* confdefs.h. */
5475_ACEOF
5476cat confdefs.h >>conftest.$ac_ext
5477cat >>conftest.$ac_ext <<_ACEOF
5478/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005479
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005480/* Override any GCC internal prototype to avoid an error.
5481 Use char because int might match the return type of a GCC
5482 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005483#ifdef __cplusplus
5484extern "C"
5485#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005486char yywrap ();
5487int
5488main ()
5489{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005490return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005491 ;
5492 return 0;
5493}
5494_ACEOF
5495rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005496if { (ac_try="$ac_link"
5497case "(($ac_try" in
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5500esac
5501eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005503 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005508 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5510 { (case "(($ac_try" in
5511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5512 *) ac_try_echo=$ac_try;;
5513esac
5514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5515 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005516 ac_status=$?
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; } &&
5519 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005520 { (case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005528 (exit $ac_status); }; }; then
5529 ac_cv_lib_fl_yywrap=yes
5530else
5531 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005532sed 's/^/| /' conftest.$ac_ext >&5
5533
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005534 ac_cv_lib_fl_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005535fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005536
Jeremy White0ebeb532006-06-20 13:18:41 +02005537rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005538 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005539LIBS=$ac_check_lib_save_LIBS
5540fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005541{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5542echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005543if test $ac_cv_lib_fl_yywrap = yes; then
5544 LEXLIB="-lfl"
5545else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005546 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5547echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005548if test "${ac_cv_lib_l_yywrap+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 ac_check_lib_save_LIBS=$LIBS
5552LIBS="-ll $LIBS"
5553cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005554/* confdefs.h. */
5555_ACEOF
5556cat confdefs.h >>conftest.$ac_ext
5557cat >>conftest.$ac_ext <<_ACEOF
5558/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005559
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005560/* Override any GCC internal prototype to avoid an error.
5561 Use char because int might match the return type of a GCC
5562 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005563#ifdef __cplusplus
5564extern "C"
5565#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005566char yywrap ();
5567int
5568main ()
5569{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005570return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005571 ;
5572 return 0;
5573}
5574_ACEOF
5575rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005576if { (ac_try="$ac_link"
5577case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005583 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005584 grep -v '^ *+' conftest.er1 >conftest.err
5585 rm -f conftest.er1
5586 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005588 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5590 { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; } &&
5599 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005600 { (case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603esac
5604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005606 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005608 (exit $ac_status); }; }; then
5609 ac_cv_lib_l_yywrap=yes
5610else
5611 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005612sed 's/^/| /' conftest.$ac_ext >&5
5613
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005614 ac_cv_lib_l_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005615fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005616
Jeremy White0ebeb532006-06-20 13:18:41 +02005617rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005618 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005619LIBS=$ac_check_lib_save_LIBS
5620fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005621{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5622echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005623if test $ac_cv_lib_l_yywrap = yes; then
5624 LEXLIB="-ll"
5625fi
5626
5627fi
5628
5629fi
5630
5631if test "x$LEX" != "x:"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005632 { echo "$as_me:$LINENO: checking lex output file root" >&5
5633echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005634if test "${ac_cv_prog_lex_root+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637 # The minimal lex program is just a single line: %%. But some broken lexes
5638# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005639cat >conftest.l <<_ACEOF
5640%%
5641%%
5642_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02005643{ (ac_try="$LEX conftest.l"
5644case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647esac
5648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$LEX conftest.l") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650 ac_status=$?
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005653if test -f lex.yy.c; then
5654 ac_cv_prog_lex_root=lex.yy
5655elif test -f lexyy.c; then
5656 ac_cv_prog_lex_root=lexyy
5657else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005658 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005659echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5660 { (exit 1); exit 1; }; }
5661fi
5662fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005663{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5664echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005665rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005666LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5667
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005668{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5669echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005670if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5672else
5673 # POSIX says lex can declare yytext either as a pointer or an array; the
5674# default is implementation-dependent. Figure out which it is, since
5675# not all implementations provide the %pointer and %array declarations.
5676ac_cv_prog_lex_yytext_pointer=no
5677echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5678ac_save_LIBS=$LIBS
5679LIBS="$LIBS $LEXLIB"
5680cat >conftest.$ac_ext <<_ACEOF
5681`cat $LEX_OUTPUT_ROOT.c`
5682_ACEOF
5683rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005684if { (ac_try="$ac_link"
5685case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688esac
5689eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005691 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005696 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5698 { (case "(($ac_try" in
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5701esac
5702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; } &&
5707 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005708 { (case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711esac
5712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005714 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005716 (exit $ac_status); }; }; then
5717 ac_cv_prog_lex_yytext_pointer=yes
5718else
5719 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005720sed 's/^/| /' conftest.$ac_ext >&5
5721
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005722
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005723fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005724
Jeremy White0ebeb532006-06-20 13:18:41 +02005725rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005726 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005727LIBS=$ac_save_LIBS
5728rm -f "${LEX_OUTPUT_ROOT}.c"
5729
5730fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005731{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5732echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005733if test $ac_cv_prog_lex_yytext_pointer = yes; then
5734
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005735cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005736#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005737_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005738
5739fi
5740
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005741fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00005742
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005743for ac_prog in $LEX flex lex
5744do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005745 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005746set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005747{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005749if test "${ac_cv_prog_XLEX+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005751else
5752 if test -n "$XLEX"; then
5753 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5754else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756for as_dir in $PATH
5757do
5758 IFS=$as_save_IFS
5759 test -z "$as_dir" && as_dir=.
5760 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005761 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 +00005762 ac_cv_prog_XLEX="$ac_prog"
5763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5764 break 2
5765 fi
5766done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005767done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005768IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005769
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005770fi
5771fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005772XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005773if test -n "$XLEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005774 { echo "$as_me:$LINENO: result: $XLEX" >&5
5775echo "${ECHO_T}$XLEX" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005776else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005777 { echo "$as_me:$LINENO: result: no" >&5
5778echo "${ECHO_T}no" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005779fi
5780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005781
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005782 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005783done
5784test -n "$XLEX" || XLEX="none"
5785
5786if test "$XLEX" = "none"
5787then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005788 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005789echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5790 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005791fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005792
Mike McCormackc068f672004-03-16 03:11:39 +00005793for ac_prog in bison
5794do
5795 # Extract the first word of "$ac_prog", so it can be a program name with args.
5796set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005797{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005799if test "${ac_cv_prog_BISON+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801else
5802 if test -n "$BISON"; then
5803 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5804else
5805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806for as_dir in $PATH
5807do
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005811 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 +00005812 ac_cv_prog_BISON="$ac_prog"
5813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5815 fi
5816done
5817done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005818IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00005819
5820fi
5821fi
5822BISON=$ac_cv_prog_BISON
5823if test -n "$BISON"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005824 { echo "$as_me:$LINENO: result: $BISON" >&5
5825echo "${ECHO_T}$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005826else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005827 { echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005829fi
5830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005831
Mike McCormackc068f672004-03-16 03:11:39 +00005832 test -n "$BISON" && break
5833done
5834test -n "$BISON" || BISON="none"
5835
5836if test "$BISON" = "none"
5837then
5838 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5839echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5840 { (exit 1); exit 1; }; }
5841fi
5842
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005843if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005844 for ac_prog in gas as
5845 do
5846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5847set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005848{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005850if test "${ac_cv_prog_AS+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5852else
5853 if test -n "$AS"; then
5854 ac_cv_prog_AS="$AS" # Let the user override the test.
5855else
5856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857for as_dir in $PATH
5858do
5859 IFS=$as_save_IFS
5860 test -z "$as_dir" && as_dir=.
5861 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005862 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 +00005863 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5865 break 2
5866 fi
5867done
5868done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005869IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005870
5871fi
5872fi
5873AS=$ac_cv_prog_AS
5874if test -n "$AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005875 { echo "$as_me:$LINENO: result: $AS" >&5
5876echo "${ECHO_T}$AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005877else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005878 { echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005880fi
5881
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005882
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005883 test -n "$AS" && break
5884 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00005885fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005886if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00005887 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005888 for ac_prog in gas as
5889do
5890 # Extract the first word of "$ac_prog", so it can be a program name with args.
5891set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005892{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005894if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5896else
5897 if test -n "$ac_ct_AS"; then
5898 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5899else
5900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901for as_dir in $PATH
5902do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005906 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 +00005907 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911done
5912done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005913IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005914
Marcus Meissner1d4db782003-01-09 00:46:54 +00005915fi
5916fi
5917ac_ct_AS=$ac_cv_prog_ac_ct_AS
5918if test -n "$ac_ct_AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005919 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5920echo "${ECHO_T}$ac_ct_AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005921else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005922 { echo "$as_me:$LINENO: result: no" >&5
5923echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005924fi
5925
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005926
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005927 test -n "$ac_ct_AS" && break
5928done
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005929
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005930 if test "x$ac_ct_AS" = x; then
5931 AS="as"
5932 else
5933 case $cross_compiling:$ac_tool_warned in
5934yes:)
5935{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5936whose name does not start with the host triplet. If you think this
5937configuration is useful to you, please write to autoconf@gnu.org." >&5
5938echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5939whose name does not start with the host triplet. If you think this
5940configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5941ac_tool_warned=yes ;;
5942esac
5943 AS=$ac_ct_AS
5944 fi
Marcus Meissner1d4db782003-01-09 00:46:54 +00005945fi
5946
5947if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005948 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5949set dummy ${ac_tool_prefix}ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005950{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005952if test "${ac_cv_prog_LD+set}" = set; then
5953 echo $ECHO_N "(cached) $ECHO_C" >&6
5954else
5955 if test -n "$LD"; then
5956 ac_cv_prog_LD="$LD" # Let the user override the test.
5957else
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005964 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 +00005965 ac_cv_prog_LD="${ac_tool_prefix}ld"
5966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5967 break 2
5968 fi
5969done
5970done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005971IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005972
5973fi
5974fi
5975LD=$ac_cv_prog_LD
5976if test -n "$LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005977 { echo "$as_me:$LINENO: result: $LD" >&5
5978echo "${ECHO_T}$LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005979else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005980 { echo "$as_me:$LINENO: result: no" >&5
5981echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005982fi
5983
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005984
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005985fi
5986if test -z "$ac_cv_prog_LD"; then
5987 ac_ct_LD=$LD
5988 # Extract the first word of "ld", so it can be a program name with args.
5989set dummy ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005990{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005992if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994else
5995 if test -n "$ac_ct_LD"; then
5996 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5997else
5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5999for as_dir in $PATH
6000do
6001 IFS=$as_save_IFS
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006004 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 +00006005 ac_cv_prog_ac_ct_LD="ld"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6007 break 2
6008 fi
6009done
6010done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006011IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006012
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006013fi
6014fi
6015ac_ct_LD=$ac_cv_prog_ac_ct_LD
6016if test -n "$ac_ct_LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006017 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6018echo "${ECHO_T}$ac_ct_LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006019else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006020 { echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006022fi
6023
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006024 if test "x$ac_ct_LD" = x; then
6025 LD="ld"
6026 else
6027 case $cross_compiling:$ac_tool_warned in
6028yes:)
6029{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6030whose name does not start with the host triplet. If you think this
6031configuration is useful to you, please write to autoconf@gnu.org." >&5
6032echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6033whose name does not start with the host triplet. If you think this
6034configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6035ac_tool_warned=yes ;;
6036esac
6037 LD=$ac_ct_LD
6038 fi
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006039else
6040 LD="$ac_cv_prog_LD"
6041fi
6042
6043if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6045set dummy ${ac_tool_prefix}ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006046{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006048if test "${ac_cv_prog_AR+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6050else
6051 if test -n "$AR"; then
6052 ac_cv_prog_AR="$AR" # Let the user override the test.
6053else
6054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055for as_dir in $PATH
6056do
6057 IFS=$as_save_IFS
6058 test -z "$as_dir" && as_dir=.
6059 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006060 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 +00006061 ac_cv_prog_AR="${ac_tool_prefix}ar"
6062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6063 break 2
6064 fi
6065done
6066done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006067IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006068
6069fi
6070fi
6071AR=$ac_cv_prog_AR
6072if test -n "$AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006073 { echo "$as_me:$LINENO: result: $AR" >&5
6074echo "${ECHO_T}$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006075else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006076 { echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006078fi
6079
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006080
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006081fi
6082if test -z "$ac_cv_prog_AR"; then
6083 ac_ct_AR=$AR
6084 # Extract the first word of "ar", so it can be a program name with args.
6085set dummy ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006086{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006088if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 if test -n "$ac_ct_AR"; then
6092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6093else
6094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
6099 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006100 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 +00006101 ac_cv_prog_ac_ct_AR="ar"
6102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6103 break 2
6104 fi
6105done
6106done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006107IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006108
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006109fi
6110fi
6111ac_ct_AR=$ac_cv_prog_ac_ct_AR
6112if test -n "$ac_ct_AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006113 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6114echo "${ECHO_T}$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006115else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006116 { echo "$as_me:$LINENO: result: no" >&5
6117echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006118fi
6119
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006120 if test "x$ac_ct_AR" = x; then
6121 AR="ar"
6122 else
6123 case $cross_compiling:$ac_tool_warned in
6124yes:)
6125{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6126whose name does not start with the host triplet. If you think this
6127configuration is useful to you, please write to autoconf@gnu.org." >&5
6128echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6129whose name does not start with the host triplet. If you think this
6130configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6131ac_tool_warned=yes ;;
6132esac
6133 AR=$ac_ct_AR
6134 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006135else
6136 AR="$ac_cv_prog_AR"
6137fi
6138
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006139if test -n "$ac_tool_prefix"; then
6140 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6141set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006144if test "${ac_cv_prog_RANLIB+set}" = set; then
6145 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006146else
6147 if test -n "$RANLIB"; then
6148 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6149else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6151for as_dir in $PATH
6152do
6153 IFS=$as_save_IFS
6154 test -z "$as_dir" && as_dir=.
6155 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006156 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 +00006157 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6159 break 2
6160 fi
6161done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006162done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006163IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006164
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006165fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006166fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006167RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006168if test -n "$RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006169 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6170echo "${ECHO_T}$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006171else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006172 { echo "$as_me:$LINENO: result: no" >&5
6173echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174fi
6175
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006176
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006177fi
6178if test -z "$ac_cv_prog_RANLIB"; then
6179 ac_ct_RANLIB=$RANLIB
6180 # Extract the first word of "ranlib", so it can be a program name with args.
6181set dummy ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006182{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006184if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187 if test -n "$ac_ct_RANLIB"; then
6188 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6189else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006196 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 +00006197 ac_cv_prog_ac_ct_RANLIB="ranlib"
6198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6199 break 2
6200 fi
6201done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006202done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006203IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006205fi
6206fi
6207ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6208if test -n "$ac_ct_RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006209 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6210echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006211else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006212 { echo "$as_me:$LINENO: result: no" >&5
6213echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006214fi
6215
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006216 if test "x$ac_ct_RANLIB" = x; then
6217 RANLIB=":"
6218 else
6219 case $cross_compiling:$ac_tool_warned in
6220yes:)
6221{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6222whose name does not start with the host triplet. If you think this
6223configuration is useful to you, please write to autoconf@gnu.org." >&5
6224echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6225whose name does not start with the host triplet. If you think this
6226configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6227ac_tool_warned=yes ;;
6228esac
6229 RANLIB=$ac_ct_RANLIB
6230 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006231else
6232 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006233fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006234
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006235if test -n "$ac_tool_prefix"; then
6236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6237set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006238{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006240if test "${ac_cv_prog_STRIP+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242else
6243 if test -n "$STRIP"; then
6244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6245else
6246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247for as_dir in $PATH
6248do
6249 IFS=$as_save_IFS
6250 test -z "$as_dir" && as_dir=.
6251 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006252 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 +00006253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6255 break 2
6256 fi
6257done
6258done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006259IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006260
6261fi
6262fi
6263STRIP=$ac_cv_prog_STRIP
6264if test -n "$STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006265 { echo "$as_me:$LINENO: result: $STRIP" >&5
6266echo "${ECHO_T}$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006267else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006268 { echo "$as_me:$LINENO: result: no" >&5
6269echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006270fi
6271
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006272
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006273fi
6274if test -z "$ac_cv_prog_STRIP"; then
6275 ac_ct_STRIP=$STRIP
6276 # Extract the first word of "strip", so it can be a program name with args.
6277set dummy strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006278{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6279echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006280if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6281 echo $ECHO_N "(cached) $ECHO_C" >&6
6282else
6283 if test -n "$ac_ct_STRIP"; then
6284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6285else
6286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6287for as_dir in $PATH
6288do
6289 IFS=$as_save_IFS
6290 test -z "$as_dir" && as_dir=.
6291 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006292 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 +00006293 ac_cv_prog_ac_ct_STRIP="strip"
6294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 break 2
6296 fi
6297done
6298done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006299IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006300
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006301fi
6302fi
6303ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6304if test -n "$ac_ct_STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006305 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6306echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006307else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006308 { echo "$as_me:$LINENO: result: no" >&5
6309echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006310fi
6311
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006312 if test "x$ac_ct_STRIP" = x; then
6313 STRIP="strip"
6314 else
6315 case $cross_compiling:$ac_tool_warned in
6316yes:)
6317{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6318whose name does not start with the host triplet. If you think this
6319configuration is useful to you, please write to autoconf@gnu.org." >&5
6320echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6321whose name does not start with the host triplet. If you think this
6322configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6323ac_tool_warned=yes ;;
6324esac
6325 STRIP=$ac_ct_STRIP
6326 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006327else
6328 STRIP="$ac_cv_prog_STRIP"
6329fi
6330
6331if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6333set dummy ${ac_tool_prefix}windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006334{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6335echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006336if test "${ac_cv_prog_WINDRES+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
6339 if test -n "$WINDRES"; then
6340 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6341else
6342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343for as_dir in $PATH
6344do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006348 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 +00006349 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353done
6354done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006355IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006356
6357fi
6358fi
6359WINDRES=$ac_cv_prog_WINDRES
6360if test -n "$WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006361 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6362echo "${ECHO_T}$WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006363else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006364 { echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006366fi
6367
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006368
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006369fi
6370if test -z "$ac_cv_prog_WINDRES"; then
6371 ac_ct_WINDRES=$WINDRES
6372 # Extract the first word of "windres", so it can be a program name with args.
6373set dummy windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006374{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006376if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378else
6379 if test -n "$ac_ct_WINDRES"; then
6380 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6381else
6382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383for as_dir in $PATH
6384do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006388 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 +00006389 ac_cv_prog_ac_ct_WINDRES="windres"
6390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393done
6394done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006395IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006396
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006397fi
6398fi
6399ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6400if test -n "$ac_ct_WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006401 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6402echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006403else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006404 { echo "$as_me:$LINENO: result: no" >&5
6405echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006406fi
6407
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006408 if test "x$ac_ct_WINDRES" = x; then
6409 WINDRES="false"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412yes:)
6413{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6414whose name does not start with the host triplet. If you think this
6415configuration is useful to you, please write to autoconf@gnu.org." >&5
6416echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6417whose name does not start with the host triplet. If you think this
6418configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6419ac_tool_warned=yes ;;
6420esac
6421 WINDRES=$ac_ct_WINDRES
6422 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006423else
6424 WINDRES="$ac_cv_prog_WINDRES"
6425fi
6426
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006427{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6428echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006429LN_S=$as_ln_s
6430if test "$LN_S" = "ln -s"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006431 { echo "$as_me:$LINENO: result: yes" >&5
6432echo "${ECHO_T}yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006433else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006434 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6435echo "${ECHO_T}no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006436fi
6437
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006438{ echo "$as_me:$LINENO: checking whether ln works" >&5
6439echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006440rm -f conf$$ conf$$.file
6441echo >conf$$.file
6442if ln conf$$.file conf$$ 2>/dev/null; then
6443 LN=ln
6444
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006445 { echo "$as_me:$LINENO: result: yes" >&5
6446echo "${ECHO_T}yes" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006447else
6448 LN="cp -p"
6449
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006450 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6451echo "${ECHO_T}no, using $LN" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006452fi
6453rm -f conf$$ conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006454{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6455echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6456if test "${ac_cv_path_GREP+set}" = set; then
Alexandre Julliardc6264912004-08-16 20:09:37 +00006457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006459 # Extract the first word of "grep ggrep" to use in msg output
6460if test -z "$GREP"; then
6461set dummy grep ggrep; ac_prog_name=$2
6462if test "${ac_cv_path_GREP+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465 ac_path_GREP_found=false
6466# Loop through the user's path and test for each of PROGNAME-LIST
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6469do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_prog in grep ggrep; do
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6475 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6476 # Check for GNU ac_path_GREP and select it if it is found.
6477 # Check for GNU $ac_path_GREP
6478case `"$ac_path_GREP" --version 2>&1` in
6479*GNU*)
6480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6481*)
6482 ac_count=0
6483 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6484 while :
6485 do
6486 cat "conftest.in" "conftest.in" >"conftest.tmp"
6487 mv "conftest.tmp" "conftest.in"
6488 cp "conftest.in" "conftest.nl"
6489 echo 'GREP' >> "conftest.nl"
6490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6492 ac_count=`expr $ac_count + 1`
6493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6494 # Best one so far, save it but keep looking for a better one
6495 ac_cv_path_GREP="$ac_path_GREP"
6496 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00006497 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006498 # 10*(2^10) chars as input seems more than enough
6499 test $ac_count -gt 10 && break
6500 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006502esac
6503
6504
6505 $ac_path_GREP_found && break 3
6506 done
6507done
6508
6509done
6510IFS=$as_save_IFS
6511
6512
Alexandre Julliardc6264912004-08-16 20:09:37 +00006513fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006514
6515GREP="$ac_cv_path_GREP"
6516if test -z "$GREP"; then
6517 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6518echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6519 { (exit 1); exit 1; }; }
6520fi
6521
6522else
6523 ac_cv_path_GREP=$GREP
6524fi
6525
6526
6527fi
6528{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6529echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6530 GREP="$ac_cv_path_GREP"
6531
6532
6533{ echo "$as_me:$LINENO: checking for egrep" >&5
6534echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6535if test "${ac_cv_path_EGREP+set}" = set; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6539 then ac_cv_path_EGREP="$GREP -E"
6540 else
6541 # Extract the first word of "egrep" to use in msg output
6542if test -z "$EGREP"; then
6543set dummy egrep; ac_prog_name=$2
6544if test "${ac_cv_path_EGREP+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 ac_path_EGREP_found=false
6548# Loop through the user's path and test for each of PROGNAME-LIST
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_prog in egrep; do
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6557 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6558 # Check for GNU ac_path_EGREP and select it if it is found.
6559 # Check for GNU $ac_path_EGREP
6560case `"$ac_path_EGREP" --version 2>&1` in
6561*GNU*)
6562 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6563*)
6564 ac_count=0
6565 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6566 while :
6567 do
6568 cat "conftest.in" "conftest.in" >"conftest.tmp"
6569 mv "conftest.tmp" "conftest.in"
6570 cp "conftest.in" "conftest.nl"
6571 echo 'EGREP' >> "conftest.nl"
6572 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6573 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6574 ac_count=`expr $ac_count + 1`
6575 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6576 # Best one so far, save it but keep looking for a better one
6577 ac_cv_path_EGREP="$ac_path_EGREP"
6578 ac_path_EGREP_max=$ac_count
6579 fi
6580 # 10*(2^10) chars as input seems more than enough
6581 test $ac_count -gt 10 && break
6582 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006583 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006584esac
6585
6586
6587 $ac_path_EGREP_found && break 3
6588 done
6589done
6590
6591done
6592IFS=$as_save_IFS
6593
6594
6595fi
6596
6597EGREP="$ac_cv_path_EGREP"
6598if test -z "$EGREP"; then
6599 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6600echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6601 { (exit 1); exit 1; }; }
6602fi
6603
6604else
6605 ac_cv_path_EGREP=$EGREP
6606fi
6607
6608
6609 fi
6610fi
6611{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6612echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6613 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00006614
6615
James Juranffe6b761999-06-12 08:21:57 +00006616# Extract the first word of "ldconfig", so it can be a program name with args.
6617set dummy ldconfig; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006618{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006620if test "${ac_cv_path_LDCONFIG+set}" = set; then
6621 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00006622else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006623 case $LDCONFIG in
6624 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00006625 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6626 ;;
6627 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00006629for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006634 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 +00006635 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006640done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006641IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006642
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006643 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00006644 ;;
6645esac
6646fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006647LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00006648if test -n "$LDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006649 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6650echo "${ECHO_T}$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006651else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006652 { echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006654fi
6655
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006656
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006657# Find a good install program. We prefer a C program (faster),
6658# so one script is as good as another. But avoid the broken or
6659# incompatible versions:
6660# SysV /etc/install, /usr/sbin/install
6661# SunOS /usr/etc/install
6662# IRIX /sbin/install
6663# AIX /bin/install
6664# AmigaOS /C/install, which installs bootblocks on floppy discs
6665# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6666# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6667# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00006668# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006669# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006670{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6671echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006672if test -z "$INSTALL"; then
6673if test "${ac_cv_path_install+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6675else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 # Account for people who put trailing slashes in PATH elements.
6682case $as_dir/ in
6683 ./ | .// | /cC/* | \
6684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006686 /usr/ucb/* ) ;;
6687 *)
6688 # OSF1 and SCO ODT 3.0 have their own names for install.
6689 # Don't use installbsd from OSF since it installs stuff as root
6690 # by default.
6691 for ac_prog in ginstall scoinst install; do
6692 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006693 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 +00006694 if test $ac_prog = install &&
6695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6696 # AIX install. It has an incompatible calling convention.
6697 :
6698 elif test $ac_prog = install &&
6699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6700 # program-specific install script used by HP pwplus--don't use.
6701 :
6702 else
6703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6704 break 3
6705 fi
6706 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006707 done
6708 done
6709 ;;
6710esac
6711done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006712IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006713
6714
6715fi
6716 if test "${ac_cv_path_install+set}" = set; then
6717 INSTALL=$ac_cv_path_install
6718 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006719 # As a last resort, use the slow shell script. Don't cache a
6720 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006721 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006722 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006723 INSTALL=$ac_install_sh
6724 fi
6725fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006726{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6727echo "${ECHO_T}$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006728
6729# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6730# It thinks the first close brace ends the variable substitution.
6731test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6732
6733test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6734
6735test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6736
6737case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00006738 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006739 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6740esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006741
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006742for ac_prog in lclint lint
6743do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006744 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006745set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006746{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006748if test "${ac_cv_prog_LINT+set}" = set; then
6749 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006750else
6751 if test -n "$LINT"; then
6752 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6753else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757 IFS=$as_save_IFS
6758 test -z "$as_dir" && as_dir=.
6759 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006760 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 +00006761 ac_cv_prog_LINT="$ac_prog"
6762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6763 break 2
6764 fi
6765done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006766done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006767IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006768
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006769fi
6770fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006771LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006772if test -n "$LINT"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006773 { echo "$as_me:$LINENO: result: $LINT" >&5
6774echo "${ECHO_T}$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006775else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006776 { echo "$as_me:$LINENO: result: no" >&5
6777echo "${ECHO_T}no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006778fi
6779
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006780
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006781 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006782done
6783
6784if test "$LINT" = "lint"
6785then
6786 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6787 fi
6788
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006789
6790
Huw Davies00acb5f2004-08-17 22:33:14 +00006791for ac_prog in fontforge
6792do
6793 # Extract the first word of "$ac_prog", so it can be a program name with args.
6794set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006795{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006797if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6798 echo $ECHO_N "(cached) $ECHO_C" >&6
6799else
6800 if test -n "$FONTFORGE"; then
6801 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6802else
6803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804for as_dir in $PATH
6805do
6806 IFS=$as_save_IFS
6807 test -z "$as_dir" && as_dir=.
6808 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006809 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 +00006810 ac_cv_prog_FONTFORGE="$ac_prog"
6811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6812 break 2
6813 fi
6814done
6815done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006816IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00006817
6818fi
6819fi
6820FONTFORGE=$ac_cv_prog_FONTFORGE
6821if test -n "$FONTFORGE"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006822 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6823echo "${ECHO_T}$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006824else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006825 { echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006827fi
6828
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006829
Huw Davies00acb5f2004-08-17 22:33:14 +00006830 test -n "$FONTFORGE" && break
6831done
6832test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006833
Mike McCormack90c75bd2005-08-08 18:36:53 +00006834for ac_prog in pkg-config
6835do
6836 # Extract the first word of "$ac_prog", so it can be a program name with args.
6837set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006838{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006840if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842else
6843 if test -n "$PKG_CONFIG"; then
6844 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6845else
6846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847for as_dir in $PATH
6848do
6849 IFS=$as_save_IFS
6850 test -z "$as_dir" && as_dir=.
6851 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006852 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 +00006853 ac_cv_prog_PKG_CONFIG="$ac_prog"
6854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 break 2
6856 fi
6857done
6858done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006859IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00006860
6861fi
6862fi
6863PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6864if test -n "$PKG_CONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006865 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6866echo "${ECHO_T}$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006867else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006868 { echo "$as_me:$LINENO: result: no" >&5
6869echo "${ECHO_T}no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006870fi
6871
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006872
Mike McCormack90c75bd2005-08-08 18:36:53 +00006873 test -n "$PKG_CONFIG" && break
6874done
6875test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6876
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006877
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006878case $host_cpu in
6879 *i[3456789]86*)
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006880 # Extract the first word of "prelink", so it can be a program name with args.
6881set dummy prelink; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006882{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6883echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006884if test "${ac_cv_path_PRELINK+set}" = set; then
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006885 echo $ECHO_N "(cached) $ECHO_C" >&6
6886else
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006887 case $PRELINK in
6888 [\\/]* | ?:[\\/]*)
6889 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6890 ;;
6891 *)
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006893for as_dir in /sbin /usr/sbin $PATH
6894do
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006899 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6902 fi
6903done
6904done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006905IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006906
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006907 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6908 ;;
6909esac
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006910fi
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006911PRELINK=$ac_cv_path_PRELINK
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006912if test -n "$PRELINK"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006913 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6914echo "${ECHO_T}$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006915else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006916 { echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006918fi
6919
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006920
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006921 ;;
6922esac
6923
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006924
6925
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006926{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6927echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006928if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00006930else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006931 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006932LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006933cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006934/* confdefs.h. */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006939
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006940/* Override any GCC internal prototype to avoid an error.
6941 Use char because int might match the return type of a GCC
6942 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006943#ifdef __cplusplus
6944extern "C"
6945#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006946char i386_set_ldt ();
6947int
6948main ()
6949{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006950return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006951 ;
6952 return 0;
6953}
6954_ACEOF
6955rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02006956if { (ac_try="$ac_link"
6957case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960esac
6961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006963 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006968 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02006969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6970 { (case "(($ac_try" in
6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972 *) ac_try_echo=$ac_try;;
6973esac
6974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006976 ac_status=$?
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); }; } &&
6979 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02006980 { (case "(($ac_try" in
6981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6983esac
6984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006986 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006988 (exit $ac_status); }; }; then
6989 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00006990else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006991 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006992sed 's/^/| /' conftest.$ac_ext >&5
6993
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006994 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00006995fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006996
Jeremy White0ebeb532006-06-20 13:18:41 +02006997rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006998 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006999LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00007000fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007001{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
7002echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007003if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007004 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007005#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007006_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00007007
7008 LIBS="-li386 $LIBS"
7009
Alexandre Julliard02e90081998-01-04 17:49:09 +00007010fi
7011
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007012
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007013{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7014echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007015if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00007017else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007018 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007019LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007020cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007021/* confdefs.h. */
7022_ACEOF
7023cat confdefs.h >>conftest.$ac_ext
7024cat >>conftest.$ac_ext <<_ACEOF
7025/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007027/* Override any GCC internal prototype to avoid an error.
7028 Use char because int might match the return type of a GCC
7029 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007030#ifdef __cplusplus
7031extern "C"
7032#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007033char _oss_ioctl ();
7034int
7035main ()
7036{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007037return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007038 ;
7039 return 0;
7040}
7041_ACEOF
7042rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007043if { (ac_try="$ac_link"
7044case "(($ac_try" in
7045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7046 *) ac_try_echo=$ac_try;;
7047esac
7048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7049 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007050 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007051 grep -v '^ *+' conftest.er1 >conftest.err
7052 rm -f conftest.er1
7053 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007055 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7057 { (case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060esac
7061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007063 ac_status=$?
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; } &&
7066 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007067 { (case "(($ac_try" in
7068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7069 *) ac_try_echo=$ac_try;;
7070esac
7071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7072 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007073 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007075 (exit $ac_status); }; }; then
7076 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00007077else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007078 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007079sed 's/^/| /' conftest.$ac_ext >&5
7080
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007081 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00007082fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007083
Jeremy White0ebeb532006-06-20 13:18:41 +02007084rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007085 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007086LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007087fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007088{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7089echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007090if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007091 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007092#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007093_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00007094
7095 LIBS="-lossaudio $LIBS"
7096
Todd Vierlingecc76691998-12-15 17:49:02 +00007097fi
7098
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007099
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007100{ echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7101echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007102if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007104else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007105 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007106LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007107cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007108/* confdefs.h. */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007113
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007114/* Override any GCC internal prototype to avoid an error.
7115 Use char because int might match the return type of a GCC
7116 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007117#ifdef __cplusplus
7118extern "C"
7119#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007120char _xpg4_setrunelocale ();
7121int
7122main ()
7123{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007124return _xpg4_setrunelocale ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007125 ;
7126 return 0;
7127}
7128_ACEOF
7129rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007130if { (ac_try="$ac_link"
7131case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134esac
7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007137 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007142 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7144 { (case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147esac
7148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007150 ac_status=$?
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); }; } &&
7153 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007154 { (case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157esac
7158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007160 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007162 (exit $ac_status); }; }; then
7163 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007164else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007165 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007166sed 's/^/| /' conftest.$ac_ext >&5
7167
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007168 ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007169fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007170
Jeremy White0ebeb532006-06-20 13:18:41 +02007171rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007172 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007173LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007174fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007175{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7176echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007177if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007178 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007179#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007180_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007181
7182 LIBS="-lxpg4 $LIBS"
7183
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007184fi
7185
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007186{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7187echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007188if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007189 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007190else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007191 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007192LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007193cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007194/* confdefs.h. */
7195_ACEOF
7196cat confdefs.h >>conftest.$ac_ext
7197cat >>conftest.$ac_ext <<_ACEOF
7198/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007200/* Override any GCC internal prototype to avoid an error.
7201 Use char because int might match the return type of a GCC
7202 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007203#ifdef __cplusplus
7204extern "C"
7205#endif
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007206char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007207int
7208main ()
7209{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007210return pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007211 ;
7212 return 0;
7213}
7214_ACEOF
7215rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007216if { (ac_try="$ac_link"
7217case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220esac
7221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007223 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007228 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7230 { (case "(($ac_try" in
7231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7232 *) ac_try_echo=$ac_try;;
7233esac
7234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7235 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007236 ac_status=$?
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); }; } &&
7239 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007240 { (case "(($ac_try" in
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7243esac
7244eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007246 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007248 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007249 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007250else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007251 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007252sed 's/^/| /' conftest.$ac_ext >&5
7253
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007254 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007255fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007256
Jeremy White0ebeb532006-06-20 13:18:41 +02007257rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007258 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007259LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007260fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007261{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7262echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007263if test $ac_cv_lib_pthread_pthread_create = yes; then
7264 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007265
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007266fi
7267
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007268
Alexandre Julliard82776022005-08-08 11:17:25 +00007269XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00007270
7271XFILES=""
7272
7273OPENGLFILES=""
7274
7275GLU32FILES=""
7276
7277OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00007278
Rein Klazes7ff12562004-11-09 20:16:35 +00007279
Alexandre Julliard82776022005-08-08 11:17:25 +00007280
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007281{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7282echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007283if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007284 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00007285else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007286 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007287/* confdefs.h. */
7288_ACEOF
7289cat confdefs.h >>conftest.$ac_ext
7290cat >>conftest.$ac_ext <<_ACEOF
7291/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007292#include <stdlib.h>
7293#include <stdarg.h>
7294#include <string.h>
7295#include <float.h>
7296
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007297int
7298main ()
7299{
7300
7301 ;
7302 return 0;
7303}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007304_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007305rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02007306if { (ac_try="$ac_compile"
7307case "(($ac_try" in
7308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309 *) ac_try_echo=$ac_try;;
7310esac
7311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007313 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007314 grep -v '^ *+' conftest.er1 >conftest.err
7315 rm -f conftest.er1
7316 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007318 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7320 { (case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323esac
7324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; } &&
7329 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007330 { (case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333esac
7334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_try") 2>&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007339 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007340else
7341 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007342sed 's/^/| /' conftest.$ac_ext >&5
7343
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007344 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007345fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007346
Jeremy White0ebeb532006-06-20 13:18:41 +02007347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007348
7349if test $ac_cv_header_stdc = yes; then
7350 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7351 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007352/* confdefs.h. */
7353_ACEOF
7354cat confdefs.h >>conftest.$ac_ext
7355cat >>conftest.$ac_ext <<_ACEOF
7356/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007357#include <string.h>
7358
7359_ACEOF
7360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007361 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007362 :
7363else
7364 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00007365fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007366rm -f conftest*
7367
7368fi
7369
7370if test $ac_cv_header_stdc = yes; then
7371 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7372 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007373/* confdefs.h. */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007378#include <stdlib.h>
7379
7380_ACEOF
7381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007382 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007383 :
7384else
7385 ac_cv_header_stdc=no
7386fi
7387rm -f conftest*
7388
7389fi
7390
7391if test $ac_cv_header_stdc = yes; then
7392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7393 if test "$cross_compiling" = yes; then
7394 :
7395else
7396 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007397/* confdefs.h. */
7398_ACEOF
7399cat confdefs.h >>conftest.$ac_ext
7400cat >>conftest.$ac_ext <<_ACEOF
7401/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007402#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007403#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007404#if ((' ' & 0x0FF) == 0x020)
7405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7407#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007408# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007409 (('a' <= (c) && (c) <= 'i') \
7410 || ('j' <= (c) && (c) <= 'r') \
7411 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7413#endif
7414
7415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7416int
7417main ()
7418{
7419 int i;
7420 for (i = 0; i < 256; i++)
7421 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00007422 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007423 return 2;
7424 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007425}
7426_ACEOF
7427rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007428if { (ac_try="$ac_link"
7429case "(($ac_try" in
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7432esac
7433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_link") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007435 ac_status=$?
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007438 { (case "(($ac_try" in
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7441esac
7442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007444 ac_status=$?
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 :
7448else
7449 echo "$as_me: program exited with status $ac_status" >&5
7450echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007451sed 's/^/| /' conftest.$ac_ext >&5
7452
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007453( exit $ac_status )
7454ac_cv_header_stdc=no
7455fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7457fi
7458
7459
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007460fi
7461fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007462{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7463echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007464if test $ac_cv_header_stdc = yes; then
7465
7466cat >>confdefs.h <<\_ACEOF
7467#define STDC_HEADERS 1
7468_ACEOF
7469
7470fi
7471
7472# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007483 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007484do
7485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007486{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7487echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007489 echo $ECHO_N "(cached) $ECHO_C" >&6
7490else
7491 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007497$ac_includes_default
7498
7499#include <$ac_header>
7500_ACEOF
7501rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02007502if { (ac_try="$ac_compile"
7503case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506esac
7507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007509 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7516 { (case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519esac
7520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007522 ac_status=$?
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; } &&
7525 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007526 { (case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529esac
7530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7531 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; }; then
7535 eval "$as_ac_Header=yes"
7536else
7537 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007538sed 's/^/| /' conftest.$ac_ext >&5
7539
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007540 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007541fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007542
Jeremy White0ebeb532006-06-20 13:18:41 +02007543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007544fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007545ac_res=`eval echo '${'$as_ac_Header'}'`
7546 { echo "$as_me:$LINENO: result: $ac_res" >&5
7547echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007548if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007549 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007551_ACEOF
7552
7553fi
7554
7555done
7556
7557
7558
Rein Klazes7ff12562004-11-09 20:16:35 +00007559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
Steven Edwards57279182005-03-04 12:38:36 +00007641
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007642
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007643
7644
Phil Krylov0f6c0392005-07-01 19:15:26 +00007645
Hans Leidekkerea524de2005-07-15 16:39:42 +00007646
7647
Alexandre Julliard73482142005-08-03 19:21:04 +00007648
7649
7650
7651
7652
7653
7654
7655
7656
7657
Gerald Pfeiferebe04842005-08-22 09:33:37 +00007658
Robert Shearman1e5153c2005-12-01 11:18:43 +01007659
Mike McCormack0cd06262006-03-01 01:07:04 +09007660
Alexandre Julliard9603ee02006-04-06 11:57:37 +02007661
Emmanuel Maillard144a5352006-05-28 22:46:23 +02007662
7663
Alexandre Julliardc8278922006-08-04 22:11:00 +02007664
Rein Klazes7ff12562004-11-09 20:16:35 +00007665for ac_header in \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02007666 AudioUnit/AudioUnit.h \
7667 CoreAudio/CoreAudio.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00007668 IOKit/IOKitLib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007669 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007670 arpa/inet.h \
7671 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007672 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007673 capi20.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007674 cups/cups.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007675 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007676 direct.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007677 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007678 elf.h \
7679 float.h \
7680 fontconfig/fontconfig.h \
7681 getopt.h \
7682 gif_lib.h \
7683 ieeefp.h \
7684 io.h \
7685 jack/jack.h \
7686 jpeglib.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00007687 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007688 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007689 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00007690 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007691 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007692 link.h \
7693 linux/cdrom.h \
7694 linux/compiler.h \
7695 linux/hdreg.h \
7696 linux/input.h \
7697 linux/ioctl.h \
7698 linux/joystick.h \
7699 linux/major.h \
7700 linux/param.h \
7701 linux/serial.h \
7702 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007703 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007704 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007705 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007706 machine/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007707 mntent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007708 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007709 netdb.h \
7710 netinet/in.h \
7711 netinet/in_systm.h \
7712 netinet/tcp.h \
7713 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01007714 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007715 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00007716 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007717 process.h \
7718 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007719 pwd.h \
7720 regex.h \
7721 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007722 scsi/scsi.h \
7723 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007724 scsi/sg.h \
7725 soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007726 stdint.h \
7727 strings.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007728 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007729 sys/cdio.h \
7730 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007731 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007732 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02007733 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007734 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007735 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007736 sys/ioctl.h \
7737 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00007738 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007739 sys/link.h \
7740 sys/lwp.h \
7741 sys/mman.h \
7742 sys/modem.h \
7743 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01007744 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007745 sys/param.h \
7746 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02007747 sys/prctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007748 sys/ptrace.h \
7749 sys/reg.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09007750 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007751 sys/scsiio.h \
7752 sys/shm.h \
7753 sys/signal.h \
7754 sys/socket.h \
7755 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007756 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007757 sys/statvfs.h \
7758 sys/strtio.h \
7759 sys/syscall.h \
7760 sys/sysctl.h \
7761 sys/time.h \
7762 sys/times.h \
7763 sys/uio.h \
7764 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007765 sys/vm86.h \
7766 sys/wait.h \
7767 syscall.h \
7768 termios.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007769 unicode/ubidi.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007770 unistd.h \
7771 utime.h \
7772 valgrind/memcheck.h
7773
7774do
7775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7779if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00007780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007782ac_res=`eval echo '${'$as_ac_Header'}'`
7783 { echo "$as_me:$LINENO: result: $ac_res" >&5
7784echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007785else
7786 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007787{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007789cat >conftest.$ac_ext <<_ACEOF
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
7795$ac_includes_default
7796#include <$ac_header>
7797_ACEOF
7798rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02007799if { (ac_try="$ac_compile"
7800case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00007806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7813 { (case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816esac
7817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00007819 ac_status=$?
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); }; } &&
7822 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007823 { (case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826esac
7827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00007829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_header_compiler=yes
7833else
7834 echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007837 ac_header_compiler=no
Rein Klazes7ff12562004-11-09 20:16:35 +00007838fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007839
Jeremy White0ebeb532006-06-20 13:18:41 +02007840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007841{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7842echo "${ECHO_T}$ac_header_compiler" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007843
7844# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007845{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7846echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007847cat >conftest.$ac_ext <<_ACEOF
7848/* confdefs.h. */
7849_ACEOF
7850cat confdefs.h >>conftest.$ac_ext
7851cat >>conftest.$ac_ext <<_ACEOF
7852/* end confdefs.h. */
7853#include <$ac_header>
7854_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02007855if { (ac_try="$ac_cpp conftest.$ac_ext"
7856case "(($ac_try" in
7857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7859esac
7860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00007862 ac_status=$?
7863 grep -v '^ *+' conftest.er1 >conftest.err
7864 rm -f conftest.er1
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } >/dev/null; then
7868 if test -s conftest.err; then
7869 ac_cpp_err=$ac_c_preproc_warn_flag
7870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7871 else
7872 ac_cpp_err=
7873 fi
7874else
7875 ac_cpp_err=yes
7876fi
7877if test -z "$ac_cpp_err"; then
7878 ac_header_preproc=yes
7879else
7880 echo "$as_me: failed program was:" >&5
7881sed 's/^/| /' conftest.$ac_ext >&5
7882
7883 ac_header_preproc=no
7884fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007885
Rein Klazes7ff12562004-11-09 20:16:35 +00007886rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007887{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7888echo "${ECHO_T}$ac_header_preproc" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007889
7890# So? What about this header?
7891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7892 yes:no: )
7893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7897 ac_header_preproc=yes
7898 ;;
7899 no:yes:* )
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007912 ( cat <<\_ASBOX
Rein Klazes7ff12562004-11-09 20:16:35 +00007913## ------------------------------------ ##
7914## Report this to wine-devel@winehq.org ##
7915## ------------------------------------ ##
7916_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007917 ) | sed "s/^/$as_me: WARNING: /" >&2
Rein Klazes7ff12562004-11-09 20:16:35 +00007918 ;;
7919esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007920{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7922if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00007923 echo $ECHO_N "(cached) $ECHO_C" >&6
7924else
7925 eval "$as_ac_Header=\$ac_header_preproc"
7926fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007927ac_res=`eval echo '${'$as_ac_Header'}'`
7928 { echo "$as_me:$LINENO: result: $ac_res" >&5
7929echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007930
7931fi
7932if test `eval echo '${'$as_ac_Header'}'` = yes; then
7933 cat >>confdefs.h <<_ACEOF
7934#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935_ACEOF
7936
7937fi
7938
7939done
7940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007941{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7942echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007943if test "${ac_cv_header_stat_broken+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7945else
7946 cat >conftest.$ac_ext <<_ACEOF
7947/* confdefs.h. */
7948_ACEOF
7949cat confdefs.h >>conftest.$ac_ext
7950cat >>conftest.$ac_ext <<_ACEOF
7951/* end confdefs.h. */
7952#include <sys/types.h>
7953#include <sys/stat.h>
7954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007955#if defined S_ISBLK && defined S_IFDIR
Rein Klazes7ff12562004-11-09 20:16:35 +00007956# if S_ISBLK (S_IFDIR)
7957You lose.
7958# endif
7959#endif
7960
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007961#if defined S_ISBLK && defined S_IFCHR
Rein Klazes7ff12562004-11-09 20:16:35 +00007962# if S_ISBLK (S_IFCHR)
7963You lose.
7964# endif
7965#endif
7966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007967#if defined S_ISLNK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00007968# if S_ISLNK (S_IFREG)
7969You lose.
7970# endif
7971#endif
7972
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007973#if defined S_ISSOCK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00007974# if S_ISSOCK (S_IFREG)
7975You lose.
7976# endif
7977#endif
7978
7979_ACEOF
7980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7981 $EGREP "You lose" >/dev/null 2>&1; then
7982 ac_cv_header_stat_broken=yes
7983else
7984 ac_cv_header_stat_broken=no
7985fi
7986rm -f conftest*
7987
7988fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007989{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7990echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00007991if test $ac_cv_header_stat_broken = yes; then
7992
7993cat >>confdefs.h <<\_ACEOF
7994#define STAT_MACROS_BROKEN 1
7995_ACEOF
7996
7997fi
7998
7999
8000
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008001
8002
8003
8004
8005for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8006do
8007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008008{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8010if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012else
8013 cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8019#include <sys/types.h>
8020 #if HAVE_SYS_PARAM_H
8021 # include <sys/param.h>
8022 #endif
8023
8024#include <$ac_header>
8025_ACEOF
8026rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008027if { (ac_try="$ac_compile"
8028case "(($ac_try" in
8029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8030 *) ac_try_echo=$ac_try;;
8031esac
8032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8033 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
8038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8039 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8041 { (case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044esac
8045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008047 ac_status=$?
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; } &&
8050 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008051 { (case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054esac
8055eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 eval "$as_ac_Header=yes"
8061else
8062 echo "$as_me: failed program was:" >&5
8063sed 's/^/| /' conftest.$ac_ext >&5
8064
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008065 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008066fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008067
Jeremy White0ebeb532006-06-20 13:18:41 +02008068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008069fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008070ac_res=`eval echo '${'$as_ac_Header'}'`
8071 { echo "$as_me:$LINENO: result: $ac_res" >&5
8072echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008073if test `eval echo '${'$as_ac_Header'}'` = yes; then
8074 cat >>confdefs.h <<_ACEOF
8075#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076_ACEOF
8077
8078fi
8079
8080done
8081
8082
8083
8084
8085
8086
8087
8088
8089for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8090do
8091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008092{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8094if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103#include <sys/types.h>
8104 #if HAVE_SYS_SOCKET_H
8105 # include <sys/socket.h>
8106 #endif
8107
8108#include <$ac_header>
8109_ACEOF
8110rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (case "(($ac_try" in
8126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8127 *) ac_try_echo=$ac_try;;
8128esac
8129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8130 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008131 ac_status=$?
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; } &&
8134 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008135 { (case "(($ac_try" in
8136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8138esac
8139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008141 ac_status=$?
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 eval "$as_ac_Header=yes"
8145else
8146 echo "$as_me: failed program was:" >&5
8147sed 's/^/| /' conftest.$ac_ext >&5
8148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008149 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008150fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008151
Jeremy White0ebeb532006-06-20 13:18:41 +02008152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008153fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008154ac_res=`eval echo '${'$as_ac_Header'}'`
8155 { echo "$as_me:$LINENO: result: $ac_res" >&5
8156echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008157if test `eval echo '${'$as_ac_Header'}'` = yes; then
8158 cat >>confdefs.h <<_ACEOF
8159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8160_ACEOF
8161
8162fi
8163
8164done
8165
8166
8167
Francois Gougetfaf05df2006-08-07 21:52:36 +02008168for ac_header in linux/ipx.h
8169do
8170as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8171{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8173if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 cat >conftest.$ac_ext <<_ACEOF
8177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
8182#include <sys/types.h>
8183 #ifdef HAVE_ASM_TYPES_H
8184 # include <asm/types.h>
8185 #endif
8186 #if HAVE_SYS_SOCKET_H
8187 # include <sys/socket.h>
8188 #endif
8189
8190#include <$ac_header>
8191_ACEOF
8192rm -f conftest.$ac_objext
8193if { (ac_try="$ac_compile"
8194case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197esac
8198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8210esac
8211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8213 ac_status=$?
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8220esac
8221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8223 ac_status=$?
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 eval "$as_ac_Header=yes"
8227else
8228 echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 eval "$as_ac_Header=no"
8232fi
8233
8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8235fi
8236ac_res=`eval echo '${'$as_ac_Header'}'`
8237 { echo "$as_me:$LINENO: result: $ac_res" >&5
8238echo "${ECHO_T}$ac_res" >&6; }
8239if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240 cat >>confdefs.h <<_ACEOF
8241#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242_ACEOF
8243
8244fi
8245
8246done
8247
8248
8249
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008250for ac_header in resolv.h
8251do
8252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008253{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008256 echo $ECHO_N "(cached) $ECHO_C" >&6
8257else
8258 cat >conftest.$ac_ext <<_ACEOF
8259/* confdefs.h. */
8260_ACEOF
8261cat confdefs.h >>conftest.$ac_ext
8262cat >>conftest.$ac_ext <<_ACEOF
8263/* end confdefs.h. */
8264#include <sys/types.h>
8265 #if HAVE_SYS_SOCKET_H
8266 # include <sys/socket.h>
8267 #endif
8268 #if HAVE_NETINET_IN_H
8269 # include <netinet/in.h>
8270 #endif
8271 #if HAVE_ARPA_NAMESER_H
8272 # include <arpa/nameser.h>
8273 #endif
8274
8275#include <$ac_header>
8276_ACEOF
8277rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008278if { (ac_try="$ac_compile"
8279case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282esac
8283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8292 { (case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295esac
8296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008302 { (case "(($ac_try" in
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8305esac
8306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 eval "$as_ac_Header=yes"
8312else
8313 echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
8315
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008316 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008317fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008318
Jeremy White0ebeb532006-06-20 13:18:41 +02008319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008320fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008321ac_res=`eval echo '${'$as_ac_Header'}'`
8322 { echo "$as_me:$LINENO: result: $ac_res" >&5
8323echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008324if test `eval echo '${'$as_ac_Header'}'` = yes; then
8325 cat >>confdefs.h <<_ACEOF
8326#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8327_ACEOF
8328
8329fi
8330
8331done
8332
8333
8334
8335for ac_header in ucontext.h
8336do
8337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008338{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8340if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008341 echo $ECHO_N "(cached) $ECHO_C" >&6
8342else
8343 cat >conftest.$ac_ext <<_ACEOF
8344/* confdefs.h. */
8345_ACEOF
8346cat confdefs.h >>conftest.$ac_ext
8347cat >>conftest.$ac_ext <<_ACEOF
8348/* end confdefs.h. */
8349#include <signal.h>
8350
8351#include <$ac_header>
8352_ACEOF
8353rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008354if { (ac_try="$ac_compile"
8355case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358esac
8359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008361 ac_status=$?
8362 grep -v '^ *+' conftest.er1 >conftest.err
8363 rm -f conftest.er1
8364 cat conftest.err >&5
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8368 { (case "(($ac_try" in
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8371esac
8372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008374 ac_status=$?
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); }; } &&
8377 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008378 { (case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; }; then
8387 eval "$as_ac_Header=yes"
8388else
8389 echo "$as_me: failed program was:" >&5
8390sed 's/^/| /' conftest.$ac_ext >&5
8391
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008392 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008393fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008394
Jeremy White0ebeb532006-06-20 13:18:41 +02008395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008396fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008397ac_res=`eval echo '${'$as_ac_Header'}'`
8398 { echo "$as_me:$LINENO: result: $ac_res" >&5
8399echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008400if test `eval echo '${'$as_ac_Header'}'` = yes; then
8401 cat >>confdefs.h <<_ACEOF
8402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8403_ACEOF
8404
8405fi
8406
8407done
8408
8409
8410
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02008411for ac_header in pthread_np.h
8412do
8413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8414{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8418else
8419 cat >conftest.$ac_ext <<_ACEOF
8420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
8425#ifdef HAVE_PTHREAD_H
8426#include <pthread.h>
8427#endif
8428
8429#include <$ac_header>
8430_ACEOF
8431rm -f conftest.$ac_objext
8432if { (ac_try="$ac_compile"
8433case "(($ac_try" in
8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8435 *) ac_try_echo=$ac_try;;
8436esac
8437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8439 ac_status=$?
8440 grep -v '^ *+' conftest.er1 >conftest.err
8441 rm -f conftest.er1
8442 cat conftest.err >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } &&
8445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8446 { (case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
8450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_try") 2>&5
8452 ac_status=$?
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); }; } &&
8455 { ac_try='test -s conftest.$ac_objext'
8456 { (case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_try") 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); }; }; then
8465 eval "$as_ac_Header=yes"
8466else
8467 echo "$as_me: failed program was:" >&5
8468sed 's/^/| /' conftest.$ac_ext >&5
8469
8470 eval "$as_ac_Header=no"
8471fi
8472
8473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474fi
8475ac_res=`eval echo '${'$as_ac_Header'}'`
8476 { echo "$as_me:$LINENO: result: $ac_res" >&5
8477echo "${ECHO_T}$ac_res" >&6; }
8478if test `eval echo '${'$as_ac_Header'}'` = yes; then
8479 cat >>confdefs.h <<_ACEOF
8480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8481_ACEOF
8482
8483fi
8484
8485done
8486
8487
8488
Francois Gougetfaf05df2006-08-07 21:52:36 +02008489for ac_header in linux/videodev.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008490do
8491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008492{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8493echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496else
8497 cat >conftest.$ac_ext <<_ACEOF
8498/* confdefs.h. */
8499_ACEOF
8500cat confdefs.h >>conftest.$ac_ext
8501cat >>conftest.$ac_ext <<_ACEOF
8502/* end confdefs.h. */
8503#ifdef HAVE_SYS_TIME_H
8504#include <sys/time.h>
8505#endif
8506#include <sys/types.h>
8507#ifdef HAVE_ASM_TYPES_H
8508#include <asm/types.h>
8509#endif
8510
8511#include <$ac_header>
8512_ACEOF
8513rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008514if { (ac_try="$ac_compile"
8515case "(($ac_try" in
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8518esac
8519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8528 { (case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008534 ac_status=$?
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008538 { (case "(($ac_try" in
8539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540 *) ac_try_echo=$ac_try;;
8541esac
8542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008544 ac_status=$?
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; }; then
8547 eval "$as_ac_Header=yes"
8548else
8549 echo "$as_me: failed program was:" >&5
8550sed 's/^/| /' conftest.$ac_ext >&5
8551
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008552 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008553fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008554
Jeremy White0ebeb532006-06-20 13:18:41 +02008555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008556fi
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; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008560if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561 cat >>confdefs.h <<_ACEOF
8562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8563_ACEOF
8564
8565fi
8566
8567done
8568
8569
8570
Alexandre Julliardb079add2006-02-24 11:46:17 +01008571for ac_header in linux/capi.h
8572do
8573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008574{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardb079add2006-02-24 11:46:17 +01008577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578else
8579 cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h. */
8585#define __user
8586
8587#include <$ac_header>
8588_ACEOF
8589rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008590if { (ac_try="$ac_compile"
8591case "(($ac_try" in
8592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8594esac
8595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb079add2006-02-24 11:46:17 +01008597 ac_status=$?
8598 grep -v '^ *+' conftest.er1 >conftest.err
8599 rm -f conftest.er1
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8604 { (case "(($ac_try" in
8605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8606 *) ac_try_echo=$ac_try;;
8607esac
8608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8609 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01008610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; } &&
8613 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008614 { (case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617esac
8618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01008620 ac_status=$?
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); }; }; then
8623 eval "$as_ac_Header=yes"
8624else
8625 echo "$as_me: failed program was:" >&5
8626sed 's/^/| /' conftest.$ac_ext >&5
8627
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008628 eval "$as_ac_Header=no"
Alexandre Julliardb079add2006-02-24 11:46:17 +01008629fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008630
Jeremy White0ebeb532006-06-20 13:18:41 +02008631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb079add2006-02-24 11:46:17 +01008632fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008633ac_res=`eval echo '${'$as_ac_Header'}'`
8634 { echo "$as_me:$LINENO: result: $ac_res" >&5
8635echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardb079add2006-02-24 11:46:17 +01008636if test `eval echo '${'$as_ac_Header'}'` = yes; then
8637 cat >>confdefs.h <<_ACEOF
8638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8639_ACEOF
8640
8641fi
8642
8643done
8644
8645
8646
Rein Klazes7ff12562004-11-09 20:16:35 +00008647if test "$have_x" = "yes"
8648then
8649 XLIB="-lXext -lX11"
8650 ac_save_CPPFLAGS="$CPPFLAGS"
8651 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
8652
8653
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008654
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008655
Alexandre Julliard255b4862003-10-15 04:09:55 +00008656
8657
8658
8659
8660
8661
Alexandre Julliard73482142005-08-03 19:21:04 +00008662for ac_header in X11/Xlib.h \
8663 X11/XKBlib.h \
8664 X11/Xutil.h \
8665 X11/extensions/shape.h \
8666 X11/extensions/XInput.h \
8667 X11/extensions/XShm.h \
8668 X11/extensions/Xrandr.h \
8669 X11/extensions/Xrender.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008670 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008671do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008673{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8675if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008676 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008677else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00008678 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00008684#ifdef HAVE_X11_XLIB_H
8685# include <X11/Xlib.h>
8686#endif
8687#ifdef HAVE_X11_XUTIL_H
8688# include <X11/Xutil.h>
8689#endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00008690
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008691#include <$ac_header>
8692_ACEOF
8693rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008694if { (ac_try="$ac_compile"
8695case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698esac
8699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008701 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8708 { (case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; } &&
8717 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008718 { (case "(($ac_try" in
8719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8720 *) ac_try_echo=$ac_try;;
8721esac
8722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8723 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008724 ac_status=$?
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00008727 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008728else
8729 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008730sed 's/^/| /' conftest.$ac_ext >&5
8731
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008732 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008733fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008734
Jeremy White0ebeb532006-06-20 13:18:41 +02008735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008736fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008737ac_res=`eval echo '${'$as_ac_Header'}'`
8738 { echo "$as_me:$LINENO: result: $ac_res" >&5
8739echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008740if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008741 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008742#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008743_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00008744
8745fi
8746
8747done
8748
8749
8750 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8751 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008752 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
8753echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008754if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008756else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008757 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00008758LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008759cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008760/* confdefs.h. */
8761_ACEOF
8762cat confdefs.h >>conftest.$ac_ext
8763cat >>conftest.$ac_ext <<_ACEOF
8764/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008766/* Override any GCC internal prototype to avoid an error.
8767 Use char because int might match the return type of a GCC
8768 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008769#ifdef __cplusplus
8770extern "C"
8771#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008772char XkbQueryExtension ();
8773int
8774main ()
8775{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008776return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02008782if { (ac_try="$ac_link"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008789 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008794 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8796 { (case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799esac
8800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8801 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008806 { (case "(($ac_try" in
8807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8808 *) ac_try_echo=$ac_try;;
8809esac
8810eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8811 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008812 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008814 (exit $ac_status); }; }; then
8815 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008816else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008817 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008818sed 's/^/| /' conftest.$ac_ext >&5
8819
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008820 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008821fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008822
Jeremy White0ebeb532006-06-20 13:18:41 +02008823rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008824 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008825LIBS=$ac_check_lib_save_LIBS
8826fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008827{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
8828echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008829if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008830
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008831cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008832#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008833_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008834
Patrik Stridvall24110281999-02-04 10:09:54 +00008835fi
8836
Alexandre Julliard255b4862003-10-15 04:09:55 +00008837 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008838
Alexandre Julliard255b4862003-10-15 04:09:55 +00008839 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8840 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008841 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
8842echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008843if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008845else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008846 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00008847LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008848cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008849/* confdefs.h. */
8850_ACEOF
8851cat confdefs.h >>conftest.$ac_ext
8852cat >>conftest.$ac_ext <<_ACEOF
8853/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008854
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008855/* Override any GCC internal prototype to avoid an error.
8856 Use char because int might match the return type of a GCC
8857 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008858#ifdef __cplusplus
8859extern "C"
8860#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008861char XShmQueryExtension ();
8862int
8863main ()
8864{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008865return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008866 ;
8867 return 0;
8868}
8869_ACEOF
8870rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02008871if { (ac_try="$ac_link"
8872case "(($ac_try" in
8873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874 *) ac_try_echo=$ac_try;;
8875esac
8876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008878 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008883 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8885 { (case "(($ac_try" in
8886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8887 *) ac_try_echo=$ac_try;;
8888esac
8889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8890 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008891 ac_status=$?
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); }; } &&
8894 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008895 { (case "(($ac_try" in
8896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8897 *) ac_try_echo=$ac_try;;
8898esac
8899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8900 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008901 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008903 (exit $ac_status); }; }; then
8904 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008905else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008906 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008907sed 's/^/| /' conftest.$ac_ext >&5
8908
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008909 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008910fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008911
Jeremy White0ebeb532006-06-20 13:18:41 +02008912rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008913 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008914LIBS=$ac_check_lib_save_LIBS
8915fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008916{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
8917echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008918if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00008919
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008920cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00008921#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008922_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00008923
Francois Jacques5b6879c2000-07-28 23:04:54 +00008924fi
8925
Alexandre Julliard255b4862003-10-15 04:09:55 +00008926 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008927
Alexandre Julliard255b4862003-10-15 04:09:55 +00008928 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8929 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008930 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8931echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008932if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008934else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008935 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00008936LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008937cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008938/* confdefs.h. */
8939_ACEOF
8940cat confdefs.h >>conftest.$ac_ext
8941cat >>conftest.$ac_ext <<_ACEOF
8942/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008943
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008944/* Override any GCC internal prototype to avoid an error.
8945 Use char because int might match the return type of a GCC
8946 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008947#ifdef __cplusplus
8948extern "C"
8949#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008950char XShapeQueryExtension ();
8951int
8952main ()
8953{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008954return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008955 ;
8956 return 0;
8957}
8958_ACEOF
8959rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02008960if { (ac_try="$ac_link"
8961case "(($ac_try" in
8962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963 *) ac_try_echo=$ac_try;;
8964esac
8965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008967 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008968 grep -v '^ *+' conftest.er1 >conftest.err
8969 rm -f conftest.er1
8970 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008972 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8977esac
8978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008980 ac_status=$?
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008984 { (case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987esac
8988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8989 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008990 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008992 (exit $ac_status); }; }; then
8993 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008994else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008995 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008996sed 's/^/| /' conftest.$ac_ext >&5
8997
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008998 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008999fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009000
Jeremy White0ebeb532006-06-20 13:18:41 +02009001rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009002 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009003LIBS=$ac_check_lib_save_LIBS
9004fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009005{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9006echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009007if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00009008
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009009cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009010#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009011_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009012
Ove Kaavenc90fb252001-01-02 22:39:14 +00009013fi
9014
Alexandre Julliard255b4862003-10-15 04:09:55 +00009015 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009016
Alexandre Julliard255b4862003-10-15 04:09:55 +00009017 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9018 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009019 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9020echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009021if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009023else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009024 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00009025LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009026cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009027/* confdefs.h. */
9028_ACEOF
9029cat confdefs.h >>conftest.$ac_ext
9030cat >>conftest.$ac_ext <<_ACEOF
9031/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009032
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009033/* Override any GCC internal prototype to avoid an error.
9034 Use char because int might match the return type of a GCC
9035 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009036#ifdef __cplusplus
9037extern "C"
9038#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009039char XF86VidModeQueryExtension ();
9040int
9041main ()
9042{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009043return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009044 ;
9045 return 0;
9046}
9047_ACEOF
9048rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009049if { (ac_try="$ac_link"
9050case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053esac
9054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9055 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009056 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009061 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9063 { (case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066esac
9067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009069 ac_status=$?
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009073 { (case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076esac
9077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009079 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009081 (exit $ac_status); }; }; then
9082 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009083else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009084 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009085sed 's/^/| /' conftest.$ac_ext >&5
9086
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009087 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009088fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009089
Jeremy White0ebeb532006-06-20 13:18:41 +02009090rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009091 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009092LIBS=$ac_check_lib_save_LIBS
9093fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009094{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9095echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009096if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009097
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009098cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009099#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009100_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009101
9102 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009103
Patrik Stridvall24110281999-02-04 10:09:54 +00009104fi
9105
Alexandre Julliard255b4862003-10-15 04:09:55 +00009106 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009107
Alexandre Julliard255b4862003-10-15 04:09:55 +00009108 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9109 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00009110 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009111/* confdefs.h. */
9112_ACEOF
9113cat confdefs.h >>conftest.$ac_ext
9114cat >>conftest.$ac_ext <<_ACEOF
9115/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00009116#include <X11/Xlib.h>
9117#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009118int
9119main ()
9120{
Mike McCormackc7c9f932004-04-07 03:57:35 +00009121static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009122 ;
9123 return 0;
9124}
9125_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00009126rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009127if { (ac_try="$ac_compile"
9128case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131esac
9132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133 (eval "$ac_compile") 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009134 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9141 { (case "(($ac_try" in
9142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143 *) ac_try_echo=$ac_try;;
9144esac
9145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009147 ac_status=$?
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00009150 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009151 { (case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154esac
9155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_try") 2>&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009160
9161cat >>confdefs.h <<\_ACEOF
9162#define HAVE_LIBXRANDR 1
9163_ACEOF
9164
Mike McCormackc7c9f932004-04-07 03:57:35 +00009165else
9166 echo "$as_me: failed program was:" >&5
9167sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009168
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009169
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009170fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009171
Jeremy White0ebeb532006-06-20 13:18:41 +02009172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00009173 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009174
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009175 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9176 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009177 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9178echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009179if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9180 echo $ECHO_N "(cached) $ECHO_C" >&6
9181else
9182 ac_check_lib_save_LIBS=$LIBS
9183LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9184cat >conftest.$ac_ext <<_ACEOF
9185/* confdefs.h. */
9186_ACEOF
9187cat confdefs.h >>conftest.$ac_ext
9188cat >>conftest.$ac_ext <<_ACEOF
9189/* end confdefs.h. */
9190
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009191/* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009194#ifdef __cplusplus
9195extern "C"
9196#endif
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009197char XRenderSetPictureTransform ();
9198int
9199main ()
9200{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009201return XRenderSetPictureTransform ();
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009202 ;
9203 return 0;
9204}
9205_ACEOF
9206rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009207if { (ac_try="$ac_link"
9208case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211esac
9212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_link") 2>conftest.er1
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221 { (case "(($ac_try" in
9222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9224esac
9225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; } &&
9230 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009231 { (case "(($ac_try" in
9232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233 *) ac_try_echo=$ac_try;;
9234esac
9235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009237 ac_status=$?
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9241else
9242 echo "$as_me: failed program was:" >&5
9243sed 's/^/| /' conftest.$ac_ext >&5
9244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009245 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009247
Jeremy White0ebeb532006-06-20 13:18:41 +02009248rm -f core conftest.err conftest.$ac_objext \
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009249 conftest$ac_exeext conftest.$ac_ext
9250LIBS=$ac_check_lib_save_LIBS
9251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009252{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9253echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009254if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9255
9256cat >>confdefs.h <<\_ACEOF
9257#define HAVE_XRENDERSETPICTURETRANSFORM 1
9258_ACEOF
9259
9260fi
9261
9262 fi
9263
Alexandre Julliardb8074992002-11-21 21:51:24 +00009264 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009265 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009266
9267
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009268
Huw Davies4eb45462006-03-07 13:55:35 +00009269
9270for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009271do
9272as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009273{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9274echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9275if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009276 echo $ECHO_N "(cached) $ECHO_C" >&6
9277else
9278 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009284#ifdef HAVE_GL_GLX_H
9285# include <GL/glx.h>
9286#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009287
9288#include <$ac_header>
9289_ACEOF
9290rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009291if { (ac_try="$ac_compile"
9292case "(($ac_try" in
9293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9294 *) ac_try_echo=$ac_try;;
9295esac
9296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9297 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009298 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009299 grep -v '^ *+' conftest.er1 >conftest.err
9300 rm -f conftest.er1
9301 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9305 { (case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308esac
9309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009315 { (case "(($ac_try" in
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9318esac
9319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009321 ac_status=$?
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; }; then
9324 eval "$as_ac_Header=yes"
9325else
9326 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009327sed 's/^/| /' conftest.$ac_ext >&5
9328
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009329 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009330fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009331
Jeremy White0ebeb532006-06-20 13:18:41 +02009332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009333fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009334ac_res=`eval echo '${'$as_ac_Header'}'`
9335 { echo "$as_me:$LINENO: result: $ac_res" >&5
9336echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009337if test `eval echo '${'$as_ac_Header'}'` = yes; then
9338 cat >>confdefs.h <<_ACEOF
9339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9340_ACEOF
9341
9342fi
9343
9344done
9345
Alexandre Julliard73482142005-08-03 19:21:04 +00009346 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9347 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009348 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9349echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009350if test "${wine_cv_opengl_header_version_OK+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009351 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00009352else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009353 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009354/* confdefs.h. */
9355_ACEOF
9356cat confdefs.h >>conftest.$ac_ext
9357cat >>conftest.$ac_ext <<_ACEOF
9358/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00009359#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009360int
9361main ()
9362{
Lionel Ulmer5c085701999-02-28 19:48:53 +00009363GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009364 ;
9365 return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009369if { (ac_try="$ac_compile"
9370case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373esac
9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009376 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009381 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9383 { (case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386esac
9387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009393 { (case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396esac
9397eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009399 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009401 (exit $ac_status); }; }; then
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009402 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00009403else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009404 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009405sed 's/^/| /' conftest.$ac_ext >&5
9406
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009407 wine_cv_opengl_header_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00009408
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009409fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009410
Jeremy White0ebeb532006-06-20 13:18:41 +02009411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00009412
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009413fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009414{ echo "$as_me:$LINENO: result: $wine_cv_opengl_header_version_OK" >&5
9415echo "${ECHO_T}$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009416
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02009417 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009418 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009419 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9420echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009421if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009423else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009424 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00009425LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009426cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009427/* confdefs.h. */
9428_ACEOF
9429cat confdefs.h >>conftest.$ac_ext
9430cat >>conftest.$ac_ext <<_ACEOF
9431/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009432
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009433/* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009436#ifdef __cplusplus
9437extern "C"
9438#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009439char glXCreateContext ();
9440int
9441main ()
9442{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009443return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009444 ;
9445 return 0;
9446}
9447_ACEOF
9448rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009449if { (ac_try="$ac_link"
9450case "(($ac_try" in
9451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9452 *) ac_try_echo=$ac_try;;
9453esac
9454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9455 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009456 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009457 grep -v '^ *+' conftest.er1 >conftest.err
9458 rm -f conftest.er1
9459 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009461 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9463 { (case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466esac
9467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009469 ac_status=$?
9470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); }; } &&
9472 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009473 { (case "(($ac_try" in
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9476esac
9477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009479 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009481 (exit $ac_status); }; }; then
9482 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009483else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009484 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009485sed 's/^/| /' conftest.$ac_ext >&5
9486
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009487 ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009488fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009489
Jeremy White0ebeb532006-06-20 13:18:41 +02009490rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009491 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00009493fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009494{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
9495echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009496if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009497 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00009498
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009499fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009500
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009501
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00009502 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00009503 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00009504 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009505
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009506cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00009507#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009508_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00009509
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +00009510 else
9511 if test -f /usr/X11R6/lib/libGL.a
9512 then
9513 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
9514This prevents linking to OpenGL. Delete the file and restart configure." >&5
9515echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
9516This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
9517 { (exit 1); exit 1; }; }
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009518 else
9519 wine_cv_opengl_libs_found="no"
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +00009520 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009521 fi
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +00009522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009523 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
9524echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009525if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009527else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009528 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009529LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009530 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009531cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009532/* confdefs.h. */
9533_ACEOF
9534cat confdefs.h >>conftest.$ac_ext
9535cat >>conftest.$ac_ext <<_ACEOF
9536/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009537
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009538/* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009541#ifdef __cplusplus
9542extern "C"
9543#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009544char gluLookAt ();
9545int
9546main ()
9547{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009548return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009549 ;
9550 return 0;
9551}
9552_ACEOF
9553rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009554if { (ac_try="$ac_link"
9555case "(($ac_try" in
9556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9557 *) ac_try_echo=$ac_try;;
9558esac
9559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9560 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009561 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009566 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9568 { (case "(($ac_try" in
9569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9570 *) ac_try_echo=$ac_try;;
9571esac
9572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009574 ac_status=$?
9575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576 (exit $ac_status); }; } &&
9577 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009578 { (case "(($ac_try" in
9579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9580 *) ac_try_echo=$ac_try;;
9581esac
9582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9583 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009584 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009586 (exit $ac_status); }; }; then
9587 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009588else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009589 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009590sed 's/^/| /' conftest.$ac_ext >&5
9591
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009592 ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009593fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009594
Jeremy White0ebeb532006-06-20 13:18:41 +02009595rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009596 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009597LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009598fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009599{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
9600echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009601if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00009602 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009603 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009604
Marcus Meissnerb63ab442001-06-08 19:02:57 +00009605fi
9606
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009607 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00009608
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009609 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
9610echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +00009611if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9613else
9614 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00009615LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00009616cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00009617/* confdefs.h. */
9618_ACEOF
9619cat confdefs.h >>conftest.$ac_ext
9620cat >>conftest.$ac_ext <<_ACEOF
9621/* end confdefs.h. */
9622
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009623/* Override any GCC internal prototype to avoid an error.
9624 Use char because int might match the return type of a GCC
9625 builtin and then its argument prototype would still apply. */
Jacek Cabanef799c42003-12-02 04:11:09 +00009626#ifdef __cplusplus
9627extern "C"
9628#endif
Jacek Cabanef799c42003-12-02 04:11:09 +00009629char glutMainLoop ();
9630int
9631main ()
9632{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009633return glutMainLoop ();
Jacek Cabanef799c42003-12-02 04:11:09 +00009634 ;
9635 return 0;
9636}
9637_ACEOF
9638rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009639if { (ac_try="$ac_link"
9640case "(($ac_try" in
9641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9642 *) ac_try_echo=$ac_try;;
9643esac
9644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9645 (eval "$ac_link") 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00009646 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009647 grep -v '^ *+' conftest.er1 >conftest.err
9648 rm -f conftest.er1
9649 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00009650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9653 { (case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656esac
9657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009659 ac_status=$?
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; } &&
9662 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009663 { (case "(($ac_try" in
9664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665 *) ac_try_echo=$ac_try;;
9666esac
9667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668 (eval "$ac_try") 2>&5
Jacek Cabanef799c42003-12-02 04:11:09 +00009669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_cv_lib_glut_glutMainLoop=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009677 ac_cv_lib_glut_glutMainLoop=no
Jacek Cabanef799c42003-12-02 04:11:09 +00009678fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009679
Jeremy White0ebeb532006-06-20 13:18:41 +02009680rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009681 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00009682LIBS=$ac_check_lib_save_LIBS
9683fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009684{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
9685echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +00009686if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00009687 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00009688
9689 GLUT32FILES='$(GLUT32FILES)'
9690
9691fi
9692
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02009693 else
9694 wine_cv_opengl_headers_found="no"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009695 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009696 fi
Francois Gouget6f670b12002-10-10 17:54:27 +00009697 NASLIBS=""
9698
9699
9700for ac_header in audio/audiolib.h
9701do
9702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +00009707 echo $ECHO_N "(cached) $ECHO_C" >&6
9708fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009709ac_res=`eval echo '${'$as_ac_Header'}'`
9710 { echo "$as_me:$LINENO: result: $ac_res" >&5
9711echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009712else
9713 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009714{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009716cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009722$ac_includes_default
9723#include <$ac_header>
9724_ACEOF
9725rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009726if { (ac_try="$ac_compile"
9727case "(($ac_try" in
9728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9729 *) ac_try_echo=$ac_try;;
9730esac
9731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9732 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009733 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009734 grep -v '^ *+' conftest.er1 >conftest.err
9735 rm -f conftest.er1
9736 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9740 { (case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743esac
9744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009746 ac_status=$?
9747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9748 (exit $ac_status); }; } &&
9749 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009750 { (case "(($ac_try" in
9751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752 *) ac_try_echo=$ac_try;;
9753esac
9754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 ac_header_compiler=yes
9760else
9761 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009762sed 's/^/| /' conftest.$ac_ext >&5
9763
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009764 ac_header_compiler=no
Francois Gouget6f670b12002-10-10 17:54:27 +00009765fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009766
Jeremy White0ebeb532006-06-20 13:18:41 +02009767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009768{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9769echo "${ECHO_T}$ac_header_compiler" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009770
9771# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009772{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009774cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009775/* confdefs.h. */
9776_ACEOF
9777cat confdefs.h >>conftest.$ac_ext
9778cat >>conftest.$ac_ext <<_ACEOF
9779/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009780#include <$ac_header>
9781_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02009782if { (ac_try="$ac_cpp conftest.$ac_ext"
9783case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786esac
9787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009789 ac_status=$?
9790 grep -v '^ *+' conftest.er1 >conftest.err
9791 rm -f conftest.er1
9792 cat conftest.err >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); } >/dev/null; then
9795 if test -s conftest.err; then
9796 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00009798 else
9799 ac_cpp_err=
9800 fi
9801else
9802 ac_cpp_err=yes
9803fi
9804if test -z "$ac_cpp_err"; then
9805 ac_header_preproc=yes
9806else
9807 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009808sed 's/^/| /' conftest.$ac_ext >&5
9809
Francois Gouget6f670b12002-10-10 17:54:27 +00009810 ac_header_preproc=no
9811fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009812
Francois Gouget6f670b12002-10-10 17:54:27 +00009813rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009814{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815echo "${ECHO_T}$ac_header_preproc" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009816
9817# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00009820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9821echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9823echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009825 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009826 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00009827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9828echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9830echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9832echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9834echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00009835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9838echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009839 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009840## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009841## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009842## ------------------------------------ ##
9843_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009844 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009845 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00009846esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +00009850 echo $ECHO_N "(cached) $ECHO_C" >&6
9851else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009852 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00009853fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009854ac_res=`eval echo '${'$as_ac_Header'}'`
9855 { echo "$as_me:$LINENO: result: $ac_res" >&5
9856echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009857
9858fi
9859if test `eval echo '${'$as_ac_Header'}'` = yes; then
9860 cat >>confdefs.h <<_ACEOF
9861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9862_ACEOF
9863
9864for ac_header in audio/soundlib.h
9865do
9866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009867{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9868echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9869if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +00009870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871else
9872 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009873/* confdefs.h. */
9874_ACEOF
9875cat confdefs.h >>conftest.$ac_ext
9876cat >>conftest.$ac_ext <<_ACEOF
9877/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009878#include <audio/audiolib.h>
9879
9880#include <$ac_header>
9881_ACEOF
9882rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009883if { (ac_try="$ac_compile"
9884case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887esac
9888eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009890 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9897 { (case "(($ac_try" in
9898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899 *) ac_try_echo=$ac_try;;
9900esac
9901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009907 { (case "(($ac_try" in
9908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909 *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 eval "$as_ac_Header=yes"
9917else
9918 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009919sed 's/^/| /' conftest.$ac_ext >&5
9920
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009921 eval "$as_ac_Header=no"
Francois Gouget6f670b12002-10-10 17:54:27 +00009922fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009923
Jeremy White0ebeb532006-06-20 13:18:41 +02009924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009925fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009926ac_res=`eval echo '${'$as_ac_Header'}'`
9927 { echo "$as_me:$LINENO: result: $ac_res" >&5
9928echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009929if test `eval echo '${'$as_ac_Header'}'` = yes; then
9930 cat >>confdefs.h <<_ACEOF
9931#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9932_ACEOF
9933
9934fi
9935
9936done
9937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009938 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
9939echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +00009940if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9942else
9943 ac_check_lib_save_LIBS=$LIBS
9944LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9945cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009946/* confdefs.h. */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009951
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009952/* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009955#ifdef __cplusplus
9956extern "C"
9957#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00009958char AuCreateFlow ();
9959int
9960main ()
9961{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009962return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00009963 ;
9964 return 0;
9965}
9966_ACEOF
9967rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009968if { (ac_try="$ac_link"
9969case "(($ac_try" in
9970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9971 *) ac_try_echo=$ac_try;;
9972esac
9973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00009975 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009976 grep -v '^ *+' conftest.er1 >conftest.err
9977 rm -f conftest.er1
9978 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9982 { (case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985esac
9986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9987 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009992 { (case "(($ac_try" in
9993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994 *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +00009998 ac_status=$?
9999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000 (exit $ac_status); }; }; then
10001 ac_cv_lib_audio_AuCreateFlow=yes
10002else
10003 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010004sed 's/^/| /' conftest.$ac_ext >&5
10005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010006 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010007fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010008
Jeremy White0ebeb532006-06-20 13:18:41 +020010009rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010010 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010011LIBS=$ac_check_lib_save_LIBS
10012fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010013{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10014echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010015if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10016
10017cat >>confdefs.h <<\_ACEOF
10018#define HAVE_NAS 1
10019_ACEOF
10020
10021 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10022fi
10023
10024fi
10025
10026done
10027
10028
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010029 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +000010030 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +000010031else
10032 XLIB=""
10033 X_CFLAGS=""
10034 X_LIBS=""
10035fi
Alexandre Julliard902da691995-11-05 14:39:02 +000010036
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010037
10038XML2LIBS=""
10039
10040XML2INCL=""
10041
Mike McCormackf3719a82005-09-03 09:39:38 +000010042XSLTLIBS=""
10043
10044XSLTINCL=""
10045
Mike McCormack90c75bd2005-08-08 18:36:53 +000010046if test "$PKG_CONFIG" != "false"
10047then
10048 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010049 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10050 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
Mike McCormack90c75bd2005-08-08 18:36:53 +000010051 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010052
10053for ac_header in libxml/parser.h
10054do
10055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010056if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10059if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010062ac_res=`eval echo '${'$as_ac_Header'}'`
10063 { echo "$as_me:$LINENO: result: $ac_res" >&5
10064echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010065else
10066 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010067{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10068echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010069cat >conftest.$ac_ext <<_ACEOF
10070/* confdefs.h. */
10071_ACEOF
10072cat confdefs.h >>conftest.$ac_ext
10073cat >>conftest.$ac_ext <<_ACEOF
10074/* end confdefs.h. */
10075$ac_includes_default
10076#include <$ac_header>
10077_ACEOF
10078rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010079if { (ac_try="$ac_compile"
10080case "(($ac_try" in
10081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10082 *) ac_try_echo=$ac_try;;
10083esac
10084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10085 (eval "$ac_compile") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010086 ac_status=$?
10087 grep -v '^ *+' conftest.er1 >conftest.err
10088 rm -f conftest.er1
10089 cat conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10093 { (case "(($ac_try" in
10094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10095 *) ac_try_echo=$ac_try;;
10096esac
10097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10098 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010099 ac_status=$?
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); }; } &&
10102 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010103 { (case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106esac
10107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010109 ac_status=$?
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 ac_header_compiler=yes
10113else
10114 echo "$as_me: failed program was:" >&5
10115sed 's/^/| /' conftest.$ac_ext >&5
10116
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010117 ac_header_compiler=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +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
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10122echo "${ECHO_T}$ac_header_compiler" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010123
10124# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010125{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010127cat >conftest.$ac_ext <<_ACEOF
10128/* confdefs.h. */
10129_ACEOF
10130cat confdefs.h >>conftest.$ac_ext
10131cat >>conftest.$ac_ext <<_ACEOF
10132/* end confdefs.h. */
10133#include <$ac_header>
10134_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010135if { (ac_try="$ac_cpp conftest.$ac_ext"
10136case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139esac
10140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010142 ac_status=$?
10143 grep -v '^ *+' conftest.er1 >conftest.err
10144 rm -f conftest.er1
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } >/dev/null; then
10148 if test -s conftest.err; then
10149 ac_cpp_err=$ac_c_preproc_warn_flag
10150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10151 else
10152 ac_cpp_err=
10153 fi
10154else
10155 ac_cpp_err=yes
10156fi
10157if test -z "$ac_cpp_err"; then
10158 ac_header_preproc=yes
10159else
10160 echo "$as_me: failed program was:" >&5
10161sed 's/^/| /' conftest.$ac_ext >&5
10162
10163 ac_header_preproc=no
10164fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010165
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010166rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010167{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10168echo "${ECHO_T}$ac_header_preproc" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010169
10170# So? What about this header?
10171case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10172 yes:no: )
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10176echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10177 ac_header_preproc=yes
10178 ;;
10179 no:yes:* )
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10181echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10183echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10185echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10187echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10189echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10191echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010192 ( cat <<\_ASBOX
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010193## ------------------------------------ ##
10194## Report this to wine-devel@winehq.org ##
10195## ------------------------------------ ##
10196_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010197 ) | sed "s/^/$as_me: WARNING: /" >&2
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010198 ;;
10199esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010200{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10202if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204else
10205 eval "$as_ac_Header=\$ac_header_preproc"
10206fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010207ac_res=`eval echo '${'$as_ac_Header'}'`
10208 { echo "$as_me:$LINENO: result: $ac_res" >&5
10209echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010210
10211fi
10212if test `eval echo '${'$as_ac_Header'}'` = yes; then
10213 cat >>confdefs.h <<_ACEOF
10214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10215_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010216 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10217echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010218if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +000010222LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010223cat >conftest.$ac_ext <<_ACEOF
10224/* confdefs.h. */
10225_ACEOF
10226cat confdefs.h >>conftest.$ac_ext
10227cat >>conftest.$ac_ext <<_ACEOF
10228/* end confdefs.h. */
10229
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010230/* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010233#ifdef __cplusplus
10234extern "C"
10235#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +000010236char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010237int
10238main ()
10239{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010240return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010241 ;
10242 return 0;
10243}
10244_ACEOF
10245rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010246if { (ac_try="$ac_link"
10247case "(($ac_try" in
10248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10249 *) ac_try_echo=$ac_try;;
10250esac
10251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010253 ac_status=$?
10254 grep -v '^ *+' conftest.er1 >conftest.err
10255 rm -f conftest.er1
10256 cat conftest.err >&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10260 { (case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10263esac
10264eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010266 ac_status=$?
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; } &&
10269 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010270 { (case "(($ac_try" in
10271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10273esac
10274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +000010279 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010280else
10281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010284 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010285fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010286
Jeremy White0ebeb532006-06-20 13:18:41 +020010287rm -f core conftest.err conftest.$ac_objext \
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010288 conftest$ac_exeext conftest.$ac_ext
10289LIBS=$ac_check_lib_save_LIBS
10290fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010291{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10292echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010293if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010294
10295cat >>confdefs.h <<\_ACEOF
10296#define HAVE_LIBXML2 1
10297_ACEOF
10298
Mike McCormack90c75bd2005-08-08 18:36:53 +000010299 XML2LIBS="$ac_xml_libs"
10300 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010301fi
10302
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010303 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10304echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010305if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307else
10308 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +000010309LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormack70adb8f2005-08-12 10:35:17 +000010310cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h. */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
10316
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010317/* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +000010320#ifdef __cplusplus
10321extern "C"
10322#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +000010323char xmlReadMemory ();
10324int
10325main ()
10326{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010327return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +000010328 ;
10329 return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010333if { (ac_try="$ac_link"
10334case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337esac
10338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
Mike McCormack70adb8f2005-08-12 10:35:17 +000010340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10347 { (case "(($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_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000010353 ac_status=$?
10354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355 (exit $ac_status); }; } &&
10356 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010357 { (case "(($ac_try" in
10358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10359 *) ac_try_echo=$ac_try;;
10360esac
10361eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000010363 ac_status=$?
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); }; }; then
10366 ac_cv_lib_xml2_xmlReadMemory=yes
10367else
10368 echo "$as_me: failed program was:" >&5
10369sed 's/^/| /' conftest.$ac_ext >&5
10370
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010371 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +000010372fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010373
Jeremy White0ebeb532006-06-20 13:18:41 +020010374rm -f core conftest.err conftest.$ac_objext \
Mike McCormack70adb8f2005-08-12 10:35:17 +000010375 conftest$ac_exeext conftest.$ac_ext
10376LIBS=$ac_check_lib_save_LIBS
10377fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010378{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10379echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010380if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10381
10382cat >>confdefs.h <<\_ACEOF
10383#define HAVE_XMLREADMEMORY 1
10384_ACEOF
10385
10386fi
10387
10388
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010389fi
10390
10391done
10392
Mike McCormack90c75bd2005-08-08 18:36:53 +000010393 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010394 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10395 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
Mike McCormackf3719a82005-09-03 09:39:38 +000010396 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10397
10398
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010399for ac_header in libxslt/pattern.h libxslt/transform.h
Mike McCormackf3719a82005-09-03 09:39:38 +000010400do
10401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackf3719a82005-09-03 09:39:38 +000010405 echo $ECHO_N "(cached) $ECHO_C" >&6
Mike McCormackf3719a82005-09-03 09:39:38 +000010406else
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010407 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +000010408/* confdefs.h. */
10409_ACEOF
10410cat confdefs.h >>conftest.$ac_ext
10411cat >>conftest.$ac_ext <<_ACEOF
10412/* end confdefs.h. */
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010413#ifdef HAVE_LIBXSLT_PATTERN_H
10414# include <libxslt/pattern.h>
10415#endif
10416
Mike McCormackf3719a82005-09-03 09:39:38 +000010417#include <$ac_header>
10418_ACEOF
10419rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010420if { (ac_try="$ac_compile"
10421case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424esac
10425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10426 (eval "$ac_compile") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000010427 ac_status=$?
10428 grep -v '^ *+' conftest.er1 >conftest.err
10429 rm -f conftest.er1
10430 cat conftest.err >&5
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10434 { (case "(($ac_try" in
10435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10437esac
10438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000010440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010444 { (case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447esac
10448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10449 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000010450 ac_status=$?
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); }; }; then
Vincent BĂ©rond7f64242005-09-15 09:39:09 +000010453 eval "$as_ac_Header=yes"
Mike McCormackf3719a82005-09-03 09:39:38 +000010454else
10455 echo "$as_me: failed program was:" >&5
10456sed 's/^/| /' conftest.$ac_ext >&5
10457
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010458 eval "$as_ac_Header=no"
Mike McCormackf3719a82005-09-03 09:39:38 +000010459fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010460
Jeremy White0ebeb532006-06-20 13:18:41 +020010461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +000010462fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010463ac_res=`eval echo '${'$as_ac_Header'}'`
10464 { echo "$as_me:$LINENO: result: $ac_res" >&5
10465echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010466if test `eval echo '${'$as_ac_Header'}'` = yes; then
10467 cat >>confdefs.h <<_ACEOF
10468#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10469_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010470 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10471echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010472if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 ac_check_lib_save_LIBS=$LIBS
10476LIBS="-lxslt $ac_xslt_libs $LIBS"
10477cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h. */
10479_ACEOF
10480cat confdefs.h >>conftest.$ac_ext
10481cat >>conftest.$ac_ext <<_ACEOF
10482/* end confdefs.h. */
10483
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010484/* Override any GCC internal prototype to avoid an error.
10485 Use char because int might match the return type of a GCC
10486 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +000010487#ifdef __cplusplus
10488extern "C"
10489#endif
Mike McCormackf3719a82005-09-03 09:39:38 +000010490char xsltCompilePattern ();
10491int
10492main ()
10493{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010494return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +000010495 ;
10496 return 0;
10497}
10498_ACEOF
10499rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010500if { (ac_try="$ac_link"
10501case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504esac
10505eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10506 (eval "$ac_link") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000010507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10514 { (case "(($ac_try" in
10515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516 *) ac_try_echo=$ac_try;;
10517esac
10518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000010520 ac_status=$?
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); }; } &&
10523 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010524 { (case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10527esac
10528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000010530 ac_status=$?
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 ac_cv_lib_xslt_xsltCompilePattern=yes
10534else
10535 echo "$as_me: failed program was:" >&5
10536sed 's/^/| /' conftest.$ac_ext >&5
10537
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010538 ac_cv_lib_xslt_xsltCompilePattern=no
Mike McCormackf3719a82005-09-03 09:39:38 +000010539fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010540
Jeremy White0ebeb532006-06-20 13:18:41 +020010541rm -f core conftest.err conftest.$ac_objext \
Mike McCormackf3719a82005-09-03 09:39:38 +000010542 conftest$ac_exeext conftest.$ac_ext
10543LIBS=$ac_check_lib_save_LIBS
10544fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010545{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
10546echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010547if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
10548
10549cat >>confdefs.h <<\_ACEOF
10550#define HAVE_LIBXSLT 1
10551_ACEOF
10552
10553 XSLTLIBS="$ac_xslt_libs"
10554 XSLTINCL="$ac_xslt_cflags"
10555fi
10556
10557
10558fi
10559
10560done
10561
10562 CPPFLAGS="$ac_save_CPPFLAGS"
Mike McCormack90c75bd2005-08-08 18:36:53 +000010563fi
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010564
Alexandre Julliard00068982006-04-18 16:47:53 +020010565HALINCL=""
10566
10567if test "$PKG_CONFIG" != "false"
10568then
10569 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010570 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
10571 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
Alexandre Julliard00068982006-04-18 16:47:53 +020010572 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
10573
10574
10575for ac_header in dbus/dbus.h hal/libhal.h
10576do
10577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010578if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10581if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020010582 echo $ECHO_N "(cached) $ECHO_C" >&6
10583fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010584ac_res=`eval echo '${'$as_ac_Header'}'`
10585 { echo "$as_me:$LINENO: result: $ac_res" >&5
10586echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010587else
10588 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010589{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010591cat >conftest.$ac_ext <<_ACEOF
10592/* confdefs.h. */
10593_ACEOF
10594cat confdefs.h >>conftest.$ac_ext
10595cat >>conftest.$ac_ext <<_ACEOF
10596/* end confdefs.h. */
10597$ac_includes_default
10598#include <$ac_header>
10599_ACEOF
10600rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010601if { (ac_try="$ac_compile"
10602case "(($ac_try" in
10603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10605esac
10606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020010608 ac_status=$?
10609 grep -v '^ *+' conftest.er1 >conftest.err
10610 rm -f conftest.er1
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615 { (case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618esac
10619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020010621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010625 { (case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628esac
10629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020010631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; }; then
10634 ac_header_compiler=yes
10635else
10636 echo "$as_me: failed program was:" >&5
10637sed 's/^/| /' conftest.$ac_ext >&5
10638
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010639 ac_header_compiler=no
Alexandre Julliard00068982006-04-18 16:47:53 +020010640fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010641
Jeremy White0ebeb532006-06-20 13:18:41 +020010642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010643{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10644echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010645
10646# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010647{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10648echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010649cat >conftest.$ac_ext <<_ACEOF
10650/* confdefs.h. */
10651_ACEOF
10652cat confdefs.h >>conftest.$ac_ext
10653cat >>conftest.$ac_ext <<_ACEOF
10654/* end confdefs.h. */
10655#include <$ac_header>
10656_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010657if { (ac_try="$ac_cpp conftest.$ac_ext"
10658case "(($ac_try" in
10659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10660 *) ac_try_echo=$ac_try;;
10661esac
10662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020010664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } >/dev/null; then
10670 if test -s conftest.err; then
10671 ac_cpp_err=$ac_c_preproc_warn_flag
10672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10673 else
10674 ac_cpp_err=
10675 fi
10676else
10677 ac_cpp_err=yes
10678fi
10679if test -z "$ac_cpp_err"; then
10680 ac_header_preproc=yes
10681else
10682 echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685 ac_header_preproc=no
10686fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010687
Alexandre Julliard00068982006-04-18 16:47:53 +020010688rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010689{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10690echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010691
10692# So? What about this header?
10693case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10694 yes:no: )
10695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10696echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10698echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10699 ac_header_preproc=yes
10700 ;;
10701 no:yes:* )
10702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10703echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10705echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10707echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10709echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10711echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10713echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010714 ( cat <<\_ASBOX
Alexandre Julliard00068982006-04-18 16:47:53 +020010715## ------------------------------------ ##
10716## Report this to wine-devel@winehq.org ##
10717## ------------------------------------ ##
10718_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010719 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliard00068982006-04-18 16:47:53 +020010720 ;;
10721esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010722{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10724if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020010725 echo $ECHO_N "(cached) $ECHO_C" >&6
10726else
10727 eval "$as_ac_Header=\$ac_header_preproc"
10728fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010729ac_res=`eval echo '${'$as_ac_Header'}'`
10730 { echo "$as_me:$LINENO: result: $ac_res" >&5
10731echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010732
10733fi
10734if test `eval echo '${'$as_ac_Header'}'` = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010738
10739fi
10740
10741done
10742
10743 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
10744 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010745 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
10746echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010747if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10749else
10750 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010751LIBS="-lhal $LIBS"
Alexandre Julliard00068982006-04-18 16:47:53 +020010752cat >conftest.$ac_ext <<_ACEOF
10753/* confdefs.h. */
10754_ACEOF
10755cat confdefs.h >>conftest.$ac_ext
10756cat >>conftest.$ac_ext <<_ACEOF
10757/* end confdefs.h. */
10758
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010759/* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020010762#ifdef __cplusplus
10763extern "C"
10764#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020010765char libhal_ctx_new ();
10766int
10767main ()
10768{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010769return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020010770 ;
10771 return 0;
10772}
10773_ACEOF
10774rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010775if { (ac_try="$ac_link"
10776case "(($ac_try" in
10777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10778 *) ac_try_echo=$ac_try;;
10779esac
10780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020010782 ac_status=$?
10783 grep -v '^ *+' conftest.er1 >conftest.err
10784 rm -f conftest.er1
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020010795 ac_status=$?
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010799 { (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
Alexandre Julliard00068982006-04-18 16:47:53 +020010805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_lib_hal_libhal_ctx_new=yes
10809else
10810 echo "$as_me: failed program was:" >&5
10811sed 's/^/| /' conftest.$ac_ext >&5
10812
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010813 ac_cv_lib_hal_libhal_ctx_new=no
Alexandre Julliard00068982006-04-18 16:47:53 +020010814fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010815
Jeremy White0ebeb532006-06-20 13:18:41 +020010816rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020010817 conftest$ac_exeext conftest.$ac_ext
10818LIBS=$ac_check_lib_save_LIBS
10819fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010820{ echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
10821echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020010822if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010823 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
10824echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010825if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 ac_check_lib_save_LIBS=$LIBS
10829LIBS="-ldbus-1 $ac_hal_libs $LIBS"
10830cat >conftest.$ac_ext <<_ACEOF
10831/* confdefs.h. */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h. */
10836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010837/* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010840#ifdef __cplusplus
10841extern "C"
10842#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010843char dbus_connection_close ();
10844int
10845main ()
10846{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010847return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010848 ;
10849 return 0;
10850}
10851_ACEOF
10852rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010853if { (ac_try="$ac_link"
10854case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857esac
10858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10867 { (case "(($ac_try" in
10868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10869 *) ac_try_echo=$ac_try;;
10870esac
10871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10872 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010873 ac_status=$?
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; } &&
10876 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010877 { (case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010883 ac_status=$?
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); }; }; then
10886 ac_cv_lib_dbus_1_dbus_connection_close=yes
10887else
10888 echo "$as_me: failed program was:" >&5
10889sed 's/^/| /' conftest.$ac_ext >&5
10890
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010891 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010892fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010893
Jeremy White0ebeb532006-06-20 13:18:41 +020010894rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010895 conftest$ac_exeext conftest.$ac_ext
10896LIBS=$ac_check_lib_save_LIBS
10897fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010898{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
10899echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010900if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
Alexandre Julliard00068982006-04-18 16:47:53 +020010901
10902cat >>confdefs.h <<\_ACEOF
10903#define HAVE_LIBHAL 1
10904_ACEOF
10905
10906 HALINCL="$ac_hal_cflags"
10907fi
10908
10909fi
10910
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020010911 fi
Alexandre Julliard00068982006-04-18 16:47:53 +020010912 CPPFLAGS="$ac_save_CPPFLAGS"
10913fi
10914
Alexandre Julliard48957682001-12-26 23:08:31 +000010915CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010916if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000010917then
Alexandre Julliard73482142005-08-03 19:21:04 +000010918 if test "$ac_cv_header_ncurses_h" = "yes"
10919 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010920 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
10921echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010922if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010924else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010925 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010926LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010927cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010928/* confdefs.h. */
10929_ACEOF
10930cat confdefs.h >>conftest.$ac_ext
10931cat >>conftest.$ac_ext <<_ACEOF
10932/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010934/* Override any GCC internal prototype to avoid an error.
10935 Use char because int might match the return type of a GCC
10936 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010937#ifdef __cplusplus
10938extern "C"
10939#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010940char waddch ();
10941int
10942main ()
10943{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010944return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010945 ;
10946 return 0;
10947}
10948_ACEOF
10949rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010950if { (ac_try="$ac_link"
10951case "(($ac_try" in
10952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10953 *) ac_try_echo=$ac_try;;
10954esac
10955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10956 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010957 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010958 grep -v '^ *+' conftest.er1 >conftest.err
10959 rm -f conftest.er1
10960 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010962 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10964 { (case "(($ac_try" in
10965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10966 *) ac_try_echo=$ac_try;;
10967esac
10968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10969 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010970 ac_status=$?
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); }; } &&
10973 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010974 { (case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10979 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010980 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010982 (exit $ac_status); }; }; then
10983 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010984else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010985 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010986sed 's/^/| /' conftest.$ac_ext >&5
10987
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010988 ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010989fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010990
Jeremy White0ebeb532006-06-20 13:18:41 +020010991rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010992 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010993LIBS=$ac_check_lib_save_LIBS
10994fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010995{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
10996echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010997if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000010998
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010999cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011000#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011001_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011002
Alexandre Julliard48957682001-12-26 23:08:31 +000011003 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011004fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011005
Alexandre Julliard73482142005-08-03 19:21:04 +000011006 elif test "$ac_cv_header_curses_h" = "yes"
11007 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011008 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11009echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011010if test "${ac_cv_lib_curses_waddch+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011012else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011013 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011014LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011015cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011016/* confdefs.h. */
11017_ACEOF
11018cat confdefs.h >>conftest.$ac_ext
11019cat >>conftest.$ac_ext <<_ACEOF
11020/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011021
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011022/* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011025#ifdef __cplusplus
11026extern "C"
11027#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011028char waddch ();
11029int
11030main ()
11031{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011032return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011033 ;
11034 return 0;
11035}
11036_ACEOF
11037rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011038if { (ac_try="$ac_link"
11039case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11042esac
11043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011045 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011050 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011058 ac_status=$?
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011068 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011070 (exit $ac_status); }; }; then
11071 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011072else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011073 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011074sed 's/^/| /' conftest.$ac_ext >&5
11075
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011076 ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011077fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011078
Jeremy White0ebeb532006-06-20 13:18:41 +020011079rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011080 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011081LIBS=$ac_check_lib_save_LIBS
11082fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011083{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11084echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011085if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011086
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011087cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011088#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011089_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011090
Alexandre Julliard73482142005-08-03 19:21:04 +000011091 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011092fi
11093
Alexandre Julliard73482142005-08-03 19:21:04 +000011094 fi
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020011095 ac_save_LIBS="$LIBS"
11096 LIBS="$LIBS $CURSESLIBS"
11097
11098for ac_func in mousemask
11099do
11100as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11101{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11102echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11103if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11104 echo $ECHO_N "(cached) $ECHO_C" >&6
11105else
11106 cat >conftest.$ac_ext <<_ACEOF
11107/* confdefs.h. */
11108_ACEOF
11109cat confdefs.h >>conftest.$ac_ext
11110cat >>conftest.$ac_ext <<_ACEOF
11111/* end confdefs.h. */
11112/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11114#define $ac_func innocuous_$ac_func
11115
11116/* System header to define __stub macros and hopefully few prototypes,
11117 which can conflict with char $ac_func (); below.
11118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11119 <limits.h> exists even on freestanding compilers. */
11120
11121#ifdef __STDC__
11122# include <limits.h>
11123#else
11124# include <assert.h>
11125#endif
11126
11127#undef $ac_func
11128
11129/* Override any GCC internal prototype to avoid an error.
11130 Use char because int might match the return type of a GCC
11131 builtin and then its argument prototype would still apply. */
11132#ifdef __cplusplus
11133extern "C"
11134#endif
11135char $ac_func ();
11136/* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139#if defined __stub_$ac_func || defined __stub___$ac_func
11140choke me
11141#endif
11142
11143int
11144main ()
11145{
11146return $ac_func ();
11147 ;
11148 return 0;
11149}
11150_ACEOF
11151rm -f conftest.$ac_objext conftest$ac_exeext
11152if { (ac_try="$ac_link"
11153case "(($ac_try" in
11154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155 *) ac_try_echo=$ac_try;;
11156esac
11157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158 (eval "$ac_link") 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
11165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11166 { (case "(($ac_try" in
11167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11169esac
11170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_try") 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; } &&
11175 { ac_try='test -s conftest$ac_exeext'
11176 { (case "(($ac_try" in
11177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178 *) ac_try_echo=$ac_try;;
11179esac
11180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181 (eval "$ac_try") 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); }; }; then
11185 eval "$as_ac_var=yes"
11186else
11187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 eval "$as_ac_var=no"
11191fi
11192
11193rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11195fi
11196ac_res=`eval echo '${'$as_ac_var'}'`
11197 { echo "$as_me:$LINENO: result: $ac_res" >&5
11198echo "${ECHO_T}$ac_res" >&6; }
11199if test `eval echo '${'$as_ac_var'}'` = yes; then
11200 cat >>confdefs.h <<_ACEOF
11201#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11202_ACEOF
11203
11204fi
11205done
11206
11207 LIBS="$ac_save_LIBS"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011208fi
11209
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011210
Shi Quan He6b0720f2002-03-21 02:58:39 +000011211# Extract the first word of "sane-config", so it can be a program name with args.
11212set dummy sane-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011213{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011215if test "${ac_cv_prog_sane_devel+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 if test -n "$sane_devel"; then
11219 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11220else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11222for as_dir in $PATH
11223do
11224 IFS=$as_save_IFS
11225 test -z "$as_dir" && as_dir=.
11226 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011227 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 +000011228 ac_cv_prog_sane_devel="sane-config"
11229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11230 break 2
11231 fi
11232done
Shi Quan He6b0720f2002-03-21 02:58:39 +000011233done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011234IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +000011235
11236 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11237fi
11238fi
11239sane_devel=$ac_cv_prog_sane_devel
11240if test -n "$sane_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011241 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11242echo "${ECHO_T}$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011243else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011244 { echo "$as_me:$LINENO: result: no" >&5
11245echo "${ECHO_T}no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011246fi
11247
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011248
Alexandre Julliard82776022005-08-08 11:17:25 +000011249SANELIBS=""
11250
11251SANEINCL=""
11252
11253if test "$sane_devel" != "no"
Shi Quan He6b0720f2002-03-21 02:58:39 +000011254then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011255 SANELIBS="`$sane_devel --libs`"
11256 SANEINCL="`$sane_devel --cflags`"
11257 ac_save_CPPFLAGS="$CPPFLAGS"
11258 ac_save_LIBS="$LIBS"
11259 CPPFLAGS="$CPPFLAGS $SANEINCL"
11260 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011261 if test "${ac_cv_header_sane_sane_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011262 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11263echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011264if test "${ac_cv_header_sane_sane_h+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011266fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011267{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11268echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011269else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011270 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011271{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11272echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011273cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011274/* confdefs.h. */
11275_ACEOF
11276cat confdefs.h >>conftest.$ac_ext
11277cat >>conftest.$ac_ext <<_ACEOF
11278/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011279$ac_includes_default
11280#include <sane/sane.h>
11281_ACEOF
11282rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011283if { (ac_try="$ac_compile"
11284case "(($ac_try" in
11285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11286 *) ac_try_echo=$ac_try;;
11287esac
11288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011290 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011291 grep -v '^ *+' conftest.er1 >conftest.err
11292 rm -f conftest.er1
11293 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11297 { (case "(($ac_try" in
11298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299 *) ac_try_echo=$ac_try;;
11300esac
11301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011307 { (case "(($ac_try" in
11308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11309 *) ac_try_echo=$ac_try;;
11310esac
11311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11312 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011313 ac_status=$?
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); }; }; then
11316 ac_header_compiler=yes
11317else
11318 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011319sed 's/^/| /' conftest.$ac_ext >&5
11320
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011321 ac_header_compiler=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011322fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011323
Jeremy White0ebeb532006-06-20 13:18:41 +020011324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011325{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11326echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011327
11328# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011329{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11330echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011331cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011332/* confdefs.h. */
11333_ACEOF
11334cat confdefs.h >>conftest.$ac_ext
11335cat >>conftest.$ac_ext <<_ACEOF
11336/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011337#include <sane/sane.h>
11338_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011339if { (ac_try="$ac_cpp conftest.$ac_ext"
11340case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343esac
11344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000011346 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011347 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +000011348 rm -f conftest.er1
11349 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011351 (exit $ac_status); } >/dev/null; then
11352 if test -s conftest.err; then
11353 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +000011355 else
11356 ac_cpp_err=
11357 fi
11358else
11359 ac_cpp_err=yes
11360fi
11361if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011362 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +000011363else
11364 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011365sed 's/^/| /' conftest.$ac_ext >&5
11366
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011367 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000011368fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011369
Shi Quan He6b0720f2002-03-21 02:58:39 +000011370rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011371{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11372echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011373
11374# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11376 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011377 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11378echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011379 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11380echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11381 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011382 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011383 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011384 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11385echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011386 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
11387echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11389echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
11391echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011392 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011393echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011394 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11395echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011396 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011397## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011398## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011399## ------------------------------------ ##
11400_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011401 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011402 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011403esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011404{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11405echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011406if test "${ac_cv_header_sane_sane_h+set}" = set; then
11407 echo $ECHO_N "(cached) $ECHO_C" >&6
11408else
11409 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +000011410fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011411{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11412echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011413
11414fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000011415if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011416 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11417echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011418if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420else
11421 ac_check_lib_save_LIBS=$LIBS
11422LIBS="-lsane $LIBS"
11423cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011424/* confdefs.h. */
11425_ACEOF
11426cat confdefs.h >>conftest.$ac_ext
11427cat >>conftest.$ac_ext <<_ACEOF
11428/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011429
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011430/* Override any GCC internal prototype to avoid an error.
11431 Use char because int might match the return type of a GCC
11432 builtin and then its argument prototype would still apply. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011433#ifdef __cplusplus
11434extern "C"
11435#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +000011436char sane_open ();
11437int
11438main ()
11439{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011440return sane_open ();
Shi Quan He6b0720f2002-03-21 02:58:39 +000011441 ;
11442 return 0;
11443}
11444_ACEOF
11445rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011446if { (ac_try="$ac_link"
11447case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450esac
11451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_link") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000011453 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011458 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11463esac
11464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011466 ac_status=$?
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; } &&
11469 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011470 { (case "(($ac_try" in
11471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11472 *) ac_try_echo=$ac_try;;
11473esac
11474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11475 (eval "$ac_try") 2>&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011476 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011478 (exit $ac_status); }; }; then
11479 ac_cv_lib_sane_sane_open=yes
11480else
11481 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011482sed 's/^/| /' conftest.$ac_ext >&5
11483
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011484 ac_cv_lib_sane_sane_open=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000011485fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011486
Jeremy White0ebeb532006-06-20 13:18:41 +020011487rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011488 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +000011489LIBS=$ac_check_lib_save_LIBS
11490fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011491{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
11492echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011493if test $ac_cv_lib_sane_sane_open = yes; then
11494
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011495cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000011496#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011497_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000011498
11499else
11500 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +000011501 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000011502fi
11503
Alexandre Julliard96328b32002-03-31 19:23:41 +000011504else
11505 SANELIBS=""
11506 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000011507fi
11508
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011509
Shi Quan He6b0720f2002-03-21 02:58:39 +000011510 LIBS="$ac_save_LIBS"
11511 CPPFLAGS="$ac_save_CPPFLAGS"
11512fi
11513
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011514# Extract the first word of "gphoto2-config", so it can be a program name with args.
11515set dummy gphoto2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011518if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 if test -n "$gphoto2_devel"; then
11522 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011530 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 +020011531 ac_cv_prog_gphoto2_devel="gphoto2-config"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535done
11536done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011537IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011538
11539 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
11540fi
11541fi
11542gphoto2_devel=$ac_cv_prog_gphoto2_devel
11543if test -n "$gphoto2_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011544 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
11545echo "${ECHO_T}$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011546else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011547 { echo "$as_me:$LINENO: result: no" >&5
11548echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011549fi
11550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011551
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011552# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
11553set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011554{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011556if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558else
11559 if test -n "$gphoto2port_devel"; then
11560 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
11561else
11562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $PATH
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011568 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 +020011569 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
11570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573done
11574done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011575IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011576
11577 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
11578fi
11579fi
11580gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
11581if test -n "$gphoto2port_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011582 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
11583echo "${ECHO_T}$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011584else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011585 { echo "$as_me:$LINENO: result: no" >&5
11586echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011587fi
11588
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011589
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011590GPHOTO2LIBS=""
11591
11592GPHOTO2INCL=""
11593
11594if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
11595then
11596 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
11597 GPHOTO2LIBS=""
11598 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
11599 do
11600 case "$i" in
11601 -L/usr/lib|-L/usr/lib64) ;;
11602 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
11603 esac
11604 done
11605 ac_save_CPPFLAGS="$CPPFLAGS"
11606 ac_save_LIBS="$LIBS"
11607 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
11608 LIBS="$LIBS $GPHOTO2LIBS"
11609 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011610 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11611echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011612if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11613 echo $ECHO_N "(cached) $ECHO_C" >&6
11614fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011615{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11616echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011617else
11618 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011619{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
11620echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011621cat >conftest.$ac_ext <<_ACEOF
11622/* confdefs.h. */
11623_ACEOF
11624cat confdefs.h >>conftest.$ac_ext
11625cat >>conftest.$ac_ext <<_ACEOF
11626/* end confdefs.h. */
11627$ac_includes_default
11628#include <gphoto2-camera.h>
11629_ACEOF
11630rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011631if { (ac_try="$ac_compile"
11632case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635esac
11636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11637 (eval "$ac_compile") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11645 { (case "(($ac_try" in
11646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11648esac
11649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011655 { (case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11658esac
11659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; }; then
11664 ac_header_compiler=yes
11665else
11666 echo "$as_me: failed program was:" >&5
11667sed 's/^/| /' conftest.$ac_ext >&5
11668
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011669 ac_header_compiler=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011671
Jeremy White0ebeb532006-06-20 13:18:41 +020011672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011673{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11674echo "${ECHO_T}$ac_header_compiler" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011675
11676# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011677{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
11678echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011679cat >conftest.$ac_ext <<_ACEOF
11680/* confdefs.h. */
11681_ACEOF
11682cat confdefs.h >>conftest.$ac_ext
11683cat >>conftest.$ac_ext <<_ACEOF
11684/* end confdefs.h. */
11685#include <gphoto2-camera.h>
11686_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011687if { (ac_try="$ac_cpp conftest.$ac_ext"
11688case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691esac
11692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } >/dev/null; then
11700 if test -s conftest.err; then
11701 ac_cpp_err=$ac_c_preproc_warn_flag
11702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11703 else
11704 ac_cpp_err=
11705 fi
11706else
11707 ac_cpp_err=yes
11708fi
11709if test -z "$ac_cpp_err"; then
11710 ac_header_preproc=yes
11711else
11712 echo "$as_me: failed program was:" >&5
11713sed 's/^/| /' conftest.$ac_ext >&5
11714
11715 ac_header_preproc=no
11716fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011717
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011718rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011719{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11720echo "${ECHO_T}$ac_header_preproc" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011721
11722# So? What about this header?
11723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11724 yes:no: )
11725 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
11726echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
11728echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
11729 ac_header_preproc=yes
11730 ;;
11731 no:yes:* )
11732 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
11733echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
11735echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
11737echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
11739echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
11741echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
11743echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011744 ( cat <<\_ASBOX
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011745## ------------------------------------ ##
11746## Report this to wine-devel@winehq.org ##
11747## ------------------------------------ ##
11748_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011749 ) | sed "s/^/$as_me: WARNING: /" >&2
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011750 ;;
11751esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011752{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
11753echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011754if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756else
11757 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
11758fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011759{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
11760echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011761
11762fi
11763if test $ac_cv_header_gphoto2_camera_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011764 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
11765echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011766if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
11767 echo $ECHO_N "(cached) $ECHO_C" >&6
11768else
11769 ac_check_lib_save_LIBS=$LIBS
11770LIBS="-lgphoto2 $LIBS"
11771cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011778/* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011781#ifdef __cplusplus
11782extern "C"
11783#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011784char gp_camera_new ();
11785int
11786main ()
11787{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011788return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821esac
11822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 ac_cv_lib_gphoto2_gp_camera_new=yes
11828else
11829 echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011832 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011833fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011834
Jeremy White0ebeb532006-06-20 13:18:41 +020011835rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011836 conftest$ac_exeext conftest.$ac_ext
11837LIBS=$ac_check_lib_save_LIBS
11838fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011839{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
11840echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020011841if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
11842
11843cat >>confdefs.h <<\_ACEOF
11844#define HAVE_GPHOTO2 1
11845_ACEOF
11846
11847else
11848 GPHOTO2LIBS=""
11849 GPHOTO2INCL=""
11850fi
11851
11852else
11853 GPHOTO2LIBS=""
11854 GPHOTO2INCL=""
11855fi
11856
11857
11858 LIBS="$ac_save_LIBS"
11859 CPPFLAGS="$ac_save_CPPFLAGS"
11860fi
11861
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011862if test "$ac_cv_header_unicode_ubidi_h" = "yes"
11863then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011864 saved_libs="$LIBS"
Scott Bambroughee112fc2006-06-16 10:42:20 -040011865 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
11866 do
11867 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
11868 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
11869 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
11870echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
11871 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
11872 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011873/* confdefs.h. */
11874_ACEOF
11875cat confdefs.h >>conftest.$ac_ext
11876cat >>conftest.$ac_ext <<_ACEOF
11877/* end confdefs.h. */
11878#include <unicode/ubidi.h>
11879int
11880main ()
11881{
11882ubidi_open()
11883 ;
11884 return 0;
11885}
11886_ACEOF
11887rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011888if { (ac_try="$ac_link"
11889case "(($ac_try" in
11890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11892esac
11893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011895 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011896 grep -v '^ *+' conftest.er1 >conftest.err
11897 rm -f conftest.er1
11898 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11902 { (case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; } &&
11911 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011912 { (case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11915esac
11916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_try") 2>&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011918 ac_status=$?
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011921
11922cat >>confdefs.h <<\_ACEOF
11923#define HAVE_ICU 1
11924_ACEOF
11925
Scott Bambroughee112fc2006-06-16 10:42:20 -040011926 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011927
Scott Bambroughee112fc2006-06-16 10:42:20 -040011928 { echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011929echo "${ECHO_T}yes" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000011930else
11931 echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011934 { echo "$as_me:$LINENO: result: no" >&5
11935echo "${ECHO_T}no" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000011936fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011937
Jeremy White0ebeb532006-06-20 13:18:41 +020011938rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerbc624582004-01-18 22:15:46 +000011939 conftest$ac_exeext conftest.$ac_ext
Scott Bambroughee112fc2006-06-16 10:42:20 -040011940 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011941 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000011942fi
11943
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011944RESOLVLIBS=""
11945
11946if test "$ac_cv_header_resolv_h" = "yes"
11947then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011948 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
11949echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011950if test "${ac_cv_lib_resolv_res_query+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 ac_check_lib_save_LIBS=$LIBS
11954LIBS="-lresolv $LIBS"
11955cat >conftest.$ac_ext <<_ACEOF
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
11961
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011962/* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011965#ifdef __cplusplus
11966extern "C"
11967#endif
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011968char res_query ();
11969int
11970main ()
11971{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011972return res_query ();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011973 ;
11974 return 0;
11975}
11976_ACEOF
11977rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011978if { (ac_try="$ac_link"
11979case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982esac
11983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992 { (case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995esac
11996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020011998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012002 { (case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005esac
12006eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 ac_cv_lib_resolv_res_query=yes
12012else
12013 echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012016 ac_cv_lib_resolv_res_query=no
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012017fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012018
Jeremy White0ebeb532006-06-20 13:18:41 +020012019rm -f core conftest.err conftest.$ac_objext \
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012020 conftest$ac_exeext conftest.$ac_ext
12021LIBS=$ac_check_lib_save_LIBS
12022fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012023{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12024echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012025if test $ac_cv_lib_resolv_res_query = yes; then
12026
12027cat >>confdefs.h <<\_ACEOF
12028#define HAVE_RESOLV 1
12029_ACEOF
12030
12031 RESOLVLIBS="-lresolv"
12032fi
12033
12034fi
12035
Hans Leidekkerd3447022005-07-15 10:09:43 +000012036LCMSLIBS=""
12037
12038if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12039then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012040 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12041echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012042if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12044else
12045 ac_check_lib_save_LIBS=$LIBS
12046LIBS="-llcms $LIBS"
12047cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012054/* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000012057#ifdef __cplusplus
12058extern "C"
12059#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000012060char cmsOpenProfileFromFile ();
12061int
12062main ()
12063{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012064return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000012065 ;
12066 return 0;
12067}
12068_ACEOF
12069rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012070if { (ac_try="$ac_link"
12071case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074esac
12075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerd3447022005-07-15 10:09:43 +000012077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084 { (case "(($ac_try" in
12085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086 *) ac_try_echo=$ac_try;;
12087esac
12088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012094 { (case "(($ac_try" in
12095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096 *) ac_try_echo=$ac_try;;
12097esac
12098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012100 ac_status=$?
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; }; then
12103 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12104else
12105 echo "$as_me: failed program was:" >&5
12106sed 's/^/| /' conftest.$ac_ext >&5
12107
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012108 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000012109fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012110
Jeremy White0ebeb532006-06-20 13:18:41 +020012111rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerd3447022005-07-15 10:09:43 +000012112 conftest$ac_exeext conftest.$ac_ext
12113LIBS=$ac_check_lib_save_LIBS
12114fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012115{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12116echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012117if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12118
12119cat >>confdefs.h <<\_ACEOF
12120#define HAVE_LCMS 1
12121_ACEOF
12122
12123 LCMSLIBS="-llcms"
12124fi
12125
12126fi
12127
Hans Leidekkerea524de2005-07-15 16:39:42 +000012128LDAPLIBS=""
12129
12130if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12131then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012132 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12133echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012134if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
Hans Leidekkerea524de2005-07-15 16:39:42 +000012135 echo $ECHO_N "(cached) $ECHO_C" >&6
12136else
12137 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012138LIBS="-lldap_r $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012139cat >conftest.$ac_ext <<_ACEOF
12140/* confdefs.h. */
12141_ACEOF
12142cat confdefs.h >>conftest.$ac_ext
12143cat >>conftest.$ac_ext <<_ACEOF
12144/* end confdefs.h. */
12145
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012146/* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012149#ifdef __cplusplus
12150extern "C"
12151#endif
Hans Leidekker20d0e802005-11-18 16:56:44 +000012152char ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012153int
12154main ()
12155{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012156return ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012157 ;
12158 return 0;
12159}
12160_ACEOF
12161rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012162if { (ac_try="$ac_link"
12163case "(($ac_try" in
12164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12165 *) ac_try_echo=$ac_try;;
12166esac
12167eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12168 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012169 ac_status=$?
12170 grep -v '^ *+' conftest.er1 >conftest.err
12171 rm -f conftest.er1
12172 cat conftest.err >&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12176 { (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
Hans Leidekkerea524de2005-07-15 16:39:42 +000012182 ac_status=$?
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); }; } &&
12185 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012186 { (case "(($ac_try" in
12187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12188 *) ac_try_echo=$ac_try;;
12189esac
12190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12191 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012192 ac_status=$?
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); }; }; then
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012195 ac_cv_lib_ldap_r_ldap_initialize=yes
Hans Leidekkerea524de2005-07-15 16:39:42 +000012196else
12197 echo "$as_me: failed program was:" >&5
12198sed 's/^/| /' conftest.$ac_ext >&5
12199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012200 ac_cv_lib_ldap_r_ldap_initialize=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012201fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012202
Jeremy White0ebeb532006-06-20 13:18:41 +020012203rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012204 conftest$ac_exeext conftest.$ac_ext
12205LIBS=$ac_check_lib_save_LIBS
12206fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012207{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12208echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012209if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012210 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12211echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012212if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214else
12215 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012216LIBS="-llber $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012217cat >conftest.$ac_ext <<_ACEOF
12218/* confdefs.h. */
12219_ACEOF
12220cat confdefs.h >>conftest.$ac_ext
12221cat >>conftest.$ac_ext <<_ACEOF
12222/* end confdefs.h. */
12223
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012224/* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012227#ifdef __cplusplus
12228extern "C"
12229#endif
Hans Leidekkerea524de2005-07-15 16:39:42 +000012230char ber_init ();
12231int
12232main ()
12233{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012234return ber_init ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012235 ;
12236 return 0;
12237}
12238_ACEOF
12239rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012240if { (ac_try="$ac_link"
12241case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244esac
12245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12254 { (case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257esac
12258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012264 { (case "(($ac_try" in
12265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12266 *) ac_try_echo=$ac_try;;
12267esac
12268eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 ac_cv_lib_lber_ber_init=yes
12274else
12275 echo "$as_me: failed program was:" >&5
12276sed 's/^/| /' conftest.$ac_ext >&5
12277
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012278 ac_cv_lib_lber_ber_init=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012279fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012280
Jeremy White0ebeb532006-06-20 13:18:41 +020012281rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012282 conftest$ac_exeext conftest.$ac_ext
12283LIBS=$ac_check_lib_save_LIBS
12284fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012285{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12286echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012287if test $ac_cv_lib_lber_ber_init = yes; then
12288
12289cat >>confdefs.h <<\_ACEOF
12290#define HAVE_LDAP 1
12291_ACEOF
12292
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012293 LDAPLIBS="-lldap_r -llber"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012294fi
12295
12296fi
12297
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012298 ac_wine_check_funcs_save_LIBS="$LIBS"
12299LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012300
12301
12302
12303
12304for ac_func in \
12305 ldap_count_references \
12306 ldap_first_reference \
12307 ldap_next_reference \
12308 ldap_parse_reference
12309do
12310as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012311{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12312echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12313if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012314 echo $ECHO_N "(cached) $ECHO_C" >&6
12315else
12316 cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
12322/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12324#define $ac_func innocuous_$ac_func
12325
12326/* System header to define __stub macros and hopefully few prototypes,
12327 which can conflict with char $ac_func (); below.
12328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12329 <limits.h> exists even on freestanding compilers. */
12330
12331#ifdef __STDC__
12332# include <limits.h>
12333#else
12334# include <assert.h>
12335#endif
12336
12337#undef $ac_func
12338
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012339/* Override any GCC internal prototype to avoid an error.
12340 Use char because int might match the return type of a GCC
12341 builtin and then its argument prototype would still apply. */
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012342#ifdef __cplusplus
12343extern "C"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012344#endif
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012345char $ac_func ();
12346/* The GNU C library defines this for functions which it implements
12347 to always fail with ENOSYS. Some functions are actually named
12348 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012349#if defined __stub_$ac_func || defined __stub___$ac_func
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012350choke me
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012351#endif
12352
12353int
12354main ()
12355{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012356return $ac_func ();
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012362if { (ac_try="$ac_link"
12363case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366esac
12367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12376 { (case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379esac
12380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012382 ac_status=$?
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012386 { (case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389esac
12390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 eval "$as_ac_var=yes"
12396else
12397 echo "$as_me: failed program was:" >&5
12398sed 's/^/| /' conftest.$ac_ext >&5
12399
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012400 eval "$as_ac_var=no"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012401fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012402
Jeremy White0ebeb532006-06-20 13:18:41 +020012403rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012404 conftest$ac_exeext conftest.$ac_ext
12405fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012406ac_res=`eval echo '${'$as_ac_var'}'`
12407 { echo "$as_me:$LINENO: result: $ac_res" >&5
12408echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012409if test `eval echo '${'$as_ac_var'}'` = yes; then
12410 cat >>confdefs.h <<_ACEOF
12411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12412_ACEOF
12413
12414fi
12415done
12416
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012417LIBS="$ac_wine_check_funcs_save_LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012418fi
12419
Alexandre Julliard82776022005-08-08 11:17:25 +000012420FREETYPELIBS=""
12421
12422FREETYPEINCL=""
12423
Mike McCormackd9ef88c2006-07-24 15:24:44 +090012424# Extract the first word of "freetype-config", so it can be a program name with args.
12425set dummy freetype-config; ac_word=$2
12426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12428if test "${ac_cv_prog_ft_devel+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
12431 if test -n "$ft_devel"; then
12432 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12433else
12434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435for as_dir in $PATH
12436do
12437 IFS=$as_save_IFS
12438 test -z "$as_dir" && as_dir=.
12439 for ac_exec_ext in '' $ac_executable_extensions; do
12440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12441 ac_cv_prog_ft_devel="freetype-config"
12442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12443 break 2
12444 fi
12445done
12446done
12447IFS=$as_save_IFS
12448
12449 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12450fi
12451fi
12452ft_devel=$ac_cv_prog_ft_devel
12453if test -n "$ft_devel"; then
12454 { echo "$as_me:$LINENO: result: $ft_devel" >&5
12455echo "${ECHO_T}$ft_devel" >&6; }
12456else
12457 { echo "$as_me:$LINENO: result: no" >&5
12458echo "${ECHO_T}no" >&6; }
12459fi
12460
12461
12462if test "$ft_devel" = "no"
12463then
12464 # Extract the first word of "freetype2-config", so it can be a program name with args.
12465set dummy freetype2-config; ac_word=$2
12466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12468if test "${ac_cv_prog_ft_devel2+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470else
12471 if test -n "$ft_devel2"; then
12472 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12473else
12474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475for as_dir in $PATH
12476do
12477 IFS=$as_save_IFS
12478 test -z "$as_dir" && as_dir=.
12479 for ac_exec_ext in '' $ac_executable_extensions; do
12480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12481 ac_cv_prog_ft_devel2="freetype2-config"
12482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12483 break 2
12484 fi
12485done
12486done
12487IFS=$as_save_IFS
12488
12489 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
12490fi
12491fi
12492ft_devel2=$ac_cv_prog_ft_devel2
12493if test -n "$ft_devel2"; then
12494 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
12495echo "${ECHO_T}$ft_devel2" >&6; }
12496else
12497 { echo "$as_me:$LINENO: result: no" >&5
12498echo "${ECHO_T}no" >&6; }
12499fi
12500
12501
12502 if test "$ft_devel2" = "freetype2-config"
12503 then
12504 ft_devel=$ft_devel2
12505 fi
12506fi
12507
12508if test "$ft_devel" = "no"
12509then
12510 wine_cv_msg_freetype=yes
12511else
12512 FREETYPELIBS=`$ft_devel --libs`
12513 FREETYPEINCL=`$ft_devel --cflags`
12514 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012515echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012516if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000012518else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012519 ac_check_lib_save_LIBS=$LIBS
Mike McCormackd9ef88c2006-07-24 15:24:44 +090012520LIBS="-lfreetype $FREETYPELIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012521cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012522/* confdefs.h. */
12523_ACEOF
12524cat confdefs.h >>conftest.$ac_ext
12525cat >>conftest.$ac_ext <<_ACEOF
12526/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012527
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012528/* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012531#ifdef __cplusplus
12532extern "C"
12533#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012534char FT_Init_FreeType ();
12535int
12536main ()
12537{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012538return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012539 ;
12540 return 0;
12541}
12542_ACEOF
12543rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012544if { (ac_try="$ac_link"
12545case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548esac
12549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012551 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012556 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561esac
12562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012564 ac_status=$?
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; } &&
12567 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012568 { (case "(($ac_try" in
12569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12570 *) ac_try_echo=$ac_try;;
12571esac
12572eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12573 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012574 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012576 (exit $ac_status); }; }; then
12577 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000012578else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012579 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012580sed 's/^/| /' conftest.$ac_ext >&5
12581
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012582 ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000012583fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012584
Jeremy White0ebeb532006-06-20 13:18:41 +020012585rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000012586 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012587LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000012588fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012589{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
12590echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012591if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000012592 ft_lib=yes
12593else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012594 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000012595fi
12596
Mike McCormackd9ef88c2006-07-24 15:24:44 +090012597 if test "$ft_lib" = "no"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000012598 then
Ian Pilcher563598d2001-05-16 20:56:05 +000012599 wine_cv_msg_freetype=yes
Mike McCormackd9ef88c2006-07-24 15:24:44 +090012600 FREETYPELIBS=""
12601 FREETYPEINCL=""
Ian Pilcher563598d2001-05-16 20:56:05 +000012602 else
Ian Pilcher40432fe2001-06-06 21:05:23 +000012603 ac_save_CPPFLAGS="$CPPFLAGS"
12604 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012605
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012606
12607
12608
12609
12610
12611
12612
Rein Klazese617a9c2003-11-19 02:18:13 +000012613
Huw Daviesc2217182004-06-16 20:06:26 +000012614
Huw Davies603d21c2006-01-24 10:57:35 +010012615
Rein Klazese617a9c2003-11-19 02:18:13 +000012616for ac_header in ft2build.h \
12617 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000012618 freetype/ftglyph.h \
12619 freetype/tttables.h \
12620 freetype/ftnames.h \
12621 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000012622 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000012623 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000012624 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010012625 freetype/ftmodapi.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000012626 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000012627do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012629{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012632 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012633else
Rein Klazes9c269172003-11-20 04:17:33 +000012634 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012635/* confdefs.h. */
12636_ACEOF
12637cat confdefs.h >>conftest.$ac_ext
12638cat >>conftest.$ac_ext <<_ACEOF
12639/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000012640#if HAVE_FT2BUILD_H
12641 #include <ft2build.h>
12642 #endif
12643
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012644#include <$ac_header>
12645_ACEOF
12646rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020012647if { (ac_try="$ac_compile"
12648case "(($ac_try" in
12649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12650 *) ac_try_echo=$ac_try;;
12651esac
12652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12653 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012654 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12661 { (case "(($ac_try" in
12662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12663 *) ac_try_echo=$ac_try;;
12664esac
12665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12666 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012667 ac_status=$?
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; } &&
12670 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674esac
12675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000012680 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012681else
12682 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012683sed 's/^/| /' conftest.$ac_ext >&5
12684
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012685 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012686fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012687
Jeremy White0ebeb532006-06-20 13:18:41 +020012688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012689fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012690ac_res=`eval echo '${'$as_ac_Header'}'`
12691 { echo "$as_me:$LINENO: result: $ac_res" >&5
12692echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012693if test `eval echo '${'$as_ac_Header'}'` = yes; then
12694 cat >>confdefs.h <<_ACEOF
12695#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12696_ACEOF
12697
12698fi
12699
Ian Pilcher40432fe2001-06-06 21:05:23 +000012700done
12701
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012702 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012703/* confdefs.h. */
12704_ACEOF
12705cat confdefs.h >>conftest.$ac_ext
12706cat >>conftest.$ac_ext <<_ACEOF
12707/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000012708#include <ft2build.h>
12709 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012710_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020012711if { (ac_try="$ac_cpp conftest.$ac_ext"
12712case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12715esac
12716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012718 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012719 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012720 rm -f conftest.er1
12721 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012723 (exit $ac_status); } >/dev/null; then
12724 if test -s conftest.err; then
12725 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012727 else
12728 ac_cpp_err=
12729 fi
12730else
12731 ac_cpp_err=yes
12732fi
12733if test -z "$ac_cpp_err"; then
12734
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012735cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000012736#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012737_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000012738
Huw D M Daviesc1d38132002-02-08 17:09:50 +000012739 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000012740else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012741 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012742sed 's/^/| /' conftest.$ac_ext >&5
12743
Huw D M Daviesc1d38132002-02-08 17:09:50 +000012744 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000012745fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012746
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012747rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012748 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
12749echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000012750if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
12751 echo $ECHO_N "(cached) $ECHO_C" >&6
12752else
12753 cat >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#include <freetype/ftmodapi.h>
12760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012761typedef FT_TrueTypeEngineType ac__type_new_;
Huw Daviesd8a6c272006-02-22 12:24:25 +000012762int
12763main ()
12764{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012765if ((ac__type_new_ *) 0)
Huw Daviesd8a6c272006-02-22 12:24:25 +000012766 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012767if (sizeof (ac__type_new_))
Huw Daviesd8a6c272006-02-22 12:24:25 +000012768 return 0;
12769 ;
12770 return 0;
12771}
12772_ACEOF
12773rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020012774if { (ac_try="$ac_compile"
12775case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12778esac
12779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_compile") 2>conftest.er1
Huw Daviesd8a6c272006-02-22 12:24:25 +000012781 ac_status=$?
12782 grep -v '^ *+' conftest.er1 >conftest.err
12783 rm -f conftest.er1
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12788 { (case "(($ac_try" in
12789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12791esac
12792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000012794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; } &&
12797 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012798 { (case "(($ac_try" in
12799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800 *) ac_try_echo=$ac_try;;
12801esac
12802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000012804 ac_status=$?
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ac_cv_type_FT_TrueTypeEngineType=yes
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012812 ac_cv_type_FT_TrueTypeEngineType=no
Huw Daviesd8a6c272006-02-22 12:24:25 +000012813fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012814
Jeremy White0ebeb532006-06-20 13:18:41 +020012815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Huw Daviesd8a6c272006-02-22 12:24:25 +000012816fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012817{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
12818echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000012819if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
12820
12821cat >>confdefs.h <<_ACEOF
12822#define HAVE_FT_TRUETYPEENGINETYPE 1
12823_ACEOF
12824
12825
12826fi
12827
Huw Davies35bca772006-04-12 12:14:27 +010012828 ac_save_CFLAGS="$CFLAGS"
12829 CFLAGS="$CFLAGS $FREETYPELIBS"
12830
12831for ac_func in FT_Load_Sfnt_Table
12832do
12833as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012834{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12835echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12836if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Huw Davies35bca772006-04-12 12:14:27 +010012837 echo $ECHO_N "(cached) $ECHO_C" >&6
12838else
12839 cat >conftest.$ac_ext <<_ACEOF
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12847#define $ac_func innocuous_$ac_func
12848
12849/* System header to define __stub macros and hopefully few prototypes,
12850 which can conflict with char $ac_func (); below.
12851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12852 <limits.h> exists even on freestanding compilers. */
12853
12854#ifdef __STDC__
12855# include <limits.h>
12856#else
12857# include <assert.h>
12858#endif
12859
12860#undef $ac_func
12861
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012862/* Override any GCC internal prototype to avoid an error.
12863 Use char because int might match the return type of a GCC
12864 builtin and then its argument prototype would still apply. */
Huw Davies35bca772006-04-12 12:14:27 +010012865#ifdef __cplusplus
12866extern "C"
Huw Davies35bca772006-04-12 12:14:27 +010012867#endif
Huw Davies35bca772006-04-12 12:14:27 +010012868char $ac_func ();
12869/* The GNU C library defines this for functions which it implements
12870 to always fail with ENOSYS. Some functions are actually named
12871 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012872#if defined __stub_$ac_func || defined __stub___$ac_func
Huw Davies35bca772006-04-12 12:14:27 +010012873choke me
Huw Davies35bca772006-04-12 12:14:27 +010012874#endif
12875
12876int
12877main ()
12878{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012879return $ac_func ();
Huw Davies35bca772006-04-12 12:14:27 +010012880 ;
12881 return 0;
12882}
12883_ACEOF
12884rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012885if { (ac_try="$ac_link"
12886case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12889esac
12890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_link") 2>conftest.er1
Huw Davies35bca772006-04-12 12:14:27 +010012892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12899 { (case "(($ac_try" in
12900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12901 *) ac_try_echo=$ac_try;;
12902esac
12903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12904 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010012905 ac_status=$?
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); }; } &&
12908 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012909 { (case "(($ac_try" in
12910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12911 *) ac_try_echo=$ac_try;;
12912esac
12913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010012915 ac_status=$?
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; }; then
12918 eval "$as_ac_var=yes"
12919else
12920 echo "$as_me: failed program was:" >&5
12921sed 's/^/| /' conftest.$ac_ext >&5
12922
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012923 eval "$as_ac_var=no"
Huw Davies35bca772006-04-12 12:14:27 +010012924fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012925
Jeremy White0ebeb532006-06-20 13:18:41 +020012926rm -f core conftest.err conftest.$ac_objext \
Huw Davies35bca772006-04-12 12:14:27 +010012927 conftest$ac_exeext conftest.$ac_ext
12928fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012929ac_res=`eval echo '${'$as_ac_var'}'`
12930 { echo "$as_me:$LINENO: result: $ac_res" >&5
12931echo "${ECHO_T}$ac_res" >&6; }
Huw Davies35bca772006-04-12 12:14:27 +010012932if test `eval echo '${'$as_ac_var'}'` = yes; then
12933 cat >>confdefs.h <<_ACEOF
12934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12935_ACEOF
12936
12937fi
12938done
12939
12940 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000012941 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000012942 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012943 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012944
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012945cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012946#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012947_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012948
12949 wine_cv_msg_freetype=no
12950 else
Huw Davies00acb5f2004-08-17 22:33:14 +000012951 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000012952 FREETYPEINCL=""
12953 wine_cv_msg_freetype=yes
12954 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000012955 fi
12956fi
12957
Huw Davies00acb5f2004-08-17 22:33:14 +000012958if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
12959then
12960 FONTSSUBDIRS="fonts"
12961
12962fi
12963
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012964{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
12965echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012966if test "${ac_cv_c_ppdev+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000012968else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012969 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012975#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012976int
12977main ()
12978{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000012979ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020012985if { (ac_try="$ac_compile"
12986case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012992 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012997 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12999 { (case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002esac
13003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13012esac
13013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013015 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013017 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013018 ac_cv_c_ppdev="yes"
13019else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013020 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013021sed 's/^/| /' conftest.$ac_ext >&5
13022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013023 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013024fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013025
Jeremy White0ebeb532006-06-20 13:18:41 +020013026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013027
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013028fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013029{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13030echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013031if test "$ac_cv_c_ppdev" = "yes"
13032then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013033
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013034cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013035#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013036_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013037
13038fi
13039
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013040{ echo "$as_me:$LINENO: checking for va_copy" >&5
13041echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013042if test "${ac_cv_c_va_copy+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044else
13045 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013046/* confdefs.h. */
13047_ACEOF
13048cat confdefs.h >>conftest.$ac_ext
13049cat >>conftest.$ac_ext <<_ACEOF
13050/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013051#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013052int
13053main ()
13054{
13055va_list ap1, ap2;
13056 va_copy(ap1,ap2);
13057
13058 ;
13059 return 0;
13060}
13061_ACEOF
13062rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013063if { (ac_try="$ac_link"
13064case "(($ac_try" in
13065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066 *) ac_try_echo=$ac_try;;
13067esac
13068eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013070 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013071 grep -v '^ *+' conftest.er1 >conftest.err
13072 rm -f conftest.er1
13073 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13077 { (case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080esac
13081eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013083 ac_status=$?
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; } &&
13086 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13090esac
13091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13096 ac_cv_c_va_copy="yes"
13097else
13098 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013099sed 's/^/| /' conftest.$ac_ext >&5
13100
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013101 ac_cv_c_va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013102fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013103
Jeremy White0ebeb532006-06-20 13:18:41 +020013104rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013105 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013106
13107fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013108{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13109echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013110if test "$ac_cv_c_va_copy" = "yes"
13111then
13112
13113cat >>confdefs.h <<\_ACEOF
13114#define HAVE_VA_COPY 1
13115_ACEOF
13116
13117fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013118{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13119echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013120if test "${ac_cv_c___va_copy+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13122else
13123 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013124/* confdefs.h. */
13125_ACEOF
13126cat confdefs.h >>conftest.$ac_ext
13127cat >>conftest.$ac_ext <<_ACEOF
13128/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013129#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013130int
13131main ()
13132{
13133va_list ap1, ap2;
13134 __va_copy(ap1,ap2);
13135
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013141if { (ac_try="$ac_link"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013148 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13155 { (case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13158esac
13159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013165 { (case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13168esac
13169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 ac_cv_c___va_copy="yes"
13175else
13176 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013177sed 's/^/| /' conftest.$ac_ext >&5
13178
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013179 ac_cv_c___va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013180fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013181
Jeremy White0ebeb532006-06-20 13:18:41 +020013182rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013183 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013184
13185fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013186{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13187echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013188if test "$ac_cv_c___va_copy" = "yes"
13189then
13190
13191cat >>confdefs.h <<\_ACEOF
13192#define HAVE___VA_COPY 1
13193_ACEOF
13194
13195fi
13196
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013197{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13198echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013199if test "${ac_cv_c_sigsetjmp+set}" = set; then
13200 echo $ECHO_N "(cached) $ECHO_C" >&6
13201else
13202 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
13208#include <setjmp.h>
13209int
13210main ()
13211{
13212sigjmp_buf buf;
13213 sigsetjmp( buf, 1 );
13214 siglongjmp( buf, 1 );
13215 ;
13216 return 0;
13217}
13218_ACEOF
13219rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013220if { (ac_try="$ac_link"
13221case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13224esac
13225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013227 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013228 grep -v '^ *+' conftest.er1 >conftest.err
13229 rm -f conftest.er1
13230 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13234 { (case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237esac
13238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013240 ac_status=$?
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); }; } &&
13243 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013244 { (case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13247esac
13248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_try") 2>&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013250 ac_status=$?
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; }; then
13253 ac_cv_c_sigsetjmp="yes"
13254else
13255 echo "$as_me: failed program was:" >&5
13256sed 's/^/| /' conftest.$ac_ext >&5
13257
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013258 ac_cv_c_sigsetjmp="no"
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013259fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013260
Jeremy White0ebeb532006-06-20 13:18:41 +020013261rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013262 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013263
13264fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013265{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13266echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013267if test "$ac_cv_c_sigsetjmp" = "yes"
13268then
13269
13270cat >>confdefs.h <<\_ACEOF
13271#define HAVE_SIGSETJMP 1
13272_ACEOF
13273
13274fi
13275
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013276{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13277echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013278if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013282/* confdefs.h. */
13283_ACEOF
13284cat confdefs.h >>conftest.$ac_ext
13285cat >>conftest.$ac_ext <<_ACEOF
13286/* end confdefs.h. */
13287#define _GNU_SOURCE
13288#include <pthread.h>
13289
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013290typedef pthread_rwlock_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013291int
13292main ()
13293{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013294if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013295 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013296if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013297 return 0;
13298 ;
13299 return 0;
13300}
13301_ACEOF
13302rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013303if { (ac_try="$ac_compile"
13304case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307esac
13308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013310 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013311 grep -v '^ *+' conftest.er1 >conftest.err
13312 rm -f conftest.er1
13313 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13315 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13317 { (case "(($ac_try" in
13318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13320esac
13321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013327 { (case "(($ac_try" in
13328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13330esac
13331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013333 ac_status=$?
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 ac_cv_type_pthread_rwlock_t=yes
13337else
13338 echo "$as_me: failed program was:" >&5
13339sed 's/^/| /' conftest.$ac_ext >&5
13340
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013341 ac_cv_type_pthread_rwlock_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013342fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013343
Jeremy White0ebeb532006-06-20 13:18:41 +020013344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013345fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013346{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13347echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013348if test $ac_cv_type_pthread_rwlock_t = yes; then
13349
13350cat >>confdefs.h <<_ACEOF
13351#define HAVE_PTHREAD_RWLOCK_T 1
13352_ACEOF
13353
13354
13355fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013356{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13357echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013358if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13359 echo $ECHO_N "(cached) $ECHO_C" >&6
13360else
13361 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013362/* confdefs.h. */
13363_ACEOF
13364cat confdefs.h >>conftest.$ac_ext
13365cat >>conftest.$ac_ext <<_ACEOF
13366/* end confdefs.h. */
13367#define _GNU_SOURCE
13368#include <pthread.h>
13369
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013370typedef pthread_rwlockattr_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013371int
13372main ()
13373{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013374if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013375 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013376if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013377 return 0;
13378 ;
13379 return 0;
13380}
13381_ACEOF
13382rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013383if { (ac_try="$ac_compile"
13384case "(($ac_try" in
13385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13387esac
13388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013390 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013391 grep -v '^ *+' conftest.er1 >conftest.err
13392 rm -f conftest.er1
13393 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13397 { (case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13400esac
13401eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013407 { (case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410esac
13411eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_type_pthread_rwlockattr_t=yes
13417else
13418 echo "$as_me: failed program was:" >&5
13419sed 's/^/| /' conftest.$ac_ext >&5
13420
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013421 ac_cv_type_pthread_rwlockattr_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013422fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013423
Jeremy White0ebeb532006-06-20 13:18:41 +020013424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013425fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013426{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13427echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013428if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13429
13430cat >>confdefs.h <<_ACEOF
13431#define HAVE_PTHREAD_RWLOCKATTR_T 1
13432_ACEOF
13433
13434
13435fi
13436
13437
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013438ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000013439LIBS="$LIBS $LIBPTHREAD"
13440
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000013441
13442
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020013443
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000013444for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020013445 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000013446 pthread_getattr_np \
13447 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013448 pthread_get_stacksize_np
Alexandre Julliard821ab862003-11-12 22:44:56 +000013449do
13450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013451{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13453if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard821ab862003-11-12 22:44:56 +000013454 echo $ECHO_N "(cached) $ECHO_C" >&6
13455else
13456 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000013457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
13461/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13464#define $ac_func innocuous_$ac_func
13465
Alexandre Julliard821ab862003-11-12 22:44:56 +000013466/* System header to define __stub macros and hopefully few prototypes,
13467 which can conflict with char $ac_func (); below.
13468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13469 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013470
Alexandre Julliard821ab862003-11-12 22:44:56 +000013471#ifdef __STDC__
13472# include <limits.h>
13473#else
13474# include <assert.h>
13475#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013476
13477#undef $ac_func
13478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013479/* Override any GCC internal prototype to avoid an error.
13480 Use char because int might match the return type of a GCC
13481 builtin and then its argument prototype would still apply. */
Alexandre Julliard821ab862003-11-12 22:44:56 +000013482#ifdef __cplusplus
13483extern "C"
Alexandre Julliard821ab862003-11-12 22:44:56 +000013484#endif
Alexandre Julliard821ab862003-11-12 22:44:56 +000013485char $ac_func ();
13486/* The GNU C library defines this for functions which it implements
13487 to always fail with ENOSYS. Some functions are actually named
13488 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013489#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard821ab862003-11-12 22:44:56 +000013490choke me
Alexandre Julliard821ab862003-11-12 22:44:56 +000013491#endif
13492
13493int
13494main ()
13495{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013496return $ac_func ();
Alexandre Julliard821ab862003-11-12 22:44:56 +000013497 ;
13498 return 0;
13499}
13500_ACEOF
13501rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013502if { (ac_try="$ac_link"
13503case "(($ac_try" in
13504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505 *) ac_try_echo=$ac_try;;
13506esac
13507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000013509 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013510 grep -v '^ *+' conftest.er1 >conftest.err
13511 rm -f conftest.er1
13512 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000013513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516 { (case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
13520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013526 { (case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13529esac
13530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_try") 2>&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000013532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 eval "$as_ac_var=yes"
13536else
13537 echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013540 eval "$as_ac_var=no"
Alexandre Julliard821ab862003-11-12 22:44:56 +000013541fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013542
Jeremy White0ebeb532006-06-20 13:18:41 +020013543rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013544 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000013545fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013546ac_res=`eval echo '${'$as_ac_var'}'`
13547 { echo "$as_me:$LINENO: result: $ac_res" >&5
13548echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard821ab862003-11-12 22:44:56 +000013549if test `eval echo '${'$as_ac_var'}'` = yes; then
13550 cat >>confdefs.h <<_ACEOF
13551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13552_ACEOF
13553
13554fi
13555done
13556
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013557LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000013558
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013559# Extract the first word of "artsc-config", so it can be a program name with args.
13560set dummy artsc-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013563if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
13564 echo $ECHO_N "(cached) $ECHO_C" >&6
13565else
13566 case $ARTSCCONFIG in
13567 [\\/]* | ?:[\\/]*)
13568 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
13569 ;;
13570 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13572for as_dir in $PATH
13573do
13574 IFS=$as_save_IFS
13575 test -z "$as_dir" && as_dir=.
13576 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013577 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 +000013578 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
13579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13580 break 2
13581 fi
13582done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013583done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013584IFS=$as_save_IFS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013585
13586 ;;
13587esac
13588fi
13589ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013590if test -n "$ARTSCCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013591 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
13592echo "${ECHO_T}$ARTSCCONFIG" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013593else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013594 { echo "$as_me:$LINENO: result: no" >&5
13595echo "${ECHO_T}no" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013596fi
13597
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013598
Marcus Meissnerbc624582004-01-18 22:15:46 +000013599if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
13600then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000013601 ARTSC_CFLAGS=""
13602 for i in `$ARTSCCONFIG --cflags`
13603 do
13604 case "$i" in
13605 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
13606 esac
13607 done
Alexandre Julliard197a7d02006-04-04 12:08:30 +020013608 ARTSC_LIBS=""
13609 for i in `$ARTSCCONFIG --libs`
13610 do
13611 case "$i" in
13612 -L/usr/lib|-L/usr/lib64) ;;
13613 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
13614 esac
13615 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000013616 save_CFLAGS="$CFLAGS"
13617 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013618 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
13619echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000013620if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622else
13623 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000013624LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000013625cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */
13631
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013632/* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply. */
Jacek Caban6f8f4752005-03-28 09:58:45 +000013635#ifdef __cplusplus
13636extern "C"
13637#endif
Jacek Caban6f8f4752005-03-28 09:58:45 +000013638char arts_init ();
13639int
13640main ()
13641{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013642return arts_init ();
Jacek Caban6f8f4752005-03-28 09:58:45 +000013643 ;
13644 return 0;
13645}
13646_ACEOF
13647rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013648if { (ac_try="$ac_link"
13649case "(($ac_try" in
13650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13652esac
13653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_link") 2>conftest.er1
Jacek Caban6f8f4752005-03-28 09:58:45 +000013655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13662 { (case "(($ac_try" in
13663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13665esac
13666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000013668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013672 { (case "(($ac_try" in
13673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674 *) ac_try_echo=$ac_try;;
13675esac
13676eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000013678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13681 ac_cv_lib_artsc_arts_init=yes
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013686 ac_cv_lib_artsc_arts_init=no
Jacek Caban6f8f4752005-03-28 09:58:45 +000013687fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013688
Jeremy White0ebeb532006-06-20 13:18:41 +020013689rm -f core conftest.err conftest.$ac_objext \
Jacek Caban6f8f4752005-03-28 09:58:45 +000013690 conftest$ac_exeext conftest.$ac_ext
13691LIBS=$ac_check_lib_save_LIBS
13692fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013693{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
13694echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000013695if test $ac_cv_lib_artsc_arts_init = yes; then
13696 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013697/* confdefs.h. */
13698_ACEOF
13699cat confdefs.h >>conftest.$ac_ext
13700cat >>conftest.$ac_ext <<_ACEOF
13701/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000013702#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013703int
13704main ()
13705{
Marcus Meissnerbc624582004-01-18 22:15:46 +000013706arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013707 ;
13708 return 0;
13709}
13710_ACEOF
13711rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013712if { (ac_try="$ac_compile"
13713case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716esac
13717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_compile") 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013719 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013724 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13726 { (case "(($ac_try" in
13727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13728 *) ac_try_echo=$ac_try;;
13729esac
13730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13731 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013736 { (case "(($ac_try" in
13737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738 *) ac_try_echo=$ac_try;;
13739esac
13740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13741 (eval "$ac_try") 2>&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013742 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013744 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000013745 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013746
Jacek Caban6f8f4752005-03-28 09:58:45 +000013747 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000013748
13749
13750cat >>confdefs.h <<\_ACEOF
13751#define HAVE_ARTS 1
13752_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013753
13754else
13755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013756sed 's/^/| /' conftest.$ac_ext >&5
13757
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013758
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013759fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013760
Jeremy White0ebeb532006-06-20 13:18:41 +020013761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000013762fi
13763
Marcus Meissnerbc624582004-01-18 22:15:46 +000013764 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000013765fi
13766
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013767# Extract the first word of "esd-config", so it can be a program name with args.
13768set dummy esd-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013771if test "${ac_cv_path_ESDCONFIG+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773else
13774 case $ESDCONFIG in
13775 [\\/]* | ?:[\\/]*)
13776 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
13777 ;;
13778 *)
13779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $PATH
13781do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
13784 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013785 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 +000013786 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
13787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13788 break 2
13789 fi
13790done
13791done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013792IFS=$as_save_IFS
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013793
13794 ;;
13795esac
13796fi
13797ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013798if test -n "$ESDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013799 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
13800echo "${ECHO_T}$ESDCONFIG" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013801else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013802 { echo "$as_me:$LINENO: result: no" >&5
13803echo "${ECHO_T}no" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013804fi
13805
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013806
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013807if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
13808then
13809 ESD_CFLAGS=""
13810 for i in `$ESDCONFIG --cflags`
13811 do
13812 case "$i" in
13813 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
13814 esac
13815 done
13816 ESD_LIBS=`$ESDCONFIG --libs`
13817 save_CFLAGS="$CFLAGS"
13818 CFLAGS="$CFLAGS $ESD_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013819 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
13820echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013821if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13823else
13824 ac_check_lib_save_LIBS=$LIBS
13825LIBS="-lesd $LIBS"
13826cat >conftest.$ac_ext <<_ACEOF
13827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
13832
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013833/* Override any GCC internal prototype to avoid an error.
13834 Use char because int might match the return type of a GCC
13835 builtin and then its argument prototype would still apply. */
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013836#ifdef __cplusplus
13837extern "C"
13838#endif
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013839char esd_open_sound ();
13840int
13841main ()
13842{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013843return esd_open_sound ();
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013844 ;
13845 return 0;
13846}
13847_ACEOF
13848rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013849if { (ac_try="$ac_link"
13850case "(($ac_try" in
13851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13852 *) ac_try_echo=$ac_try;;
13853esac
13854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13855 (eval "$ac_link") 2>conftest.er1
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013856 ac_status=$?
13857 grep -v '^ *+' conftest.er1 >conftest.err
13858 rm -f conftest.er1
13859 cat conftest.err >&5
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13863 { (case "(($ac_try" in
13864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13865 *) ac_try_echo=$ac_try;;
13866esac
13867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13868 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013869 ac_status=$?
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; } &&
13872 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013873 { (case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876esac
13877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); }; }; then
13882 ac_cv_lib_esd_esd_open_sound=yes
13883else
13884 echo "$as_me: failed program was:" >&5
13885sed 's/^/| /' conftest.$ac_ext >&5
13886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013887 ac_cv_lib_esd_esd_open_sound=no
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013888fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013889
Jeremy White0ebeb532006-06-20 13:18:41 +020013890rm -f core conftest.err conftest.$ac_objext \
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013891 conftest$ac_exeext conftest.$ac_ext
13892LIBS=$ac_check_lib_save_LIBS
13893fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013894{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
13895echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000013896if test $ac_cv_lib_esd_esd_open_sound = yes; then
13897 ESDLIBS=$ESD_LIBS
13898
13899 ESDINCL=$ESD_CFLAGS
13900
13901
13902cat >>confdefs.h <<\_ACEOF
13903#define HAVE_ESD 1
13904_ACEOF
13905
13906fi
13907
13908 CFLAGS="$save_CFLAGS"
13909fi
13910
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013911ALSALIBS=""
13912
Marco Pietrobono0e79a412002-08-29 01:51:31 +000013913if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013914then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013915 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
13916echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013917if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013918 echo $ECHO_N "(cached) $ECHO_C" >&6
13919else
13920 ac_check_lib_save_LIBS=$LIBS
13921LIBS="-lasound $LIBS"
13922cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013923/* confdefs.h. */
13924_ACEOF
13925cat confdefs.h >>conftest.$ac_ext
13926cat >>conftest.$ac_ext <<_ACEOF
13927/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013928
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013929/* Override any GCC internal prototype to avoid an error.
13930 Use char because int might match the return type of a GCC
13931 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013932#ifdef __cplusplus
13933extern "C"
13934#endif
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013935char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013936int
13937main ()
13938{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013939return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013940 ;
13941 return 0;
13942}
13943_ACEOF
13944rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013945if { (ac_try="$ac_link"
13946case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949esac
13950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013952 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962esac
13963eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013969 { (case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972esac
13973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13974 (eval "$ac_try") 2>&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; }; then
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013978 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013979else
13980 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013981sed 's/^/| /' conftest.$ac_ext >&5
13982
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013983 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013984fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013985
Jeremy White0ebeb532006-06-20 13:18:41 +020013986rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013987 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000013988LIBS=$ac_check_lib_save_LIBS
13989fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013990{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
13991echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000013992if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
13993 cat >conftest.$ac_ext <<_ACEOF
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999#ifdef HAVE_ALSA_ASOUNDLIB_H
14000#include <alsa/asoundlib.h>
14001#elif defined(HAVE_SYS_ASOUNDLIB_H)
14002#include <sys/asoundlib.h>
14003#endif
14004int
14005main ()
14006{
14007int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14008 ;
14009 return 0;
14010}
14011_ACEOF
14012rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014013if { (ac_try="$ac_compile"
14014case "(($ac_try" in
14015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14016 *) ac_try_echo=$ac_try;;
14017esac
14018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14019 (eval "$ac_compile") 2>conftest.er1
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14027 { (case "(($ac_try" in
14028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14029 *) ac_try_echo=$ac_try;;
14030esac
14031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14032 (eval "$ac_try") 2>&5
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014037 { (case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040esac
14041eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_try") 2>&5
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014046
14047cat >>confdefs.h <<\_ACEOF
14048#define HAVE_ALSA 1
14049_ACEOF
14050
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014051 ALSALIBS="-lasound"
14052else
14053 echo "$as_me: failed program was:" >&5
14054sed 's/^/| /' conftest.$ac_ext >&5
14055
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014056
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000014057fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014058
Jeremy White0ebeb532006-06-20 13:18:41 +020014059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014060fi
14061
14062fi
14063
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014064
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014065AUDIOIOLIBS=""
14066
Alexandre Julliard73482142005-08-03 19:21:04 +000014067if test "$ac_cv_header_libaudioio_h" = "yes"
14068then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014069 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14070echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014071if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073else
14074 ac_check_lib_save_LIBS=$LIBS
14075LIBS="-laudioio $LIBS"
14076cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014077/* confdefs.h. */
14078_ACEOF
14079cat confdefs.h >>conftest.$ac_ext
14080cat >>conftest.$ac_ext <<_ACEOF
14081/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014082
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014083/* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014086#ifdef __cplusplus
14087extern "C"
14088#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014089char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014090int
14091main ()
14092{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014093return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014094 ;
14095 return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014099if { (ac_try="$ac_link"
14100case "(($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_link") 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014106 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14116esac
14117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014123 { (case "(($ac_try" in
14124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14125 *) ac_try_echo=$ac_try;;
14126esac
14127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14128 (eval "$ac_try") 2>&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_lib_audioio_AudioIOGetVersion=yes
14133else
14134 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014135sed 's/^/| /' conftest.$ac_ext >&5
14136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014137 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014138fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014139
Jeremy White0ebeb532006-06-20 13:18:41 +020014140rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014141 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014142LIBS=$ac_check_lib_save_LIBS
14143fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014144{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14145echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014146if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14147 AUDIOIOLIBS="-laudioio"
14148
14149cat >>confdefs.h <<\_ACEOF
14150#define HAVE_LIBAUDIOIO 1
14151_ACEOF
14152
14153fi
14154
14155fi
14156
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014157
Alexandre Julliard73482142005-08-03 19:21:04 +000014158if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14159then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014160 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14161echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014162if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164else
14165 ac_check_lib_save_LIBS=$LIBS
14166LIBS="-lcapi20 $LIBS"
14167cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014168/* confdefs.h. */
14169_ACEOF
14170cat confdefs.h >>conftest.$ac_ext
14171cat >>conftest.$ac_ext <<_ACEOF
14172/* end confdefs.h. */
14173
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014174/* Override any GCC internal prototype to avoid an error.
14175 Use char because int might match the return type of a GCC
14176 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014177#ifdef __cplusplus
14178extern "C"
14179#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014180char capi20_register ();
14181int
14182main ()
14183{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014184return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014185 ;
14186 return 0;
14187}
14188_ACEOF
14189rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014190if { (ac_try="$ac_link"
14191case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194esac
14195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14196 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014197 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14204 { (case "(($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_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014210 ac_status=$?
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; } &&
14213 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014214 { (case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217esac
14218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_try") 2>&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014220 ac_status=$?
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); }; }; then
14223 ac_cv_lib_capi20_capi20_register=yes
14224else
14225 echo "$as_me: failed program was:" >&5
14226sed 's/^/| /' conftest.$ac_ext >&5
14227
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014228 ac_cv_lib_capi20_capi20_register=no
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014229fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014230
Jeremy White0ebeb532006-06-20 13:18:41 +020014231rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014232 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014233LIBS=$ac_check_lib_save_LIBS
14234fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014235{ echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14236echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014237if test $ac_cv_lib_capi20_capi20_register = yes; then
14238
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014239cat >>confdefs.h <<\_ACEOF
14240#define HAVE_CAPI4LINUX 1
14241_ACEOF
14242
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014243fi
14244
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014245fi
14246
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014247
Robert Shearman68249c12006-07-25 10:36:06 +010014248if test "$ac_cv_header_gif_lib_h" = "yes"
14249then
14250 cat >conftest.$ac_ext <<_ACEOF
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
14256#include <gif_lib.h>
14257int
14258main ()
14259{
14260static typeof(DGifOpen) * func;
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265rm -f conftest.$ac_objext
14266if { (ac_try="$ac_compile"
14267case "(($ac_try" in
14268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269 *) ac_try_echo=$ac_try;;
14270esac
14271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272 (eval "$ac_compile") 2>conftest.er1
14273 ac_status=$?
14274 grep -v '^ *+' conftest.er1 >conftest.err
14275 rm -f conftest.er1
14276 cat conftest.err >&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); } &&
14279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14280 { (case "(($ac_try" in
14281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14282 *) ac_try_echo=$ac_try;;
14283esac
14284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14285 (eval "$ac_try") 2>&5
14286 ac_status=$?
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); }; } &&
14289 { ac_try='test -s conftest.$ac_objext'
14290 { (case "(($ac_try" in
14291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14293esac
14294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299
14300cat >>confdefs.h <<\_ACEOF
14301#define HAVE_GIF 1
14302_ACEOF
14303
14304else
14305 echo "$as_me: failed program was:" >&5
14306sed 's/^/| /' conftest.$ac_ext >&5
14307
14308
14309fi
14310
14311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14312fi
14313
14314
Alexandre Julliardfc094232003-04-14 21:46:41 +000014315EXTRACFLAGS=""
14316
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014317if test "x${GCC}" = "xyes"
14318then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000014319 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000014320
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014321 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14322echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014323if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014325else
14326 if test "$cross_compiling" = yes; then
14327 ac_cv_c_gcc_strength_bug="yes"
14328else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014329 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014330/* confdefs.h. */
14331_ACEOF
14332cat confdefs.h >>conftest.$ac_ext
14333cat >>conftest.$ac_ext <<_ACEOF
14334/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014335
Eric Pouech5aee80f2000-11-11 00:31:39 +000014336int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014337int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014338 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014339 unsigned int B = 3;
14340 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014341 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000014342 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14343 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014344
Eric Pouech5aee80f2000-11-11 00:31:39 +000014345 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014346}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014347_ACEOF
14348rm -f 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>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014356 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014359 { (case "(($ac_try" in
14360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361 *) ac_try_echo=$ac_try;;
14362esac
14363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014367 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014368 ac_cv_c_gcc_strength_bug="no"
14369else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014370 echo "$as_me: program exited with status $ac_status" >&5
14371echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014372sed 's/^/| /' conftest.$ac_ext >&5
14373
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014374( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014375ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014376fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014377rm -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 +000014378fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014379
14380
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014381fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014382{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14383echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014384 if test "$ac_cv_c_gcc_strength_bug" = "yes"
14385 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000014386 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014387 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000014388
Alexandre Julliard182d1502006-08-25 13:22:33 +020014389
14390 { echo "$as_me:$LINENO: checking whether the compiler supports -fshort-wchar" >&5
14391echo $ECHO_N "checking whether the compiler supports -fshort-wchar... $ECHO_C" >&6; }
14392if test "${ac_cv_cflags__fshort_wchar+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014393 echo $ECHO_N "(cached) $ECHO_C" >&6
14394else
14395 ac_wine_try_cflags_saved=$CFLAGS
14396CFLAGS="$CFLAGS -fshort-wchar"
14397cat >conftest.$ac_ext <<_ACEOF
14398/* confdefs.h. */
14399_ACEOF
14400cat confdefs.h >>conftest.$ac_ext
14401cat >>conftest.$ac_ext <<_ACEOF
14402/* end confdefs.h. */
14403
14404int
14405main ()
14406{
14407
14408 ;
14409 return 0;
14410}
14411_ACEOF
14412rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014413if { (ac_try="$ac_link"
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_link") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014420 ac_status=$?
14421 grep -v '^ *+' conftest.er1 >conftest.err
14422 rm -f conftest.er1
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (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
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; } &&
14436 { ac_try='test -s conftest$ac_exeext'
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
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014443 ac_status=$?
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020014446 ac_cv_cflags__fshort_wchar=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014447else
14448 echo "$as_me: failed program was:" >&5
14449sed 's/^/| /' conftest.$ac_ext >&5
14450
Alexandre Julliard182d1502006-08-25 13:22:33 +020014451 ac_cv_cflags__fshort_wchar=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014452fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014453
Jeremy White0ebeb532006-06-20 13:18:41 +020014454rm -f core conftest.err conftest.$ac_objext \
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014455 conftest$ac_exeext conftest.$ac_ext
14456CFLAGS=$ac_wine_try_cflags_saved
14457fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020014458{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fshort_wchar" >&5
14459echo "${ECHO_T}$ac_cv_cflags__fshort_wchar" >&6; }
14460if test $ac_cv_cflags__fshort_wchar = yes; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014461
14462cat >>confdefs.h <<\_ACEOF
14463#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14464_ACEOF
14465
Alexandre Julliard182d1502006-08-25 13:22:33 +020014466fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014467
Alexandre Julliard182d1502006-08-25 13:22:33 +020014468 { echo "$as_me:$LINENO: checking whether the compiler supports -fno-strict-aliasing" >&5
14469echo $ECHO_N "checking whether the compiler supports -fno-strict-aliasing... $ECHO_C" >&6; }
14470if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014471 echo $ECHO_N "(cached) $ECHO_C" >&6
14472else
14473 ac_wine_try_cflags_saved=$CFLAGS
14474CFLAGS="$CFLAGS -fno-strict-aliasing"
14475cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014476/* confdefs.h. */
14477_ACEOF
14478cat confdefs.h >>conftest.$ac_ext
14479cat >>conftest.$ac_ext <<_ACEOF
14480/* end confdefs.h. */
14481
14482int
14483main ()
14484{
14485
14486 ;
14487 return 0;
14488}
14489_ACEOF
14490rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014491if { (ac_try="$ac_link"
14492case "(($ac_try" in
14493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14494 *) ac_try_echo=$ac_try;;
14495esac
14496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14497 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014498 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14505 { (case "(($ac_try" in
14506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14507 *) ac_try_echo=$ac_try;;
14508esac
14509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14510 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014511 ac_status=$?
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); }; } &&
14514 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014515 { (case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14518esac
14519eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_try") 2>&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020014524 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014525else
14526 echo "$as_me: failed program was:" >&5
14527sed 's/^/| /' conftest.$ac_ext >&5
14528
Alexandre Julliard182d1502006-08-25 13:22:33 +020014529 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014530fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014531
Jeremy White0ebeb532006-06-20 13:18:41 +020014532rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014533 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014534CFLAGS=$ac_wine_try_cflags_saved
14535fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020014536{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fno_strict_aliasing" >&5
14537echo "${ECHO_T}$ac_cv_cflags__fno_strict_aliasing" >&6; }
14538if test $ac_cv_cflags__fno_strict_aliasing = yes; then
14539 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
14540fi
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014541
Alexandre Julliard182d1502006-08-25 13:22:33 +020014542 { echo "$as_me:$LINENO: checking whether the compiler supports -gstabs+" >&5
14543echo $ECHO_N "checking whether the compiler supports -gstabs+... $ECHO_C" >&6; }
14544if test "${ac_cv_cflags__gstabsp+set}" = set; then
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014545 echo $ECHO_N "(cached) $ECHO_C" >&6
14546else
14547 ac_wine_try_cflags_saved=$CFLAGS
14548CFLAGS="$CFLAGS -gstabs+"
14549cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014550/* confdefs.h. */
14551_ACEOF
14552cat confdefs.h >>conftest.$ac_ext
14553cat >>conftest.$ac_ext <<_ACEOF
14554/* end confdefs.h. */
14555
14556int
14557main ()
14558{
14559
14560 ;
14561 return 0;
14562}
14563_ACEOF
14564rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014565if { (ac_try="$ac_link"
14566case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14569esac
14570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014572 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014573 grep -v '^ *+' conftest.er1 >conftest.err
14574 rm -f conftest.er1
14575 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14579 { (case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14582esac
14583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014589 { (case "(($ac_try" in
14590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14591 *) ac_try_echo=$ac_try;;
14592esac
14593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_try") 2>&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020014598 ac_cv_cflags__gstabsp=yes
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
Alexandre Julliard182d1502006-08-25 13:22:33 +020014603 ac_cv_cflags__gstabsp=no
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014604fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014605
Jeremy White0ebeb532006-06-20 13:18:41 +020014606rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014607 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000014608CFLAGS=$ac_wine_try_cflags_saved
14609fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020014610{ echo "$as_me:$LINENO: result: $ac_cv_cflags__gstabsp" >&5
14611echo "${ECHO_T}$ac_cv_cflags__gstabsp" >&6; }
14612if test $ac_cv_cflags__gstabsp = yes; then
14613 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
14614fi
Mike McCormackc509bc42003-02-25 04:01:58 +000014615
Alexandre Julliard182d1502006-08-25 13:22:33 +020014616 { echo "$as_me:$LINENO: checking whether the compiler supports -Wdeclaration-after-statement" >&5
14617echo $ECHO_N "checking whether the compiler supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
14618if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620else
14621 ac_wine_try_cflags_saved=$CFLAGS
14622CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14623cat >conftest.$ac_ext <<_ACEOF
14624/* confdefs.h. */
14625_ACEOF
14626cat confdefs.h >>conftest.$ac_ext
14627cat >>conftest.$ac_ext <<_ACEOF
14628/* end confdefs.h. */
14629
14630int
14631main ()
14632{
14633
14634 ;
14635 return 0;
14636}
14637_ACEOF
14638rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014639if { (ac_try="$ac_link"
14640case "(($ac_try" in
14641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642 *) ac_try_echo=$ac_try;;
14643esac
14644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014646 ac_status=$?
14647 grep -v '^ *+' conftest.er1 >conftest.err
14648 rm -f conftest.er1
14649 cat conftest.err >&5
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14653 { (case "(($ac_try" in
14654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14655 *) ac_try_echo=$ac_try;;
14656esac
14657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14658 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014659 ac_status=$?
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); }; } &&
14662 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014663 { (case "(($ac_try" in
14664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14665 *) ac_try_echo=$ac_try;;
14666esac
14667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14668 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020014672 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014673else
14674 echo "$as_me: failed program was:" >&5
14675sed 's/^/| /' conftest.$ac_ext >&5
14676
Alexandre Julliard182d1502006-08-25 13:22:33 +020014677 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014678fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014679
Jeremy White0ebeb532006-06-20 13:18:41 +020014680rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014681 conftest$ac_exeext conftest.$ac_ext
14682CFLAGS=$ac_wine_try_cflags_saved
14683fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020014684{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
14685echo "${ECHO_T}$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
14686if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then
14687 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
14688fi
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000014689
Alexandre Julliard182d1502006-08-25 13:22:33 +020014690 { echo "$as_me:$LINENO: checking whether the compiler supports -Wwrite-strings" >&5
14691echo $ECHO_N "checking whether the compiler supports -Wwrite-strings... $ECHO_C" >&6; }
14692if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then
Alexandre Julliardd75cc5a2006-08-25 12:07:34 +020014693 echo $ECHO_N "(cached) $ECHO_C" >&6
14694else
14695 ac_wine_try_cflags_saved=$CFLAGS
14696CFLAGS="$CFLAGS -Wwrite-strings"
14697cat >conftest.$ac_ext <<_ACEOF
14698/* confdefs.h. */
14699_ACEOF
14700cat confdefs.h >>conftest.$ac_ext
14701cat >>conftest.$ac_ext <<_ACEOF
14702/* end confdefs.h. */
14703
14704int
14705main ()
14706{
14707
14708 ;
14709 return 0;
14710}
14711_ACEOF
14712rm -f conftest.$ac_objext conftest$ac_exeext
14713if { (ac_try="$ac_link"
14714case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14717esac
14718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_link") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14727 { (case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14730esac
14731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_try") 2>&5
14733 ac_status=$?
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740esac
14741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_try") 2>&5
14743 ac_status=$?
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020014746 ac_cv_cflags__Wwrite_strings=yes
Alexandre Julliardd75cc5a2006-08-25 12:07:34 +020014747else
14748 echo "$as_me: failed program was:" >&5
14749sed 's/^/| /' conftest.$ac_ext >&5
14750
Alexandre Julliard182d1502006-08-25 13:22:33 +020014751 ac_cv_cflags__Wwrite_strings=no
Alexandre Julliardd75cc5a2006-08-25 12:07:34 +020014752fi
14753
14754rm -f core conftest.err conftest.$ac_objext \
14755 conftest$ac_exeext conftest.$ac_ext
14756CFLAGS=$ac_wine_try_cflags_saved
14757fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020014758{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wwrite_strings" >&5
14759echo "${ECHO_T}$ac_cv_cflags__Wwrite_strings" >&6; }
14760if test $ac_cv_cflags__Wwrite_strings = yes; then
14761 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
14762fi
14763
Alexandre Julliardd75cc5a2006-08-25 12:07:34 +020014764
Alexandre Julliard4d52d372003-03-24 19:33:20 +000014765 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000014766 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014767 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
14768echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
Mike McCormackc509bc42003-02-25 04:01:58 +000014769if test "${ac_cv_c_string_h_warnings+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14771else
14772 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000014773/* confdefs.h. */
14774_ACEOF
14775cat confdefs.h >>conftest.$ac_ext
14776cat >>conftest.$ac_ext <<_ACEOF
14777/* end confdefs.h. */
14778#include <string.h>
14779int
14780main ()
14781{
14782
14783 ;
14784 return 0;
14785}
14786_ACEOF
14787rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014788if { (ac_try="$ac_compile"
14789case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792esac
14793eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000014795 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000014799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14805esac
14806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014808 ac_status=$?
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815esac
14816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
Mike McCormackc509bc42003-02-25 04:01:58 +000014818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_c_string_h_warnings=no
14822else
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014826 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000014827fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014828
Jeremy White0ebeb532006-06-20 13:18:41 +020014829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000014830fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014831{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
14832echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000014833 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000014834 if test "$ac_cv_c_string_h_warnings" = "no"
14835 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000014836 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000014837 fi
Mike McCormackb7443722005-08-11 17:12:18 +000014838
14839 BUILTINFLAG=""
14840
14841 saved_CFLAGS="$CFLAGS"
14842 CFLAGS="$CFLAGS -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014843 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
14844echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000014845if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14847else
14848 cat >conftest.$ac_ext <<_ACEOF
14849/* confdefs.h. */
14850_ACEOF
14851cat confdefs.h >>conftest.$ac_ext
14852cat >>conftest.$ac_ext <<_ACEOF
14853/* end confdefs.h. */
14854
14855int
14856main ()
14857{
14858int iswlower(unsigned short);
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014864if { (ac_try="$ac_compile"
14865case "(($ac_try" in
14866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14867 *) ac_try_echo=$ac_try;;
14868esac
14869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
Mike McCormackb7443722005-08-11 17:12:18 +000014871 ac_status=$?
14872 grep -v '^ *+' conftest.er1 >conftest.err
14873 rm -f conftest.er1
14874 cat conftest.err >&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14878 { (case "(($ac_try" in
14879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880 *) ac_try_echo=$ac_try;;
14881esac
14882eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000014884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014888 { (case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000014894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_c_builtin_wchar_ctype=no
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014902 ac_cv_c_builtin_wchar_ctype=yes
Mike McCormackb7443722005-08-11 17:12:18 +000014903fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014904
Jeremy White0ebeb532006-06-20 13:18:41 +020014905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackb7443722005-08-11 17:12:18 +000014906fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014907{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
14908echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000014909 CFLAGS="$saved_CFLAGS"
14910 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
14911 then
Mike McCormacka26dabe2006-07-19 19:16:59 +090014912 BUILTINFLAG="-fno-builtin"
Mike McCormackb7443722005-08-11 17:12:18 +000014913 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014914fi
14915
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014916
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014917{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
14918echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000014919if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014920 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000014921else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000014922 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014923/* confdefs.h. */
14924_ACEOF
14925cat confdefs.h >>conftest.$ac_ext
14926cat >>conftest.$ac_ext <<_ACEOF
14927/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000014928void 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 +000014929
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014930int
14931main ()
14932{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000014933
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014934 ;
14935 return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014939if { (ac_try="$ac_link"
14940case "(($ac_try" in
14941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14942 *) ac_try_echo=$ac_try;;
14943esac
14944eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14945 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014946 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014947 grep -v '^ *+' conftest.er1 >conftest.err
14948 rm -f conftest.er1
14949 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014951 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14953 { (case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14956esac
14957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014963 { (case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966esac
14967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14968 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014969 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014971 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000014972 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000014973else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014974 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014975sed 's/^/| /' conftest.$ac_ext >&5
14976
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014977 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000014983void 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 +000014984
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014985int
14986main ()
14987{
14988
14989 ;
14990 return 0;
14991}
14992_ACEOF
14993rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014994if { (ac_try="$ac_link"
14995case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14998esac
14999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_link") 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015001 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015002 grep -v '^ *+' conftest.er1 >conftest.err
15003 rm -f conftest.er1
15004 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15011esac
15012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15021esac
15022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015027 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015028else
15029 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015030sed 's/^/| /' conftest.$ac_ext >&5
15031
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015032 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015033/* confdefs.h. */
15034_ACEOF
15035cat confdefs.h >>conftest.$ac_ext
15036cat >>conftest.$ac_ext <<_ACEOF
15037/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015038void 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 +000015039
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015040int
15041main ()
15042{
15043
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015049if { (ac_try="$ac_link"
15050case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15053esac
15054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015056 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15063 { (case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015073 { (case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15076esac
15077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_try") 2>&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; }; then
15082 ac_cv_asm_func_def=".type 2"
15083else
15084 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015085sed 's/^/| /' conftest.$ac_ext >&5
15086
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015087 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015088fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015089
Jeremy White0ebeb532006-06-20 13:18:41 +020015090rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015091 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015092fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015093
Jeremy White0ebeb532006-06-20 13:18:41 +020015094rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015095 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015096fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015097
Jeremy White0ebeb532006-06-20 13:18:41 +020015098rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015099 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015100fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015101{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15102echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015103
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015104
15105
15106case "$ac_cv_asm_func_def" in
15107 ".def")
15108 cat >>confdefs.h <<\_ACEOF
15109#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015110_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015111 ;;
15112 ".type @function")
15113 cat >>confdefs.h <<\_ACEOF
15114#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15115_ACEOF
15116 ;;
15117 ".type 2")
15118 cat >>confdefs.h <<\_ACEOF
15119#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15120_ACEOF
15121 ;;
15122 *)
15123 cat >>confdefs.h <<\_ACEOF
15124#define __ASM_FUNC(name) ""
15125_ACEOF
15126 ;;
15127esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015128
15129
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015130{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15131echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015132if test "${ac_cv_c_extern_prefix+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015134else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015135 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015136/* confdefs.h. */
15137_ACEOF
15138cat confdefs.h >>conftest.$ac_ext
15139cat >>conftest.$ac_ext <<_ACEOF
15140/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015141void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015142extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015143int
15144main ()
15145{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015146if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015147 ;
15148 return 0;
15149}
15150_ACEOF
15151rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015152if { (ac_try="$ac_link"
15153case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156esac
15157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015159 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015164 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15166 { (case "(($ac_try" in
15167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15168 *) ac_try_echo=$ac_try;;
15169esac
15170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15171 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; } &&
15175 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015176 { (case "(($ac_try" in
15177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15178 *) ac_try_echo=$ac_try;;
15179esac
15180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15181 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015184 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015185 ac_cv_c_extern_prefix="yes"
15186else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015187 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015188sed 's/^/| /' conftest.$ac_ext >&5
15189
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015190 ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015191fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015192
Jeremy White0ebeb532006-06-20 13:18:41 +020015193rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015194 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015195fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015196{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15197echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015198
15199
15200
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015201if test "$ac_cv_c_extern_prefix" = "yes"
15202then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015203 cat >>confdefs.h <<\_ACEOF
15204#define __ASM_NAME(name) "_" name
15205_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015206
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015207else
15208 cat >>confdefs.h <<\_ACEOF
15209#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015210_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015211
15212fi
15213
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015214
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015215DLLEXT=""
15216
Alexandre Julliardfc094232003-04-14 21:46:41 +000015217DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015218
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015219LDSHARED=""
15220
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015221LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000015222
Alexandre Julliardada5e652002-12-12 22:03:14 +000015223LIBEXT="so"
15224
15225IMPLIBEXT="def"
15226
Alexandre Julliard13a93b42006-08-25 17:23:44 +020015227LIBWINE_LDFLAGS=""
15228
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015229
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015230case $host_os in
15231 cygwin*|mingw32*)
15232 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000015233 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15234set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015235{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015237if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239else
15240 if test -n "$DLLTOOL"; then
15241 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15242else
15243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244for as_dir in $PATH
15245do
15246 IFS=$as_save_IFS
15247 test -z "$as_dir" && as_dir=.
15248 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015249 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 +000015250 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15252 break 2
15253 fi
15254done
15255done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015256IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015257
15258fi
15259fi
15260DLLTOOL=$ac_cv_prog_DLLTOOL
15261if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015262 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15263echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015264else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015265 { echo "$as_me:$LINENO: result: no" >&5
15266echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015267fi
15268
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015269
Alexandre Julliardada5e652002-12-12 22:03:14 +000015270fi
15271if test -z "$ac_cv_prog_DLLTOOL"; then
15272 ac_ct_DLLTOOL=$DLLTOOL
15273 # Extract the first word of "dlltool", so it can be a program name with args.
15274set dummy dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015275{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15276echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015277if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15279else
15280 if test -n "$ac_ct_DLLTOOL"; then
15281 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15282else
15283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15284for as_dir in $PATH
15285do
15286 IFS=$as_save_IFS
15287 test -z "$as_dir" && as_dir=.
15288 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015289 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 +000015290 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15292 break 2
15293 fi
15294done
15295done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015296IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015297
Alexandre Julliardada5e652002-12-12 22:03:14 +000015298fi
15299fi
15300ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15301if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015302 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15303echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015304else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015305 { echo "$as_me:$LINENO: result: no" >&5
15306echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015307fi
15308
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015309 if test "x$ac_ct_DLLTOOL" = x; then
15310 DLLTOOL="false"
15311 else
15312 case $cross_compiling:$ac_tool_warned in
15313yes:)
15314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15315whose name does not start with the host triplet. If you think this
15316configuration is useful to you, please write to autoconf@gnu.org." >&5
15317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15318whose name does not start with the host triplet. If you think this
15319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15320ac_tool_warned=yes ;;
15321esac
15322 DLLTOOL=$ac_ct_DLLTOOL
15323 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015324else
15325 DLLTOOL="$ac_cv_prog_DLLTOOL"
15326fi
15327
15328 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015329 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15330set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015333if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15335else
15336 if test -n "$DLLWRAP"; then
15337 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15338else
15339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15340for as_dir in $PATH
15341do
15342 IFS=$as_save_IFS
15343 test -z "$as_dir" && as_dir=.
15344 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015345 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 +000015346 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000015347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15348 break 2
15349 fi
15350done
15351done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015352IFS=$as_save_IFS
Alexandre Julliard466ae142002-05-07 18:33:47 +000015353
Alexandre Julliard466ae142002-05-07 18:33:47 +000015354fi
15355fi
15356DLLWRAP=$ac_cv_prog_DLLWRAP
15357if test -n "$DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015358 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15359echo "${ECHO_T}$DLLWRAP" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015360else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015361 { echo "$as_me:$LINENO: result: no" >&5
15362echo "${ECHO_T}no" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015363fi
15364
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015365
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015366fi
15367if test -z "$ac_cv_prog_DLLWRAP"; then
15368 ac_ct_DLLWRAP=$DLLWRAP
15369 # Extract the first word of "dllwrap", so it can be a program name with args.
15370set dummy dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015373if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15375else
15376 if test -n "$ac_ct_DLLWRAP"; then
15377 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15378else
15379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15380for as_dir in $PATH
15381do
15382 IFS=$as_save_IFS
15383 test -z "$as_dir" && as_dir=.
15384 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015385 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 +000015386 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15388 break 2
15389 fi
15390done
15391done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015392IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015393
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015394fi
15395fi
15396ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15397if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015398 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15399echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015400else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015401 { echo "$as_me:$LINENO: result: no" >&5
15402echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015403fi
15404
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015405 if test "x$ac_ct_DLLWRAP" = x; then
15406 DLLWRAP="false"
15407 else
15408 case $cross_compiling:$ac_tool_warned in
15409yes:)
15410{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15411whose name does not start with the host triplet. If you think this
15412configuration is useful to you, please write to autoconf@gnu.org." >&5
15413echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15414whose name does not start with the host triplet. If you think this
15415configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15416ac_tool_warned=yes ;;
15417esac
15418 DLLWRAP=$ac_ct_DLLWRAP
15419 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015420else
15421 DLLWRAP="$ac_cv_prog_DLLWRAP"
15422fi
15423
15424 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015425 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015426 else
15427 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015428 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015429 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000015430 WIN16_FILES=""
15431 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015432 ;;
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020015433 darwin*|macosx*)
15434 DLLEXT=".so"
15435 LIBEXT="dylib"
15436 DLLFLAGS="$DLLFLAGS -fPIC"
15437 LDDLLFLAGS="-bundle -multiply_defined suppress"
Alexandre Julliard13a93b42006-08-25 17:23:44 +020015438 LIBWINE_LDFLAGS="-multiply_defined suppress"
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020015439 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME)"
15440 STRIP="$STRIP -u -r"
15441 COREFOUNDATIONLIB="-framework CoreFoundation"
15442
15443 IOKITLIB="-framework IOKit -framework CoreFoundation"
15444
15445 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
15446
15447 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
15448 then
15449 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
15450
15451 fi
15452 case $host_cpu in
15453 *powerpc*)
15454 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
15455 esac
15456 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015457 *)
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020015458 DLLFLAGS="$DLLFLAGS -fPIC"
15459 DLLEXT=".so"
15460 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015461echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015462if test "${ac_cv_c_dll_gnuelf+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015464else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015465 ac_wine_try_cflags_saved=$CFLAGS
Jeremy White0ebeb532006-06-20 13:18:41 +020015466CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015467cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000015468void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015469_ACEOF
15470rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015471if { (ac_try="$ac_link"
15472case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475esac
15476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015478 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015479 grep -v '^ *+' conftest.er1 >conftest.err
15480 rm -f conftest.er1
15481 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015483 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15485 { (case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15488esac
15489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; } &&
15494 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015495 { (case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15498esac
15499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015501 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015503 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000015504 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015505else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015506 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015507sed 's/^/| /' conftest.$ac_ext >&5
15508
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015509 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015510fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015511
Jeremy White0ebeb532006-06-20 13:18:41 +020015512rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015513 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015514CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015515fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015516{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
15517echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020015518 if test "$ac_cv_c_dll_gnuelf" = "yes"
15519 then
15520 LDSHARED="\$(CC) -shared"
15521 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard182d1502006-08-25 13:22:33 +020015522 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
15523echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... $ECHO_C" >&6; }
15524if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then
Jeremy White0ebeb532006-06-20 13:18:41 +020015525 echo $ECHO_N "(cached) $ECHO_C" >&6
15526else
15527 ac_wine_try_cflags_saved=$CFLAGS
15528CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
15529cat >conftest.$ac_ext <<_ACEOF
15530/* confdefs.h. */
15531_ACEOF
15532cat confdefs.h >>conftest.$ac_ext
15533cat >>conftest.$ac_ext <<_ACEOF
15534/* end confdefs.h. */
15535
15536int
15537main ()
15538{
15539
15540 ;
15541 return 0;
15542}
15543_ACEOF
15544rm -f conftest.$ac_objext conftest$ac_exeext
15545if { (ac_try="$ac_link"
15546case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549esac
15550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_link") 2>conftest.er1
15552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } &&
15558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15559 { (case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15562esac
15563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_try") 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; } &&
15568 { ac_try='test -s conftest$ac_exeext'
15569 { (case "(($ac_try" in
15570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571 *) ac_try_echo=$ac_try;;
15572esac
15573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574 (eval "$ac_try") 2>&5
15575 ac_status=$?
15576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020015578 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
Jeremy White0ebeb532006-06-20 13:18:41 +020015579else
15580 echo "$as_me: failed program was:" >&5
15581sed 's/^/| /' conftest.$ac_ext >&5
15582
Alexandre Julliard182d1502006-08-25 13:22:33 +020015583 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Jeremy White0ebeb532006-06-20 13:18:41 +020015584fi
15585
15586rm -f core conftest.err conftest.$ac_objext \
15587 conftest$ac_exeext conftest.$ac_ext
15588CFLAGS=$ac_wine_try_cflags_saved
15589fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020015590{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
15591echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
15592if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then
15593 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
15594else
15595 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
15596echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... $ECHO_C" >&6; }
15597if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then
Jeremy White0ebeb532006-06-20 13:18:41 +020015598 echo $ECHO_N "(cached) $ECHO_C" >&6
15599else
15600 ac_wine_try_cflags_saved=$CFLAGS
15601CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
15602cat >conftest.$ac_ext <<_ACEOF
15603/* confdefs.h. */
15604_ACEOF
15605cat confdefs.h >>conftest.$ac_ext
15606cat >>conftest.$ac_ext <<_ACEOF
15607/* end confdefs.h. */
15608
15609int
15610main ()
15611{
15612
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext conftest$ac_exeext
15618if { (ac_try="$ac_link"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
15623eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_link") 2>conftest.er1
15625 ac_status=$?
15626 grep -v '^ *+' conftest.er1 >conftest.err
15627 rm -f conftest.er1
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15632 { (case "(($ac_try" in
15633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15634 *) ac_try_echo=$ac_try;;
15635esac
15636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15637 (eval "$ac_try") 2>&5
15638 ac_status=$?
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; } &&
15641 { ac_try='test -s conftest$ac_exeext'
15642 { (case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15645esac
15646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_try") 2>&5
15648 ac_status=$?
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020015651 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
Jeremy White0ebeb532006-06-20 13:18:41 +020015652else
15653 echo "$as_me: failed program was:" >&5
15654sed 's/^/| /' conftest.$ac_ext >&5
15655
Alexandre Julliard182d1502006-08-25 13:22:33 +020015656 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Jeremy White0ebeb532006-06-20 13:18:41 +020015657fi
15658
15659rm -f core conftest.err conftest.$ac_objext \
15660 conftest$ac_exeext conftest.$ac_ext
15661CFLAGS=$ac_wine_try_cflags_saved
15662fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020015663{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
15664echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
15665if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then
15666 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
15667fi
Jeremy White0ebeb532006-06-20 13:18:41 +020015668
Alexandre Julliard182d1502006-08-25 13:22:33 +020015669fi
15670
15671
15672 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
15673echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... $ECHO_C" >&6; }
15674if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015675 echo $ECHO_N "(cached) $ECHO_C" >&6
15676else
15677 ac_wine_try_cflags_saved=$CFLAGS
15678CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
15679cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015680/* confdefs.h. */
15681_ACEOF
15682cat confdefs.h >>conftest.$ac_ext
15683cat >>conftest.$ac_ext <<_ACEOF
15684/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015685
15686int
15687main ()
15688{
15689
15690 ;
15691 return 0;
15692}
15693_ACEOF
15694rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015695if { (ac_try="$ac_link"
15696case "(($ac_try" in
15697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15698 *) ac_try_echo=$ac_try;;
15699esac
15700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15701 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015702 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015703 grep -v '^ *+' conftest.er1 >conftest.err
15704 rm -f conftest.er1
15705 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15707 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15709 { (case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15712esac
15713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015719 { (case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722esac
15723eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724 (eval "$ac_try") 2>&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020015728 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015729else
15730 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015731sed 's/^/| /' conftest.$ac_ext >&5
15732
Alexandre Julliard182d1502006-08-25 13:22:33 +020015733 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015734fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015735
Jeremy White0ebeb532006-06-20 13:18:41 +020015736rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015737 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000015738CFLAGS=$ac_wine_try_cflags_saved
15739fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020015740{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
15741echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
15742if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then
15743 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
15744fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015745
Alexandre Julliard182d1502006-08-25 13:22:33 +020015746
15747 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
15748echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... $ECHO_C" >&6; }
15749if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then
Alexandre Julliard36048242004-01-08 03:36:53 +000015750 echo $ECHO_N "(cached) $ECHO_C" >&6
15751else
15752 ac_wine_try_cflags_saved=$CFLAGS
15753CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
15754cat >conftest.$ac_ext <<_ACEOF
15755/* confdefs.h. */
15756_ACEOF
15757cat confdefs.h >>conftest.$ac_ext
15758cat >>conftest.$ac_ext <<_ACEOF
15759/* end confdefs.h. */
15760
15761int
15762main ()
15763{
15764
15765 ;
15766 return 0;
15767}
15768_ACEOF
15769rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015770if { (ac_try="$ac_link"
15771case "(($ac_try" in
15772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15773 *) ac_try_echo=$ac_try;;
15774esac
15775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15776 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard36048242004-01-08 03:36:53 +000015777 ac_status=$?
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15784 { (case "(($ac_try" in
15785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786 *) ac_try_echo=$ac_try;;
15787esac
15788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000015790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; } &&
15793 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015794 { (case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15797esac
15798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000015800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020015803 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
Alexandre Julliard36048242004-01-08 03:36:53 +000015804else
15805 echo "$as_me: failed program was:" >&5
15806sed 's/^/| /' conftest.$ac_ext >&5
15807
Alexandre Julliard182d1502006-08-25 13:22:33 +020015808 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliard36048242004-01-08 03:36:53 +000015809fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015810
Jeremy White0ebeb532006-06-20 13:18:41 +020015811rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard36048242004-01-08 03:36:53 +000015812 conftest$ac_exeext conftest.$ac_ext
15813CFLAGS=$ac_wine_try_cflags_saved
15814fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020015815{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
15816echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
15817if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then
15818 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
15819fi
Alexandre Julliard36048242004-01-08 03:36:53 +000015820
Alexandre Julliard182d1502006-08-25 13:22:33 +020015821
15822 echo '{ global: *; };' >conftest.map
15823 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
15824echo $ECHO_N "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... $ECHO_C" >&6; }
15825if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015826 echo $ECHO_N "(cached) $ECHO_C" >&6
15827else
Alexandre Julliard182d1502006-08-25 13:22:33 +020015828 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015829CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
15830cat >conftest.$ac_ext <<_ACEOF
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836
15837int
15838main ()
15839{
15840
15841 ;
15842 return 0;
15843}
15844_ACEOF
15845rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015846if { (ac_try="$ac_link"
15847case "(($ac_try" in
15848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15849 *) ac_try_echo=$ac_try;;
15850esac
15851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15860 { (case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863esac
15864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015870 { (case "(($ac_try" in
15871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872 *) ac_try_echo=$ac_try;;
15873esac
15874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015876 ac_status=$?
15877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020015879 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015880else
15881 echo "$as_me: failed program was:" >&5
15882sed 's/^/| /' conftest.$ac_ext >&5
15883
Alexandre Julliard182d1502006-08-25 13:22:33 +020015884 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015885fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015886
Jeremy White0ebeb532006-06-20 13:18:41 +020015887rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015888 conftest$ac_exeext conftest.$ac_ext
15889CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015890fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020015891{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
15892echo "${ECHO_T}$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
15893if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then
15894 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
15895fi
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000015896
Alexandre Julliard182d1502006-08-25 13:22:33 +020015897 rm -f conftest.map
15898
15899 { echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
15900echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--export-dynamic... $ECHO_C" >&6; }
15901if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903else
15904 ac_wine_try_cflags_saved=$CFLAGS
15905CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
15906cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015907/* confdefs.h. */
15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
15912
15913int
15914main ()
15915{
15916
15917 ;
15918 return 0;
15919}
15920_ACEOF
15921rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015922if { (ac_try="$ac_link"
15923case "(($ac_try" in
15924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15925 *) ac_try_echo=$ac_try;;
15926esac
15927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15928 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015929 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15936 { (case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
15940eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015942 ac_status=$?
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; } &&
15945 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015946 { (case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949esac
15950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_try") 2>&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015952 ac_status=$?
15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15954 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020015955 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015956else
15957 echo "$as_me: failed program was:" >&5
15958sed 's/^/| /' conftest.$ac_ext >&5
15959
Alexandre Julliard182d1502006-08-25 13:22:33 +020015960 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015961fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015962
Jeremy White0ebeb532006-06-20 13:18:41 +020015963rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015964 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000015965CFLAGS=$ac_wine_try_cflags_saved
15966fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020015967{ echo "$as_me:$LINENO: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
15968echo "${ECHO_T}$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
15969if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then
15970 LDEXECFLAGS="-Wl,--export-dynamic"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000015971
Alexandre Julliard182d1502006-08-25 13:22:33 +020015972fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000015973
Alexandre Julliard182d1502006-08-25 13:22:33 +020015974
15975 as_ac_var=`echo "ac_cv_cflags_-fPIC -Wl,--rpath,\$ORIGIN/../lib" | $as_tr_sh`
15976{ echo "$as_me:$LINENO: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
15977echo $ECHO_N "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... $ECHO_C" >&6; }
15978if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard5ed59012006-02-20 11:20:47 +010015979 echo $ECHO_N "(cached) $ECHO_C" >&6
15980else
15981 ac_wine_try_cflags_saved=$CFLAGS
15982CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
15983cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989
15990int
15991main ()
15992{
15993
15994 ;
15995 return 0;
15996}
15997_ACEOF
15998rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015999if { (ac_try="$ac_link"
16000case "(($ac_try" in
16001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16002 *) ac_try_echo=$ac_try;;
16003esac
16004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16005 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16013 { (case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016esac
16017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16018 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016023 { (case "(($ac_try" in
16024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025 *) ac_try_echo=$ac_try;;
16026esac
16027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020016032 eval "$as_ac_var=yes"
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016033else
16034 echo "$as_me: failed program was:" >&5
16035sed 's/^/| /' conftest.$ac_ext >&5
16036
Alexandre Julliard182d1502006-08-25 13:22:33 +020016037 eval "$as_ac_var=no"
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016038fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016039
Jeremy White0ebeb532006-06-20 13:18:41 +020016040rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016041 conftest$ac_exeext conftest.$ac_ext
16042CFLAGS=$ac_wine_try_cflags_saved
16043fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020016044ac_res=`eval echo '${'$as_ac_var'}'`
16045 { echo "$as_me:$LINENO: result: $ac_res" >&5
16046echo "${ECHO_T}$ac_res" >&6; }
16047if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliard13a93b42006-08-25 17:23:44 +020016048 LIBWINE_LDFLAGS="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliard182d1502006-08-25 13:22:33 +020016049fi
16050
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016051
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016052 case $host_cpu in
16053 *i[3456789]86* | x86_64)
Alexandre Julliard182d1502006-08-25 13:22:33 +020016054 { echo "$as_me:$LINENO: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
16055echo $ECHO_N "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... $ECHO_C" >&6; }
16056if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016057 echo $ECHO_N "(cached) $ECHO_C" >&6
16058else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016059 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000016060CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016061cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016062/* confdefs.h. */
16063_ACEOF
16064cat confdefs.h >>conftest.$ac_ext
16065cat >>conftest.$ac_ext <<_ACEOF
16066/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016067
16068int
16069main ()
16070{
16071
16072 ;
16073 return 0;
16074}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016075_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016076rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016077if { (ac_try="$ac_link"
16078case "(($ac_try" in
16079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16080 *) ac_try_echo=$ac_try;;
16081esac
16082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16083 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016084 ac_status=$?
16085 grep -v '^ *+' conftest.er1 >conftest.err
16086 rm -f conftest.er1
16087 cat conftest.err >&5
16088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16089 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16091 { (case "(($ac_try" in
16092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16093 *) ac_try_echo=$ac_try;;
16094esac
16095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16096 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016101 { (case "(($ac_try" in
16102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16103 *) ac_try_echo=$ac_try;;
16104esac
16105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16106 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016107 ac_status=$?
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; }; then
Alexandre Julliard182d1502006-08-25 13:22:33 +020016110 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016111else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016112 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016113sed 's/^/| /' conftest.$ac_ext >&5
16114
Alexandre Julliard182d1502006-08-25 13:22:33 +020016115 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016116fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016117
Jeremy White0ebeb532006-06-20 13:18:41 +020016118rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016119 conftest$ac_exeext conftest.$ac_ext
16120CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016121fi
Alexandre Julliard182d1502006-08-25 13:22:33 +020016122{ echo "$as_me:$LINENO: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
16123echo "${ECHO_T}$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
16124if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then
16125 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
16126fi
16127
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016128 ;;
16129 esac
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016130
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016131 else
16132 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016133echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016134if test "${ac_cv_c_dll_unixware+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000016136else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016137 ac_wine_try_cflags_saved=$CFLAGS
16138CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16139cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016140void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016141_ACEOF
16142rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016143if { (ac_try="$ac_link"
16144case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147esac
16148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016150 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016155 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16157 { (case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16160esac
16161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016163 ac_status=$?
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; } &&
16166 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016167 { (case "(($ac_try" in
16168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169 *) ac_try_echo=$ac_try;;
16170esac
16171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016173 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016175 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000016176 ac_cv_c_dll_unixware="yes"
16177else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016178 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016179sed 's/^/| /' conftest.$ac_ext >&5
16180
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016181 ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000016182fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016183
Jeremy White0ebeb532006-06-20 13:18:41 +020016184rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016185 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016186CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016187fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016188{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16189echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016190 if test "$ac_cv_c_dll_unixware" = "yes"
16191 then
16192 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
16193 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016194
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016195 else
16196 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016197echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000016198if test "${ac_cv_c_dll_hpux+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200else
16201 ac_wine_try_cflags_saved=$CFLAGS
16202CFLAGS="$CFLAGS -shared"
16203cat >conftest.$ac_ext <<_ACEOF
16204void myfunc() {}
16205_ACEOF
16206rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016207if { (ac_try="$ac_link"
16208case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211esac
16212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_link") 2>conftest.er1
Warren Baird421e8b92004-09-22 19:17:55 +000016214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16221 { (case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224esac
16225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000016227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
16235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000016237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_c_dll_hpux="yes"
16241else
16242 echo "$as_me: failed program was:" >&5
16243sed 's/^/| /' conftest.$ac_ext >&5
16244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016245 ac_cv_c_dll_hpux="no"
Warren Baird421e8b92004-09-22 19:17:55 +000016246fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016247
Jeremy White0ebeb532006-06-20 13:18:41 +020016248rm -f core conftest.err conftest.$ac_objext \
Warren Baird421e8b92004-09-22 19:17:55 +000016249 conftest$ac_exeext conftest.$ac_ext
16250CFLAGS=$ac_wine_try_cflags_saved
16251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016252{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
16253echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016254 if test "$ac_cv_c_dll_hpux" = "yes"
16255 then
16256 LIBEXT="sl"
16257 DLLEXT=".sl"
16258 LDDLLFLAGS="-shared -fPIC"
16259 LDSHARED="\$(CC) -shared"
Alexandre Julliard466ae142002-05-07 18:33:47 +000016260 fi
16261 fi
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020016262 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016263
16264 CROSSTEST=""
16265
16266 if test "$cross_compiling" = "no"
16267 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000016268 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016269do
16270 # Extract the first word of "$ac_prog", so it can be a program name with args.
16271set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016272{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016274if test "${ac_cv_prog_CROSSCC+set}" = set; then
16275 echo $ECHO_N "(cached) $ECHO_C" >&6
16276else
16277 if test -n "$CROSSCC"; then
16278 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
16279else
16280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16281for as_dir in $PATH
16282do
16283 IFS=$as_save_IFS
16284 test -z "$as_dir" && as_dir=.
16285 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016286 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 +000016287 ac_cv_prog_CROSSCC="$ac_prog"
16288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16289 break 2
16290 fi
16291done
16292done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016293IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016294
16295fi
16296fi
16297CROSSCC=$ac_cv_prog_CROSSCC
16298if test -n "$CROSSCC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016299 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
16300echo "${ECHO_T}$CROSSCC" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016301else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016302 { echo "$as_me:$LINENO: result: no" >&5
16303echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016304fi
16305
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016306
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016307 test -n "$CROSSCC" && break
16308done
16309test -n "$CROSSCC" || CROSSCC="false"
16310
Kevin Koltzaud3444562004-04-15 00:01:05 +000016311 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016312do
16313 # Extract the first word of "$ac_prog", so it can be a program name with args.
16314set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016315{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016317if test "${ac_cv_prog_DLLTOOL+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319else
16320 if test -n "$DLLTOOL"; then
16321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16322else
16323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16324for as_dir in $PATH
16325do
16326 IFS=$as_save_IFS
16327 test -z "$as_dir" && as_dir=.
16328 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016329 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 +000016330 ac_cv_prog_DLLTOOL="$ac_prog"
16331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16332 break 2
16333 fi
16334done
16335done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016336IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016337
16338fi
16339fi
16340DLLTOOL=$ac_cv_prog_DLLTOOL
16341if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016342 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
16343echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016344else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016345 { echo "$as_me:$LINENO: result: no" >&5
16346echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016347fi
16348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016349
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016350 test -n "$DLLTOOL" && break
16351done
16352test -n "$DLLTOOL" || DLLTOOL="false"
16353
Kevin Koltzaud3444562004-04-15 00:01:05 +000016354 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016355do
16356 # Extract the first word of "$ac_prog", so it can be a program name with args.
16357set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016358{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016360if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16362else
16363 if test -n "$CROSSWINDRES"; then
16364 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
16365else
16366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16367for as_dir in $PATH
16368do
16369 IFS=$as_save_IFS
16370 test -z "$as_dir" && as_dir=.
16371 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016372 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 +000016373 ac_cv_prog_CROSSWINDRES="$ac_prog"
16374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16375 break 2
16376 fi
16377done
16378done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016379IFS=$as_save_IFS
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016380
16381fi
16382fi
16383CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
16384if test -n "$CROSSWINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016385 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
16386echo "${ECHO_T}$CROSSWINDRES" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016387else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016388 { echo "$as_me:$LINENO: result: no" >&5
16389echo "${ECHO_T}no" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016390fi
16391
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016392
Alexandre Julliard21ee3292003-04-21 22:52:31 +000016393 test -n "$CROSSWINDRES" && break
16394done
16395test -n "$CROSSWINDRES" || CROSSWINDRES="false"
16396
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000016397 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
16398 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016399 ;;
16400esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016401
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000016402if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016403 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016404It is currently not possible to build Wine without shared library
16405(.so) support to allow transparent switch between .so and .dll files.
16406If you are using Linux, you will need a newer binutils.
16407" >&5
16408echo "$as_me: error: could not find a way to build shared libraries.
16409It is currently not possible to build Wine without shared library
16410(.so) support to allow transparent switch between .so and .dll files.
16411If you are using Linux, you will need a newer binutils.
16412" >&2;}
16413 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000016414fi
16415
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016416case $build_os in
16417 cygwin*|mingw32*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020016418 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016419 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016420 darwin*|macosx*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020016421 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016422 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016423 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020016424 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016425 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016426esac
16427
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016428case $host_os in
16429 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000016430 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000016431
16432 SOCKETLIBS="-lws2_32"
16433
16434 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000016435esac
16436
Alexandre Julliard40bbcfb2006-06-20 13:44:19 +020016437MAIN_BINARY="wine-pthread"
16438 case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010016439 *i[3456789]86*)
16440 case $host_os in
16441 linux* | k*bsd*-gnu)
16442 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000016443
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010016444 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
16445 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010016446 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000016447 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016448esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016449
16450
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016451if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016452then
16453 # Extract the first word of "ldd", so it can be a program name with args.
16454set dummy ldd; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
16456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016457if test "${ac_cv_path_LDD+set}" = set; then
16458 echo $ECHO_N "(cached) $ECHO_C" >&6
16459else
16460 case $LDD in
16461 [\\/]* | ?:[\\/]*)
16462 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
16463 ;;
16464 *)
16465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016466as_dummy="/sbin:/usr/sbin:$PATH"
16467for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016468do
16469 IFS=$as_save_IFS
16470 test -z "$as_dir" && as_dir=.
16471 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016472 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 +000016473 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
16474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16475 break 2
16476 fi
16477done
16478done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016479IFS=$as_save_IFS
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016480
16481 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
16482 ;;
16483esac
16484fi
16485LDD=$ac_cv_path_LDD
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016486if test -n "$LDD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016487 { echo "$as_me:$LINENO: result: $LDD" >&5
16488echo "${ECHO_T}$LDD" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016489else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016490 { echo "$as_me:$LINENO: result: no" >&5
16491echo "${ECHO_T}no" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016492fi
16493
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016494
16495{ echo "$as_me:$LINENO: checking for -lX11 soname" >&5
16496echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016497if test "${ac_cv_lib_soname_X11+set}" = set; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500 ac_get_soname_save_LIBS=$LIBS
16501LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
16502 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016508
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016509/* Override any GCC internal prototype to avoid an error.
16510 Use char because int might match the return type of a GCC
16511 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016512#ifdef __cplusplus
16513extern "C"
16514#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016515char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016516int
16517main ()
16518{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016519return XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016520 ;
16521 return 0;
16522}
16523_ACEOF
16524rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016525if { (ac_try="$ac_link"
16526case "(($ac_try" in
16527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528 *) ac_try_echo=$ac_try;;
16529esac
16530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016532 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016533 grep -v '^ *+' conftest.er1 >conftest.err
16534 rm -f conftest.er1
16535 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16539 { (case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542esac
16543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); }; } &&
16548 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016549 { (case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552esac
16553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16554 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020016558 case "$LIBEXT" in
16559 dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep libX11\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16560 so) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed -e "s/^.*\(libX11\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16561 esac
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016562 if test "x$ac_cv_lib_soname_X11" = "x"
16563 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016564 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016565 fi
16566else
16567 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016568sed 's/^/| /' conftest.$ac_ext >&5
16569
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016570 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016571fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016572
Jeremy White0ebeb532006-06-20 13:18:41 +020016573rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016574 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016575 LIBS=$ac_get_soname_save_LIBS
16576fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016577{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
16578echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016579if test "${ac_cv_lib_soname_X11+set}" = set; then
16580
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016581cat >>confdefs.h <<_ACEOF
16582#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
16583_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016584
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016585fi
16586
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016587 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
16588echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016589if test "${ac_cv_lib_soname_Xext+set}" = set; then
16590 echo $ECHO_N "(cached) $ECHO_C" >&6
16591else
16592 ac_get_soname_save_LIBS=$LIBS
16593LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
16594 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016595/* confdefs.h. */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016600
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016601/* Override any GCC internal prototype to avoid an error.
16602 Use char because int might match the return type of a GCC
16603 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016604#ifdef __cplusplus
16605extern "C"
16606#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016607char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016608int
16609main ()
16610{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016611return XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016612 ;
16613 return 0;
16614}
16615_ACEOF
16616rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016617if { (ac_try="$ac_link"
16618case "(($ac_try" in
16619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16620 *) ac_try_echo=$ac_try;;
16621esac
16622eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16623 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016624 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016625 grep -v '^ *+' conftest.er1 >conftest.err
16626 rm -f conftest.er1
16627 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16631 { (case "(($ac_try" in
16632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16634esac
16635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016637 ac_status=$?
16638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16639 (exit $ac_status); }; } &&
16640 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016641 { (case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16644esac
16645eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016647 ac_status=$?
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020016650 case "$LIBEXT" in
16651 dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep libXext\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16652 so) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed -e "s/^.*\(libXext\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16653 esac
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016654 if test "x$ac_cv_lib_soname_Xext" = "x"
16655 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016656 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016657 fi
16658else
16659 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016660sed 's/^/| /' conftest.$ac_ext >&5
16661
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016662 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016663fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016664
Jeremy White0ebeb532006-06-20 13:18:41 +020016665rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016666 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016667 LIBS=$ac_get_soname_save_LIBS
16668fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016669{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
16670echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016671if test "${ac_cv_lib_soname_Xext+set}" = set; then
16672
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016673cat >>confdefs.h <<_ACEOF
16674#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
16675_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016676
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016677fi
16678
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016679 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
16680echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016681if test "${ac_cv_lib_soname_Xi+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683else
16684 ac_get_soname_save_LIBS=$LIBS
16685LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16687/* confdefs.h. */
16688_ACEOF
16689cat confdefs.h >>conftest.$ac_ext
16690cat >>conftest.$ac_ext <<_ACEOF
16691/* end confdefs.h. */
16692
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016693/* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016696#ifdef __cplusplus
16697extern "C"
16698#endif
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016699char XOpenDevice ();
16700int
16701main ()
16702{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016703return XOpenDevice ();
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016704 ;
16705 return 0;
16706}
16707_ACEOF
16708rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016709if { (ac_try="$ac_link"
16710case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713esac
16714eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16723 { (case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726esac
16727eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16728 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; } &&
16732 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16736esac
16737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020016742 case "$LIBEXT" in
16743 dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep libXi\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16744 so) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.so | sed -e "s/^.*\(libXi\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16745 esac
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016746 if test "x$ac_cv_lib_soname_Xi" = "x"
16747 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016748 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016749 fi
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016754 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016755fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016756
Jeremy White0ebeb532006-06-20 13:18:41 +020016757rm -f core conftest.err conftest.$ac_objext \
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016758 conftest$ac_exeext conftest.$ac_ext
16759 LIBS=$ac_get_soname_save_LIBS
16760fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016761{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
16762echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016763if test "${ac_cv_lib_soname_Xi+set}" = set; then
16764
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016765cat >>confdefs.h <<_ACEOF
16766#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
16767_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016768
Aric Stewart2eebf3c2004-01-09 00:03:00 +000016769fi
16770
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016771 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
16772echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016773if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16774 echo $ECHO_N "(cached) $ECHO_C" >&6
16775else
16776 ac_get_soname_save_LIBS=$LIBS
16777LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16778 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016779/* confdefs.h. */
16780_ACEOF
16781cat confdefs.h >>conftest.$ac_ext
16782cat >>conftest.$ac_ext <<_ACEOF
16783/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016784
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016785/* Override any GCC internal prototype to avoid an error.
16786 Use char because int might match the return type of a GCC
16787 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016788#ifdef __cplusplus
16789extern "C"
16790#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016791char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016792int
16793main ()
16794{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016795return XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016796 ;
16797 return 0;
16798}
16799_ACEOF
16800rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016801if { (ac_try="$ac_link"
16802case "(($ac_try" in
16803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16805esac
16806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016808 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016809 grep -v '^ *+' conftest.er1 >conftest.err
16810 rm -f conftest.er1
16811 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16817 *) ac_try_echo=$ac_try;;
16818esac
16819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016821 ac_status=$?
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016825 { (case "(($ac_try" in
16826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16828esac
16829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020016834 case "$LIBEXT" in
16835 dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep libXrender\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16836 so) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed -e "s/^.*\(libXrender\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16837 esac
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016838 if test "x$ac_cv_lib_soname_Xrender" = "x"
16839 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016840 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016841 fi
16842else
16843 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016844sed 's/^/| /' conftest.$ac_ext >&5
16845
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016846 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016847fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016848
Jeremy White0ebeb532006-06-20 13:18:41 +020016849rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016850 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016851 LIBS=$ac_get_soname_save_LIBS
16852fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016853{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
16854echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016855if test "${ac_cv_lib_soname_Xrender+set}" = set; then
16856
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016857cat >>confdefs.h <<_ACEOF
16858#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
16859_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016860
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016861fi
16862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016863 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
16864echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
Mike McCormackc7c9f932004-04-07 03:57:35 +000016865if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16866 echo $ECHO_N "(cached) $ECHO_C" >&6
16867else
16868 ac_get_soname_save_LIBS=$LIBS
16869LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
16870 cat >conftest.$ac_ext <<_ACEOF
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016877/* Override any GCC internal prototype to avoid an error.
16878 Use char because int might match the return type of a GCC
16879 builtin and then its argument prototype would still apply. */
Mike McCormackc7c9f932004-04-07 03:57:35 +000016880#ifdef __cplusplus
16881extern "C"
16882#endif
Mike McCormackc7c9f932004-04-07 03:57:35 +000016883char XRRQueryExtension ();
16884int
16885main ()
16886{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016887return XRRQueryExtension ();
Mike McCormackc7c9f932004-04-07 03:57:35 +000016888 ;
16889 return 0;
16890}
16891_ACEOF
16892rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016893if { (ac_try="$ac_link"
16894case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897esac
16898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_link") 2>conftest.er1
Mike McCormackc7c9f932004-04-07 03:57:35 +000016900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910esac
16911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000016913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920esac
16921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000016923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020016926 case "$LIBEXT" in
16927 dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep libXrandr\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
16928 so) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.so | sed -e "s/^.*\(libXrandr\.so[^ ]*\).*$/\1/"';2,$d'` ;;
16929 esac
Mike McCormackc7c9f932004-04-07 03:57:35 +000016930 if test "x$ac_cv_lib_soname_Xrandr" = "x"
16931 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000016932 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000016933 fi
16934else
16935 echo "$as_me: failed program was:" >&5
16936sed 's/^/| /' conftest.$ac_ext >&5
16937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016938 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000016939fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016940
Jeremy White0ebeb532006-06-20 13:18:41 +020016941rm -f core conftest.err conftest.$ac_objext \
Mike McCormackc7c9f932004-04-07 03:57:35 +000016942 conftest$ac_exeext conftest.$ac_ext
16943 LIBS=$ac_get_soname_save_LIBS
16944fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016945{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
16946echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016947if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
16948
Mike McCormackc7c9f932004-04-07 03:57:35 +000016949cat >>confdefs.h <<_ACEOF
16950#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
16951_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010016952
Mike McCormackc7c9f932004-04-07 03:57:35 +000016953fi
16954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016955 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
16956echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016957if test "${ac_cv_lib_soname_freetype+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959else
16960 ac_get_soname_save_LIBS=$LIBS
16961LIBS="-lfreetype $X_LIBS $LIBS"
16962 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016963/* confdefs.h. */
16964_ACEOF
16965cat confdefs.h >>conftest.$ac_ext
16966cat >>conftest.$ac_ext <<_ACEOF
16967/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016968
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016969/* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016972#ifdef __cplusplus
16973extern "C"
16974#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016975char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016976int
16977main ()
16978{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016979return FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016980 ;
16981 return 0;
16982}
16983_ACEOF
16984rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016985if { (ac_try="$ac_link"
16986case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989esac
16990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016992 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016993 grep -v '^ *+' conftest.er1 >conftest.err
16994 rm -f conftest.er1
16995 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16999 { (case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17002esac
17003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; } &&
17008 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017009 { (case "(($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_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017015 ac_status=$?
17016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17017 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017018 case "$LIBEXT" in
17019 dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep libfreetype\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17020 so) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed -e "s/^.*\(libfreetype\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17021 esac
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017022 if test "x$ac_cv_lib_soname_freetype" = "x"
17023 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017024 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017025 fi
17026else
17027 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017028sed 's/^/| /' conftest.$ac_ext >&5
17029
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017030 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017031fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017032
Jeremy White0ebeb532006-06-20 13:18:41 +020017033rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017034 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017035 LIBS=$ac_get_soname_save_LIBS
17036fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017037{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17038echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017039if test "${ac_cv_lib_soname_freetype+set}" = set; then
17040
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017041cat >>confdefs.h <<_ACEOF
17042#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17043_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017044
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017045fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000017046
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017047 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17048echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017049if test "${ac_cv_lib_soname_GL+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 ac_get_soname_save_LIBS=$LIBS
17053LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17054 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017060
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017061/* Override any GCC internal prototype to avoid an error.
17062 Use char because int might match the return type of a GCC
17063 builtin and then its argument prototype would still apply. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017064#ifdef __cplusplus
17065extern "C"
17066#endif
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017067char glXQueryExtension ();
17068int
17069main ()
17070{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017071return glXQueryExtension ();
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017072 ;
17073 return 0;
17074}
17075_ACEOF
17076rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017077if { (ac_try="$ac_link"
17078case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17081esac
17082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_link") 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017084 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017085 grep -v '^ *+' conftest.er1 >conftest.err
17086 rm -f conftest.er1
17087 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17091 { (case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094esac
17095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017097 ac_status=$?
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); }; } &&
17100 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017101 { (case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17104esac
17105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_try") 2>&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017107 ac_status=$?
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017110 case "$LIBEXT" in
17111 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep libGL\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17112 so) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed -e "s/^.*\(libGL\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17113 esac
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017114 if test "x$ac_cv_lib_soname_GL" = "x"
17115 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017116 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017117 fi
17118else
17119 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017120sed 's/^/| /' conftest.$ac_ext >&5
17121
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017122 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017123fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017124
Jeremy White0ebeb532006-06-20 13:18:41 +020017125rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017126 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017127 LIBS=$ac_get_soname_save_LIBS
17128fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017129{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17130echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017131if test "${ac_cv_lib_soname_GL+set}" = set; then
17132
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017133cat >>confdefs.h <<_ACEOF
17134#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17135_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017136
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017137fi
17138
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017139 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17140echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020017141if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17142 echo $ECHO_N "(cached) $ECHO_C" >&6
17143else
17144 ac_get_soname_save_LIBS=$LIBS
17145LIBS="-ldbus-1 $LIBS"
17146 cat >conftest.$ac_ext <<_ACEOF
17147/* confdefs.h. */
17148_ACEOF
17149cat confdefs.h >>conftest.$ac_ext
17150cat >>conftest.$ac_ext <<_ACEOF
17151/* end confdefs.h. */
17152
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017153/* Override any GCC internal prototype to avoid an error.
17154 Use char because int might match the return type of a GCC
17155 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020017156#ifdef __cplusplus
17157extern "C"
17158#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020017159char dbus_error_init ();
17160int
17161main ()
17162{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017163return dbus_error_init ();
Alexandre Julliard00068982006-04-18 16:47:53 +020017164 ;
17165 return 0;
17166}
17167_ACEOF
17168rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017169if { (ac_try="$ac_link"
17170case "(($ac_try" in
17171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17172 *) ac_try_echo=$ac_try;;
17173esac
17174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020017176 ac_status=$?
17177 grep -v '^ *+' conftest.er1 >conftest.err
17178 rm -f conftest.er1
17179 cat conftest.err >&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17186esac
17187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020017189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; } &&
17192 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017193 { (case "(($ac_try" in
17194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195 *) ac_try_echo=$ac_try;;
17196esac
17197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020017199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017202 case "$LIBEXT" in
17203 dylib) ac_cv_lib_soname_dbus_1=`otool -L conftest$ac_exeext | grep libdbus-1\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libdbus-1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17204 so) ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.so | sed -e "s/^.*\(libdbus-1\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17205 esac
Alexandre Julliard00068982006-04-18 16:47:53 +020017206 if test "x$ac_cv_lib_soname_dbus_1" = "x"
17207 then
17208 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
17209 fi
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017214 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020017215fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017216
Jeremy White0ebeb532006-06-20 13:18:41 +020017217rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020017218 conftest$ac_exeext conftest.$ac_ext
17219 LIBS=$ac_get_soname_save_LIBS
17220fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017221{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
17222echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020017223if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17224
17225cat >>confdefs.h <<_ACEOF
17226#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
17227_ACEOF
17228
17229fi
17230
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017231 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
17232echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020017233if test "${ac_cv_lib_soname_hal+set}" = set; then
17234 echo $ECHO_N "(cached) $ECHO_C" >&6
17235else
17236 ac_get_soname_save_LIBS=$LIBS
17237LIBS="-lhal $LIBS"
17238 cat >conftest.$ac_ext <<_ACEOF
17239/* confdefs.h. */
17240_ACEOF
17241cat confdefs.h >>conftest.$ac_ext
17242cat >>conftest.$ac_ext <<_ACEOF
17243/* end confdefs.h. */
17244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017245/* Override any GCC internal prototype to avoid an error.
17246 Use char because int might match the return type of a GCC
17247 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020017248#ifdef __cplusplus
17249extern "C"
17250#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020017251char libhal_ctx_new ();
17252int
17253main ()
17254{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017255return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020017256 ;
17257 return 0;
17258}
17259_ACEOF
17260rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017261if { (ac_try="$ac_link"
17262case "(($ac_try" in
17263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17264 *) ac_try_echo=$ac_try;;
17265esac
17266eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17267 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020017268 ac_status=$?
17269 grep -v '^ *+' conftest.er1 >conftest.err
17270 rm -f conftest.er1
17271 cat conftest.err >&5
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17275 { (case "(($ac_try" in
17276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277 *) ac_try_echo=$ac_try;;
17278esac
17279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020017281 ac_status=$?
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017285 { (case "(($ac_try" in
17286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287 *) ac_try_echo=$ac_try;;
17288esac
17289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020017291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017294 case "$LIBEXT" in
17295 dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep libhal\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17296 so) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.so | sed -e "s/^.*\(libhal\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17297 esac
Alexandre Julliard00068982006-04-18 16:47:53 +020017298 if test "x$ac_cv_lib_soname_hal" = "x"
17299 then
17300 ac_cv_lib_soname_hal="libhal.$LIBEXT"
17301 fi
17302else
17303 echo "$as_me: failed program was:" >&5
17304sed 's/^/| /' conftest.$ac_ext >&5
17305
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017306 ac_cv_lib_soname_hal="libhal.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020017307fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017308
Jeremy White0ebeb532006-06-20 13:18:41 +020017309rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020017310 conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_get_soname_save_LIBS
17312fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017313{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
17314echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020017315if test "${ac_cv_lib_soname_hal+set}" = set; then
17316
17317cat >>confdefs.h <<_ACEOF
17318#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
17319_ACEOF
17320
17321fi
17322
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017323 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
17324echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
Christian Costaeac96b52004-07-30 18:54:32 +000017325if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328 ac_get_soname_save_LIBS=$LIBS
17329LIBS="-ltxc_dxtn $LIBS"
17330 cat >conftest.$ac_ext <<_ACEOF
17331/* confdefs.h. */
17332_ACEOF
17333cat confdefs.h >>conftest.$ac_ext
17334cat >>conftest.$ac_ext <<_ACEOF
17335/* end confdefs.h. */
17336
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017337/* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
Christian Costaeac96b52004-07-30 18:54:32 +000017340#ifdef __cplusplus
17341extern "C"
17342#endif
Christian Costaeac96b52004-07-30 18:54:32 +000017343char fetch_2d_texel_rgba_dxt1 ();
17344int
17345main ()
17346{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017347return fetch_2d_texel_rgba_dxt1 ();
Christian Costaeac96b52004-07-30 18:54:32 +000017348 ;
17349 return 0;
17350}
17351_ACEOF
17352rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017353if { (ac_try="$ac_link"
17354case "(($ac_try" in
17355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17356 *) ac_try_echo=$ac_try;;
17357esac
17358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17359 (eval "$ac_link") 2>conftest.er1
Christian Costaeac96b52004-07-30 18:54:32 +000017360 ac_status=$?
17361 grep -v '^ *+' conftest.er1 >conftest.err
17362 rm -f conftest.er1
17363 cat conftest.err >&5
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17367 { (case "(($ac_try" in
17368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17369 *) ac_try_echo=$ac_try;;
17370esac
17371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17372 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000017373 ac_status=$?
17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17375 (exit $ac_status); }; } &&
17376 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017377 { (case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380esac
17381eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000017383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017386 case "$LIBEXT" in
17387 dylib) ac_cv_lib_soname_txc_dxtn=`otool -L conftest$ac_exeext | grep libtxc_dxtn\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libtxc_dxtn\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17388 so) ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.so | sed -e "s/^.*\(libtxc_dxtn\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17389 esac
Christian Costaeac96b52004-07-30 18:54:32 +000017390 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
17391 then
17392 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
17393 fi
17394else
17395 echo "$as_me: failed program was:" >&5
17396sed 's/^/| /' conftest.$ac_ext >&5
17397
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017398 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
Christian Costaeac96b52004-07-30 18:54:32 +000017399fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017400
Jeremy White0ebeb532006-06-20 13:18:41 +020017401rm -f core conftest.err conftest.$ac_objext \
Christian Costaeac96b52004-07-30 18:54:32 +000017402 conftest$ac_exeext conftest.$ac_ext
17403 LIBS=$ac_get_soname_save_LIBS
17404fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017405{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
17406echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017407if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
17408
Christian Costaeac96b52004-07-30 18:54:32 +000017409cat >>confdefs.h <<_ACEOF
17410#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
17411_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017412
Christian Costaeac96b52004-07-30 18:54:32 +000017413fi
17414
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017415 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
17416echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
Marcus Meissnerf061f762002-11-12 02:22:24 +000017417if test "${ac_cv_lib_soname_cups+set}" = set; then
17418 echo $ECHO_N "(cached) $ECHO_C" >&6
17419else
17420 ac_get_soname_save_LIBS=$LIBS
17421LIBS="-lcups $LIBS"
17422 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017423/* confdefs.h. */
17424_ACEOF
17425cat confdefs.h >>conftest.$ac_ext
17426cat >>conftest.$ac_ext <<_ACEOF
17427/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000017428
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017429/* Override any GCC internal prototype to avoid an error.
17430 Use char because int might match the return type of a GCC
17431 builtin and then its argument prototype would still apply. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000017432#ifdef __cplusplus
17433extern "C"
17434#endif
Marcus Meissnerf061f762002-11-12 02:22:24 +000017435char cupsGetDefault ();
17436int
17437main ()
17438{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017439return cupsGetDefault ();
Marcus Meissnerf061f762002-11-12 02:22:24 +000017440 ;
17441 return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017445if { (ac_try="$ac_link"
17446case "(($ac_try" in
17447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17448 *) ac_try_echo=$ac_try;;
17449esac
17450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17451 (eval "$ac_link") 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000017452 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017453 grep -v '^ *+' conftest.er1 >conftest.err
17454 rm -f conftest.er1
17455 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000017456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17459 { (case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17462esac
17463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; } &&
17468 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017469 { (case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472esac
17473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17474 (eval "$ac_try") 2>&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000017475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017478 case "$LIBEXT" in
17479 dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep libcups\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17480 so) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed -e "s/^.*\(libcups\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17481 esac
Marcus Meissnerf061f762002-11-12 02:22:24 +000017482 if test "x$ac_cv_lib_soname_cups" = "x"
17483 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017484 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000017485 fi
17486else
17487 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017488sed 's/^/| /' conftest.$ac_ext >&5
17489
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017490 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000017491fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017492
Jeremy White0ebeb532006-06-20 13:18:41 +020017493rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017494 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000017495 LIBS=$ac_get_soname_save_LIBS
17496fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017497{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
17498echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017499if test "${ac_cv_lib_soname_cups+set}" = set; then
17500
Marcus Meissnerf061f762002-11-12 02:22:24 +000017501cat >>confdefs.h <<_ACEOF
17502#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
17503_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017504
Marcus Meissnerf061f762002-11-12 02:22:24 +000017505fi
Chris Morgan4691b182002-12-13 02:26:18 +000017506
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017507 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
17508echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
Chris Morgan4691b182002-12-13 02:26:18 +000017509if test "${ac_cv_lib_soname_jack+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17511else
17512 ac_get_soname_save_LIBS=$LIBS
17513LIBS="-ljack $LIBS"
17514 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017515/* confdefs.h. */
17516_ACEOF
17517cat confdefs.h >>conftest.$ac_ext
17518cat >>conftest.$ac_ext <<_ACEOF
17519/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000017520
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017521/* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
Chris Morgan4691b182002-12-13 02:26:18 +000017524#ifdef __cplusplus
17525extern "C"
17526#endif
Chris Morgan4691b182002-12-13 02:26:18 +000017527char jack_client_new ();
17528int
17529main ()
17530{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017531return jack_client_new ();
Chris Morgan4691b182002-12-13 02:26:18 +000017532 ;
17533 return 0;
17534}
17535_ACEOF
17536rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017537if { (ac_try="$ac_link"
17538case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541esac
17542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000017544 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017545 grep -v '^ *+' conftest.er1 >conftest.err
17546 rm -f conftest.er1
17547 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000017548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17551 { (case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17554esac
17555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017557 ac_status=$?
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); }; } &&
17560 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017561 { (case "(($ac_try" in
17562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17564esac
17565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
Chris Morgan4691b182002-12-13 02:26:18 +000017567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017570 case "$LIBEXT" in
17571 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep libjack\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjack\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17572 so) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed -e "s/^.*\(libjack\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17573 esac
Chris Morgan4691b182002-12-13 02:26:18 +000017574 if test "x$ac_cv_lib_soname_jack" = "x"
17575 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017576 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000017577 fi
17578else
17579 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017580sed 's/^/| /' conftest.$ac_ext >&5
17581
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017582 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000017583fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017584
Jeremy White0ebeb532006-06-20 13:18:41 +020017585rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017586 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000017587 LIBS=$ac_get_soname_save_LIBS
17588fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017589{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
17590echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017591if test "${ac_cv_lib_soname_jack+set}" = set; then
17592
Chris Morgan4691b182002-12-13 02:26:18 +000017593cat >>confdefs.h <<_ACEOF
17594#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
17595_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017596
Chris Morgan4691b182002-12-13 02:26:18 +000017597fi
David Hammerton852c7ae2003-06-20 23:26:56 +000017598
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017599 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
17600echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
Huw Davies6e128072003-11-09 00:30:13 +000017601if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17603else
17604 ac_get_soname_save_LIBS=$LIBS
17605LIBS="-lfontconfig $LIBS"
17606 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000017607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017613/* Override any GCC internal prototype to avoid an error.
17614 Use char because int might match the return type of a GCC
17615 builtin and then its argument prototype would still apply. */
Huw Davies6e128072003-11-09 00:30:13 +000017616#ifdef __cplusplus
17617extern "C"
17618#endif
Huw Davies6e128072003-11-09 00:30:13 +000017619char FcInit ();
17620int
17621main ()
17622{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017623return FcInit ();
Huw Davies6e128072003-11-09 00:30:13 +000017624 ;
17625 return 0;
17626}
17627_ACEOF
17628rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017629if { (ac_try="$ac_link"
17630case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17633esac
17634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_link") 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000017636 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000017640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17643 { (case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17646esac
17647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; } &&
17652 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017653 { (case "(($ac_try" in
17654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17655 *) ac_try_echo=$ac_try;;
17656esac
17657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17658 (eval "$ac_try") 2>&5
Huw Davies6e128072003-11-09 00:30:13 +000017659 ac_status=$?
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017662 case "$LIBEXT" in
17663 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep libfontconfig\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17664 so) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.so | sed -e "s/^.*\(libfontconfig\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17665 esac
Huw Davies6e128072003-11-09 00:30:13 +000017666 if test "x$ac_cv_lib_soname_fontconfig" = "x"
17667 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017668 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000017669 fi
17670else
17671 echo "$as_me: failed program was:" >&5
17672sed 's/^/| /' conftest.$ac_ext >&5
17673
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017674 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000017675fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017676
Jeremy White0ebeb532006-06-20 13:18:41 +020017677rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017678 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000017679 LIBS=$ac_get_soname_save_LIBS
17680fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017681{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
17682echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017683if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
17684
Huw Davies6e128072003-11-09 00:30:13 +000017685cat >>confdefs.h <<_ACEOF
17686#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
17687_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017688
Alexandre Julliard79994692003-11-13 20:58:55 +000017689fi
Huw Davies6e128072003-11-09 00:30:13 +000017690
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017691 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
17692echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000017693if test "${ac_cv_lib_soname_ssl+set}" = set; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17695else
17696 ac_get_soname_save_LIBS=$LIBS
17697LIBS="-lssl $LIBS"
17698 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000017699/* confdefs.h. */
17700_ACEOF
17701cat confdefs.h >>conftest.$ac_ext
17702cat >>conftest.$ac_ext <<_ACEOF
17703/* end confdefs.h. */
17704
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017705/* Override any GCC internal prototype to avoid an error.
17706 Use char because int might match the return type of a GCC
17707 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000017708#ifdef __cplusplus
17709extern "C"
17710#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000017711char SSL_library_init ();
17712int
17713main ()
17714{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017715return SSL_library_init ();
David Hammerton852c7ae2003-06-20 23:26:56 +000017716 ;
17717 return 0;
17718}
17719_ACEOF
17720rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017721if { (ac_try="$ac_link"
17722case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17725esac
17726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000017728 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017729 grep -v '^ *+' conftest.er1 >conftest.err
17730 rm -f conftest.er1
17731 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000017732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17735 { (case "(($ac_try" in
17736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17737 *) ac_try_echo=$ac_try;;
17738esac
17739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17740 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017741 ac_status=$?
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; } &&
17744 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017745 { (case "(($ac_try" in
17746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17747 *) ac_try_echo=$ac_try;;
17748esac
17749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17750 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000017751 ac_status=$?
17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017754 case "$LIBEXT" in
17755 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep libssl\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17756 so) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed -e "s/^.*\(libssl\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17757 esac
David Hammerton852c7ae2003-06-20 23:26:56 +000017758 if test "x$ac_cv_lib_soname_ssl" = "x"
17759 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017760 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000017761 fi
17762else
17763 echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017766 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000017767fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017768
Jeremy White0ebeb532006-06-20 13:18:41 +020017769rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017770 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000017771 LIBS=$ac_get_soname_save_LIBS
17772fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017773{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
17774echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017775if test "${ac_cv_lib_soname_ssl+set}" = set; then
17776
David Hammerton852c7ae2003-06-20 23:26:56 +000017777cat >>confdefs.h <<_ACEOF
17778#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
17779_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017780
David Hammerton852c7ae2003-06-20 23:26:56 +000017781fi
17782
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017783 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
17784echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000017785if test "${ac_cv_lib_soname_crypto+set}" = set; then
17786 echo $ECHO_N "(cached) $ECHO_C" >&6
17787else
17788 ac_get_soname_save_LIBS=$LIBS
17789LIBS="-lcrypto $LIBS"
17790 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000017791/* confdefs.h. */
17792_ACEOF
17793cat confdefs.h >>conftest.$ac_ext
17794cat >>conftest.$ac_ext <<_ACEOF
17795/* end confdefs.h. */
17796
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017797/* Override any GCC internal prototype to avoid an error.
17798 Use char because int might match the return type of a GCC
17799 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000017800#ifdef __cplusplus
17801extern "C"
17802#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000017803char BIO_new_socket ();
17804int
17805main ()
17806{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017807return BIO_new_socket ();
David Hammerton852c7ae2003-06-20 23:26:56 +000017808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017813if { (ac_try="$ac_link"
17814case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17817esac
17818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000017820 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017821 grep -v '^ *+' conftest.er1 >conftest.err
17822 rm -f conftest.er1
17823 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000017824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17830esac
17831eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017837 { (case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17840esac
17841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000017843 ac_status=$?
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017846 case "$LIBEXT" in
17847 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep libcrypto\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17848 so) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed -e "s/^.*\(libcrypto\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17849 esac
David Hammerton852c7ae2003-06-20 23:26:56 +000017850 if test "x$ac_cv_lib_soname_crypto" = "x"
17851 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017852 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000017853 fi
17854else
17855 echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017858 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000017859fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017860
Jeremy White0ebeb532006-06-20 13:18:41 +020017861rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017862 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000017863 LIBS=$ac_get_soname_save_LIBS
17864fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017865{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
17866echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017867if test "${ac_cv_lib_soname_crypto+set}" = set; then
17868
David Hammerton852c7ae2003-06-20 23:26:56 +000017869cat >>confdefs.h <<_ACEOF
17870#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
17871_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017872
David Hammerton852c7ae2003-06-20 23:26:56 +000017873fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000017874
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017875 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
17876echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000017877if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17879else
17880 ac_get_soname_save_LIBS=$LIBS
17881LIBS="-lncurses $LIBS"
17882 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000017883/* confdefs.h. */
17884_ACEOF
17885cat confdefs.h >>conftest.$ac_ext
17886cat >>conftest.$ac_ext <<_ACEOF
17887/* end confdefs.h. */
17888
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017889/* Override any GCC internal prototype to avoid an error.
17890 Use char because int might match the return type of a GCC
17891 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000017892#ifdef __cplusplus
17893extern "C"
17894#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000017895char waddch ();
17896int
17897main ()
17898{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017899return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000017900 ;
17901 return 0;
17902}
17903_ACEOF
17904rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017905if { (ac_try="$ac_link"
17906case "(($ac_try" in
17907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17908 *) ac_try_echo=$ac_try;;
17909esac
17910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17911 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000017912 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017913 grep -v '^ *+' conftest.er1 >conftest.err
17914 rm -f conftest.er1
17915 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000017916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17919 { (case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17922esac
17923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017925 ac_status=$?
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); }; } &&
17928 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017929 { (case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932esac
17933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000017935 ac_status=$?
17936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020017938 case "$LIBEXT" in
17939 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep libncurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
17940 so) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.so | sed -e "s/^.*\(libncurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
17941 esac
Mike McCormack9557d1b2003-08-20 04:19:01 +000017942 if test "x$ac_cv_lib_soname_ncurses" = "x"
17943 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017944 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000017945 fi
17946else
17947 echo "$as_me: failed program was:" >&5
17948sed 's/^/| /' conftest.$ac_ext >&5
17949
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017950 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000017951fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017952
Jeremy White0ebeb532006-06-20 13:18:41 +020017953rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017954 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000017955 LIBS=$ac_get_soname_save_LIBS
17956fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017957{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
17958echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017959if test "${ac_cv_lib_soname_ncurses+set}" = set; then
17960
Mike McCormack9557d1b2003-08-20 04:19:01 +000017961cat >>confdefs.h <<_ACEOF
17962#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
17963_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017964
Mike McCormack9557d1b2003-08-20 04:19:01 +000017965fi
17966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017967 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
17968echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000017969if test "${ac_cv_lib_soname_curses+set}" = set; then
17970 echo $ECHO_N "(cached) $ECHO_C" >&6
17971else
17972 ac_get_soname_save_LIBS=$LIBS
17973LIBS="-lcurses $LIBS"
17974 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000017975/* confdefs.h. */
17976_ACEOF
17977cat confdefs.h >>conftest.$ac_ext
17978cat >>conftest.$ac_ext <<_ACEOF
17979/* end confdefs.h. */
17980
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017981/* Override any GCC internal prototype to avoid an error.
17982 Use char because int might match the return type of a GCC
17983 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000017984#ifdef __cplusplus
17985extern "C"
17986#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000017987char waddch ();
17988int
17989main ()
17990{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017991return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000017992 ;
17993 return 0;
17994}
17995_ACEOF
17996rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017997if { (ac_try="$ac_link"
17998case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18001esac
18002eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018004 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18011 { (case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18014esac
18015eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018017 ac_status=$?
18018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019 (exit $ac_status); }; } &&
18020 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018021 { (case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18024esac
18025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020018030 case "$LIBEXT" in
18031 dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep libcurses\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18032 so) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.so | sed -e "s/^.*\(libcurses\.so[^ ]*\).*$/\1/"';2,$d'` ;;
18033 esac
Mike McCormack9557d1b2003-08-20 04:19:01 +000018034 if test "x$ac_cv_lib_soname_curses" = "x"
18035 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018036 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018037 fi
18038else
18039 echo "$as_me: failed program was:" >&5
18040sed 's/^/| /' conftest.$ac_ext >&5
18041
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018042 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018043fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018044
Jeremy White0ebeb532006-06-20 13:18:41 +020018045rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018046 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018047 LIBS=$ac_get_soname_save_LIBS
18048fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018049{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18050echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018051if test "${ac_cv_lib_soname_curses+set}" = set; then
18052
Mike McCormack9557d1b2003-08-20 04:19:01 +000018053cat >>confdefs.h <<_ACEOF
18054#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18055_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018056
Mike McCormack9557d1b2003-08-20 04:19:01 +000018057fi
Huw Daviese82dfab2004-08-04 19:10:26 +000018058
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018059 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18060echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000018061if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18063else
18064 ac_get_soname_save_LIBS=$LIBS
18065LIBS="-ljpeg $LIBS"
18066 cat >conftest.$ac_ext <<_ACEOF
18067/* confdefs.h. */
18068_ACEOF
18069cat confdefs.h >>conftest.$ac_ext
18070cat >>conftest.$ac_ext <<_ACEOF
18071/* end confdefs.h. */
18072
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018073/* Override any GCC internal prototype to avoid an error.
18074 Use char because int might match the return type of a GCC
18075 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000018076#ifdef __cplusplus
18077extern "C"
18078#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000018079char jpeg_start_decompress ();
18080int
18081main ()
18082{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018083return jpeg_start_decompress ();
Huw Daviese82dfab2004-08-04 19:10:26 +000018084 ;
18085 return 0;
18086}
18087_ACEOF
18088rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018089if { (ac_try="$ac_link"
18090case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18093esac
18094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000018096 ac_status=$?
18097 grep -v '^ *+' conftest.er1 >conftest.err
18098 rm -f conftest.er1
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18103 { (case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106esac
18107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18108 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; } &&
18112 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018113 { (case "(($ac_try" in
18114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115 *) ac_try_echo=$ac_try;;
18116esac
18117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020018122 case "$LIBEXT" in
18123 dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep libjpeg\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18124 so) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.so | sed -e "s/^.*\(libjpeg\.so[^ ]*\).*$/\1/"';2,$d'` ;;
18125 esac
Huw Daviese82dfab2004-08-04 19:10:26 +000018126 if test "x$ac_cv_lib_soname_jpeg" = "x"
18127 then
18128 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18129 fi
18130else
18131 echo "$as_me: failed program was:" >&5
18132sed 's/^/| /' conftest.$ac_ext >&5
18133
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018134 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000018135fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018136
Jeremy White0ebeb532006-06-20 13:18:41 +020018137rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000018138 conftest$ac_exeext conftest.$ac_ext
18139 LIBS=$ac_get_soname_save_LIBS
18140fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018141{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18142echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018143if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18144
Huw Daviese82dfab2004-08-04 19:10:26 +000018145cat >>confdefs.h <<_ACEOF
18146#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18147_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018148
Huw Daviese82dfab2004-08-04 19:10:26 +000018149fi
18150
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018151 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
18152echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000018153if test "${ac_cv_lib_soname_ungif+set}" = set; then
18154 echo $ECHO_N "(cached) $ECHO_C" >&6
18155else
18156 ac_get_soname_save_LIBS=$LIBS
18157LIBS="-lungif $LIBS"
18158 cat >conftest.$ac_ext <<_ACEOF
18159/* confdefs.h. */
18160_ACEOF
18161cat confdefs.h >>conftest.$ac_ext
18162cat >>conftest.$ac_ext <<_ACEOF
18163/* end confdefs.h. */
18164
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018165/* Override any GCC internal prototype to avoid an error.
18166 Use char because int might match the return type of a GCC
18167 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000018168#ifdef __cplusplus
18169extern "C"
18170#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000018171char DGifOpen ();
18172int
18173main ()
18174{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018175return DGifOpen ();
Huw Daviese82dfab2004-08-04 19:10:26 +000018176 ;
18177 return 0;
18178}
18179_ACEOF
18180rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018181if { (ac_try="$ac_link"
18182case "(($ac_try" in
18183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184 *) ac_try_echo=$ac_try;;
18185esac
18186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18187 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000018188 ac_status=$?
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18195 { (case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198esac
18199eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018201 ac_status=$?
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); }; } &&
18204 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018205 { (case "(($ac_try" in
18206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18207 *) ac_try_echo=$ac_try;;
18208esac
18209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18210 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020018214 case "$LIBEXT" in
18215 dylib) ac_cv_lib_soname_ungif=`otool -L conftest$ac_exeext | grep libungif\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libungif\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18216 so) ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.so | sed -e "s/^.*\(libungif\.so[^ ]*\).*$/\1/"';2,$d'` ;;
18217 esac
Huw Daviese82dfab2004-08-04 19:10:26 +000018218 if test "x$ac_cv_lib_soname_ungif" = "x"
18219 then
18220 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18221 fi
18222else
18223 echo "$as_me: failed program was:" >&5
18224sed 's/^/| /' conftest.$ac_ext >&5
18225
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018226 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000018227fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018228
Jeremy White0ebeb532006-06-20 13:18:41 +020018229rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000018230 conftest$ac_exeext conftest.$ac_ext
18231 LIBS=$ac_get_soname_save_LIBS
18232fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018233{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
18234echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018235if test "${ac_cv_lib_soname_ungif+set}" = set; then
18236
Huw Daviese82dfab2004-08-04 19:10:26 +000018237cat >>confdefs.h <<_ACEOF
18238#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
18239_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018240
Huw Daviese82dfab2004-08-04 19:10:26 +000018241fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018242
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018243 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
18244echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018245if test "${ac_cv_lib_soname_gif+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18247else
18248 ac_get_soname_save_LIBS=$LIBS
18249LIBS="-lgif $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018257/* Override any GCC internal prototype to avoid an error.
18258 Use char because int might match the return type of a GCC
18259 builtin and then its argument prototype would still apply. */
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018260#ifdef __cplusplus
18261extern "C"
18262#endif
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018263char DGifOpen ();
18264int
18265main ()
18266{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018267return DGifOpen ();
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018268 ;
18269 return 0;
18270}
18271_ACEOF
18272rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018273if { (ac_try="$ac_link"
18274case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277esac
18278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_link") 2>conftest.er1
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018280 ac_status=$?
18281 grep -v '^ *+' conftest.er1 >conftest.err
18282 rm -f conftest.er1
18283 cat conftest.err >&5
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18287 { (case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290esac
18291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018297 { (case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300esac
18301eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020018306 case "$LIBEXT" in
18307 dylib) ac_cv_lib_soname_gif=`otool -L conftest$ac_exeext | grep libgif\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libgif\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18308 so) ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.so | sed -e "s/^.*\(libgif\.so[^ ]*\).*$/\1/"';2,$d'` ;;
18309 esac
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018310 if test "x$ac_cv_lib_soname_gif" = "x"
18311 then
18312 ac_cv_lib_soname_gif="libgif.$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_gif="libgif.$LIBEXT"
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018320
Jeremy White0ebeb532006-06-20 13:18:41 +020018321rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner00cf13a2004-09-14 19:27:58 +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_gif" >&5
18326echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018327if test "${ac_cv_lib_soname_gif+set}" = set; then
18328
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018329cat >>confdefs.h <<_ACEOF
18330#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
18331_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018332
Marcus Meissner00cf13a2004-09-14 19:27:58 +000018333fi
Hans Leidekker081b2502004-10-07 19:12:41 +000018334
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018335 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
18336echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018337if test "${ac_cv_lib_soname_capi20+set}" = set; then
18338 echo $ECHO_N "(cached) $ECHO_C" >&6
18339else
18340 ac_get_soname_save_LIBS=$LIBS
18341LIBS="-lcapi20 $LIBS"
18342 cat >conftest.$ac_ext <<_ACEOF
18343/* confdefs.h. */
18344_ACEOF
18345cat confdefs.h >>conftest.$ac_ext
18346cat >>conftest.$ac_ext <<_ACEOF
18347/* end confdefs.h. */
18348
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 Meissner67d3afb2005-01-07 15:33:02 +000018352#ifdef __cplusplus
18353extern "C"
18354#endif
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018355char capi20_isinstalled ();
18356int
18357main ()
18358{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018359return capi20_isinstalled ();
Marcus Meissner67d3afb2005-01-07 15:33:02 +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 Meissner67d3afb2005-01-07 15:33:02 +000018372 ac_status=$?
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
18376 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
Marcus Meissner67d3afb2005-01-07 15:33:02 +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 Meissner67d3afb2005-01-07 15:33:02 +000018395 ac_status=$?
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
Alexandre Julliardbdbffd92006-08-07 21:41:55 +020018398 case "$LIBEXT" in
18399 dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep libcapi20\\.[0-9A-Za-z.]*dylib | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
18400 so) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.so | sed -e "s/^.*\(libcapi20\.so[^ ]*\).*$/\1/"';2,$d'` ;;
18401 esac
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018402 if test "x$ac_cv_lib_soname_capi20" = "x"
18403 then
18404 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
18405 fi
18406else
18407 echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018410 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018411fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018412
Jeremy White0ebeb532006-06-20 13:18:41 +020018413rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018414 conftest$ac_exeext conftest.$ac_ext
18415 LIBS=$ac_get_soname_save_LIBS
18416fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018417{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
18418echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018419if test "${ac_cv_lib_soname_capi20+set}" = set; then
18420
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018421cat >>confdefs.h <<_ACEOF
18422#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
18423_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018424
Marcus Meissner67d3afb2005-01-07 15:33:02 +000018425fi
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018426
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000018427fi
18428
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018429
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000018430
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466
18467
18468
18469
18470
18471
18472
Steven Edwardsb9627c12002-05-05 21:03:44 +000018473
18474
Steven Edwards0a8e15a2002-05-10 01:33:40 +000018475
18476
Alexandre Julliard142dab82002-07-01 18:17:30 +000018477
Patrik Stridvall6caeb722002-11-25 21:12:26 +000018478
18479
18480
Pavel Roskin7add08a2003-09-24 18:54:40 +000018481
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000018482
Alexandre Julliarde2930742004-01-08 05:07:05 +000018483
Alexandre Julliard13af4892004-03-05 21:03:46 +000018484
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000018485
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000018486
18487
Alexandre Julliard969f57c2004-09-23 04:48:24 +000018488
Paul Millar10a6c562004-12-07 17:19:54 +000018489
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000018490
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000018491
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010018492
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010018493
Alexandre Julliard9603ee02006-04-06 11:57:37 +020018494
Paul Millardf10b7d2006-07-16 15:06:28 +010018495
Alexandre Julliardc8278922006-08-04 22:11:00 +020018496
Alexandre Julliard10892602006-08-15 11:41:59 +020018497
Alexandre Julliarde533e972006-08-15 12:11:30 +020018498
18499
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018500for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000018501 _pclose \
18502 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000018503 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000018504 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000018505 _stricmp \
18506 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000018507 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010018508 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000018509 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018510 clone \
Alexandre Julliarde533e972006-08-15 12:11:30 +020018511 connect \
18512 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000018513 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000018514 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000018515 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000018516 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000018517 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000018518 fstatfs \
18519 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000018520 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000018521 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000018522 futimesat \
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000018523 getaddrinfo \
Alexandre Julliarde533e972006-08-15 12:11:30 +020018524 gethostbyname \
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010018525 getnameinfo \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018526 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000018527 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018528 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018529 getprotobyname \
18530 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000018531 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018532 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000018533 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000018534 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000018535 getuid \
Alexandre Julliarde533e972006-08-15 12:11:30 +020018536 inet_aton \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018537 inet_network \
Alexandre Julliardc8278922006-08-04 22:11:00 +020018538 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000018539 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018540 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000018541 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000018542 pclose \
Alexandre Julliard10892602006-08-15 11:41:59 +020018543 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000018544 popen \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020018545 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000018546 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000018547 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000018548 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018549 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000018550 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018551 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018552 sendmsg \
Paul Millardf10b7d2006-07-16 15:06:28 +010018553 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018554 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018555 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000018556 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000018557 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000018558 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000018559 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000018560 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000018561 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018562 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000018563 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018564 tcgetattr \
18565 timegm \
18566 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000018567 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018568 wait4 \
18569 waitpid \
18570
18571do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018572as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018573{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18574echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18575if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018576 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018577else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018578 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018579/* confdefs.h. */
18580_ACEOF
18581cat confdefs.h >>conftest.$ac_ext
18582cat >>conftest.$ac_ext <<_ACEOF
18583/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000018584/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18586#define $ac_func innocuous_$ac_func
18587
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018588/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018589 which can conflict with char $ac_func (); below.
18590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18591 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000018592
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018593#ifdef __STDC__
18594# include <limits.h>
18595#else
18596# include <assert.h>
18597#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000018598
18599#undef $ac_func
18600
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018601/* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018604#ifdef __cplusplus
18605extern "C"
18606#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018607char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018608/* The GNU C library defines this for functions which it implements
18609 to always fail with ENOSYS. Some functions are actually named
18610 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018611#if defined __stub_$ac_func || defined __stub___$ac_func
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018612choke me
Patrik Stridvall1bb94031999-05-08 15:47:44 +000018613#endif
18614
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018615int
18616main ()
18617{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018618return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018619 ;
18620 return 0;
18621}
18622_ACEOF
18623rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018624if { (ac_try="$ac_link"
18625case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018631 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018636 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18638 { (case "(($ac_try" in
18639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18640 *) ac_try_echo=$ac_try;;
18641esac
18642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18643 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018644 ac_status=$?
18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; } &&
18647 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18651esac
18652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018654 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018656 (exit $ac_status); }; }; then
18657 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018658else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018659 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018660sed 's/^/| /' conftest.$ac_ext >&5
18661
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018662 eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018663fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018664
Jeremy White0ebeb532006-06-20 13:18:41 +020018665rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018666 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018667fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018668ac_res=`eval echo '${'$as_ac_var'}'`
18669 { echo "$as_me:$LINENO: result: $ac_res" >&5
18670echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018671if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018672 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018673#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018674_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000018675
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018676fi
18677done
18678
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018679
Alexandre Julliarde533e972006-08-15 12:11:30 +020018680if test "$ac_cv_func_dlopen" = no
18681then
18682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18684if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18685 echo $ECHO_N "(cached) $ECHO_C" >&6
18686else
18687 ac_check_lib_save_LIBS=$LIBS
18688LIBS="-ldl $LIBS"
18689cat >conftest.$ac_ext <<_ACEOF
18690/* confdefs.h. */
18691_ACEOF
18692cat confdefs.h >>conftest.$ac_ext
18693cat >>conftest.$ac_ext <<_ACEOF
18694/* end confdefs.h. */
18695
18696/* Override any GCC internal prototype to avoid an error.
18697 Use char because int might match the return type of a GCC
18698 builtin and then its argument prototype would still apply. */
18699#ifdef __cplusplus
18700extern "C"
18701#endif
18702char dlopen ();
18703int
18704main ()
18705{
18706return dlopen ();
18707 ;
18708 return 0;
18709}
18710_ACEOF
18711rm -f conftest.$ac_objext conftest$ac_exeext
18712if { (ac_try="$ac_link"
18713case "(($ac_try" in
18714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18715 *) ac_try_echo=$ac_try;;
18716esac
18717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18718 (eval "$ac_link") 2>conftest.er1
18719 ac_status=$?
18720 grep -v '^ *+' conftest.er1 >conftest.err
18721 rm -f conftest.er1
18722 cat conftest.err >&5
18723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18724 (exit $ac_status); } &&
18725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18726 { (case "(($ac_try" in
18727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18728 *) ac_try_echo=$ac_try;;
18729esac
18730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18731 (eval "$ac_try") 2>&5
18732 ac_status=$?
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); }; } &&
18735 { ac_try='test -s conftest$ac_exeext'
18736 { (case "(($ac_try" in
18737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18738 *) ac_try_echo=$ac_try;;
18739esac
18740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18741 (eval "$ac_try") 2>&5
18742 ac_status=$?
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); }; }; then
18745 ac_cv_lib_dl_dlopen=yes
18746else
18747 echo "$as_me: failed program was:" >&5
18748sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_cv_lib_dl_dlopen=no
18751fi
18752
18753rm -f core conftest.err conftest.$ac_objext \
18754 conftest$ac_exeext conftest.$ac_ext
18755LIBS=$ac_check_lib_save_LIBS
18756fi
18757{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18758echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18759if test $ac_cv_lib_dl_dlopen = yes; then
18760 cat >>confdefs.h <<\_ACEOF
18761#define HAVE_DLOPEN 1
18762_ACEOF
18763 LIBDL="-ldl"
18764
18765fi
18766
18767fi
18768ac_wine_check_funcs_save_LIBS="$LIBS"
18769LIBS="$LIBS $LIBDL"
18770
18771for ac_func in dladdr
18772do
18773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18774{ echo "$as_me:$LINENO: checking for $ac_func" >&5
18775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18776if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18777 echo $ECHO_N "(cached) $ECHO_C" >&6
18778else
18779 cat >conftest.$ac_ext <<_ACEOF
18780/* confdefs.h. */
18781_ACEOF
18782cat confdefs.h >>conftest.$ac_ext
18783cat >>conftest.$ac_ext <<_ACEOF
18784/* end confdefs.h. */
18785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18787#define $ac_func innocuous_$ac_func
18788
18789/* System header to define __stub macros and hopefully few prototypes,
18790 which can conflict with char $ac_func (); below.
18791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18792 <limits.h> exists even on freestanding compilers. */
18793
18794#ifdef __STDC__
18795# include <limits.h>
18796#else
18797# include <assert.h>
18798#endif
18799
18800#undef $ac_func
18801
18802/* Override any GCC internal prototype to avoid an error.
18803 Use char because int might match the return type of a GCC
18804 builtin and then its argument prototype would still apply. */
18805#ifdef __cplusplus
18806extern "C"
18807#endif
18808char $ac_func ();
18809/* The GNU C library defines this for functions which it implements
18810 to always fail with ENOSYS. Some functions are actually named
18811 something starting with __ and the normal name is an alias. */
18812#if defined __stub_$ac_func || defined __stub___$ac_func
18813choke me
18814#endif
18815
18816int
18817main ()
18818{
18819return $ac_func ();
18820 ;
18821 return 0;
18822}
18823_ACEOF
18824rm -f conftest.$ac_objext conftest$ac_exeext
18825if { (ac_try="$ac_link"
18826case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829esac
18830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831 (eval "$ac_link") 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18839 { (case "(($ac_try" in
18840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18841 *) ac_try_echo=$ac_try;;
18842esac
18843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_try") 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; } &&
18848 { ac_try='test -s conftest$ac_exeext'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852esac
18853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18855 ac_status=$?
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; }; then
18858 eval "$as_ac_var=yes"
18859else
18860 echo "$as_me: failed program was:" >&5
18861sed 's/^/| /' conftest.$ac_ext >&5
18862
18863 eval "$as_ac_var=no"
18864fi
18865
18866rm -f core conftest.err conftest.$ac_objext \
18867 conftest$ac_exeext conftest.$ac_ext
18868fi
18869ac_res=`eval echo '${'$as_ac_var'}'`
18870 { echo "$as_me:$LINENO: result: $ac_res" >&5
18871echo "${ECHO_T}$ac_res" >&6; }
18872if test `eval echo '${'$as_ac_var'}'` = yes; then
18873 cat >>confdefs.h <<_ACEOF
18874#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18875_ACEOF
18876
18877fi
18878done
18879
18880LIBS="$ac_wine_check_funcs_save_LIBS"
18881
Alexandre Julliard10892602006-08-15 11:41:59 +020018882if test "$ac_cv_func_poll" = no
18883then
18884 { echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
18885echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
18886if test "${ac_cv_lib_poll_poll+set}" = set; then
18887 echo $ECHO_N "(cached) $ECHO_C" >&6
18888else
18889 ac_check_lib_save_LIBS=$LIBS
18890LIBS="-lpoll $LIBS"
18891cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h. */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h. */
18897
18898/* Override any GCC internal prototype to avoid an error.
18899 Use char because int might match the return type of a GCC
18900 builtin and then its argument prototype would still apply. */
18901#ifdef __cplusplus
18902extern "C"
18903#endif
18904char poll ();
18905int
18906main ()
18907{
18908return poll ();
18909 ;
18910 return 0;
18911}
18912_ACEOF
18913rm -f conftest.$ac_objext conftest$ac_exeext
18914if { (ac_try="$ac_link"
18915case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918esac
18919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_link") 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } &&
18927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18928 { (case "(($ac_try" in
18929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18930 *) ac_try_echo=$ac_try;;
18931esac
18932eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18933 (eval "$ac_try") 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; } &&
18937 { ac_try='test -s conftest$ac_exeext'
18938 { (case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18941esac
18942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_try") 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_cv_lib_poll_poll=yes
18948else
18949 echo "$as_me: failed program was:" >&5
18950sed 's/^/| /' conftest.$ac_ext >&5
18951
18952 ac_cv_lib_poll_poll=no
18953fi
18954
18955rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957LIBS=$ac_check_lib_save_LIBS
18958fi
18959{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
18960echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
18961if test $ac_cv_lib_poll_poll = yes; then
18962 cat >>confdefs.h <<\_ACEOF
18963#define HAVE_POLL 1
18964_ACEOF
18965 LIBPOLL="-lpoll"
18966
18967fi
18968
18969fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018970
Alexandre Julliarde533e972006-08-15 12:11:30 +020018971if test "$ac_cv_func_gethostbyname" = no
18972then
18973
18974{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18975echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18976if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18977 echo $ECHO_N "(cached) $ECHO_C" >&6
18978else
18979 ac_check_lib_save_LIBS=$LIBS
18980LIBS="-lnsl $LIBS"
18981cat >conftest.$ac_ext <<_ACEOF
18982/* confdefs.h. */
18983_ACEOF
18984cat confdefs.h >>conftest.$ac_ext
18985cat >>conftest.$ac_ext <<_ACEOF
18986/* end confdefs.h. */
18987
18988/* Override any GCC internal prototype to avoid an error.
18989 Use char because int might match the return type of a GCC
18990 builtin and then its argument prototype would still apply. */
18991#ifdef __cplusplus
18992extern "C"
18993#endif
18994char gethostbyname ();
18995int
18996main ()
18997{
18998return gethostbyname ();
18999 ;
19000 return 0;
19001}
19002_ACEOF
19003rm -f conftest.$ac_objext conftest$ac_exeext
19004if { (ac_try="$ac_link"
19005case "(($ac_try" in
19006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007 *) ac_try_echo=$ac_try;;
19008esac
19009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010 (eval "$ac_link") 2>conftest.er1
19011 ac_status=$?
19012 grep -v '^ *+' conftest.er1 >conftest.err
19013 rm -f conftest.er1
19014 cat conftest.err >&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); } &&
19017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19018 { (case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19021esac
19022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_try") 2>&5
19024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); }; } &&
19027 { ac_try='test -s conftest$ac_exeext'
19028 { (case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19031esac
19032eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_try") 2>&5
19034 ac_status=$?
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); }; }; then
19037 ac_cv_lib_nsl_gethostbyname=yes
19038else
19039 echo "$as_me: failed program was:" >&5
19040sed 's/^/| /' conftest.$ac_ext >&5
19041
19042 ac_cv_lib_nsl_gethostbyname=no
19043fi
19044
19045rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047LIBS=$ac_check_lib_save_LIBS
19048fi
19049{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19050echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19051if test $ac_cv_lib_nsl_gethostbyname = yes; then
19052 cat >>confdefs.h <<_ACEOF
19053#define HAVE_LIBNSL 1
19054_ACEOF
19055
19056 LIBS="-lnsl $LIBS"
19057
19058fi
19059
19060fi
19061
19062if test "$ac_cv_func_connect" = no
19063then
19064
19065{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19066echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19067if test "${ac_cv_lib_socket_connect+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069else
19070 ac_check_lib_save_LIBS=$LIBS
19071LIBS="-lsocket $LIBS"
19072cat >conftest.$ac_ext <<_ACEOF
19073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
19078
19079/* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19082#ifdef __cplusplus
19083extern "C"
19084#endif
19085char connect ();
19086int
19087main ()
19088{
19089return connect ();
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext conftest$ac_exeext
19095if { (ac_try="$ac_link"
19096case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19099esac
19100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19102 ac_status=$?
19103 grep -v '^ *+' conftest.er1 >conftest.err
19104 rm -f conftest.er1
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19112esac
19113eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19122esac
19123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_socket_connect=yes
19129else
19130 echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133 ac_cv_lib_socket_connect=no
19134fi
19135
19136rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138LIBS=$ac_check_lib_save_LIBS
19139fi
19140{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19141echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19142if test $ac_cv_lib_socket_connect = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144#define HAVE_LIBSOCKET 1
19145_ACEOF
19146
19147 LIBS="-lsocket $LIBS"
19148
19149fi
19150
19151fi
19152
19153if test "$ac_cv_func_inet_aton" = no
19154then
19155
19156{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19157echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
19158if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19160else
19161 ac_check_lib_save_LIBS=$LIBS
19162LIBS="-lresolv $LIBS"
19163cat >conftest.$ac_ext <<_ACEOF
19164/* confdefs.h. */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h. */
19169
19170/* Override any GCC internal prototype to avoid an error.
19171 Use char because int might match the return type of a GCC
19172 builtin and then its argument prototype would still apply. */
19173#ifdef __cplusplus
19174extern "C"
19175#endif
19176char inet_aton ();
19177int
19178main ()
19179{
19180return inet_aton ();
19181 ;
19182 return 0;
19183}
19184_ACEOF
19185rm -f conftest.$ac_objext conftest$ac_exeext
19186if { (ac_try="$ac_link"
19187case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190esac
19191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } &&
19199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19200 { (case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203esac
19204eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_try") 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; } &&
19209 { ac_try='test -s conftest$ac_exeext'
19210 { (case "(($ac_try" in
19211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19212 *) ac_try_echo=$ac_try;;
19213esac
19214eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19215 (eval "$ac_try") 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; }; then
19219 ac_cv_lib_resolv_inet_aton=yes
19220else
19221 echo "$as_me: failed program was:" >&5
19222sed 's/^/| /' conftest.$ac_ext >&5
19223
19224 ac_cv_lib_resolv_inet_aton=no
19225fi
19226
19227rm -f core conftest.err conftest.$ac_objext \
19228 conftest$ac_exeext conftest.$ac_ext
19229LIBS=$ac_check_lib_save_LIBS
19230fi
19231{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19232echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
19233if test $ac_cv_lib_resolv_inet_aton = yes; then
19234 cat >>confdefs.h <<_ACEOF
19235#define HAVE_LIBRESOLV 1
19236_ACEOF
19237
19238 LIBS="-lresolv $LIBS"
19239
19240fi
19241
19242fi
19243
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019244
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019245{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19246echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019247if test "${ac_cv_c_const+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19249else
19250 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019251/* confdefs.h. */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019256
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019257int
19258main ()
19259{
19260/* FIXME: Include the comments suggested by Paul. */
19261#ifndef __cplusplus
19262 /* Ultrix mips cc rejects this. */
19263 typedef int charset[2];
19264 const charset x;
19265 /* SunOS 4.1.1 cc rejects this. */
19266 char const *const *ccp;
19267 char **p;
19268 /* NEC SVR4.0.2 mips cc rejects this. */
19269 struct point {int x, y;};
19270 static struct point const zero = {0,0};
19271 /* AIX XL C 1.02.0.0 rejects this.
19272 It does not let you subtract one const X* pointer from another in
19273 an arm of an if-expression whose if-part is not a constant
19274 expression */
19275 const char *g = "string";
19276 ccp = &g + (g ? g-g : 0);
19277 /* HPUX 7.0 cc rejects these. */
19278 ++ccp;
19279 p = (char**) ccp;
19280 ccp = (char const *const *) p;
19281 { /* SCO 3.2v4 cc rejects this. */
19282 char *t;
19283 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019284
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019285 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019286 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019287 }
19288 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19289 int x[] = {25, 17};
19290 const int *foo = &x[0];
19291 ++foo;
19292 }
19293 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19294 typedef const int *iptr;
19295 iptr p = 0;
19296 ++p;
19297 }
19298 { /* AIX XL C 1.02.0.0 rejects this saying
19299 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19300 struct s { int j; const int *ap[3]; };
19301 struct s *b; b->j = 5;
19302 }
19303 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19304 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019305 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019306 }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019307 return !x[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019308#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019309
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019310 ;
19311 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019312}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019313_ACEOF
19314rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019315if { (ac_try="$ac_compile"
19316case "(($ac_try" in
19317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19318 *) ac_try_echo=$ac_try;;
19319esac
19320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19321 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019322 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019327 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19329 { (case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332esac
19333eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19342esac
19343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019345 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019347 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019348 ac_cv_c_const=yes
19349else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019350 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019351sed 's/^/| /' conftest.$ac_ext >&5
19352
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019353 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019354fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019355
Jeremy White0ebeb532006-06-20 13:18:41 +020019356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019357fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019358{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19359echo "${ECHO_T}$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019360if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019361
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019362cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019363#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019364_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019365
19366fi
19367
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019368{ echo "$as_me:$LINENO: checking for inline" >&5
19369echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019370if test "${ac_cv_c_inline+set}" = set; then
19371 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019372else
19373 ac_cv_c_inline=no
19374for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019375 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019376/* confdefs.h. */
19377_ACEOF
19378cat confdefs.h >>conftest.$ac_ext
19379cat >>conftest.$ac_ext <<_ACEOF
19380/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019381#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019382typedef int foo_t;
19383static $ac_kw foo_t static_foo () {return 0; }
19384$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019385#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019386
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019387_ACEOF
19388rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019389if { (ac_try="$ac_compile"
19390case "(($ac_try" in
19391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19392 *) ac_try_echo=$ac_try;;
19393esac
19394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19395 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019396 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019401 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19403 { (case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406esac
19407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019409 ac_status=$?
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019413 { (case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416esac
19417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019419 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019421 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019422 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019423else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019424 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019425sed 's/^/| /' conftest.$ac_ext >&5
19426
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019427
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019428fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019429
Jeremy White0ebeb532006-06-20 13:18:41 +020019430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019431 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019432done
19433
19434fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019435{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19436echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000019437
19438
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019439case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019440 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000019441 *)
19442 case $ac_cv_c_inline in
19443 no) ac_val=;;
19444 *) ac_val=$ac_cv_c_inline;;
19445 esac
19446 cat >>confdefs.h <<_ACEOF
19447#ifndef __cplusplus
19448#define inline $ac_val
19449#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019450_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000019451 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019452esac
19453
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019454{ echo "$as_me:$LINENO: checking for mode_t" >&5
19455echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019456if test "${ac_cv_type_mode_t+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19458else
19459 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019465$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019466typedef mode_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019467int
19468main ()
19469{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019470if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019471 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019472if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019473 return 0;
19474 ;
19475 return 0;
19476}
19477_ACEOF
19478rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019479if { (ac_try="$ac_compile"
19480case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19483esac
19484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019486 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019491 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19493 { (case "(($ac_try" in
19494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19495 *) ac_try_echo=$ac_try;;
19496esac
19497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19498 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; } &&
19502 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019503 { (case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506esac
19507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019509 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019511 (exit $ac_status); }; }; then
19512 ac_cv_type_mode_t=yes
19513else
19514 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019515sed 's/^/| /' conftest.$ac_ext >&5
19516
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019517 ac_cv_type_mode_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019518fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019519
Jeremy White0ebeb532006-06-20 13:18:41 +020019520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019521fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019522{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19523echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019524if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019525
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019526cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019527#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019528_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019529
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019530
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019531fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019532{ echo "$as_me:$LINENO: checking for off_t" >&5
19533echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019534if test "${ac_cv_type_off_t+set}" = set; then
19535 echo $ECHO_N "(cached) $ECHO_C" >&6
19536else
19537 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019538/* confdefs.h. */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019543$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019544typedef off_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019545int
19546main ()
19547{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019548if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019549 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019550if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019551 return 0;
19552 ;
19553 return 0;
19554}
19555_ACEOF
19556rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019557if { (ac_try="$ac_compile"
19558case "(($ac_try" in
19559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19560 *) ac_try_echo=$ac_try;;
19561esac
19562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19563 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019564 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019565 grep -v '^ *+' conftest.er1 >conftest.err
19566 rm -f conftest.er1
19567 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019569 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19571 { (case "(($ac_try" in
19572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19573 *) ac_try_echo=$ac_try;;
19574esac
19575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19576 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019577 ac_status=$?
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); }; } &&
19580 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019581 { (case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584esac
19585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019587 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019589 (exit $ac_status); }; }; then
19590 ac_cv_type_off_t=yes
19591else
19592 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019593sed 's/^/| /' conftest.$ac_ext >&5
19594
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019595 ac_cv_type_off_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019596fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019597
Jeremy White0ebeb532006-06-20 13:18:41 +020019598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019599fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019600{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19601echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019602if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019603
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019604cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019605#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019606_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019607
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019608
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019609fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019610{ echo "$as_me:$LINENO: checking for pid_t" >&5
19611echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019612if test "${ac_cv_type_pid_t+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19614else
19615 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019616/* confdefs.h. */
19617_ACEOF
19618cat confdefs.h >>conftest.$ac_ext
19619cat >>conftest.$ac_ext <<_ACEOF
19620/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019621$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019622typedef pid_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019623int
19624main ()
19625{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019626if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019627 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019628if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019629 return 0;
19630 ;
19631 return 0;
19632}
19633_ACEOF
19634rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019635if { (ac_try="$ac_compile"
19636case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639esac
19640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019642 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019647 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19649 { (case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652esac
19653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; } &&
19658 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019659 { (case "(($ac_try" in
19660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19661 *) ac_try_echo=$ac_try;;
19662esac
19663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19664 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019665 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019667 (exit $ac_status); }; }; then
19668 ac_cv_type_pid_t=yes
19669else
19670 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019671sed 's/^/| /' conftest.$ac_ext >&5
19672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019673 ac_cv_type_pid_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019674fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019675
Jeremy White0ebeb532006-06-20 13:18:41 +020019676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019677fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019678{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19679echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019680if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019681
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019682cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019683#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019684_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019685
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019686
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019687fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019688{ echo "$as_me:$LINENO: checking for size_t" >&5
19689echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019690if test "${ac_cv_type_size_t+set}" = set; then
19691 echo $ECHO_N "(cached) $ECHO_C" >&6
19692else
19693 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019694/* confdefs.h. */
19695_ACEOF
19696cat confdefs.h >>conftest.$ac_ext
19697cat >>conftest.$ac_ext <<_ACEOF
19698/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019699$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019700typedef size_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019701int
19702main ()
19703{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019704if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019705 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019706if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019707 return 0;
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019713if { (ac_try="$ac_compile"
19714case "(($ac_try" in
19715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19716 *) ac_try_echo=$ac_try;;
19717esac
19718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19719 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019720 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019725 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19727 { (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 Julliard875927f2004-01-02 01:55:29 +000019733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; } &&
19736 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019737 { (case "(($ac_try" in
19738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19739 *) ac_try_echo=$ac_try;;
19740esac
19741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19742 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019743 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019745 (exit $ac_status); }; }; then
19746 ac_cv_type_size_t=yes
19747else
19748 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019749sed 's/^/| /' conftest.$ac_ext >&5
19750
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019751 ac_cv_type_size_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019752fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019753
Jeremy White0ebeb532006-06-20 13:18:41 +020019754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019755fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019756{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19757echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019758if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019759
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019760cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019761#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019762_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019763
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019764
19765fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019766{ echo "$as_me:$LINENO: checking for ssize_t" >&5
19767echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019768if test "${ac_cv_type_ssize_t+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770else
19771 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019777$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019778typedef ssize_t ac__type_new_;
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019779int
19780main ()
19781{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019782if ((ac__type_new_ *) 0)
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019783 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019784if (sizeof (ac__type_new_))
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019785 return 0;
19786 ;
19787 return 0;
19788}
19789_ACEOF
19790rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019791if { (ac_try="$ac_compile"
19792case "(($ac_try" in
19793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19794 *) ac_try_echo=$ac_try;;
19795esac
19796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19797 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019798 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019799 grep -v '^ *+' conftest.er1 >conftest.err
19800 rm -f conftest.er1
19801 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19805 { (case "(($ac_try" in
19806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19807 *) ac_try_echo=$ac_try;;
19808esac
19809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19810 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019811 ac_status=$?
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } &&
19814 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019815 { (case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818esac
19819eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19820 (eval "$ac_try") 2>&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019821 ac_status=$?
19822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823 (exit $ac_status); }; }; then
19824 ac_cv_type_ssize_t=yes
19825else
19826 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019827sed 's/^/| /' conftest.$ac_ext >&5
19828
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019829 ac_cv_type_ssize_t=no
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019830fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019831
Jeremy White0ebeb532006-06-20 13:18:41 +020019832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019833fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019834{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
19835echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019836if test $ac_cv_type_ssize_t = yes; then
19837
19838cat >>confdefs.h <<_ACEOF
19839#define HAVE_SSIZE_T 1
19840_ACEOF
19841
19842
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019843fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019844{ echo "$as_me:$LINENO: checking for long long" >&5
19845echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019846if test "${ac_cv_type_long_long+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848else
19849 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019855$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019856typedef long long ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019857int
19858main ()
19859{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019860if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019861 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019862if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019863 return 0;
19864 ;
19865 return 0;
19866}
19867_ACEOF
19868rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019869if { (ac_try="$ac_compile"
19870case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19873esac
19874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019876 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019877 grep -v '^ *+' conftest.er1 >conftest.err
19878 rm -f conftest.er1
19879 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019881 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19883 { (case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886esac
19887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019889 ac_status=$?
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); }; } &&
19892 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019893 { (case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896esac
19897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019899 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019901 (exit $ac_status); }; }; then
19902 ac_cv_type_long_long=yes
19903else
19904 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019905sed 's/^/| /' conftest.$ac_ext >&5
19906
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019907 ac_cv_type_long_long=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019908fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019909
Jeremy White0ebeb532006-06-20 13:18:41 +020019910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019911fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019912{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19913echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000019914if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019915
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019916cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000019917#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019918_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000019919
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019920
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000019921fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019922{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
19923echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000019924if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19926else
19927 cat >conftest.$ac_ext <<_ACEOF
19928/* confdefs.h. */
19929_ACEOF
19930cat confdefs.h >>conftest.$ac_ext
19931cat >>conftest.$ac_ext <<_ACEOF
19932/* end confdefs.h. */
19933$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019934typedef fsblkcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000019935int
19936main ()
19937{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019938if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000019939 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019940if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000019941 return 0;
19942 ;
19943 return 0;
19944}
19945_ACEOF
19946rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019947if { (ac_try="$ac_compile"
19948case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19951esac
19952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000019954 ac_status=$?
19955 grep -v '^ *+' conftest.er1 >conftest.err
19956 rm -f conftest.er1
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19964esac
19965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000019967 ac_status=$?
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19974esac
19975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000019977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 ac_cv_type_fsblkcnt_t=yes
19981else
19982 echo "$as_me: failed program was:" >&5
19983sed 's/^/| /' conftest.$ac_ext >&5
19984
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019985 ac_cv_type_fsblkcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000019986fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019987
Jeremy White0ebeb532006-06-20 13:18:41 +020019988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000019989fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019990{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
19991echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000019992if test $ac_cv_type_fsblkcnt_t = yes; then
19993
19994cat >>confdefs.h <<_ACEOF
19995#define HAVE_FSBLKCNT_T 1
19996_ACEOF
19997
19998
19999fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020000{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20001echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020002if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20004else
20005 cat >conftest.$ac_ext <<_ACEOF
20006/* confdefs.h. */
20007_ACEOF
20008cat confdefs.h >>conftest.$ac_ext
20009cat >>conftest.$ac_ext <<_ACEOF
20010/* end confdefs.h. */
20011$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020012typedef fsfilcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020013int
20014main ()
20015{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020016if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020017 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020018if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020019 return 0;
20020 ;
20021 return 0;
20022}
20023_ACEOF
20024rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020025if { (ac_try="$ac_compile"
20026case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20029esac
20030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20039 { (case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042esac
20043eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20052esac
20053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020055 ac_status=$?
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_type_fsfilcnt_t=yes
20059else
20060 echo "$as_me: failed program was:" >&5
20061sed 's/^/| /' conftest.$ac_ext >&5
20062
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020063 ac_cv_type_fsfilcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020064fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020065
Jeremy White0ebeb532006-06-20 13:18:41 +020020066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020067fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020068{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20069echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020070if test $ac_cv_type_fsfilcnt_t = yes; then
20071
20072cat >>confdefs.h <<_ACEOF
20073#define HAVE_FSFILCNT_T 1
20074_ACEOF
20075
20076
20077fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020078
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020079{ echo "$as_me:$LINENO: checking for sigset_t" >&5
20080echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020081if test "${ac_cv_type_sigset_t+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083else
20084 cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
20090#include <signal.h>
20091
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020092typedef sigset_t ac__type_new_;
Paul Millar10a6c562004-12-07 17:19:54 +000020093int
20094main ()
20095{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020096if ((ac__type_new_ *) 0)
Paul Millar10a6c562004-12-07 17:19:54 +000020097 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020098if (sizeof (ac__type_new_))
Paul Millar10a6c562004-12-07 17:19:54 +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
Paul Millar10a6c562004-12-07 17:19:54 +000020112 ac_status=$?
20113 grep -v '^ *+' conftest.er1 >conftest.err
20114 rm -f conftest.er1
20115 cat conftest.err >&5
20116 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
Paul Millar10a6c562004-12-07 17:19:54 +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
Paul Millar10a6c562004-12-07 17:19:54 +000020135 ac_status=$?
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_type_sigset_t=yes
20139else
20140 echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020143 ac_cv_type_sigset_t=no
Paul Millar10a6c562004-12-07 17:19:54 +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
Paul Millar10a6c562004-12-07 17:19:54 +000020147fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020148{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20149echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020150if test $ac_cv_type_sigset_t = yes; then
20151
20152cat >>confdefs.h <<_ACEOF
20153#define HAVE_SIGSET_T 1
20154_ACEOF
20155
20156
20157fi
20158
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020159{ echo "$as_me:$LINENO: checking for request_sense" >&5
20160echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020161if test "${ac_cv_type_request_sense+set}" = set; then
20162 echo $ECHO_N "(cached) $ECHO_C" >&6
20163else
20164 cat >conftest.$ac_ext <<_ACEOF
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170#include <linux/cdrom.h>
20171
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020172typedef request_sense ac__type_new_;
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020173int
20174main ()
20175{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020176if ((ac__type_new_ *) 0)
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020177 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020178if (sizeof (ac__type_new_))
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020179 return 0;
20180 ;
20181 return 0;
20182}
20183_ACEOF
20184rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020185if { (ac_try="$ac_compile"
20186case "(($ac_try" in
20187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20189esac
20190eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020192 ac_status=$?
20193 grep -v '^ *+' conftest.er1 >conftest.err
20194 rm -f conftest.er1
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20199 { (case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20202esac
20203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; } &&
20208 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020209 { (case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20212esac
20213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020215 ac_status=$?
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); }; }; then
20218 ac_cv_type_request_sense=yes
20219else
20220 echo "$as_me: failed program was:" >&5
20221sed 's/^/| /' conftest.$ac_ext >&5
20222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020223 ac_cv_type_request_sense=no
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020224fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020225
Jeremy White0ebeb532006-06-20 13:18:41 +020020226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020227fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020228{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20229echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020230if test $ac_cv_type_request_sense = yes; then
20231
20232cat >>confdefs.h <<_ACEOF
20233#define HAVE_REQUEST_SENSE 1
20234_ACEOF
20235
20236
20237fi
20238
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020239
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020240{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20241echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020242if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20243 echo $ECHO_N "(cached) $ECHO_C" >&6
20244else
20245 cat >conftest.$ac_ext <<_ACEOF
20246/* confdefs.h. */
20247_ACEOF
20248cat confdefs.h >>conftest.$ac_ext
20249cat >>conftest.$ac_ext <<_ACEOF
20250/* end confdefs.h. */
20251#ifdef HAVE_LINUX_INPUT_H
20252#include <linux/input.h>
20253#endif
20254
20255int
20256main ()
20257{
20258static struct ff_effect ac_aggr;
20259if (ac_aggr.direction)
20260return 0;
20261 ;
20262 return 0;
20263}
20264_ACEOF
20265rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020266if { (ac_try="$ac_compile"
20267case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270esac
20271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20280 { (case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283esac
20284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020290 { (case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20293esac
20294eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_member_struct_ff_effect_direction=yes
20300else
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020304 cat >conftest.$ac_ext <<_ACEOF
Daniel Remenake491e8f2005-07-29 14:18:58 +000020305/* confdefs.h. */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
20309/* end confdefs.h. */
20310#ifdef HAVE_LINUX_INPUT_H
20311#include <linux/input.h>
20312#endif
20313
20314int
20315main ()
20316{
20317static struct ff_effect ac_aggr;
20318if (sizeof ac_aggr.direction)
20319return 0;
20320 ;
20321 return 0;
20322}
20323_ACEOF
20324rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020325if { (ac_try="$ac_compile"
20326case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329esac
20330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20339 { (case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20342esac
20343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; } &&
20348 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020349 { (case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20352esac
20353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 ac_cv_member_struct_ff_effect_direction=yes
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020363 ac_cv_member_struct_ff_effect_direction=no
Daniel Remenake491e8f2005-07-29 14:18:58 +000020364fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020365
Jeremy White0ebeb532006-06-20 13:18:41 +020020366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020367fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020368
Jeremy White0ebeb532006-06-20 13:18:41 +020020369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020370fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020371{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20372echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020373if test $ac_cv_member_struct_ff_effect_direction = yes; then
20374
20375cat >>confdefs.h <<_ACEOF
20376#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20377_ACEOF
20378
20379
20380fi
20381
20382
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020383{ echo "$as_me:$LINENO: checking for sigaddset" >&5
20384echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020385if test "${wine_cv_have_sigaddset+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387else
20388 cat >conftest.$ac_ext <<_ACEOF
20389/* confdefs.h. */
20390_ACEOF
20391cat confdefs.h >>conftest.$ac_ext
20392cat >>conftest.$ac_ext <<_ACEOF
20393/* end confdefs.h. */
20394#include <signal.h>
20395int
20396main ()
20397{
20398sigset_t set; sigaddset(&set,SIGTERM);
20399 ;
20400 return 0;
20401}
20402_ACEOF
20403rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020404if { (ac_try="$ac_link"
20405case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408esac
20409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20410 (eval "$ac_link") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020411 ac_status=$?
20412 grep -v '^ *+' conftest.er1 >conftest.err
20413 rm -f conftest.er1
20414 cat conftest.err >&5
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421esac
20422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; } &&
20427 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020428 { (case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431esac
20432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; }; then
20437 wine_cv_have_sigaddset=yes
20438else
20439 echo "$as_me: failed program was:" >&5
20440sed 's/^/| /' conftest.$ac_ext >&5
20441
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020442 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000020443fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020444
Jeremy White0ebeb532006-06-20 13:18:41 +020020445rm -f core conftest.err conftest.$ac_objext \
Paul Millar10a6c562004-12-07 17:19:54 +000020446 conftest$ac_exeext conftest.$ac_ext
20447fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020448{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20449echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020450if test "$wine_cv_have_sigaddset" = "yes"
20451then
20452
20453cat >>confdefs.h <<\_ACEOF
20454#define HAVE_SIGADDSET 1
20455_ACEOF
20456
20457fi
20458
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020459
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020460{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20461echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020462if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000020464else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020465 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020466/* confdefs.h. */
20467_ACEOF
20468cat confdefs.h >>conftest.$ac_ext
20469cat >>conftest.$ac_ext <<_ACEOF
20470/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000020471
20472#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020473
20474int
20475main ()
20476{
Rein Klazesff7a61f2000-09-24 19:41:57 +000020477
20478 char *name=NULL;
20479 struct hostent he;
20480 struct hostent *result;
20481 char *buf=NULL;
20482 int bufsize=0;
20483 int res,errnr;
20484 char *addr=NULL;
20485 int addrlen=0;
20486 int addrtype=0;
20487 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20488 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020489
20490 ;
20491 return 0;
20492}
20493_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020494rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020495if { (ac_try="$ac_link"
20496case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499esac
20500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020502 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020507 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20509 { (case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512esac
20513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020515 ac_status=$?
20516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20517 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020518 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020519 { (case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20522esac
20523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020525 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020527 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000020528 wine_cv_linux_gethostbyname_r_6=yes
20529else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020530 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020531sed 's/^/| /' conftest.$ac_ext >&5
20532
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020533 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000020534
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020535fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020536
Jeremy White0ebeb532006-06-20 13:18:41 +020020537rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020538 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020539
20540fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020541{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20542echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000020543 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20544 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020545
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020546cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020547#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020548_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020549
20550 fi
20551
Marcus Meissner028e9a11999-08-04 15:07:56 +000020552if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020553then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020554 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20555echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020556if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020558else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020559 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020560/* confdefs.h. */
20561_ACEOF
20562cat confdefs.h >>conftest.$ac_ext
20563cat >>conftest.$ac_ext <<_ACEOF
20564/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020565
Marcus Meissner028e9a11999-08-04 15:07:56 +000020566 #include <sys/ioctl.h>
20567 #include <linux/joystick.h>
20568
20569 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000020570 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20571 #error "no 2.2 header"
20572 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020573
20574int
20575main ()
20576{
Marcus Meissner028e9a11999-08-04 15:07:56 +000020577/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020578 ;
20579 return 0;
20580}
20581_ACEOF
20582rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020583if { (ac_try="$ac_compile"
20584case "(($ac_try" in
20585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20586 *) ac_try_echo=$ac_try;;
20587esac
20588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20589 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020590 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020591 grep -v '^ *+' conftest.er1 >conftest.err
20592 rm -f conftest.er1
20593 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020595 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20597 { (case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20600esac
20601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020603 ac_status=$?
20604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605 (exit $ac_status); }; } &&
20606 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020607 { (case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20610esac
20611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020613 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020615 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000020616 wine_cv_linux_joystick_22_api=yes
20617else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020618 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020619sed 's/^/| /' conftest.$ac_ext >&5
20620
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020621 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000020622fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020623
Jeremy White0ebeb532006-06-20 13:18:41 +020020624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000020625
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020626fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020627{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20628echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000020629 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000020630 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020631
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020632cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020633#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020634_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020635
20636 fi
20637fi
20638
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020639
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020640{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20641echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020642if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020643 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020644else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020645 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020651#include <sys/types.h>
20652#ifdef HAVE_SYS_PARAM_H
20653# include <sys/param.h>
20654#endif
Robert Millan55b74482006-02-06 21:53:27 +010020655#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020656# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020657#endif
20658#ifdef HAVE_SYS_VFS_H
20659# include <sys/vfs.h>
20660#endif
20661#ifdef HAVE_SYS_STATFS_H
20662# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020663#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020664
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020665int
20666main ()
20667{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020668static struct statfs ac_aggr;
20669if (ac_aggr.f_bfree)
20670return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020676if { (ac_try="$ac_compile"
20677case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680esac
20681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020683 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020684 grep -v '^ *+' conftest.er1 >conftest.err
20685 rm -f conftest.er1
20686 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020688 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20690 { (case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20693esac
20694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020696 ac_status=$?
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; } &&
20699 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020700 { (case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703esac
20704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020706 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020708 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020709 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020711 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020712sed 's/^/| /' conftest.$ac_ext >&5
20713
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020714 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020715/* confdefs.h. */
20716_ACEOF
20717cat confdefs.h >>conftest.$ac_ext
20718cat >>conftest.$ac_ext <<_ACEOF
20719/* end confdefs.h. */
20720#include <sys/types.h>
20721#ifdef HAVE_SYS_PARAM_H
20722# include <sys/param.h>
20723#endif
Robert Millan55b74482006-02-06 21:53:27 +010020724#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020725# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020726#endif
20727#ifdef HAVE_SYS_VFS_H
20728# include <sys/vfs.h>
20729#endif
20730#ifdef HAVE_SYS_STATFS_H
20731# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020732#endif
20733
20734int
20735main ()
20736{
20737static struct statfs ac_aggr;
20738if (sizeof ac_aggr.f_bfree)
20739return 0;
20740 ;
20741 return 0;
20742}
20743_ACEOF
20744rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020745if { (ac_try="$ac_compile"
20746case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749esac
20750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020752 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20759 { (case "(($ac_try" in
20760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20761 *) ac_try_echo=$ac_try;;
20762esac
20763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20764 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020765 ac_status=$?
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; } &&
20768 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020769 { (case "(($ac_try" in
20770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20771 *) ac_try_echo=$ac_try;;
20772esac
20773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20774 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; }; then
20778 ac_cv_member_struct_statfs_f_bfree=yes
20779else
20780 echo "$as_me: failed program was:" >&5
20781sed 's/^/| /' conftest.$ac_ext >&5
20782
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020783 ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020784fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020785
Jeremy White0ebeb532006-06-20 13:18:41 +020020786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020787fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020788
Jeremy White0ebeb532006-06-20 13:18:41 +020020789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020790fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020791{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20792echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020793if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020794
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020795cat >>confdefs.h <<_ACEOF
20796#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020797_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020798
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020799
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020800fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020801{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20802echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020803if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020804 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000020805else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020806 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020807/* confdefs.h. */
20808_ACEOF
20809cat confdefs.h >>conftest.$ac_ext
20810cat >>conftest.$ac_ext <<_ACEOF
20811/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020812#include <sys/types.h>
20813#ifdef HAVE_SYS_PARAM_H
20814# include <sys/param.h>
20815#endif
Robert Millan55b74482006-02-06 21:53:27 +010020816#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020817# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020818#endif
20819#ifdef HAVE_SYS_VFS_H
20820# include <sys/vfs.h>
20821#endif
20822#ifdef HAVE_SYS_STATFS_H
20823# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020824#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020825
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020826int
20827main ()
20828{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020829static struct statfs ac_aggr;
20830if (ac_aggr.f_bavail)
20831return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020832 ;
20833 return 0;
20834}
20835_ACEOF
20836rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020837if { (ac_try="$ac_compile"
20838case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841esac
20842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020844 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020845 grep -v '^ *+' conftest.er1 >conftest.err
20846 rm -f conftest.er1
20847 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020849 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20851 { (case "(($ac_try" in
20852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20853 *) ac_try_echo=$ac_try;;
20854esac
20855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20856 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020857 ac_status=$?
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020861 { (case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20864esac
20865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020867 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020869 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020870 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000020871else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020872 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020873sed 's/^/| /' conftest.$ac_ext >&5
20874
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020875 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020876/* confdefs.h. */
20877_ACEOF
20878cat confdefs.h >>conftest.$ac_ext
20879cat >>conftest.$ac_ext <<_ACEOF
20880/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000020881#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020882#ifdef HAVE_SYS_PARAM_H
20883# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000020884#endif
Robert Millan55b74482006-02-06 21:53:27 +010020885#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020886# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020887#endif
20888#ifdef HAVE_SYS_VFS_H
20889# include <sys/vfs.h>
20890#endif
20891#ifdef HAVE_SYS_STATFS_H
20892# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020893#endif
20894
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020895int
20896main ()
20897{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020898static struct statfs ac_aggr;
20899if (sizeof ac_aggr.f_bavail)
20900return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020901 ;
20902 return 0;
20903}
20904_ACEOF
20905rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020906if { (ac_try="$ac_compile"
20907case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20910esac
20911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020913 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020918 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20920 { (case "(($ac_try" in
20921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922 *) ac_try_echo=$ac_try;;
20923esac
20924eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020926 ac_status=$?
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); }; } &&
20929 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020930 { (case "(($ac_try" in
20931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932 *) ac_try_echo=$ac_try;;
20933esac
20934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020936 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020938 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020939 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000020940else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020941 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020942sed 's/^/| /' conftest.$ac_ext >&5
20943
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020944 ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000020945fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020946
Jeremy White0ebeb532006-06-20 13:18:41 +020020947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000020948fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020949
Jeremy White0ebeb532006-06-20 13:18:41 +020020950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000020951fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020952{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
20953echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020954if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000020955
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020956cat >>confdefs.h <<_ACEOF
20957#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020958_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000020959
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020960
Patrik Stridvall09da9662001-07-08 22:30:50 +000020961fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020962{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
20963echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020964if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
20965 echo $ECHO_N "(cached) $ECHO_C" >&6
20966else
20967 cat >conftest.$ac_ext <<_ACEOF
20968/* confdefs.h. */
20969_ACEOF
20970cat confdefs.h >>conftest.$ac_ext
20971cat >>conftest.$ac_ext <<_ACEOF
20972/* end confdefs.h. */
20973#include <sys/types.h>
20974#ifdef HAVE_SYS_PARAM_H
20975# include <sys/param.h>
20976#endif
Robert Millan55b74482006-02-06 21:53:27 +010020977#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000020978# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020979#endif
20980#ifdef HAVE_SYS_VFS_H
20981# include <sys/vfs.h>
20982#endif
20983#ifdef HAVE_SYS_STATFS_H
20984# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000020985#endif
20986
20987int
20988main ()
20989{
20990static struct statfs ac_aggr;
20991if (ac_aggr.f_frsize)
20992return 0;
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020998if { (ac_try="$ac_compile"
20999case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002esac
21003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21012 { (case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21015esac
21016eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21017 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; } &&
21021 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021022 { (case "(($ac_try" in
21023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21024 *) ac_try_echo=$ac_try;;
21025esac
21026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021028 ac_status=$?
21029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); }; }; then
21031 ac_cv_member_struct_statfs_f_frsize=yes
21032else
21033 echo "$as_me: failed program was:" >&5
21034sed 's/^/| /' conftest.$ac_ext >&5
21035
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021036 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042#include <sys/types.h>
21043#ifdef HAVE_SYS_PARAM_H
21044# include <sys/param.h>
21045#endif
Robert Millan55b74482006-02-06 21:53:27 +010021046#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021047# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021048#endif
21049#ifdef HAVE_SYS_VFS_H
21050# include <sys/vfs.h>
21051#endif
21052#ifdef HAVE_SYS_STATFS_H
21053# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021054#endif
21055
21056int
21057main ()
21058{
21059static struct statfs ac_aggr;
21060if (sizeof ac_aggr.f_frsize)
21061return 0;
21062 ;
21063 return 0;
21064}
21065_ACEOF
21066rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021067if { (ac_try="$ac_compile"
21068case "(($ac_try" in
21069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070 *) ac_try_echo=$ac_try;;
21071esac
21072eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021074 ac_status=$?
21075 grep -v '^ *+' conftest.er1 >conftest.err
21076 rm -f conftest.er1
21077 cat conftest.err >&5
21078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21081 { (case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21084esac
21085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021091 { (case "(($ac_try" in
21092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21093 *) ac_try_echo=$ac_try;;
21094esac
21095eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21096 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021097 ac_status=$?
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_member_struct_statfs_f_frsize=yes
21101else
21102 echo "$as_me: failed program was:" >&5
21103sed 's/^/| /' conftest.$ac_ext >&5
21104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021105 ac_cv_member_struct_statfs_f_frsize=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021106fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021107
Jeremy White0ebeb532006-06-20 13:18:41 +020021108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021109fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021110
Jeremy White0ebeb532006-06-20 13:18:41 +020021111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021112fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021113{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21114echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021115if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21116
21117cat >>confdefs.h <<_ACEOF
21118#define HAVE_STRUCT_STATFS_F_FRSIZE 1
21119_ACEOF
21120
21121
21122fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021123{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21124echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021125if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21126 echo $ECHO_N "(cached) $ECHO_C" >&6
21127else
21128 cat >conftest.$ac_ext <<_ACEOF
21129/* confdefs.h. */
21130_ACEOF
21131cat confdefs.h >>conftest.$ac_ext
21132cat >>conftest.$ac_ext <<_ACEOF
21133/* end confdefs.h. */
21134#include <sys/types.h>
21135#ifdef HAVE_SYS_PARAM_H
21136# include <sys/param.h>
21137#endif
Robert Millan55b74482006-02-06 21:53:27 +010021138#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021139# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021140#endif
21141#ifdef HAVE_SYS_VFS_H
21142# include <sys/vfs.h>
21143#endif
21144#ifdef HAVE_SYS_STATFS_H
21145# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021146#endif
21147
21148int
21149main ()
21150{
21151static struct statfs ac_aggr;
21152if (ac_aggr.f_ffree)
21153return 0;
21154 ;
21155 return 0;
21156}
21157_ACEOF
21158rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021159if { (ac_try="$ac_compile"
21160case "(($ac_try" in
21161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21162 *) ac_try_echo=$ac_try;;
21163esac
21164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21165 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21173 { (case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176esac
21177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021179 ac_status=$?
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); }; } &&
21182 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021183 { (case "(($ac_try" in
21184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21185 *) ac_try_echo=$ac_try;;
21186esac
21187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21188 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021189 ac_status=$?
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); }; }; then
21192 ac_cv_member_struct_statfs_f_ffree=yes
21193else
21194 echo "$as_me: failed program was:" >&5
21195sed 's/^/| /' conftest.$ac_ext >&5
21196
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021197 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21203#include <sys/types.h>
21204#ifdef HAVE_SYS_PARAM_H
21205# include <sys/param.h>
21206#endif
Robert Millan55b74482006-02-06 21:53:27 +010021207#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021208# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021209#endif
21210#ifdef HAVE_SYS_VFS_H
21211# include <sys/vfs.h>
21212#endif
21213#ifdef HAVE_SYS_STATFS_H
21214# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021215#endif
21216
21217int
21218main ()
21219{
21220static struct statfs ac_aggr;
21221if (sizeof ac_aggr.f_ffree)
21222return 0;
21223 ;
21224 return 0;
21225}
21226_ACEOF
21227rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021228if { (ac_try="$ac_compile"
21229case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21232esac
21233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21245esac
21246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; } &&
21251 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021252 { (case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255esac
21256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021258 ac_status=$?
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); }; }; then
21261 ac_cv_member_struct_statfs_f_ffree=yes
21262else
21263 echo "$as_me: failed program was:" >&5
21264sed 's/^/| /' conftest.$ac_ext >&5
21265
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021266 ac_cv_member_struct_statfs_f_ffree=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021267fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021268
Jeremy White0ebeb532006-06-20 13:18:41 +020021269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021270fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021271
Jeremy White0ebeb532006-06-20 13:18:41 +020021272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021273fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021274{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21275echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021276if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21277
21278cat >>confdefs.h <<_ACEOF
21279#define HAVE_STRUCT_STATFS_F_FFREE 1
21280_ACEOF
21281
21282
21283fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021284{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21285echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021286if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21287 echo $ECHO_N "(cached) $ECHO_C" >&6
21288else
21289 cat >conftest.$ac_ext <<_ACEOF
21290/* confdefs.h. */
21291_ACEOF
21292cat confdefs.h >>conftest.$ac_ext
21293cat >>conftest.$ac_ext <<_ACEOF
21294/* end confdefs.h. */
21295#include <sys/types.h>
21296#ifdef HAVE_SYS_PARAM_H
21297# include <sys/param.h>
21298#endif
Robert Millan55b74482006-02-06 21:53:27 +010021299#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021300# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021301#endif
21302#ifdef HAVE_SYS_VFS_H
21303# include <sys/vfs.h>
21304#endif
21305#ifdef HAVE_SYS_STATFS_H
21306# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021307#endif
21308
21309int
21310main ()
21311{
21312static struct statfs ac_aggr;
21313if (ac_aggr.f_favail)
21314return 0;
21315 ;
21316 return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021320if { (ac_try="$ac_compile"
21321case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21324esac
21325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021327 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21334 { (case "(($ac_try" in
21335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21336 *) ac_try_echo=$ac_try;;
21337esac
21338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21339 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021340 ac_status=$?
21341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); }; } &&
21343 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021344 { (case "(($ac_try" in
21345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346 *) ac_try_echo=$ac_try;;
21347esac
21348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21349 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021350 ac_status=$?
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 ac_cv_member_struct_statfs_f_favail=yes
21354else
21355 echo "$as_me: failed program was:" >&5
21356sed 's/^/| /' conftest.$ac_ext >&5
21357
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021358 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021359/* confdefs.h. */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h. */
21364#include <sys/types.h>
21365#ifdef HAVE_SYS_PARAM_H
21366# include <sys/param.h>
21367#endif
Robert Millan55b74482006-02-06 21:53:27 +010021368#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021369# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021370#endif
21371#ifdef HAVE_SYS_VFS_H
21372# include <sys/vfs.h>
21373#endif
21374#ifdef HAVE_SYS_STATFS_H
21375# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021376#endif
21377
21378int
21379main ()
21380{
21381static struct statfs ac_aggr;
21382if (sizeof ac_aggr.f_favail)
21383return 0;
21384 ;
21385 return 0;
21386}
21387_ACEOF
21388rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021389if { (ac_try="$ac_compile"
21390case "(($ac_try" in
21391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21392 *) ac_try_echo=$ac_try;;
21393esac
21394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21395 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021396 ac_status=$?
21397 grep -v '^ *+' conftest.er1 >conftest.err
21398 rm -f conftest.er1
21399 cat conftest.err >&5
21400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21403 { (case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406esac
21407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021409 ac_status=$?
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); }; } &&
21412 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021413 { (case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21416esac
21417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; }; then
21422 ac_cv_member_struct_statfs_f_favail=yes
21423else
21424 echo "$as_me: failed program was:" >&5
21425sed 's/^/| /' conftest.$ac_ext >&5
21426
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021427 ac_cv_member_struct_statfs_f_favail=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021428fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021429
Jeremy White0ebeb532006-06-20 13:18:41 +020021430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021431fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021432
Jeremy White0ebeb532006-06-20 13:18:41 +020021433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021434fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021435{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21436echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021437if test $ac_cv_member_struct_statfs_f_favail = yes; then
21438
21439cat >>confdefs.h <<_ACEOF
21440#define HAVE_STRUCT_STATFS_F_FAVAIL 1
21441_ACEOF
21442
21443
21444fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021445{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21446echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021447if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21448 echo $ECHO_N "(cached) $ECHO_C" >&6
21449else
21450 cat >conftest.$ac_ext <<_ACEOF
21451/* confdefs.h. */
21452_ACEOF
21453cat confdefs.h >>conftest.$ac_ext
21454cat >>conftest.$ac_ext <<_ACEOF
21455/* end confdefs.h. */
21456#include <sys/types.h>
21457#ifdef HAVE_SYS_PARAM_H
21458# include <sys/param.h>
21459#endif
Robert Millan55b74482006-02-06 21:53:27 +010021460#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021461# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021462#endif
21463#ifdef HAVE_SYS_VFS_H
21464# include <sys/vfs.h>
21465#endif
21466#ifdef HAVE_SYS_STATFS_H
21467# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021468#endif
21469
21470int
21471main ()
21472{
21473static struct statfs ac_aggr;
21474if (ac_aggr.f_namelen)
21475return 0;
21476 ;
21477 return 0;
21478}
21479_ACEOF
21480rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021481if { (ac_try="$ac_compile"
21482case "(($ac_try" in
21483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21484 *) ac_try_echo=$ac_try;;
21485esac
21486eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21487 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21495 { (case "(($ac_try" in
21496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21497 *) ac_try_echo=$ac_try;;
21498esac
21499eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21500 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; } &&
21504 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021505 { (case "(($ac_try" in
21506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21507 *) ac_try_echo=$ac_try;;
21508esac
21509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21510 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_member_struct_statfs_f_namelen=yes
21515else
21516 echo "$as_me: failed program was:" >&5
21517sed 's/^/| /' conftest.$ac_ext >&5
21518
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021519 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb859a682004-03-07 03:16:43 +000021520/* confdefs.h. */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h. */
21525#include <sys/types.h>
21526#ifdef HAVE_SYS_PARAM_H
21527# include <sys/param.h>
21528#endif
Robert Millan55b74482006-02-06 21:53:27 +010021529#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021530# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021531#endif
21532#ifdef HAVE_SYS_VFS_H
21533# include <sys/vfs.h>
21534#endif
21535#ifdef HAVE_SYS_STATFS_H
21536# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021537#endif
21538
21539int
21540main ()
21541{
21542static struct statfs ac_aggr;
21543if (sizeof ac_aggr.f_namelen)
21544return 0;
21545 ;
21546 return 0;
21547}
21548_ACEOF
21549rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021550if { (ac_try="$ac_compile"
21551case "(($ac_try" in
21552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553 *) ac_try_echo=$ac_try;;
21554esac
21555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21556 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021557 ac_status=$?
21558 grep -v '^ *+' conftest.er1 >conftest.err
21559 rm -f conftest.er1
21560 cat conftest.err >&5
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21564 { (case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21567esac
21568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021574 { (case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21577esac
21578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021580 ac_status=$?
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); }; }; then
21583 ac_cv_member_struct_statfs_f_namelen=yes
21584else
21585 echo "$as_me: failed program was:" >&5
21586sed 's/^/| /' conftest.$ac_ext >&5
21587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021588 ac_cv_member_struct_statfs_f_namelen=no
Alexandre Julliardb859a682004-03-07 03:16:43 +000021589fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021590
Jeremy White0ebeb532006-06-20 13:18:41 +020021591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021592fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021593
Jeremy White0ebeb532006-06-20 13:18:41 +020021594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021595fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021596{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21597echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021598if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21599
21600cat >>confdefs.h <<_ACEOF
21601#define HAVE_STRUCT_STATFS_F_NAMELEN 1
21602_ACEOF
21603
21604
21605fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000021606
21607
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021608{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21609echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021610if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21612else
21613 cat >conftest.$ac_ext <<_ACEOF
21614/* confdefs.h. */
21615_ACEOF
21616cat confdefs.h >>conftest.$ac_ext
21617cat >>conftest.$ac_ext <<_ACEOF
21618/* end confdefs.h. */
21619#ifdef HAVE_SYS_STATVFS_H
21620#include <sys/statvfs.h>
21621#endif
21622
21623int
21624main ()
21625{
21626static struct statvfs ac_aggr;
21627if (ac_aggr.f_blocks)
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_statvfs_f_blocks=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#ifdef HAVE_SYS_STATVFS_H
21679#include <sys/statvfs.h>
21680#endif
21681
21682int
21683main ()
21684{
21685static struct statvfs ac_aggr;
21686if (sizeof ac_aggr.f_blocks)
21687return 0;
21688 ;
21689 return 0;
21690}
21691_ACEOF
21692rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021693if { (ac_try="$ac_compile"
21694case "(($ac_try" in
21695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21696 *) ac_try_echo=$ac_try;;
21697esac
21698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21699 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021700 ac_status=$?
21701 grep -v '^ *+' conftest.er1 >conftest.err
21702 rm -f conftest.er1
21703 cat conftest.err >&5
21704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21705 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21707 { (case "(($ac_try" in
21708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709 *) ac_try_echo=$ac_try;;
21710esac
21711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21712 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021713 ac_status=$?
21714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715 (exit $ac_status); }; } &&
21716 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021717 { (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); }; }; then
21726 ac_cv_member_struct_statvfs_f_blocks=yes
21727else
21728 echo "$as_me: failed program was:" >&5
21729sed 's/^/| /' conftest.$ac_ext >&5
21730
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021731 ac_cv_member_struct_statvfs_f_blocks=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021732fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021733
Jeremy White0ebeb532006-06-20 13:18:41 +020021734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021735fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021736
Jeremy White0ebeb532006-06-20 13:18:41 +020021737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021738fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021739{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21740echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021741if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21742
21743cat >>confdefs.h <<_ACEOF
21744#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21745_ACEOF
21746
21747
21748fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000021749
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021750
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021751{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21752echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021753if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021754 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000021755else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021756 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021757/* confdefs.h. */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000021762#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000021763#ifdef HAVE_SYS_SOCKET_H
21764# include <sys/socket.h>
21765#endif
21766#ifdef HAVE_SYS_UN_H
21767# include <sys/un.h>
21768#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021769
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021770int
21771main ()
21772{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021773static struct msghdr ac_aggr;
21774if (ac_aggr.msg_accrights)
21775return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021776 ;
21777 return 0;
21778}
21779_ACEOF
21780rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021781if { (ac_try="$ac_compile"
21782case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21785esac
21786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021788 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021789 grep -v '^ *+' conftest.er1 >conftest.err
21790 rm -f conftest.er1
21791 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021793 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21795 { (case "(($ac_try" in
21796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21797 *) ac_try_echo=$ac_try;;
21798esac
21799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21800 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021801 ac_status=$?
21802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803 (exit $ac_status); }; } &&
21804 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021805 { (case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21808esac
21809eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021811 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021813 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021814 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000021815else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021816 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021817sed 's/^/| /' conftest.$ac_ext >&5
21818
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021819 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021820/* confdefs.h. */
21821_ACEOF
21822cat confdefs.h >>conftest.$ac_ext
21823cat >>conftest.$ac_ext <<_ACEOF
21824/* end confdefs.h. */
21825#include <sys/types.h>
21826#ifdef HAVE_SYS_SOCKET_H
21827# include <sys/socket.h>
21828#endif
21829#ifdef HAVE_SYS_UN_H
21830# include <sys/un.h>
21831#endif
21832
21833int
21834main ()
21835{
21836static struct msghdr ac_aggr;
21837if (sizeof ac_aggr.msg_accrights)
21838return 0;
21839 ;
21840 return 0;
21841}
21842_ACEOF
21843rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021844if { (ac_try="$ac_compile"
21845case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21848esac
21849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21850 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021851 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21858 { (case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21861esac
21862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021864 ac_status=$?
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; } &&
21867 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021868 { (case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21871esac
21872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021874 ac_status=$?
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_cv_member_struct_msghdr_msg_accrights=yes
21878else
21879 echo "$as_me: failed program was:" >&5
21880sed 's/^/| /' conftest.$ac_ext >&5
21881
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021882 ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000021883fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021884
Jeremy White0ebeb532006-06-20 13:18:41 +020021885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000021886fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021887
Jeremy White0ebeb532006-06-20 13:18:41 +020021888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021889fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021890{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
21891echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021892if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000021893
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021894cat >>confdefs.h <<_ACEOF
21895#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021896_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000021897
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021898
21899fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021900{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
21901echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021902if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904else
21905 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021906/* confdefs.h. */
21907_ACEOF
21908cat confdefs.h >>conftest.$ac_ext
21909cat >>conftest.$ac_ext <<_ACEOF
21910/* end confdefs.h. */
21911#include <sys/types.h>
21912#ifdef HAVE_SYS_SOCKET_H
21913# include <sys/socket.h>
21914#endif
21915#ifdef HAVE_SYS_UN_H
21916# include <sys/un.h>
21917#endif
21918
21919int
21920main ()
21921{
21922static struct sockaddr ac_aggr;
21923if (ac_aggr.sa_len)
21924return 0;
21925 ;
21926 return 0;
21927}
21928_ACEOF
21929rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021930if { (ac_try="$ac_compile"
21931case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21934esac
21935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021937 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021938 grep -v '^ *+' conftest.er1 >conftest.err
21939 rm -f conftest.er1
21940 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21944 { (case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21947esac
21948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; } &&
21953 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021954 { (case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21957esac
21958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21959 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021960 ac_status=$?
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; }; then
21963 ac_cv_member_struct_sockaddr_sa_len=yes
21964else
21965 echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021968 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021969/* confdefs.h. */
21970_ACEOF
21971cat confdefs.h >>conftest.$ac_ext
21972cat >>conftest.$ac_ext <<_ACEOF
21973/* end confdefs.h. */
21974#include <sys/types.h>
21975#ifdef HAVE_SYS_SOCKET_H
21976# include <sys/socket.h>
21977#endif
21978#ifdef HAVE_SYS_UN_H
21979# include <sys/un.h>
21980#endif
21981
21982int
21983main ()
21984{
21985static struct sockaddr ac_aggr;
21986if (sizeof ac_aggr.sa_len)
21987return 0;
21988 ;
21989 return 0;
21990}
21991_ACEOF
21992rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021993if { (ac_try="$ac_compile"
21994case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21997esac
21998eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022000 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022001 grep -v '^ *+' conftest.er1 >conftest.err
22002 rm -f conftest.er1
22003 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022006 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22007 { (case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010esac
22011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; } &&
22016 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022017 { (case "(($ac_try" in
22018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019 *) ac_try_echo=$ac_try;;
22020esac
22021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022023 ac_status=$?
22024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025 (exit $ac_status); }; }; then
22026 ac_cv_member_struct_sockaddr_sa_len=yes
22027else
22028 echo "$as_me: failed program was:" >&5
22029sed 's/^/| /' conftest.$ac_ext >&5
22030
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022031 ac_cv_member_struct_sockaddr_sa_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022032fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022033
Jeremy White0ebeb532006-06-20 13:18:41 +020022034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022035fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022036
Jeremy White0ebeb532006-06-20 13:18:41 +020022037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022038fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022039{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22040echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022041if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22042
22043cat >>confdefs.h <<_ACEOF
22044#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22045_ACEOF
22046
22047
22048fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022049{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22050echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022051if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22053else
22054 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022055/* confdefs.h. */
22056_ACEOF
22057cat confdefs.h >>conftest.$ac_ext
22058cat >>conftest.$ac_ext <<_ACEOF
22059/* end confdefs.h. */
22060#include <sys/types.h>
22061#ifdef HAVE_SYS_SOCKET_H
22062# include <sys/socket.h>
22063#endif
22064#ifdef HAVE_SYS_UN_H
22065# include <sys/un.h>
22066#endif
22067
22068int
22069main ()
22070{
22071static struct sockaddr_un ac_aggr;
22072if (ac_aggr.sun_len)
22073return 0;
22074 ;
22075 return 0;
22076}
22077_ACEOF
22078rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022079if { (ac_try="$ac_compile"
22080case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083esac
22084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022086 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22093 { (case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096esac
22097eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022099 ac_status=$?
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); }; } &&
22102 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022103 { (case "(($ac_try" in
22104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105 *) ac_try_echo=$ac_try;;
22106esac
22107eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; }; then
22112 ac_cv_member_struct_sockaddr_un_sun_len=yes
22113else
22114 echo "$as_me: failed program was:" >&5
22115sed 's/^/| /' conftest.$ac_ext >&5
22116
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022117 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022118/* confdefs.h. */
22119_ACEOF
22120cat confdefs.h >>conftest.$ac_ext
22121cat >>conftest.$ac_ext <<_ACEOF
22122/* end confdefs.h. */
22123#include <sys/types.h>
22124#ifdef HAVE_SYS_SOCKET_H
22125# include <sys/socket.h>
22126#endif
22127#ifdef HAVE_SYS_UN_H
22128# include <sys/un.h>
22129#endif
22130
22131int
22132main ()
22133{
22134static struct sockaddr_un ac_aggr;
22135if (sizeof ac_aggr.sun_len)
22136return 0;
22137 ;
22138 return 0;
22139}
22140_ACEOF
22141rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022142if { (ac_try="$ac_compile"
22143case "(($ac_try" in
22144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145 *) ac_try_echo=$ac_try;;
22146esac
22147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022149 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022150 grep -v '^ *+' conftest.er1 >conftest.err
22151 rm -f conftest.er1
22152 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22156 { (case "(($ac_try" in
22157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158 *) ac_try_echo=$ac_try;;
22159esac
22160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022162 ac_status=$?
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }; } &&
22165 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022166 { (case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22169esac
22170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_member_struct_sockaddr_un_sun_len=yes
22176else
22177 echo "$as_me: failed program was:" >&5
22178sed 's/^/| /' conftest.$ac_ext >&5
22179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022180 ac_cv_member_struct_sockaddr_un_sun_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022181fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022182
Jeremy White0ebeb532006-06-20 13:18:41 +020022183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022184fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022185
Jeremy White0ebeb532006-06-20 13:18:41 +020022186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022187fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022188{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22189echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022190if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22191
22192cat >>confdefs.h <<_ACEOF
22193#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22194_ACEOF
22195
22196
Juergen Lock2d33ab92000-02-13 16:03:29 +000022197fi
22198
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022199
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022200{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22201echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022202if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22203 echo $ECHO_N "(cached) $ECHO_C" >&6
22204else
22205 cat >conftest.$ac_ext <<_ACEOF
22206/* confdefs.h. */
22207_ACEOF
22208cat confdefs.h >>conftest.$ac_ext
22209cat >>conftest.$ac_ext <<_ACEOF
22210/* end confdefs.h. */
22211#include <sys/types.h>
22212#ifdef HAVE_SCSI_SG_H
22213#include <scsi/sg.h>
22214#endif
22215
22216int
22217main ()
22218{
22219static scsireq_t ac_aggr;
22220if (ac_aggr.cmd)
22221return 0;
22222 ;
22223 return 0;
22224}
22225_ACEOF
22226rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022227if { (ac_try="$ac_compile"
22228case "(($ac_try" in
22229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22230 *) ac_try_echo=$ac_try;;
22231esac
22232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22233 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022234 ac_status=$?
22235 grep -v '^ *+' conftest.er1 >conftest.err
22236 rm -f conftest.er1
22237 cat conftest.err >&5
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22241 { (case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22244esac
22245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022251 { (case "(($ac_try" in
22252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22253 *) ac_try_echo=$ac_try;;
22254esac
22255eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22256 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022257 ac_status=$?
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); }; }; then
22260 ac_cv_member_scsireq_t_cmd=yes
22261else
22262 echo "$as_me: failed program was:" >&5
22263sed 's/^/| /' conftest.$ac_ext >&5
22264
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022265 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022266/* confdefs.h. */
22267_ACEOF
22268cat confdefs.h >>conftest.$ac_ext
22269cat >>conftest.$ac_ext <<_ACEOF
22270/* end confdefs.h. */
22271#include <sys/types.h>
22272#ifdef HAVE_SCSI_SG_H
22273#include <scsi/sg.h>
22274#endif
22275
22276int
22277main ()
22278{
22279static scsireq_t ac_aggr;
22280if (sizeof ac_aggr.cmd)
22281return 0;
22282 ;
22283 return 0;
22284}
22285_ACEOF
22286rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022287if { (ac_try="$ac_compile"
22288case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22291esac
22292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022294 ac_status=$?
22295 grep -v '^ *+' conftest.er1 >conftest.err
22296 rm -f conftest.er1
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22301 { (case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22304esac
22305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022307 ac_status=$?
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); }; } &&
22310 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022311 { (case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22314esac
22315eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022317 ac_status=$?
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; }; then
22320 ac_cv_member_scsireq_t_cmd=yes
22321else
22322 echo "$as_me: failed program was:" >&5
22323sed 's/^/| /' conftest.$ac_ext >&5
22324
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022325 ac_cv_member_scsireq_t_cmd=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022326fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022327
Jeremy White0ebeb532006-06-20 13:18:41 +020022328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022329fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022330
Jeremy White0ebeb532006-06-20 13:18:41 +020022331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022332fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022333{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22334echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022335if test $ac_cv_member_scsireq_t_cmd = yes; then
22336
22337cat >>confdefs.h <<_ACEOF
22338#define HAVE_SCSIREQ_T_CMD 1
22339_ACEOF
22340
22341
22342fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022343{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22344echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022345if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347else
22348 cat >conftest.$ac_ext <<_ACEOF
22349/* confdefs.h. */
22350_ACEOF
22351cat confdefs.h >>conftest.$ac_ext
22352cat >>conftest.$ac_ext <<_ACEOF
22353/* end confdefs.h. */
22354#include <sys/types.h>
22355#ifdef HAVE_SCSI_SG_H
22356#include <scsi/sg.h>
22357#endif
22358
22359int
22360main ()
22361{
22362static sg_io_hdr_t ac_aggr;
22363if (ac_aggr.interface_id)
22364return 0;
22365 ;
22366 return 0;
22367}
22368_ACEOF
22369rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022370if { (ac_try="$ac_compile"
22371case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22374esac
22375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022377 ac_status=$?
22378 grep -v '^ *+' conftest.er1 >conftest.err
22379 rm -f conftest.er1
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22384 { (case "(($ac_try" in
22385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22386 *) ac_try_echo=$ac_try;;
22387esac
22388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22389 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022394 { (case "(($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_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; }; then
22403 ac_cv_member_sg_io_hdr_t_interface_id=yes
22404else
22405 echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022408 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022409/* confdefs.h. */
22410_ACEOF
22411cat confdefs.h >>conftest.$ac_ext
22412cat >>conftest.$ac_ext <<_ACEOF
22413/* end confdefs.h. */
22414#include <sys/types.h>
22415#ifdef HAVE_SCSI_SG_H
22416#include <scsi/sg.h>
22417#endif
22418
22419int
22420main ()
22421{
22422static sg_io_hdr_t ac_aggr;
22423if (sizeof ac_aggr.interface_id)
22424return 0;
22425 ;
22426 return 0;
22427}
22428_ACEOF
22429rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022430if { (ac_try="$ac_compile"
22431case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22434esac
22435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022437 ac_status=$?
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22444 { (case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447esac
22448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022454 { (case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457esac
22458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_member_sg_io_hdr_t_interface_id=yes
22464else
22465 echo "$as_me: failed program was:" >&5
22466sed 's/^/| /' conftest.$ac_ext >&5
22467
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022468 ac_cv_member_sg_io_hdr_t_interface_id=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022469fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022470
Jeremy White0ebeb532006-06-20 13:18:41 +020022471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022472fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022473
Jeremy White0ebeb532006-06-20 13:18:41 +020022474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022475fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022476{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22477echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022478if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22479
22480cat >>confdefs.h <<_ACEOF
22481#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22482_ACEOF
22483
22484
22485fi
22486
22487
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022488{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22489echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022490if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492else
22493 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022494/* confdefs.h. */
22495_ACEOF
22496cat confdefs.h >>conftest.$ac_ext
22497cat >>conftest.$ac_ext <<_ACEOF
22498/* end confdefs.h. */
22499#include <signal.h>
22500
22501int
22502main ()
22503{
22504static siginfo_t ac_aggr;
22505if (ac_aggr.si_fd)
22506return 0;
22507 ;
22508 return 0;
22509}
22510_ACEOF
22511rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022512if { (ac_try="$ac_compile"
22513case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516esac
22517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022519 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22526 { (case "(($ac_try" in
22527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22528 *) ac_try_echo=$ac_try;;
22529esac
22530eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22531 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022532 ac_status=$?
22533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22534 (exit $ac_status); }; } &&
22535 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022536 { (case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539esac
22540eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22541 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; }; then
22545 ac_cv_member_siginfo_t_si_fd=yes
22546else
22547 echo "$as_me: failed program was:" >&5
22548sed 's/^/| /' conftest.$ac_ext >&5
22549
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022550 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022551/* confdefs.h. */
22552_ACEOF
22553cat confdefs.h >>conftest.$ac_ext
22554cat >>conftest.$ac_ext <<_ACEOF
22555/* end confdefs.h. */
22556#include <signal.h>
22557
22558int
22559main ()
22560{
22561static siginfo_t ac_aggr;
22562if (sizeof ac_aggr.si_fd)
22563return 0;
22564 ;
22565 return 0;
22566}
22567_ACEOF
22568rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022569if { (ac_try="$ac_compile"
22570case "(($ac_try" in
22571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22572 *) ac_try_echo=$ac_try;;
22573esac
22574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22575 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022576 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022577 grep -v '^ *+' conftest.er1 >conftest.err
22578 rm -f conftest.er1
22579 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22581 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22583 { (case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22586esac
22587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22588 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022589 ac_status=$?
22590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591 (exit $ac_status); }; } &&
22592 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022593 { (case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596esac
22597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }; then
22602 ac_cv_member_siginfo_t_si_fd=yes
22603else
22604 echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022607 ac_cv_member_siginfo_t_si_fd=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022608fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022609
Jeremy White0ebeb532006-06-20 13:18:41 +020022610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022611fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022612
Jeremy White0ebeb532006-06-20 13:18:41 +020022613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022614fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022615{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22616echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022617if test $ac_cv_member_siginfo_t_si_fd = yes; then
22618
22619cat >>confdefs.h <<_ACEOF
22620#define HAVE_SIGINFO_T_SI_FD 1
22621_ACEOF
22622
22623
22624fi
22625
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022626
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022627{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22628echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022629if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22630 echo $ECHO_N "(cached) $ECHO_C" >&6
22631else
22632 cat >conftest.$ac_ext <<_ACEOF
22633/* confdefs.h. */
22634_ACEOF
22635cat confdefs.h >>conftest.$ac_ext
22636cat >>conftest.$ac_ext <<_ACEOF
22637/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022638#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022639#ifdef HAVE_SYS_MTIO_H
22640#include <sys/mtio.h>
22641#endif
22642
22643int
22644main ()
22645{
22646static struct mtget ac_aggr;
22647if (ac_aggr.mt_blksiz)
22648return 0;
22649 ;
22650 return 0;
22651}
22652_ACEOF
22653rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022654if { (ac_try="$ac_compile"
22655case "(($ac_try" in
22656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22657 *) ac_try_echo=$ac_try;;
22658esac
22659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22660 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022661 ac_status=$?
22662 grep -v '^ *+' conftest.er1 >conftest.err
22663 rm -f conftest.er1
22664 cat conftest.err >&5
22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22668 { (case "(($ac_try" in
22669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22671esac
22672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22673 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022674 ac_status=$?
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; } &&
22677 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022678 { (case "(($ac_try" in
22679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22680 *) ac_try_echo=$ac_try;;
22681esac
22682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22683 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022684 ac_status=$?
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); }; }; then
22687 ac_cv_member_struct_mtget_mt_blksiz=yes
22688else
22689 echo "$as_me: failed program was:" >&5
22690sed 's/^/| /' conftest.$ac_ext >&5
22691
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022692 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022693/* confdefs.h. */
22694_ACEOF
22695cat confdefs.h >>conftest.$ac_ext
22696cat >>conftest.$ac_ext <<_ACEOF
22697/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022698#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022699#ifdef HAVE_SYS_MTIO_H
22700#include <sys/mtio.h>
22701#endif
22702
22703int
22704main ()
22705{
22706static struct mtget ac_aggr;
22707if (sizeof ac_aggr.mt_blksiz)
22708return 0;
22709 ;
22710 return 0;
22711}
22712_ACEOF
22713rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022714if { (ac_try="$ac_compile"
22715case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22718esac
22719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022721 ac_status=$?
22722 grep -v '^ *+' conftest.er1 >conftest.err
22723 rm -f conftest.er1
22724 cat conftest.err >&5
22725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22726 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22728 { (case "(($ac_try" in
22729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22730 *) ac_try_echo=$ac_try;;
22731esac
22732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22733 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022734 ac_status=$?
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); }; } &&
22737 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022738 { (case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741esac
22742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022744 ac_status=$?
22745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22746 (exit $ac_status); }; }; then
22747 ac_cv_member_struct_mtget_mt_blksiz=yes
22748else
22749 echo "$as_me: failed program was:" >&5
22750sed 's/^/| /' conftest.$ac_ext >&5
22751
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022752 ac_cv_member_struct_mtget_mt_blksiz=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022753fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022754
Jeremy White0ebeb532006-06-20 13:18:41 +020022755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022756fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022757
Jeremy White0ebeb532006-06-20 13:18:41 +020022758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022759fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022760{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22761echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022762if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22763
22764cat >>confdefs.h <<_ACEOF
22765#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22766_ACEOF
22767
22768
22769fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022770{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22771echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022772if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22773 echo $ECHO_N "(cached) $ECHO_C" >&6
22774else
22775 cat >conftest.$ac_ext <<_ACEOF
22776/* confdefs.h. */
22777_ACEOF
22778cat confdefs.h >>conftest.$ac_ext
22779cat >>conftest.$ac_ext <<_ACEOF
22780/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022781#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022782#ifdef HAVE_SYS_MTIO_H
22783#include <sys/mtio.h>
22784#endif
22785
22786int
22787main ()
22788{
22789static struct mtget ac_aggr;
22790if (ac_aggr.mt_gstat)
22791return 0;
22792 ;
22793 return 0;
22794}
22795_ACEOF
22796rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022797if { (ac_try="$ac_compile"
22798case "(($ac_try" in
22799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800 *) ac_try_echo=$ac_try;;
22801esac
22802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022804 ac_status=$?
22805 grep -v '^ *+' conftest.er1 >conftest.err
22806 rm -f conftest.er1
22807 cat conftest.err >&5
22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22811 { (case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814esac
22815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022821 { (case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22824esac
22825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; }; then
22830 ac_cv_member_struct_mtget_mt_gstat=yes
22831else
22832 echo "$as_me: failed program was:" >&5
22833sed 's/^/| /' conftest.$ac_ext >&5
22834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022835 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022836/* confdefs.h. */
22837_ACEOF
22838cat confdefs.h >>conftest.$ac_ext
22839cat >>conftest.$ac_ext <<_ACEOF
22840/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022841#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022842#ifdef HAVE_SYS_MTIO_H
22843#include <sys/mtio.h>
22844#endif
22845
22846int
22847main ()
22848{
22849static struct mtget ac_aggr;
22850if (sizeof ac_aggr.mt_gstat)
22851return 0;
22852 ;
22853 return 0;
22854}
22855_ACEOF
22856rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022857if { (ac_try="$ac_compile"
22858case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22861esac
22862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022864 ac_status=$?
22865 grep -v '^ *+' conftest.er1 >conftest.err
22866 rm -f conftest.er1
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22871 { (case "(($ac_try" in
22872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22873 *) ac_try_echo=$ac_try;;
22874esac
22875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22876 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022877 ac_status=$?
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); }; } &&
22880 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022881 { (case "(($ac_try" in
22882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883 *) ac_try_echo=$ac_try;;
22884esac
22885eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; }; then
22890 ac_cv_member_struct_mtget_mt_gstat=yes
22891else
22892 echo "$as_me: failed program was:" >&5
22893sed 's/^/| /' conftest.$ac_ext >&5
22894
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022895 ac_cv_member_struct_mtget_mt_gstat=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022896fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022897
Jeremy White0ebeb532006-06-20 13:18:41 +020022898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022899fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022900
Jeremy White0ebeb532006-06-20 13:18:41 +020022901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022902fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022903{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
22904echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022905if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
22906
22907cat >>confdefs.h <<_ACEOF
22908#define HAVE_STRUCT_MTGET_MT_GSTAT 1
22909_ACEOF
22910
22911
22912fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022913{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
22914echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022915if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917else
22918 cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022924#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022925#ifdef HAVE_SYS_MTIO_H
22926#include <sys/mtio.h>
22927#endif
22928
22929int
22930main ()
22931{
22932static struct mtget ac_aggr;
22933if (ac_aggr.mt_blkno)
22934return 0;
22935 ;
22936 return 0;
22937}
22938_ACEOF
22939rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022940if { (ac_try="$ac_compile"
22941case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22944esac
22945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022947 ac_status=$?
22948 grep -v '^ *+' conftest.er1 >conftest.err
22949 rm -f conftest.er1
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22954 { (case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22957esac
22958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022960 ac_status=$?
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); }; } &&
22963 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022964 { (case "(($ac_try" in
22965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966 *) ac_try_echo=$ac_try;;
22967esac
22968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022970 ac_status=$?
22971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972 (exit $ac_status); }; }; then
22973 ac_cv_member_struct_mtget_mt_blkno=yes
22974else
22975 echo "$as_me: failed program was:" >&5
22976sed 's/^/| /' conftest.$ac_ext >&5
22977
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022978 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022979/* confdefs.h. */
22980_ACEOF
22981cat confdefs.h >>conftest.$ac_ext
22982cat >>conftest.$ac_ext <<_ACEOF
22983/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022984#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010022985#ifdef HAVE_SYS_MTIO_H
22986#include <sys/mtio.h>
22987#endif
22988
22989int
22990main ()
22991{
22992static struct mtget ac_aggr;
22993if (sizeof ac_aggr.mt_blkno)
22994return 0;
22995 ;
22996 return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023000if { (ac_try="$ac_compile"
23001case "(($ac_try" in
23002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003 *) ac_try_echo=$ac_try;;
23004esac
23005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23006 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023007 ac_status=$?
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23014 { (case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23017esac
23018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23019 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023020 ac_status=$?
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); }; } &&
23023 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023024 { (case "(($ac_try" in
23025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23026 *) ac_try_echo=$ac_try;;
23027esac
23028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23029 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_cv_member_struct_mtget_mt_blkno=yes
23034else
23035 echo "$as_me: failed program was:" >&5
23036sed 's/^/| /' conftest.$ac_ext >&5
23037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023038 ac_cv_member_struct_mtget_mt_blkno=no
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023039fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023040
Jeremy White0ebeb532006-06-20 13:18:41 +020023041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023042fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023043
Jeremy White0ebeb532006-06-20 13:18:41 +020023044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023045fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023046{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23047echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023048if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23049
23050cat >>confdefs.h <<_ACEOF
23051#define HAVE_STRUCT_MTGET_MT_BLKNO 1
23052_ACEOF
23053
23054
23055fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023056
23057
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023058{ echo "$as_me:$LINENO: checking for struct option.name" >&5
23059echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023060if test "${ac_cv_member_struct_option_name+set}" = set; then
23061 echo $ECHO_N "(cached) $ECHO_C" >&6
23062else
23063 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023064/* confdefs.h. */
23065_ACEOF
23066cat confdefs.h >>conftest.$ac_ext
23067cat >>conftest.$ac_ext <<_ACEOF
23068/* end confdefs.h. */
23069#ifdef HAVE_GETOPT_H
23070#include <getopt.h>
23071#endif
23072
23073int
23074main ()
23075{
23076static struct option ac_aggr;
23077if (ac_aggr.name)
23078return 0;
23079 ;
23080 return 0;
23081}
23082_ACEOF
23083rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023084if { (ac_try="$ac_compile"
23085case "(($ac_try" in
23086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23087 *) ac_try_echo=$ac_try;;
23088esac
23089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23090 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023091 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023092 grep -v '^ *+' conftest.er1 >conftest.err
23093 rm -f conftest.er1
23094 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23098 { (case "(($ac_try" in
23099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23100 *) ac_try_echo=$ac_try;;
23101esac
23102eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23103 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; } &&
23107 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023108 { (case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111esac
23112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23113 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23117 ac_cv_member_struct_option_name=yes
23118else
23119 echo "$as_me: failed program was:" >&5
23120sed 's/^/| /' conftest.$ac_ext >&5
23121
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023122 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023123/* confdefs.h. */
23124_ACEOF
23125cat confdefs.h >>conftest.$ac_ext
23126cat >>conftest.$ac_ext <<_ACEOF
23127/* end confdefs.h. */
23128#ifdef HAVE_GETOPT_H
23129#include <getopt.h>
23130#endif
23131
23132int
23133main ()
23134{
23135static struct option ac_aggr;
23136if (sizeof ac_aggr.name)
23137return 0;
23138 ;
23139 return 0;
23140}
23141_ACEOF
23142rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023143if { (ac_try="$ac_compile"
23144case "(($ac_try" in
23145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23146 *) ac_try_echo=$ac_try;;
23147esac
23148eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23149 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023150 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023151 grep -v '^ *+' conftest.er1 >conftest.err
23152 rm -f conftest.er1
23153 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160esac
23161eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; } &&
23166 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023167 { (case "(($ac_try" in
23168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23169 *) ac_try_echo=$ac_try;;
23170esac
23171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23172 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; }; then
23176 ac_cv_member_struct_option_name=yes
23177else
23178 echo "$as_me: failed program was:" >&5
23179sed 's/^/| /' conftest.$ac_ext >&5
23180
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023181 ac_cv_member_struct_option_name=no
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023182fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023183
Jeremy White0ebeb532006-06-20 13:18:41 +020023184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023185fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023186
Jeremy White0ebeb532006-06-20 13:18:41 +020023187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023188fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023189{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23190echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023191if test $ac_cv_member_struct_option_name = yes; then
23192
23193cat >>confdefs.h <<_ACEOF
23194#define HAVE_STRUCT_OPTION_NAME 1
23195_ACEOF
23196
23197
23198fi
23199
23200
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023201{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23202echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023203if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23205else
23206 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213int
23214main ()
23215{
23216static struct stat ac_aggr;
23217if (ac_aggr.st_blocks)
23218return 0;
23219 ;
23220 return 0;
23221}
23222_ACEOF
23223rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023224if { (ac_try="$ac_compile"
23225case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23228esac
23229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023231 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23238 { (case "(($ac_try" in
23239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23240 *) ac_try_echo=$ac_try;;
23241esac
23242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23243 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023244 ac_status=$?
23245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); }; } &&
23247 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023248 { (case "(($ac_try" in
23249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250 *) ac_try_echo=$ac_try;;
23251esac
23252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23253 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023254 ac_status=$?
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); }; }; then
23257 ac_cv_member_struct_stat_st_blocks=yes
23258else
23259 echo "$as_me: failed program was:" >&5
23260sed 's/^/| /' conftest.$ac_ext >&5
23261
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023262 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023263/* confdefs.h. */
23264_ACEOF
23265cat confdefs.h >>conftest.$ac_ext
23266cat >>conftest.$ac_ext <<_ACEOF
23267/* end confdefs.h. */
23268$ac_includes_default
23269int
23270main ()
23271{
23272static struct stat ac_aggr;
23273if (sizeof ac_aggr.st_blocks)
23274return 0;
23275 ;
23276 return 0;
23277}
23278_ACEOF
23279rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023280if { (ac_try="$ac_compile"
23281case "(($ac_try" in
23282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23283 *) ac_try_echo=$ac_try;;
23284esac
23285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23286 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023287 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023288 grep -v '^ *+' conftest.er1 >conftest.err
23289 rm -f conftest.er1
23290 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23294 { (case "(($ac_try" in
23295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23296 *) ac_try_echo=$ac_try;;
23297esac
23298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23299 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023300 ac_status=$?
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023304 { (case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23307esac
23308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023310 ac_status=$?
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ac_cv_member_struct_stat_st_blocks=yes
23314else
23315 echo "$as_me: failed program was:" >&5
23316sed 's/^/| /' conftest.$ac_ext >&5
23317
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023318 ac_cv_member_struct_stat_st_blocks=no
Pavel Roskind6507192003-10-03 03:28:40 +000023319fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023320
Jeremy White0ebeb532006-06-20 13:18:41 +020023321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023322fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023323
Jeremy White0ebeb532006-06-20 13:18:41 +020023324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023325fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023326{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23327echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023328if test $ac_cv_member_struct_stat_st_blocks = yes; then
23329
23330cat >>confdefs.h <<_ACEOF
23331#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23332_ACEOF
23333
23334
23335fi
23336
23337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023338{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23339echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023340if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23342else
23343 cat >conftest.$ac_ext <<_ACEOF
23344/* confdefs.h. */
23345_ACEOF
23346cat confdefs.h >>conftest.$ac_ext
23347cat >>conftest.$ac_ext <<_ACEOF
23348/* end confdefs.h. */
23349#ifdef HAVE_SYS_TYPES_H
23350#include <sys/types.h>
23351#endif
23352#ifdef HAVE_NETINET_IN_H
23353#include <netinet/in.h>
23354#endif
23355
23356int
23357main ()
23358{
23359static struct sockaddr_in6 ac_aggr;
23360if (ac_aggr.sin6_scope_id)
23361return 0;
23362 ;
23363 return 0;
23364}
23365_ACEOF
23366rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023367if { (ac_try="$ac_compile"
23368case "(($ac_try" in
23369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370 *) ac_try_echo=$ac_try;;
23371esac
23372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023374 ac_status=$?
23375 grep -v '^ *+' conftest.er1 >conftest.err
23376 rm -f conftest.er1
23377 cat conftest.err >&5
23378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23381 { (case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23384esac
23385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; } &&
23390 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023391 { (case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23394esac
23395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23396 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023405 cat >conftest.$ac_ext <<_ACEOF
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023406/* confdefs.h. */
23407_ACEOF
23408cat confdefs.h >>conftest.$ac_ext
23409cat >>conftest.$ac_ext <<_ACEOF
23410/* end confdefs.h. */
23411#ifdef HAVE_SYS_TYPES_H
23412#include <sys/types.h>
23413#endif
23414#ifdef HAVE_NETINET_IN_H
23415#include <netinet/in.h>
23416#endif
23417
23418int
23419main ()
23420{
23421static struct sockaddr_in6 ac_aggr;
23422if (sizeof ac_aggr.sin6_scope_id)
23423return 0;
23424 ;
23425 return 0;
23426}
23427_ACEOF
23428rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023429if { (ac_try="$ac_compile"
23430case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23433esac
23434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23435 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023436 ac_status=$?
23437 grep -v '^ *+' conftest.er1 >conftest.err
23438 rm -f conftest.er1
23439 cat conftest.err >&5
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23443 { (case "(($ac_try" in
23444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445 *) ac_try_echo=$ac_try;;
23446esac
23447eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023449 ac_status=$?
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; } &&
23452 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023453 { (case "(($ac_try" in
23454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23455 *) ac_try_echo=$ac_try;;
23456esac
23457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23458 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23463else
23464 echo "$as_me: failed program was:" >&5
23465sed 's/^/| /' conftest.$ac_ext >&5
23466
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023467 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023468fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023469
Jeremy White0ebeb532006-06-20 13:18:41 +020023470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023471fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023472
Jeremy White0ebeb532006-06-20 13:18:41 +020023473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023474fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023475{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23476echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023477if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23478
23479cat >>confdefs.h <<_ACEOF
23480#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23481_ACEOF
23482
23483
23484fi
23485
23486
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023487{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23488echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23489if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23490 echo $ECHO_N "(cached) $ECHO_C" >&6
23491else
23492 cat >conftest.$ac_ext <<_ACEOF
23493/* confdefs.h. */
23494_ACEOF
23495cat confdefs.h >>conftest.$ac_ext
23496cat >>conftest.$ac_ext <<_ACEOF
23497/* end confdefs.h. */
23498#ifdef HAVE_SYS_TYPES_H
23499#include <sys/types.h>
23500#endif
23501#ifdef HAVE_NETINET_IN_H
23502# include <netinet/in.h>
23503#endif
23504#ifdef HAVE_ARPA_NAMESER_H
23505# include <arpa/nameser.h>
23506#endif
23507
23508int
23509main ()
23510{
23511static ns_msg ac_aggr;
23512if (ac_aggr._msg_ptr)
23513return 0;
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023519if { (ac_try="$ac_compile"
23520case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23523esac
23524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023526 ac_status=$?
23527 grep -v '^ *+' conftest.er1 >conftest.err
23528 rm -f conftest.er1
23529 cat conftest.err >&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23533 { (case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536esac
23537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023539 ac_status=$?
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); }; } &&
23542 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023543 { (case "(($ac_try" in
23544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23545 *) ac_try_echo=$ac_try;;
23546esac
23547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23548 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023549 ac_status=$?
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; }; then
23552 ac_cv_member_ns_msg__msg_ptr=yes
23553else
23554 echo "$as_me: failed program was:" >&5
23555sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 cat >conftest.$ac_ext <<_ACEOF
23558/* confdefs.h. */
23559_ACEOF
23560cat confdefs.h >>conftest.$ac_ext
23561cat >>conftest.$ac_ext <<_ACEOF
23562/* end confdefs.h. */
23563#ifdef HAVE_SYS_TYPES_H
23564#include <sys/types.h>
23565#endif
23566#ifdef HAVE_NETINET_IN_H
23567# include <netinet/in.h>
23568#endif
23569#ifdef HAVE_ARPA_NAMESER_H
23570# include <arpa/nameser.h>
23571#endif
23572
23573int
23574main ()
23575{
23576static ns_msg ac_aggr;
23577if (sizeof ac_aggr._msg_ptr)
23578return 0;
23579 ;
23580 return 0;
23581}
23582_ACEOF
23583rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023584if { (ac_try="$ac_compile"
23585case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23588esac
23589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23598 { (case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601esac
23602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23603 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023608 { (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 Julliard788e30f2006-05-31 14:43:21 +020023614 ac_status=$?
23615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23616 (exit $ac_status); }; }; then
23617 ac_cv_member_ns_msg__msg_ptr=yes
23618else
23619 echo "$as_me: failed program was:" >&5
23620sed 's/^/| /' conftest.$ac_ext >&5
23621
23622 ac_cv_member_ns_msg__msg_ptr=no
23623fi
23624
Jeremy White0ebeb532006-06-20 13:18:41 +020023625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023626fi
23627
Jeremy White0ebeb532006-06-20 13:18:41 +020023628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023629fi
23630{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23631echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23632if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23633
23634cat >>confdefs.h <<_ACEOF
23635#define HAVE_NS_MSG__MSG_PTR 1
23636_ACEOF
23637
23638
23639fi
23640
23641
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023642{ echo "$as_me:$LINENO: checking for timezone variable" >&5
23643echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023644if test "${ac_cv_have_timezone+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23646else
23647 cat >conftest.$ac_ext <<_ACEOF
23648/* confdefs.h. */
23649_ACEOF
23650cat confdefs.h >>conftest.$ac_ext
23651cat >>conftest.$ac_ext <<_ACEOF
23652/* end confdefs.h. */
23653#include <time.h>
23654int
23655main ()
23656{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020023657timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000023658 ;
23659 return 0;
23660}
23661_ACEOF
23662rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020023663if { (ac_try="$ac_link"
23664case "(($ac_try" in
23665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23666 *) ac_try_echo=$ac_try;;
23667esac
23668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23669 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000023670 ac_status=$?
23671 grep -v '^ *+' conftest.er1 >conftest.err
23672 rm -f conftest.er1
23673 cat conftest.err >&5
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23677 { (case "(($ac_try" in
23678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23679 *) ac_try_echo=$ac_try;;
23680esac
23681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23682 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; } &&
23686 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023687 { (case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690esac
23691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023693 ac_status=$?
23694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695 (exit $ac_status); }; }; then
23696 ac_cv_have_timezone="yes"
23697else
23698 echo "$as_me: failed program was:" >&5
23699sed 's/^/| /' conftest.$ac_ext >&5
23700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023701 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000023702fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023703
Jeremy White0ebeb532006-06-20 13:18:41 +020023704rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000023705 conftest$ac_exeext conftest.$ac_ext
23706fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023707{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23708echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023709if test "$ac_cv_have_timezone" = "yes"
23710then
23711
23712cat >>confdefs.h <<\_ACEOF
23713#define HAVE_TIMEZONE 1
23714_ACEOF
23715
23716fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023717{ echo "$as_me:$LINENO: checking for daylight variable" >&5
23718echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023719if test "${ac_cv_have_daylight+set}" = set; then
23720 echo $ECHO_N "(cached) $ECHO_C" >&6
23721else
23722 cat >conftest.$ac_ext <<_ACEOF
23723/* confdefs.h. */
23724_ACEOF
23725cat confdefs.h >>conftest.$ac_ext
23726cat >>conftest.$ac_ext <<_ACEOF
23727/* end confdefs.h. */
23728#include <time.h>
23729int
23730main ()
23731{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020023732daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000023733 ;
23734 return 0;
23735}
23736_ACEOF
23737rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020023738if { (ac_try="$ac_link"
23739case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23742esac
23743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23744 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000023745 ac_status=$?
23746 grep -v '^ *+' conftest.er1 >conftest.err
23747 rm -f conftest.er1
23748 cat conftest.err >&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23752 { (case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23755esac
23756eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; } &&
23761 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023762 { (case "(($ac_try" in
23763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23764 *) ac_try_echo=$ac_try;;
23765esac
23766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23767 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023768 ac_status=$?
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); }; }; then
23771 ac_cv_have_daylight="yes"
23772else
23773 echo "$as_me: failed program was:" >&5
23774sed 's/^/| /' conftest.$ac_ext >&5
23775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023776 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000023777fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023778
Jeremy White0ebeb532006-06-20 13:18:41 +020023779rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000023780 conftest$ac_exeext conftest.$ac_ext
23781fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023782{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23783echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023784if test "$ac_cv_have_daylight" = "yes"
23785then
23786
23787cat >>confdefs.h <<\_ACEOF
23788#define HAVE_DAYLIGHT 1
23789_ACEOF
23790
23791fi
23792
Alexandre Julliarddaa28862002-04-11 21:54:01 +000023793
Alexandre Julliardfc01b722002-05-12 03:16:39 +000023794case $host_cpu in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023795 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23796echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023797if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000023798 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000023799else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000023800 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000023801/* confdefs.h. */
23802_ACEOF
23803cat confdefs.h >>conftest.$ac_ext
23804cat >>conftest.$ac_ext <<_ACEOF
23805/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000023806#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000023807yes
23808#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000023809_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000023810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000023811 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000023812 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000023813else
Alexandre Julliard05783b52002-12-11 00:21:55 +000023814 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000023815fi
23816rm -f conftest*
23817
23818fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023819{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
23820echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023821if test $ac_cv_cpp_def___i386__ = yes; then
23822 CFLAGS="$CFLAGS -D__i386__"
23823 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000023824fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000023825 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023826 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
23827echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000023828if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
23829 echo $ECHO_N "(cached) $ECHO_C" >&6
23830else
23831 cat >conftest.$ac_ext <<_ACEOF
23832/* confdefs.h. */
23833_ACEOF
23834cat confdefs.h >>conftest.$ac_ext
23835cat >>conftest.$ac_ext <<_ACEOF
23836/* end confdefs.h. */
23837#ifndef __x86_64__
23838yes
23839#endif
23840_ACEOF
23841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23842 $EGREP "yes" >/dev/null 2>&1; then
23843 ac_cv_cpp_def___x86_64__=yes
23844else
23845 ac_cv_cpp_def___x86_64__=no
23846fi
23847rm -f conftest*
23848
23849fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023850{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
23851echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000023852if test $ac_cv_cpp_def___x86_64__ = yes; then
23853 CFLAGS="$CFLAGS -D__x86_64__"
23854 LINTFLAGS="$LINTFLAGS -D__x86_64__"
23855fi
Alexandre Julliard58c64192006-07-10 13:05:20 +020023856
23857 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
23858echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
23859if test "${ac_cv_cpp_def__WIN64+set}" = set; then
23860 echo $ECHO_N "(cached) $ECHO_C" >&6
23861else
23862 cat >conftest.$ac_ext <<_ACEOF
23863/* confdefs.h. */
23864_ACEOF
23865cat confdefs.h >>conftest.$ac_ext
23866cat >>conftest.$ac_ext <<_ACEOF
23867/* end confdefs.h. */
23868#ifndef _WIN64
23869yes
23870#endif
23871_ACEOF
23872if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23873 $EGREP "yes" >/dev/null 2>&1; then
23874 ac_cv_cpp_def__WIN64=yes
23875else
23876 ac_cv_cpp_def__WIN64=no
23877fi
23878rm -f conftest*
23879
23880fi
23881{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
23882echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
23883if test $ac_cv_cpp_def__WIN64 = yes; then
23884 CFLAGS="$CFLAGS -D_WIN64"
23885 LINTFLAGS="$LINTFLAGS -D_WIN64"
23886fi
Alexandre Julliarde3be5642005-09-09 09:30:02 +000023887 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023888 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
23889echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023890if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000023891 echo $ECHO_N "(cached) $ECHO_C" >&6
23892else
23893 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000023894/* confdefs.h. */
23895_ACEOF
23896cat confdefs.h >>conftest.$ac_ext
23897cat >>conftest.$ac_ext <<_ACEOF
23898/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000023899#ifndef __ALPHA__
23900yes
23901#endif
23902_ACEOF
23903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23904 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000023905 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000023906else
Alexandre Julliard05783b52002-12-11 00:21:55 +000023907 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000023908fi
23909rm -f conftest*
23910
23911fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023912{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
23913echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023914if test $ac_cv_cpp_def___ALPHA__ = yes; then
23915 CFLAGS="$CFLAGS -D__ALPHA__"
23916 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000023917fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000023918 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023919 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
23920echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023921if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023922 echo $ECHO_N "(cached) $ECHO_C" >&6
23923else
23924 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000023925/* confdefs.h. */
23926_ACEOF
23927cat confdefs.h >>conftest.$ac_ext
23928cat >>conftest.$ac_ext <<_ACEOF
23929/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023930#ifndef __sparc__
23931yes
23932#endif
23933_ACEOF
23934if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000023935 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000023936 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023937else
Alexandre Julliard05783b52002-12-11 00:21:55 +000023938 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023939fi
23940rm -f conftest*
23941
23942fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023943{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
23944echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023945if test $ac_cv_cpp_def___sparc__ = yes; then
23946 CFLAGS="$CFLAGS -D__sparc__"
23947 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023948fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000023949 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023950 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
23951echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000023952if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
23953 echo $ECHO_N "(cached) $ECHO_C" >&6
23954else
23955 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000023956/* confdefs.h. */
23957_ACEOF
23958cat confdefs.h >>conftest.$ac_ext
23959cat >>conftest.$ac_ext <<_ACEOF
23960/* end confdefs.h. */
23961#ifndef __powerpc__
23962yes
23963#endif
23964_ACEOF
23965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23966 $EGREP "yes" >/dev/null 2>&1; then
23967 ac_cv_cpp_def___powerpc__=yes
23968else
23969 ac_cv_cpp_def___powerpc__=no
23970fi
23971rm -f conftest*
23972
23973fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023974{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
23975echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000023976if test $ac_cv_cpp_def___powerpc__ = yes; then
23977 CFLAGS="$CFLAGS -D__powerpc__"
23978 LINTFLAGS="$LINTFLAGS -D__powerpc__"
23979fi
23980 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000023981esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023982
23983case $host_vendor in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023984 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
23985echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023986if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988else
23989 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000023990/* confdefs.h. */
23991_ACEOF
23992cat confdefs.h >>conftest.$ac_ext
23993cat >>conftest.$ac_ext <<_ACEOF
23994/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000023995#ifndef __sun__
23996yes
23997#endif
23998_ACEOF
23999if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024000 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024001 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024002else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024003 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024004fi
24005rm -f conftest*
24006
24007fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024008{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24009echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024010if test $ac_cv_cpp_def___sun__ = yes; then
24011 CFLAGS="$CFLAGS -D__sun__"
24012 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024013fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024014 ;;
24015esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024016
24017
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024018
24019
24020
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024021ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024023ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024024
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024025ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024027ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024028
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024029ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024030
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024031ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024032
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000024033
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000024034MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024035
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024036
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000024037MAKE_DLL_RULES=dlls/Makedll.rules
24038
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024039
Alexandre Julliard633b12d2005-08-25 12:14:13 +000024040MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24041
24042
Alexandre Julliardedeee892002-08-09 01:22:40 +000024043MAKE_TEST_RULES=dlls/Maketest.rules
24044
24045
Alexandre Julliard626f4252000-11-10 23:35:20 +000024046MAKE_PROG_RULES=programs/Makeprog.rules
24047
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024048
Paul Vriens95bb9032006-08-29 10:25:47 +020024049ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Makeimplib.rules dlls/Maketest.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/cabinet/tests/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/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/hid/Makefile dlls/hlink/Makefile dlls/hlink/tests/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imaadp32.acm/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/infosoft/Makefile dlls/infosoft/tests/Makefile dlls/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/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/pstorec/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/wintrust/tests/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/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/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024050
Alexandre Julliard626f4252000-11-10 23:35:20 +000024051
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024052cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024053# This file is a shell script that caches the results of configure
24054# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024055# scripts and configure runs, see configure's option --config-cache.
24056# It is not useful on other systems. If it contains results you don't
24057# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024058#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024059# config.status only pays attention to the cache file if you give it
24060# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024061#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024062# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024063# loading this file, other *unset* `ac_cv_foo' will be assigned the
24064# following values.
24065
24066_ACEOF
24067
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000024068# The following way of writing the cache mishandles newlines in values,
24069# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024070# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024071# Ultrix sh set writes to stderr and can't be redirected directly,
24072# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024073(
24074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24075 eval ac_val=\$$ac_var
24076 case $ac_val in #(
24077 *${as_nl}*)
24078 case $ac_var in #(
24079 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24080echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24081 esac
24082 case $ac_var in #(
24083 _ | IFS | as_nl) ;; #(
24084 *) $as_unset $ac_var ;;
24085 esac ;;
24086 esac
24087 done
24088
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024089 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024090 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24091 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024092 # `set' does not quote correctly, so add quotes (double-quote
24093 # substitution turns \\\\ into \\, and sed turns \\ into \).
24094 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000024095 "s/'/'\\\\''/g;
24096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024097 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024098 *)
24099 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024100 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024101 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024102 esac |
24103 sort
24104) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024105 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024106 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024107 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024108 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024109 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24110 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024111 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24112 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020024113if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24114 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024115 test "x$cache_file" != "x/dev/null" &&
24116 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24117echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024118 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024119 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024120 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24121echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024122 fi
24123fi
24124rm -f confcache
24125
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024126test "x$prefix" = xNONE && prefix=$ac_default_prefix
24127# Let make expand exec_prefix.
24128test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24129
Alexandre Julliard18f92e71996-07-17 20:02:21 +000024130DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024131
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024132ac_libobjs=
24133ac_ltlibobjs=
24134for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24135 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024136 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24137 ac_i=`echo "$ac_i" | sed "$ac_script"`
24138 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24139 # will be set to the directory where LIBOBJS objects are built.
24140 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24141 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024142done
24143LIBOBJS=$ac_libobjs
24144
24145LTLIBOBJS=$ac_ltlibobjs
24146
24147
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024148
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024149: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024150ac_clean_files_save=$ac_clean_files
24151ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024152{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024153echo "$as_me: creating $CONFIG_STATUS" >&6;}
24154cat >$CONFIG_STATUS <<_ACEOF
24155#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024156# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024157# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024158# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024159# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024160
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024161debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024162ac_cs_recheck=false
24163ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024164SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024165_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024166
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024167cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024168## --------------------- ##
24169## M4sh Initialization. ##
24170## --------------------- ##
24171
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024172# Be Bourne compatible
24173if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24174 emulate sh
24175 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024176 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24177 # is contrary to our usage. Disable this feature.
24178 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024179 setopt NO_GLOB_SUBST
24180else
24181 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024182fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024183BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000024184DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024185
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024186
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024187# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024188# Avoid depending upon Character Ranges.
24189as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24190as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24191as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24192as_cr_digits='0123456789'
24193as_cr_alnum=$as_cr_Letters$as_cr_digits
24194
24195# The user is always right.
24196if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024197 echo "#! /bin/sh" >conf$$.sh
24198 echo "exit 0" >>conf$$.sh
24199 chmod +x conf$$.sh
24200 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024201 PATH_SEPARATOR=';'
24202 else
24203 PATH_SEPARATOR=:
24204 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024205 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024206fi
24207
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024208# Support unset when possible.
24209if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24210 as_unset=unset
24211else
24212 as_unset=false
24213fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024214
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024215
24216# IFS
24217# We need space, tab and new line, in precisely that order. Quoting is
24218# there to prevent editors from complaining about space-tab.
24219# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24220# splitting by setting IFS to empty value.)
24221as_nl='
24222'
24223IFS=" "" $as_nl"
24224
24225# Find who we are. Look in the path if we contain no directory separator.
24226case $0 in
24227 *[\\/]* ) as_myself=$0 ;;
24228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024229for as_dir in $PATH
24230do
24231 IFS=$as_save_IFS
24232 test -z "$as_dir" && as_dir=.
24233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24234done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024235IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024236
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024237 ;;
24238esac
24239# We did not find ourselves, most probably we were run as `sh COMMAND'
24240# in which case we are not to be found in the path.
24241if test "x$as_myself" = x; then
24242 as_myself=$0
24243fi
24244if test ! -f "$as_myself"; then
24245 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24246 { (exit 1); exit 1; }
24247fi
24248
24249# Work around bugs in pre-3.0 UWIN ksh.
24250for as_var in ENV MAIL MAILPATH
24251do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24252done
24253PS1='$ '
24254PS2='> '
24255PS4='+ '
24256
24257# NLS nuisances.
24258for as_var in \
24259 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24260 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24261 LC_TELEPHONE LC_TIME
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024262do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024263 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24264 eval $as_var=C; export $as_var
24265 else
24266 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24267 fi
24268done
24269
24270# Required to use basename.
24271if expr a : '\(a\)' >/dev/null 2>&1 &&
24272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24273 as_expr=expr
24274else
24275 as_expr=false
24276fi
24277
24278if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24279 as_basename=basename
24280else
24281 as_basename=false
24282fi
24283
24284
24285# Name of the executable.
24286as_me=`$as_basename -- "$0" ||
24287$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24288 X"$0" : 'X\(//\)$' \| \
24289 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24290echo X/"$0" |
24291 sed '/^.*\/\([^/][^/]*\)\/*$/{
24292 s//\1/
24293 q
24294 }
24295 /^X\/\(\/\/\)$/{
24296 s//\1/
24297 q
24298 }
24299 /^X\/\(\/\).*/{
24300 s//\1/
24301 q
24302 }
24303 s/.*/./; q'`
24304
24305# CDPATH.
24306$as_unset CDPATH
24307
24308
24309
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024310 as_lineno_1=$LINENO
24311 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024312 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024313 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024314
24315 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24316 # uniformly replaced by the line number. The first 'sed' inserts a
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024317 # line-number line after each line using $LINENO; the second 'sed'
24318 # does the real work. The second script uses 'N' to pair each
24319 # line-number line with the line containing $LINENO, and appends
24320 # trailing '-' during substitution so that $LINENO is not a special
24321 # case at line end.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024322 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024323 # scripts with optimization help from Paolo Bonzini. Blame Lee
24324 # E. McMahon (1931-1989) for sed's syntax. :-)
24325 sed -n '
24326 p
24327 /[$]LINENO/=
24328 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024329 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024330 s/[$]LINENO.*/&-/
24331 t lineno
24332 b
24333 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024334 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024335 :loop
24336 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024337 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024338 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024339 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024340 chmod +x "$as_me.lineno" ||
24341 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024342 { (exit 1); exit 1; }; }
24343
24344 # Don't try to exec as it changes $[0], causing all sort of problems
24345 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024346 # original and so on. Autoconf is especially sensitive to this).
24347 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024348 # Exit status is that of the last command.
24349 exit
24350}
24351
24352
Jeremy White0ebeb532006-06-20 13:18:41 +020024353if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024354 as_dirname=dirname
24355else
24356 as_dirname=false
24357fi
24358
24359ECHO_C= ECHO_N= ECHO_T=
24360case `echo -n x` in
24361-n*)
24362 case `echo 'x\c'` in
24363 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24364 *) ECHO_C='\c';;
24365 esac;;
24366*)
24367 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024368esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024369
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024370if expr a : '\(a\)' >/dev/null 2>&1 &&
24371 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024372 as_expr=expr
24373else
24374 as_expr=false
24375fi
24376
24377rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024378if test -d conf$$.dir; then
24379 rm -f conf$$.dir/conf$$.file
24380else
24381 rm -f conf$$.dir
24382 mkdir conf$$.dir
24383fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024384echo >conf$$.file
24385if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024386 as_ln_s='ln -s'
24387 # ... but there are two gotchas:
24388 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24389 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24390 # In both cases, we have to default to `cp -p'.
24391 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024392 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024393elif ln conf$$.file conf$$ 2>/dev/null; then
24394 as_ln_s=ln
24395else
24396 as_ln_s='cp -p'
24397fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024398rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24399rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024400
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024401if mkdir -p . 2>/dev/null; then
24402 as_mkdir_p=:
24403else
Alexandre Julliard875927f2004-01-02 01:55:29 +000024404 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024405 as_mkdir_p=false
24406fi
24407
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024408# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24409# systems may use methods other than mode bits to determine executability.
24410cat >conf$$.file <<_ASEOF
24411#! /bin/sh
24412exit 0
24413_ASEOF
24414chmod +x conf$$.file
24415if test -x conf$$.file >/dev/null 2>&1; then
24416 as_executable_p="test -x"
24417else
24418 as_executable_p=:
24419fi
24420rm -f conf$$.file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024421
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024422# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024423as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024424
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024425# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024426as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024427
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024428
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024429exec 6>&1
24430
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024431# Save the log message, to keep $[0] and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024432# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024433# values after options handling.
24434ac_log="
Alexandre Julliardbf71a2f2006-08-24 16:11:45 +020024435This file was extended by Wine $as_me 0.9.20, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024436generated by GNU Autoconf 2.60a. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024437
24438 CONFIG_FILES = $CONFIG_FILES
24439 CONFIG_HEADERS = $CONFIG_HEADERS
24440 CONFIG_LINKS = $CONFIG_LINKS
24441 CONFIG_COMMANDS = $CONFIG_COMMANDS
24442 $ $0 $@
24443
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024444on `(hostname || uname -n) 2>/dev/null | sed 1q`
24445"
24446
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024447_ACEOF
24448
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024449cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024450# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024451config_files="$ac_config_files"
24452config_headers="$ac_config_headers"
24453config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024455_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024456
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024457cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024458ac_cs_usage="\
24459\`$as_me' instantiates files from templates according to the
24460current configuration.
24461
24462Usage: $0 [OPTIONS] [FILE]...
24463
24464 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020024465 -V, --version print version number and configuration settings, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024466 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024467 -d, --debug don't remove temporary files
24468 --recheck update $as_me by reconfiguring in the same conditions
24469 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024470 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024471 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024472 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024473
24474Configuration files:
24475$config_files
24476
24477Configuration headers:
24478$config_headers
24479
24480Configuration commands:
24481$config_commands
24482
24483Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024484
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024485_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024486cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024487ac_cs_version="\\
Alexandre Julliardbf71a2f2006-08-24 16:11:45 +020024488Wine config.status 0.9.20
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024489configured by $0, generated by GNU Autoconf 2.60a,
Jeremy White0ebeb532006-06-20 13:18:41 +020024490 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024491
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024492Copyright (C) 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024493This config.status script is free software; the Free Software Foundation
24494gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024495
24496ac_pwd='$ac_pwd'
24497srcdir='$srcdir'
24498INSTALL='$INSTALL'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024499_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024500
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024501cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024502# If no file are specified by the user, then we need to provide default
24503# value. By we need to know if files were specified by the user.
24504ac_need_defaults=:
24505while test $# != 0
24506do
24507 case $1 in
24508 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024509 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24510 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024511 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024512 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024513 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024514 ac_option=$1
24515 ac_optarg=$2
24516 ac_shift=shift
24517 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024518 esac
24519
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024520 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024521 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024522 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24523 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024524 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24525 echo "$ac_cs_version"; exit ;;
24526 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024527 debug=: ;;
24528 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024529 $ac_shift
24530 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024531 ac_need_defaults=false;;
24532 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024533 $ac_shift
24534 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024535 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024536 --he | --h)
24537 # Conflict between --help and --header
24538 { echo "$as_me: error: ambiguous option: $1
24539Try \`$0 --help' for more information." >&2
24540 { (exit 1); exit 1; }; };;
24541 --help | --hel | -h )
24542 echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24545 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024546
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024547 # This is an error.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024548 -*) { echo "$as_me: error: unrecognized option: $1
24549Try \`$0 --help' for more information." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024550 { (exit 1); exit 1; }; } ;;
24551
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024552 *) ac_config_targets="$ac_config_targets $1"
24553 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024554
24555 esac
24556 shift
24557done
24558
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024559ac_configure_extra_args=
24560
24561if $ac_cs_silent; then
24562 exec 6>/dev/null
24563 ac_configure_extra_args="$ac_configure_extra_args --silent"
24564fi
24565
24566_ACEOF
24567cat >>$CONFIG_STATUS <<_ACEOF
24568if \$ac_cs_recheck; then
Jeremy White0ebeb532006-06-20 13:18:41 +020024569 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 +020024570 CONFIG_SHELL=$SHELL
24571 export CONFIG_SHELL
Jeremy White0ebeb532006-06-20 13:18:41 +020024572 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024573fi
24574
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024575_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024576cat >>$CONFIG_STATUS <<\_ACEOF
24577exec 5>>config.log
24578{
24579 echo
24580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24581## Running $as_me. ##
24582_ASBOX
24583 echo "$ac_log"
24584} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024585
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024586_ACEOF
24587cat >>$CONFIG_STATUS <<_ACEOF
24588_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024589
24590cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024591
24592# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024593for ac_config_target in $ac_config_targets
24594do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024595 case $ac_config_target in
24596 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24597 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24598 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24599 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24600 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24601 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24602 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24603 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24604 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24605 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24606 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024607 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24609 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24610 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24611 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24612 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24613 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24614 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24615 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24616 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24617 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24618 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24619 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24620 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24621 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24622 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24623 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24624 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Aric Stewart9c3b12b2006-07-13 14:16:59 -050024625 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024626 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24627 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24628 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
Detlef Riekenberg955fe0d2006-07-03 22:55:53 +020024629 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
Detlef Riekenberg5640b562006-06-20 06:12:36 +020024630 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024631 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24632 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24633 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24634 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Maarten Lankhorstd2ee3872006-06-28 16:51:41 +020024635 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024636 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24637 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24638 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24639 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24640 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24641 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24642 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24643 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24644 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24645 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24646 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24647 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24648 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24649 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24650 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24651 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24652 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24653 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24654 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24655 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24656 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24657 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24658 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24659 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24660 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24661 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24662 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24663 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24664 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24665 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24666 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24667 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24668 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24669 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24670 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24671 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24672 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24673 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24674 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24675 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24676 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24677 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24678 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24679 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24680 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Kevin Koltzaub89cafa2006-08-05 23:09:06 -040024681 "dlls/hid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hid/Makefile" ;;
Mike McCormackb732e9b2006-06-06 19:26:24 +090024682 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
Mike McCormacka430db92006-08-02 02:19:15 +090024683 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024684 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24685 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24686 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24687 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24688 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24689 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Mike McCormack4d3877b2006-07-11 11:13:18 +090024690 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
Mike McCormackb5871fa2006-08-15 22:58:12 +090024691 "dlls/infosoft/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/tests/Makefile" ;;
Mike McCormack4d3877b2006-07-11 11:13:18 +090024692 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024693 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24694 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24695 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24696 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24697 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24698 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24699 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24700 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24701 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24702 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24703 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24704 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24705 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24706 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24707 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24708 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24709 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24710 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24711 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24712 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24713 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24714 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24715 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24716 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24717 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24718 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24719 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24720 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24721 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24722 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24723 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24724 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24725 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24726 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24727 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24728 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24729 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24730 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24731 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24732 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24733 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24734 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24735 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24736 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24737 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24738 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24739 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24740 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24741 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24742 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24743 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24744 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24745 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24746 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24747 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24748 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24749 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24750 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24751 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24752 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24753 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24754 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24755 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24756 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24757 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24758 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24759 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24760 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24761 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24762 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Mike McCormackacb7f8a2006-08-11 15:11:47 +090024763 "dlls/pstorec/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/pstorec/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024764 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24765 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24766 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Mike McCormackdefbc492006-07-07 18:21:36 +090024767 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024768 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24769 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24770 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24771 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24772 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24773 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24774 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24775 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24776 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24777 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24778 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24779 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24780 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24781 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24782 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24783 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24784 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24785 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24786 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24787 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24788 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24789 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24790 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24791 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24792 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24793 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24794 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24795 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24796 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24797 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24798 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24799 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24800 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24801 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24802 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24803 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24804 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24805 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24806 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24807 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Mike McCormacka6ea0f62006-06-05 14:01:10 +090024808 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024809 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
24810 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
24811 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
24812 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Paul Vriens569a4522006-06-13 14:16:58 +020024813 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024814 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
24815 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
24816 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
24817 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
24818 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
24819 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
24820 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
24821 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
24822 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
24823 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
24824 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
24825 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
24826 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
24827 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
24828 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
Alexandre Julliardbdb4fab2006-06-16 09:57:50 +020024829 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024830 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
24831 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
24832 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
24833 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
24834 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
24835 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
24836 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
24837 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Emmanuel Maillard144a5352006-05-28 22:46:23 +020024838 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024839 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
24840 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
24841 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
24842 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
24843 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
24844 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
24845 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
24846 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
24847 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
Paul Vriens95bb9032006-08-29 10:25:47 +020024848 "dlls/wintrust/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024849 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
24850 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
24851 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
24852 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
24853 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
24854 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
24855 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024856 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
24857 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
24858 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24859 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
24860 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024861 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
24862 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
24863 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
24864 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
24865 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
24866 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
24867 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
24868 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
24869 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
24870 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
24871 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
24872 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
24873 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
24874 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
24875 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Piotr Caban68f590c2006-06-14 19:50:28 +020024876 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024877 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
24878 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
24879 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
24880 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
24881 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
24882 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
24883 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
24884 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
24885 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
24886 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
24887 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
24888 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
24889 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
24890 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
24891 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
24892 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
24893 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
24894 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
24895 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
24896 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
24897 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
24898 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
24899 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
24900 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
24901 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
24902 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
24903 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024904 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
24905 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
24906 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
24907 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
24908 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
24909
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024910 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024911echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24912 { (exit 1); exit 1; }; };;
24913 esac
24914done
24915
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024916
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024917# If the user did not use the arguments to specify the items to instantiate,
24918# then the envvar interface is used. Set only those that are not.
24919# We use the long form for the default assignment because of an extremely
24920# bizarre bug on SunOS 4.1.3.
24921if $ac_need_defaults; then
24922 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24923 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24924 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24925fi
24926
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024927# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024928# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024929# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024930# Hook for its removal unless debugging.
24931# Note that there is a small window in which the directory will not be cleaned:
24932# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024933$debug ||
24934{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024935 tmp=
24936 trap 'exit_status=$?
24937 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24938' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024939 trap '{ (exit 1); exit 1; }' 1 2 13 15
24940}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024941# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024942
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024943{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024944 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024945 test -n "$tmp" && test -d "$tmp"
24946} ||
24947{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024948 tmp=./conf$$-$RANDOM
24949 (umask 077 && mkdir "$tmp")
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024950} ||
24951{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024952 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024953 { (exit 1); exit 1; }
24954}
24955
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024956#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024957# Set up the sed scripts for CONFIG_FILES section.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024958#
24959
24960# No need to generate the scripts if there are no CONFIG_FILES.
24961# This happens for instance when ./config.status config.h
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024962if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024963
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024964_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024965
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024966# Create sed commands to just substitute file output variables.
24967
24968# Remaining file output variables are in a fragment that also has non-file
24969# output varibles.
24970
24971
24972
24973ac_delim='%!_!# '
24974for ac_last_try in false false false false false :; do
24975 cat >conf$$subs.sed <<_ACEOF
24976SHELL!$SHELL$ac_delim
24977PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24978PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24979PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24980PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24981PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24982PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24983exec_prefix!$exec_prefix$ac_delim
24984prefix!$prefix$ac_delim
24985program_transform_name!$program_transform_name$ac_delim
24986bindir!$bindir$ac_delim
24987sbindir!$sbindir$ac_delim
24988libexecdir!$libexecdir$ac_delim
24989datarootdir!$datarootdir$ac_delim
24990datadir!$datadir$ac_delim
24991sysconfdir!$sysconfdir$ac_delim
24992sharedstatedir!$sharedstatedir$ac_delim
24993localstatedir!$localstatedir$ac_delim
24994includedir!$includedir$ac_delim
24995oldincludedir!$oldincludedir$ac_delim
24996docdir!$docdir$ac_delim
24997infodir!$infodir$ac_delim
24998htmldir!$htmldir$ac_delim
24999dvidir!$dvidir$ac_delim
25000pdfdir!$pdfdir$ac_delim
25001psdir!$psdir$ac_delim
25002libdir!$libdir$ac_delim
25003localedir!$localedir$ac_delim
25004mandir!$mandir$ac_delim
25005DEFS!$DEFS$ac_delim
25006ECHO_C!$ECHO_C$ac_delim
25007ECHO_N!$ECHO_N$ac_delim
25008ECHO_T!$ECHO_T$ac_delim
25009LIBS!$LIBS$ac_delim
25010build_alias!$build_alias$ac_delim
25011host_alias!$host_alias$ac_delim
25012target_alias!$target_alias$ac_delim
25013build!$build$ac_delim
25014build_cpu!$build_cpu$ac_delim
25015build_vendor!$build_vendor$ac_delim
25016build_os!$build_os$ac_delim
25017host!$host$ac_delim
25018host_cpu!$host_cpu$ac_delim
25019host_vendor!$host_vendor$ac_delim
25020host_os!$host_os$ac_delim
25021WIN16_FILES!$WIN16_FILES$ac_delim
25022WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25023SET_MAKE!$SET_MAKE$ac_delim
25024CC!$CC$ac_delim
25025CFLAGS!$CFLAGS$ac_delim
25026LDFLAGS!$LDFLAGS$ac_delim
25027CPPFLAGS!$CPPFLAGS$ac_delim
25028ac_ct_CC!$ac_ct_CC$ac_delim
25029EXEEXT!$EXEEXT$ac_delim
25030OBJEXT!$OBJEXT$ac_delim
25031CXX!$CXX$ac_delim
25032CXXFLAGS!$CXXFLAGS$ac_delim
25033ac_ct_CXX!$ac_ct_CXX$ac_delim
25034CPPBIN!$CPPBIN$ac_delim
25035TOOLSDIR!$TOOLSDIR$ac_delim
25036XMKMF!$XMKMF$ac_delim
25037CPP!$CPP$ac_delim
25038X_CFLAGS!$X_CFLAGS$ac_delim
25039X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25040X_LIBS!$X_LIBS$ac_delim
25041X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25042LEX!$LEX$ac_delim
25043LEXLIB!$LEXLIB$ac_delim
25044LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25045XLEX!$XLEX$ac_delim
25046BISON!$BISON$ac_delim
25047AS!$AS$ac_delim
25048ac_ct_AS!$ac_ct_AS$ac_delim
25049LD!$LD$ac_delim
25050AR!$AR$ac_delim
25051RANLIB!$RANLIB$ac_delim
25052STRIP!$STRIP$ac_delim
25053WINDRES!$WINDRES$ac_delim
25054LN_S!$LN_S$ac_delim
Alexandre Julliardfdfc24c2006-08-05 21:17:11 +020025055LN!$LN$ac_delim
25056GREP!$GREP$ac_delim
25057EGREP!$EGREP$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025058_ACEOF
25059
Alexandre Julliardfdfc24c2006-08-05 21:17:11 +020025060 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025061 break
25062 elif $ac_last_try; then
25063 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25064echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25065 { (exit 1); exit 1; }; }
25066 else
25067 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025068 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025069done
25070
Jeremy White0ebeb532006-06-20 13:18:41 +020025071ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25072if test -n "$ac_eof"; then
25073 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25074 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025075fi
25076
25077cat >>$CONFIG_STATUS <<_ACEOF
25078cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25079/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25080/^[ ]*@MAKE_RULES@[ ]*$/{
25081r $MAKE_RULES
25082d
25083}
25084/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25085r $MAKE_DLL_RULES
25086d
25087}
25088/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25089r $MAKE_IMPLIB_RULES
25090d
25091}
25092/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25093r $MAKE_TEST_RULES
25094d
25095}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025096/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25097r $MAKE_PROG_RULES
25098d
25099}
25100_ACEOF
25101sed '
25102s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25103s/^/s,@/; s/!/@,|#_!!_#|/
25104:n
25105t n
25106s/'"$ac_delim"'$/,g/; t
25107s/$/\\/; p
25108N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25109' >>$CONFIG_STATUS <conf$$subs.sed
25110rm -f conf$$subs.sed
25111cat >>$CONFIG_STATUS <<_ACEOF
25112CEOF$ac_eof
25113_ACEOF
25114
25115
25116ac_delim='%!_!# '
25117for ac_last_try in false false false false false :; do
25118 cat >conf$$subs.sed <<_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025119LDCONFIG!$LDCONFIG$ac_delim
25120INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25121INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25122INSTALL_DATA!$INSTALL_DATA$ac_delim
25123LINT!$LINT$ac_delim
25124LINTFLAGS!$LINTFLAGS$ac_delim
25125FONTFORGE!$FONTFORGE$ac_delim
25126PKG_CONFIG!$PKG_CONFIG$ac_delim
25127PRELINK!$PRELINK$ac_delim
25128LIBPTHREAD!$LIBPTHREAD$ac_delim
25129XLIB!$XLIB$ac_delim
25130XFILES!$XFILES$ac_delim
25131OPENGLFILES!$OPENGLFILES$ac_delim
25132GLU32FILES!$GLU32FILES$ac_delim
25133OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25134GLUT_LIBS!$GLUT_LIBS$ac_delim
25135GLUT32FILES!$GLUT32FILES$ac_delim
25136NASLIBS!$NASLIBS$ac_delim
25137XML2LIBS!$XML2LIBS$ac_delim
25138XML2INCL!$XML2INCL$ac_delim
25139XSLTLIBS!$XSLTLIBS$ac_delim
25140XSLTINCL!$XSLTINCL$ac_delim
25141HALINCL!$HALINCL$ac_delim
25142CURSESLIBS!$CURSESLIBS$ac_delim
25143sane_devel!$sane_devel$ac_delim
25144SANELIBS!$SANELIBS$ac_delim
25145SANEINCL!$SANEINCL$ac_delim
25146gphoto2_devel!$gphoto2_devel$ac_delim
25147gphoto2port_devel!$gphoto2port_devel$ac_delim
25148GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25149GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25150ICULIBS!$ICULIBS$ac_delim
25151RESOLVLIBS!$RESOLVLIBS$ac_delim
25152LCMSLIBS!$LCMSLIBS$ac_delim
25153LDAPLIBS!$LDAPLIBS$ac_delim
25154FREETYPELIBS!$FREETYPELIBS$ac_delim
25155FREETYPEINCL!$FREETYPEINCL$ac_delim
25156ft_devel!$ft_devel$ac_delim
25157ft_devel2!$ft_devel2$ac_delim
25158FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25159ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25160ARTSLIBS!$ARTSLIBS$ac_delim
25161ARTSINCL!$ARTSINCL$ac_delim
25162ESDCONFIG!$ESDCONFIG$ac_delim
25163ESDLIBS!$ESDLIBS$ac_delim
25164ESDINCL!$ESDINCL$ac_delim
25165ALSALIBS!$ALSALIBS$ac_delim
25166AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25167EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25168BUILTINFLAG!$BUILTINFLAG$ac_delim
25169DLLEXT!$DLLEXT$ac_delim
25170DLLFLAGS!$DLLFLAGS$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025171LDSHARED!$LDSHARED$ac_delim
25172LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25173LIBEXT!$LIBEXT$ac_delim
25174IMPLIBEXT!$IMPLIBEXT$ac_delim
Alexandre Julliard13a93b42006-08-25 17:23:44 +020025175LIBWINE_LDFLAGS!$LIBWINE_LDFLAGS$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025176DLLTOOL!$DLLTOOL$ac_delim
25177DLLWRAP!$DLLWRAP$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025178COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25179IOKITLIB!$IOKITLIB$ac_delim
Alexandre Julliard42b81ea2006-08-15 12:55:25 +020025180LDEXECFLAGS!$LDEXECFLAGS$ac_delim
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025181COREAUDIO!$COREAUDIO$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025182CROSSTEST!$CROSSTEST$ac_delim
25183CROSSCC!$CROSSCC$ac_delim
25184CROSSWINDRES!$CROSSWINDRES$ac_delim
25185LDPATH!$LDPATH$ac_delim
25186CRTLIBS!$CRTLIBS$ac_delim
25187SOCKETLIBS!$SOCKETLIBS$ac_delim
25188MAIN_BINARY!$MAIN_BINARY$ac_delim
25189EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25190LDD!$LDD$ac_delim
Alexandre Julliarde533e972006-08-15 12:11:30 +020025191LIBDL!$LIBDL$ac_delim
Alexandre Julliard10892602006-08-15 11:41:59 +020025192LIBPOLL!$LIBPOLL$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025193LIBOBJS!$LIBOBJS$ac_delim
25194LTLIBOBJS!$LTLIBOBJS$ac_delim
25195_ACEOF
25196
Alexandre Julliard4e8cb612006-08-16 13:25:08 +020025197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025198 break
25199 elif $ac_last_try; then
25200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25201echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25202 { (exit 1); exit 1; }; }
25203 else
25204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25205 fi
25206done
25207
Jeremy White0ebeb532006-06-20 13:18:41 +020025208ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25209if test -n "$ac_eof"; then
25210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25211 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025212fi
25213
25214cat >>$CONFIG_STATUS <<_ACEOF
25215cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25216/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25217_ACEOF
25218sed '
25219s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25220s/^/s,@/; s/!/@,|#_!!_#|/
25221:n
25222t n
25223s/'"$ac_delim"'$/,g/; t
25224s/$/\\/; p
25225N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25226' >>$CONFIG_STATUS <conf$$subs.sed
25227rm -f conf$$subs.sed
25228cat >>$CONFIG_STATUS <<_ACEOF
25229:end
25230s/|#_!!_#|//g
25231CEOF$ac_eof
25232_ACEOF
25233
25234
25235# VPATH may cause trouble with some makes, so we remove $(srcdir),
25236# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25237# trailing colons and then remove the whole line if VPATH becomes empty
25238# (actually we leave an empty line to preserve line numbers).
25239if test "x$srcdir" = x.; then
25240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25241s/:*\$(srcdir):*/:/
25242s/:*\${srcdir}:*/:/
25243s/:*@srcdir@:*/:/
25244s/^\([^=]*=[ ]*\):*/\1/
25245s/:*$//
25246s/^[^=]*=[ ]*$//
25247}'
25248fi
25249
25250cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025251fi # test -n "$CONFIG_FILES"
25252
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025253
25254for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25255do
25256 case $ac_tag in
25257 :[FHLC]) ac_mode=$ac_tag; continue;;
25258 esac
25259 case $ac_mode$ac_tag in
25260 :[FHL]*:*);;
25261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25262echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25263 { (exit 1); exit 1; }; };;
25264 :[FH]-) ac_tag=-:-;;
25265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25266 esac
25267 ac_save_IFS=$IFS
25268 IFS=:
25269 set x $ac_tag
25270 IFS=$ac_save_IFS
25271 shift
25272 ac_file=$1
25273 shift
25274
25275 case $ac_mode in
25276 :L) ac_source=$1;;
25277 :[FH])
25278 ac_file_inputs=
25279 for ac_f
25280 do
25281 case $ac_f in
25282 -) ac_f="$tmp/stdin";;
25283 *) # Look for the file first in the build tree, then in the source tree
25284 # (if the path is not absolute). The absolute path cannot be DOS-style,
25285 # because $ac_f cannot contain `:'.
25286 test -f "$ac_f" ||
25287 case $ac_f in
25288 [\\/$]*) false;;
25289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25290 esac ||
25291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25292echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25293 { (exit 1); exit 1; }; };;
25294 esac
25295 ac_file_inputs="$ac_file_inputs $ac_f"
25296 done
25297
25298 # Let's still pretend it is `configure' which instantiates (i.e., don't
25299 # use $as_me), people would be surprised to read:
25300 # /* config.h. Generated by config.status. */
25301 configure_input="Generated from "`IFS=:
25302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25303 if test x"$ac_file" != x-; then
25304 configure_input="$ac_file. $configure_input"
25305 { echo "$as_me:$LINENO: creating $ac_file" >&5
25306echo "$as_me: creating $ac_file" >&6;}
25307 fi
25308
25309 case $ac_tag in
25310 *:-:* | *:-) cat >"$tmp/stdin";;
25311 esac
25312 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025313 esac
25314
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025315 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025317 X"$ac_file" : 'X\(//\)[^/]' \| \
25318 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025320echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25322 s//\1/
25323 q
25324 }
25325 /^X\(\/\/\)[^/].*/{
25326 s//\1/
25327 q
25328 }
25329 /^X\(\/\/\)$/{
25330 s//\1/
25331 q
25332 }
25333 /^X\(\/\).*/{
25334 s//\1/
25335 q
25336 }
25337 s/.*/./; q'`
25338 { as_dir="$ac_dir"
25339 case $as_dir in #(
25340 -*) as_dir=./$as_dir;;
25341 esac
25342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025343 as_dirs=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025344 while :; do
25345 case $as_dir in #(
25346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25347 *) as_qdir=$as_dir;;
25348 esac
25349 as_dirs="'$as_qdir' $as_dirs"
25350 as_dir=`$as_dirname -- "$as_dir" ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025352 X"$as_dir" : 'X\(//\)[^/]' \| \
25353 X"$as_dir" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025355echo X"$as_dir" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25357 s//\1/
25358 q
25359 }
25360 /^X\(\/\/\)[^/].*/{
25361 s//\1/
25362 q
25363 }
25364 /^X\(\/\/\)$/{
25365 s//\1/
25366 q
25367 }
25368 /^X\(\/\).*/{
25369 s//\1/
25370 q
25371 }
25372 s/.*/./; q'`
25373 test -d "$as_dir" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025374 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025375 test -z "$as_dirs" || eval "mkdir $as_dirs"
25376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25377echo "$as_me: error: cannot create directory $as_dir" >&2;}
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025378 { (exit 1); exit 1; }; }; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025379 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025380
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025381case "$ac_dir" in
25382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25383*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025385 # A ".." for each directory in $ac_dir_suffix.
25386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25387 case $ac_top_builddir_sub in
25388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25390 esac ;;
25391esac
25392ac_abs_top_builddir=$ac_pwd
25393ac_abs_builddir=$ac_pwd$ac_dir_suffix
25394# for backward compatibility:
25395ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025396
25397case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025398 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025399 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025400 ac_top_srcdir=$ac_top_builddir_sub
25401 ac_abs_top_srcdir=$ac_pwd ;;
25402 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025403 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025404 ac_top_srcdir=$srcdir
25405 ac_abs_top_srcdir=$srcdir ;;
25406 *) # Relative name.
25407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25408 ac_top_srcdir=$ac_top_build_prefix$srcdir
25409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025410esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000025412
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025413
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025414 case $ac_mode in
25415 :F)
25416 #
25417 # CONFIG_FILE
25418 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025419
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025420 case $INSTALL in
25421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000025423 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025424_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025425
25426cat >>$CONFIG_STATUS <<\_ACEOF
25427# If the template does not know about datarootdir, expand it.
25428# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020025429ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025430
25431case `sed -n '/datarootdir/ {
25432 p
25433 q
25434}
25435/@datadir@/p
25436/@docdir@/p
25437/@infodir@/p
25438/@localedir@/p
25439/@mandir@/p
25440' $ac_file_inputs` in
Jeremy White0ebeb532006-06-20 13:18:41 +020025441*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25444echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25445_ACEOF
25446cat >>$CONFIG_STATUS <<_ACEOF
25447 ac_datarootdir_hack='
25448 s&@datadir@&$datadir&g
25449 s&@docdir@&$docdir&g
25450 s&@infodir@&$infodir&g
25451 s&@localedir@&$localedir&g
25452 s&@mandir@&$mandir&g
25453 s&\\\${datarootdir}&$datarootdir&g' ;;
25454esac
25455_ACEOF
25456
25457# Neutralize VPATH when `$srcdir' = `.'.
25458# Shell code in configure.ac might set extrasub.
25459# FIXME: do we really want to maintain this feature?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025460cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025461 sed "$ac_vpsub
25462$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025463_ACEOF
25464cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025465:t
25466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025467s&@configure_input@&$configure_input&;t t
25468s&@top_builddir@&$ac_top_builddir_sub&;t t
25469s&@srcdir@&$ac_srcdir&;t t
25470s&@abs_srcdir@&$ac_abs_srcdir&;t t
25471s&@top_srcdir@&$ac_top_srcdir&;t t
25472s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25473s&@builddir@&$ac_builddir&;t t
25474s&@abs_builddir@&$ac_abs_builddir&;t t
25475s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25476s&@INSTALL@&$ac_INSTALL&;t t
25477$ac_datarootdir_hack
25478" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025479
Jeremy White0ebeb532006-06-20 13:18:41 +020025480test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020025482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020025483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25484which seems to be undefined. Please make sure it is defined." >&5
25485echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25486which seems to be undefined. Please make sure it is defined." >&2;}
25487
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025488 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025489 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025490 -) cat "$tmp/out"; rm -f "$tmp/out";;
25491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025492 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025493 ;;
25494 :H)
25495 #
25496 # CONFIG_HEADER
25497 #
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025498_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025499
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025500# Transform confdefs.h into a sed script `conftest.defines', that
25501# substitutes the proper values into config.h.in to produce config.h.
25502rm -f conftest.defines conftest.tail
25503# First, append a space to every undef/define line, to ease matching.
25504echo 's/$/ /' >conftest.defines
25505# Then, protect against being on the right side of a sed subst, or in
25506# an unquoted here document, in config.status. If some macros were
25507# called several times there might be several #defines for the same
25508# symbol, which is useless. But do not sort them, since the last
25509# AC_DEFINE must be honored.
25510ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Jeremy White0ebeb532006-06-20 13:18:41 +020025511# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25512# NAME is the cpp macro being defined, VALUE is the value it is being given.
25513# PARAMS is the parameter list in the macro definition--in most cases, it's
25514# just an empty string.
25515ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25516ac_dB='\\)[ (].*,\\1define\\2'
25517ac_dC=' '
25518ac_dD=' ,'
25519
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025520uniq confdefs.h |
25521 sed -n '
25522 t rset
25523 :rset
25524 s/^[ ]*#[ ]*define[ ][ ]*//
25525 t ok
25526 d
25527 :ok
25528 s/[\\&,]/\\&/g
Jeremy White0ebeb532006-06-20 13:18:41 +020025529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025531 ' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025532
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025533# Remove the space that was appended to ease matching.
25534# Then replace #undef with comments. This is necessary, for
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025535# example, in the case of _POSIX_SOURCE, which is predefined and required
25536# on some systems where configure will not decide to define it.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025537# (The regexp can be short, since the line contains either #define or #undef.)
25538echo 's/ $//
25539s,^[ #]*u.*,/* & */,' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025541# Break up conftest.defines:
Jeremy White0ebeb532006-06-20 13:18:41 +020025542ac_max_sed_lines=50
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025543
25544# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25545# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25546# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25547# et cetera.
25548ac_in='$ac_file_inputs'
25549ac_out='"$tmp/out1"'
25550ac_nxt='"$tmp/out2"'
25551
25552while :
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025553do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025554 # Write a here document:
Jeremy White0ebeb532006-06-20 13:18:41 +020025555 cat >>$CONFIG_STATUS <<_ACEOF
25556 # First, check the format of the line:
25557 cat >"\$tmp/defines.sed" <<\\CEOF
25558/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25559/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025560b
Jeremy White0ebeb532006-06-20 13:18:41 +020025561:def
25562_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025564 echo 'CEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25568 grep . conftest.tail >/dev/null || break
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025569 rm -f conftest.defines
25570 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025571done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025572rm -f conftest.defines conftest.tail
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025573
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025574echo "ac_result=$ac_in" >>$CONFIG_STATUS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025575cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025576 if test x"$ac_file" != x-; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025577 echo "/* $configure_input */" >"$tmp/config.h"
25578 cat "$ac_result" >>"$tmp/config.h"
25579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025581echo "$as_me: $ac_file is unchanged" >&6;}
25582 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025583 rm -f $ac_file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025584 mv "$tmp/config.h" $ac_file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025585 fi
25586 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025587 echo "/* $configure_input */"
25588 cat "$ac_result"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025589 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025590 rm -f "$tmp/out12"
25591 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025592
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025593 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25594echo "$as_me: executing $ac_file commands" >&6;}
25595 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025596 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025597
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025598
25599 case $ac_file$ac_mode in
25600 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25601echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25602 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25603echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25604 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25605echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25606 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25607echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25608 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25609echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25610 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25611echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25612
25613 esac
25614done # for ac_tag
25615
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000025616
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025617{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025618_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025619chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025620ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025621
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025622
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025623# configure is writing to config.log, and then calls config.status.
25624# config.status does its own redirection, appending to config.log.
25625# Unfortunately, on DOS this fails, as config.log is still kept open
25626# by configure, so config.status won't be able to write to it; its
25627# output is simply discarded. So we exec the FD to /dev/null,
25628# effectively closing config.log, so it can be properly (re)opened and
25629# appended to by config.status. When coming back to configure, we
25630# need to make the FD available again.
25631if test "$no_create" != yes; then
25632 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025633 ac_config_status_args=
25634 test "$silent" = yes &&
25635 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025636 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025638 exec 5>>config.log
25639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25640 # would make configure fail if this is the last instruction.
25641 $ac_cs_success || { (exit 1); exit 1; }
25642fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025643
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025644
Detlef Riekenberge84a3822006-08-21 05:28:17 +020025645
25646if test "$verbose" = "yes"
25647then
25648 if test "$ac_cv_header_cups_cups_h" != "yes"
25649 then
25650 echo >&2
25651 { echo "$as_me:$LINENO: libcups development files not found." >&5
25652echo "$as_me: libcups development files not found." >&6;}
25653 { echo "$as_me:$LINENO: Wine will be built without CUPS support." >&5
25654echo "$as_me: Wine will be built without CUPS support." >&6;}
25655 fi
25656
25657
25658 if test "$ac_cv_header_gphoto2_camera_h" != "yes"
25659 then
25660 echo >&2
25661 { echo "$as_me:$LINENO: libgphoto2 development files not found." >&5
25662echo "$as_me: libgphoto2 development files not found." >&6;}
25663 if test "$ac_cv_header_sane_sane_h" = "yes"
25664 then
25665 { echo "$as_me:$LINENO: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&5
25666echo "$as_me: Wine will be built with limited Digital Camera support. (twain_32.dll)" >&6;}
25667 else
25668 { echo "$as_me:$LINENO: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&5
25669echo "$as_me: Wine will be built without Digital Camera support. (gphoto2.ds/twain_32.dll)" >&6;}
25670 fi
25671 fi
25672
25673 if test "$ac_cv_header_hal_libhal_h" != "yes"
25674 then
25675 echo >&2
25676 { echo "$as_me:$LINENO: libhal development files not found." >&5
25677echo "$as_me: libhal development files not found." >&6;}
25678 { echo "$as_me:$LINENO: Wine will be built without dynamic device support. (explorer.exe)" >&5
25679echo "$as_me: Wine will be built without dynamic device support. (explorer.exe)" >&6;}
25680 fi
25681
25682 if test "$ac_cv_header_unicode_ubidi_h" != "yes"
25683 then
25684 echo >&2
25685 { echo "$as_me:$LINENO: libicu development files not found." >&5
25686echo "$as_me: libicu development files not found." >&6;}
25687 { echo "$as_me:$LINENO: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&5
25688echo "$as_me: Wine will be built without bidi (Right to Left) support. (gdi32.dll)" >&6;}
25689 fi
25690
25691 if test "$ac_cv_header_lcms_h" != "yes" -a "$ac_cv_header_lcms_lcms_h" != "yes"
25692 then
25693 echo >&2
25694 { echo "$as_me:$LINENO: liblcms development files not found." >&5
25695echo "$as_me: liblcms development files not found." >&6;}
25696 { echo "$as_me:$LINENO: Wine will be built without Color Management support. (mscms.dll)" >&5
25697echo "$as_me: Wine will be built without Color Management support. (mscms.dll)" >&6;}
25698 fi
25699
25700 if test "$ac_cv_header_ldap_h" != "yes" -o "$ac_cv_header_lber_h" != "yes"
25701 then
25702 echo >&2
25703 { echo "$as_me:$LINENO: libldap (OpenLDAP) development files not found." >&5
25704echo "$as_me: libldap (OpenLDAP) development files not found." >&6;}
25705 { echo "$as_me:$LINENO: Wine will be built without LDAP support. (wldap32.dll)" >&5
25706echo "$as_me: Wine will be built without LDAP support. (wldap32.dll)" >&6;}
25707 fi
25708
25709 if test "x$with_curses" != "xno" -a "$ac_cv_header_ncurses_h" != "yes" -a "$ac_cv_header_curses_h" != "yes"
25710 then
25711 echo >&2
25712 { echo "$as_me:$LINENO: lib(n)curses development files not found." >&5
25713echo "$as_me: lib(n)curses development files not found." >&6;}
25714 { echo "$as_me:$LINENO: Wine will be built without (n)curses support. (wineconsole.exe)" >&5
25715echo "$as_me: Wine will be built without (n)curses support. (wineconsole.exe)" >&6;}
25716 fi
25717
25718 if test "$ac_cv_header_sane_sane_h" != "yes"
25719 then
25720 echo >&2
25721 { echo "$as_me:$LINENO: libsane development files not found." >&5
25722echo "$as_me: libsane development files not found." >&6;}
25723 { echo "$as_me:$LINENO: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&5
25724echo "$as_me: Wine will be built without Scanner support. (sane.ds/twain_32.dll)" >&6;}
25725 fi
25726
25727 if test "$ac_cv_header_gif_lib_h" != "yes"
25728 then
25729 echo >&2
25730 { echo "$as_me:$LINENO: libungif development files not found." >&5
25731echo "$as_me: libungif development files not found." >&6;}
25732 { echo "$as_me:$LINENO: Wine will be built without GIF support. (oleaut32.dll)" >&5
25733echo "$as_me: Wine will be built without GIF support. (oleaut32.dll)" >&6;}
25734 fi
25735
25736 if test "$have_x" = "yes"
25737 then
25738 if test "$ac_cv_header_X11_extensions_shape_h" != "yes" -o "$ac_cv_header_X11_extensions_XShm_h" != "yes"
25739 then
25740 echo >&2
25741 { echo "$as_me:$LINENO: libxext development files not found." >&5
25742echo "$as_me: libxext development files not found." >&6;}
25743 { echo "$as_me:$LINENO: Wine will be built without Shm / Shape support. (winex11.drv)" >&5
25744echo "$as_me: Wine will be built without Shm / Shape support. (winex11.drv)" >&6;}
25745 fi
25746
25747 if test "$ac_cv_header_X11_extensions_Xrandr_h" != "yes"
25748 then
25749 echo >&2
25750 { echo "$as_me:$LINENO: libXrandr development files not found." >&5
25751echo "$as_me: libXrandr development files not found." >&6;}
25752 { echo "$as_me:$LINENO: Wine will be built without Xrandr support. (winex11.drv)" >&5
25753echo "$as_me: Wine will be built without Xrandr support. (winex11.drv)" >&6;}
25754 fi
25755
25756 if test "$ac_cv_header_X11_extensions_Xrender_h" != "yes"
25757 then
25758 echo >&2
25759 { echo "$as_me:$LINENO: libXrender development files not found." >&5
25760echo "$as_me: libXrender development files not found." >&6;}
25761 { echo "$as_me:$LINENO: Wine will be built without Xrender support. (winex11.drv)" >&5
25762echo "$as_me: Wine will be built without Xrender support. (winex11.drv)" >&6;}
25763 fi
25764
25765 if test "$ac_cv_header_X11_extensions_xf86vmode_h" != "yes"
25766 then
25767 echo >&2
25768 { echo "$as_me:$LINENO: libXxf86vm development files not found." >&5
25769echo "$as_me: libXxf86vm development files not found." >&6;}
25770 { echo "$as_me:$LINENO: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&5
25771echo "$as_me: Wine will be built without XFree86-VidMode support. (winex11.drv)" >&6;}
25772 fi
25773 fi
25774
25775 if test "$ac_cv_header_libxml_parser_h" != "yes"
25776 then
25777 echo >&2
25778 { echo "$as_me:$LINENO: libxml2 development files not found." >&5
25779echo "$as_me: libxml2 development files not found." >&6;}
25780 { echo "$as_me:$LINENO: Wine will be built without XML support. (msxml.dll)" >&5
25781echo "$as_me: Wine will be built without XML support. (msxml.dll)" >&6;}
25782 fi
25783
25784 if test "$ac_cv_header_libxslt_pattern_h" != "yes" -o "$ac_cv_header_libxslt_transform_h" != "yes"
25785 then
25786 echo >&2
25787 { echo "$as_me:$LINENO: libxslt development files not found." >&5
25788echo "$as_me: libxslt development files not found." >&6;}
25789 { echo "$as_me:$LINENO: Wine will be built without xslt support. (msxml.dll)" >&5
25790echo "$as_me: Wine will be built without xslt support. (msxml.dll)" >&6;}
25791 fi
25792fi
25793
25794
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025795if test "$have_x" = "no"
25796then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025797 echo >&2
25798 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25799echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25800 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25801echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25802 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25803echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25804 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25805echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025806fi
25807
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +020025808if test "$wine_cv_opengl_headers_found" = "no" -o "$wine_cv_opengl_header_version_OK" = "no" -o "$wine_cv_opengl_libs_found" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000025809then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025810 echo >&2
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +020025811 { echo "$as_me:$LINENO: WARNING: Wine will be build without OpenGL or Direct3D support" >&5
25812echo "$as_me: WARNING: Wine will be build without OpenGL or Direct3D support" >&2;}
25813 { echo "$as_me:$LINENO: WARNING: because something is wrong with the OpenGL setup:" >&5
25814echo "$as_me: WARNING: because something is wrong with the OpenGL setup:" >&2;}
25815 if test "$wine_cv_opengl_headers_found" = "no"
25816 then
25817 { echo "$as_me:$LINENO: WARNING: No OpenGL development headers were found" >&5
25818echo "$as_me: WARNING: No OpenGL development headers were found" >&2;}
25819 fi
25820 if test "$wine_cv_opengl_header_version_OK" = "no"
25821 then
25822 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25823echo "$as_me: WARNING: Old Mesa headers detected. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
25824 fi
25825 if test "$wine_cv_opengl_libs_found" = "no"
25826 then
25827 { echo "$as_me:$LINENO: WARNING: No OpenGL library found on this system." >&5
25828echo "$as_me: WARNING: No OpenGL library found on this system." >&2;}
25829 fi
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000025830fi
25831
Ian Pilcher563598d2001-05-16 20:56:05 +000025832if test "$wine_cv_msg_freetype" = "yes"
25833then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025834 echo >&2
25835 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25836echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25837 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25838echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25839 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25840echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25841 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25842echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
Ian Pilcher563598d2001-05-16 20:56:05 +000025843fi
25844
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025845if test -z "$FONTSSUBDIRS"
Mike McCormack8f6aa412006-04-04 13:36:51 +090025846then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025847 echo >&2
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025848 if test "$FONTFORGE" = "false"
25849 then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025850 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25851echo "$as_me: WARNING: FontForge is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025852 else
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025853 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25854echo "$as_me: WARNING: FreeType is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025855 fi
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025856 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25857echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
Mike McCormack8f6aa412006-04-04 13:36:51 +090025858fi
25859
Alexandre Julliard82776022005-08-08 11:17:25 +000025860if test -z "$ALSALIBS" -a \
25861 -z "$ARTSC_LIBS" -a \
25862 -z "$AUDIOIOLIBS" -a \
25863 -z "$NASLIBS" -a \
25864 -z "$ESD_LIBS" -a \
25865 -z "$ac_cv_lib_soname_jack" -a \
25866 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25867 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25868 "$ac_cv_header_soundcard_h" != "yes"
Francois Gouget99d026f2005-03-19 17:08:18 +000025869then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025870 echo >&2
25871 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25872echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25873 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25874echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25875 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25876echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
Francois Gouget99d026f2005-03-19 17:08:18 +000025877fi
25878
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025879echo
Vincent BĂ©ron5606d102004-08-19 00:03:45 +000025880echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025881echo
25882