blob: 114bead217ed861e75f80f15a397415e3514fb31 [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 Julliardf9cd7142006-07-27 16:55:50 +02003# Generated by GNU Autoconf 2.60a for Wine 0.9.18.
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 Julliardf9cd7142006-07-27 16:55:50 +0200562PACKAGE_VERSION='0.9.18'
563PACKAGE_STRING='Wine 0.9.18'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000564PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000565
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000566ac_unique_file="server/atom.c"
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#if HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#if HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#if STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# if HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#if HAVE_STRING_H
585# if !STDC_HEADERS && HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#if HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#if HAVE_INTTYPES_H
594# include <inttypes.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200595#endif
596#if HAVE_STDINT_H
597# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000598#endif
599#if HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200603ac_subst_vars='SHELL
604PATH_SEPARATOR
605PACKAGE_NAME
606PACKAGE_TARNAME
607PACKAGE_VERSION
608PACKAGE_STRING
609PACKAGE_BUGREPORT
610exec_prefix
611prefix
612program_transform_name
613bindir
614sbindir
615libexecdir
616datarootdir
617datadir
618sysconfdir
619sharedstatedir
620localstatedir
621includedir
622oldincludedir
623docdir
624infodir
625htmldir
626dvidir
627pdfdir
628psdir
629libdir
630localedir
631mandir
632DEFS
633ECHO_C
634ECHO_N
635ECHO_T
636LIBS
637build_alias
638host_alias
639target_alias
640build
641build_cpu
642build_vendor
643build_os
644host
645host_cpu
646host_vendor
647host_os
648WIN16_FILES
649WIN16_INSTALL
650SET_MAKE
651CC
652CFLAGS
653LDFLAGS
654CPPFLAGS
655ac_ct_CC
656EXEEXT
657OBJEXT
658CXX
659CXXFLAGS
660ac_ct_CXX
661CPPBIN
662TOOLSDIR
663XMKMF
664CPP
665X_CFLAGS
666X_PRE_LIBS
667X_LIBS
668X_EXTRA_LIBS
669LEX
670LEXLIB
671LEX_OUTPUT_ROOT
672XLEX
673BISON
674AS
675ac_ct_AS
676LD
677AR
678RANLIB
679STRIP
680WINDRES
681LN_S
682LN
683GREP
684EGREP
685LDCONFIG
686INSTALL_PROGRAM
687INSTALL_SCRIPT
688INSTALL_DATA
689LINT
690LINTFLAGS
691FONTFORGE
692PKG_CONFIG
693PRELINK
694LIBPTHREAD
695XLIB
696XFILES
697OPENGLFILES
698GLU32FILES
699OPENGL_LIBS
700GLUT_LIBS
701GLUT32FILES
702NASLIBS
703XML2LIBS
704XML2INCL
705XSLTLIBS
706XSLTINCL
707HALINCL
708CURSESLIBS
709sane_devel
710SANELIBS
711SANEINCL
712gphoto2_devel
713gphoto2port_devel
714GPHOTO2LIBS
715GPHOTO2INCL
716ICULIBS
717RESOLVLIBS
718LCMSLIBS
719LDAPLIBS
720FREETYPELIBS
721FREETYPEINCL
722ft_devel
723ft_devel2
724FONTSSUBDIRS
725ARTSCCONFIG
726ARTSLIBS
727ARTSINCL
728ESDCONFIG
729ESDLIBS
730ESDINCL
731ALSALIBS
732AUDIOIOLIBS
733EXTRACFLAGS
734BUILTINFLAG
735DLLEXT
736DLLFLAGS
737DLLIBS
738LDSHARED
739LDDLLFLAGS
740LIBEXT
741IMPLIBEXT
742DLLTOOL
743DLLWRAP
744LDEXECFLAGS
745LDEXERPATH
746LDDLLRPATH
747COREFOUNDATIONLIB
748IOKITLIB
Emmanuel Maillard144a5352006-05-28 22:46:23 +0200749COREAUDIO
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200750CROSSTEST
751CROSSCC
752CROSSWINDRES
753LDPATH
754CRTLIBS
755SOCKETLIBS
756MAIN_BINARY
757EXTRA_BINARIES
758LDD
759LIBOBJS
760LTLIBOBJS'
761ac_subst_files='MAKE_RULES
762MAKE_DLL_RULES
763MAKE_IMPLIB_RULES
764MAKE_TEST_RULES
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 Julliardf9cd7142006-07-27 16:55:50 +02001280\`configure' configures Wine 0.9.18 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 Julliardf9cd7142006-07-27 16:55:50 +02001349 short | recursive ) echo "Configuration of Wine 0.9.18:";;
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 Julliardf9cd7142006-07-27 16:55:50 +02001444Wine configure 0.9.18
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 Julliardf9cd7142006-07-27 16:55:50 +02001458It was created by Wine $as_me 0.9.18, 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.
2425for 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
2453 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002454sed 's/^/| /' conftest.$ac_ext >&5
2455
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002456{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002457See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002458echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002459See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002460 { (exit 77); exit 77; }; }
2461fi
2462
Jeremy White0ebeb532006-06-20 13:18:41 +02002463ac_exeext=$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002464{ echo "$as_me:$LINENO: result: $ac_file" >&5
2465echo "${ECHO_T}$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002466
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002467# Check that the compiler produces executables we can run. If not, either
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002468# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002469{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2470echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002471# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2472# If not cross compiling, check that we can run a simple program.
2473if test "$cross_compiling" != yes; then
2474 if { ac_try='./$ac_file'
Jeremy White0ebeb532006-06-20 13:18:41 +02002475 { (case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2478esac
2479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2480 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002481 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002483 (exit $ac_status); }; }; then
2484 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002485 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002486 if test "$cross_compiling" = maybe; then
2487 cross_compiling=yes
2488 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002489 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002490If you meant to cross compile, use \`--host'.
2491See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002492echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002493If you meant to cross compile, use \`--host'.
2494See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002495 { (exit 1); exit 1; }; }
2496 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002497 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002498fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002499{ echo "$as_me:$LINENO: result: yes" >&5
2500echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002501
Jeremy White0ebeb532006-06-20 13:18:41 +02002502rm -f a.out a.exe conftest$ac_cv_exeext b.out
2503ac_clean_files=$ac_clean_files_save
2504# Check that the compiler produces executables we can run. If not, either
2505# the compiler is broken, or we cross compile.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002506{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2507echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2508{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2509echo "${ECHO_T}$cross_compiling" >&6; }
2510
2511{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2512echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002513if { (ac_try="$ac_link"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2519 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002522 (exit $ac_status); }; then
Jeremy White0ebeb532006-06-20 13:18:41 +02002523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2524# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2525# work properly (i.e., refer to `conftest.exe'), while it won't with
2526# `rm'.
2527for ac_file in conftest.exe conftest conftest.*; do
2528 test -f "$ac_file" || continue
2529 case $ac_file in
2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2532 break;;
2533 * ) break;;
2534 esac
2535done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002536else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002537 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2538See \`config.log' for more details." >&5
2539echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2540See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002541 { (exit 1); exit 1; }; }
2542fi
2543
Jeremy White0ebeb532006-06-20 13:18:41 +02002544rm -f conftest$ac_cv_exeext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002545{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2546echo "${ECHO_T}$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02002547
2548rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002549EXEEXT=$ac_cv_exeext
2550ac_exeext=$EXEEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002551{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2552echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002553if test "${ac_cv_objext+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
Jeremy White0ebeb532006-06-20 13:18:41 +02002556 cat >conftest.$ac_ext <<_ACEOF
2557/* confdefs.h. */
2558_ACEOF
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562
2563int
2564main ()
2565{
2566
2567 ;
2568 return 0;
2569}
2570_ACEOF
2571rm -f conftest.o conftest.obj
2572if { (ac_try="$ac_compile"
2573case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576esac
2577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2578 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002579 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002581 (exit $ac_status); }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002582 for ac_file in conftest.o conftest.obj conftest.*; do
2583 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002584 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2587 break;;
2588 esac
2589done
2590else
2591 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2595See \`config.log' for more details." >&5
2596echo "$as_me: error: cannot compute suffix of object files: cannot compile
2597See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002598 { (exit 1); exit 1; }; }
2599fi
2600
Jeremy White0ebeb532006-06-20 13:18:41 +02002601rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002602fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002603{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2604echo "${ECHO_T}$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002605OBJEXT=$ac_cv_objext
2606ac_objext=$OBJEXT
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002607{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2608echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002609if test "${ac_cv_c_compiler_gnu+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002613/* confdefs.h. */
2614_ACEOF
2615cat confdefs.h >>conftest.$ac_ext
2616cat >>conftest.$ac_ext <<_ACEOF
2617/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002618
2619int
2620main ()
2621{
2622#ifndef __GNUC__
2623 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002624#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002625
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002626 ;
2627 return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002631if { (ac_try="$ac_compile"
2632case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635esac
2636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002638 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002643 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2645 { (case "(($ac_try" in
2646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2647 *) ac_try_echo=$ac_try;;
2648esac
2649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2650 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002655 { (case "(($ac_try" in
2656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2657 *) ac_try_echo=$ac_try;;
2658esac
2659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2660 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002661 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002663 (exit $ac_status); }; }; then
2664 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002665else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002666 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002667sed 's/^/| /' conftest.$ac_ext >&5
2668
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002669 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002671
Jeremy White0ebeb532006-06-20 13:18:41 +02002672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002673ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002674
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002675fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002676{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002678GCC=`test $ac_compiler_gnu = yes && echo yes`
2679ac_test_CFLAGS=${CFLAGS+set}
2680ac_save_CFLAGS=$CFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002681{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2682echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002683if test "${ac_cv_prog_cc_g+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002685else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002686 ac_save_c_werror_flag=$ac_c_werror_flag
2687 ac_c_werror_flag=yes
2688 ac_cv_prog_cc_g=no
2689 CFLAGS="-g"
2690 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002691/* confdefs.h. */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002696
2697int
2698main ()
2699{
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002706if { (ac_try="$ac_compile"
2707case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710esac
2711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002713 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002718 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723esac
2724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; } &&
2729 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002730 { (case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733esac
2734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002736 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002738 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002739 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002740else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002741 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002742sed 's/^/| /' conftest.$ac_ext >&5
2743
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002744 CFLAGS=""
2745 cat >conftest.$ac_ext <<_ACEOF
2746/* confdefs.h. */
2747_ACEOF
2748cat confdefs.h >>conftest.$ac_ext
2749cat >>conftest.$ac_ext <<_ACEOF
2750/* end confdefs.h. */
2751
2752int
2753main ()
2754{
2755
2756 ;
2757 return 0;
2758}
2759_ACEOF
2760rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002761if { (ac_try="$ac_compile"
2762case "(($ac_try" in
2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2764 *) ac_try_echo=$ac_try;;
2765esac
2766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2767 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002768 ac_status=$?
2769 grep -v '^ *+' conftest.er1 >conftest.err
2770 rm -f conftest.er1
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2775 { (case "(($ac_try" in
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2778esac
2779eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002785 { (case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788esac
2789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002791 ac_status=$?
2792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793 (exit $ac_status); }; }; then
2794 :
2795else
2796 echo "$as_me: failed program was:" >&5
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 ac_c_werror_flag=$ac_save_c_werror_flag
2800 CFLAGS="-g"
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807
2808int
2809main ()
2810{
2811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002817if { (ac_try="$ac_compile"
2818case "(($ac_try" in
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2821esac
2822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2831 { (case "(($ac_try" in
2832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833 *) ac_try_echo=$ac_try;;
2834esac
2835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002837 ac_status=$?
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); }; } &&
2840 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002841 { (case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
2845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846 (eval "$ac_try") 2>&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002847 ac_status=$?
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); }; }; then
2850 ac_cv_prog_cc_g=yes
2851else
2852 echo "$as_me: failed program was:" >&5
2853sed 's/^/| /' conftest.$ac_ext >&5
2854
2855
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002856fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002857
Jeremy White0ebeb532006-06-20 13:18:41 +02002858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002859fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002860
Jeremy White0ebeb532006-06-20 13:18:41 +02002861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002862fi
2863
Jeremy White0ebeb532006-06-20 13:18:41 +02002864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002865 ac_c_werror_flag=$ac_save_c_werror_flag
2866fi
2867{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2868echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00002869if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002870 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002871elif test $ac_cv_prog_cc_g = yes; then
2872 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002873 CFLAGS="-g -O2"
2874 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002875 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002876 fi
2877else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002878 if test "$GCC" = yes; then
2879 CFLAGS="-O2"
2880 else
2881 CFLAGS=
2882 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002883fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002884{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2885echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2886if test "${ac_cv_prog_cc_c89+set}" = set; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002887 echo $ECHO_N "(cached) $ECHO_C" >&6
2888else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002889 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002890ac_save_CC=$CC
2891cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002897#include <stdarg.h>
2898#include <stdio.h>
2899#include <sys/types.h>
2900#include <sys/stat.h>
2901/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2902struct buf { int x; };
2903FILE * (*rcsopen) (struct buf *, struct stat *, int);
2904static char *e (p, i)
2905 char **p;
2906 int i;
2907{
2908 return p[i];
2909}
2910static char *f (char * (*g) (char **, int), char **p, ...)
2911{
2912 char *s;
2913 va_list v;
2914 va_start (v,p);
2915 s = g (p, va_arg (v,int));
2916 va_end (v);
2917 return s;
2918}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002919
2920/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2921 function prototypes and stuff, but not '\xHH' hex character constants.
2922 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002923 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00002924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2925 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002926 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00002927int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2928
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02002929/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2930 inside strings and character constants. */
2931#define FOO(x) 'x'
2932int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2933
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002934int test (int i, double x);
2935struct s1 {int (*f) (int a);};
2936struct s2 {int (*f) (double a);};
2937int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2938int argc;
2939char **argv;
2940int
2941main ()
2942{
2943return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2944 ;
2945 return 0;
2946}
2947_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002948for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002950do
2951 CC="$ac_save_CC $ac_arg"
2952 rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02002953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956 *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002960 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002961 grep -v '^ *+' conftest.er1 >conftest.err
2962 rm -f conftest.er1
2963 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2970esac
2971eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002973 ac_status=$?
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02002977 { (case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;;
2980esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2982 (eval "$ac_try") 2>&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002986 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002987else
2988 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002989sed 's/^/| /' conftest.$ac_ext >&5
2990
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002991
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002992fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002993
Jeremy White0ebeb532006-06-20 13:18:41 +02002994rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002995 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002996done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002997rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002998CC=$ac_save_CC
2999
3000fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003001# AC_CACHE_VAL
3002case "x$ac_cv_prog_cc_c89" in
3003 x)
3004 { echo "$as_me:$LINENO: result: none needed" >&5
3005echo "${ECHO_T}none needed" >&6; } ;;
3006 xno)
3007 { echo "$as_me:$LINENO: result: unsupported" >&5
3008echo "${ECHO_T}unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003009 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003010 CC="$CC $ac_cv_prog_cc_c89"
3011 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3012echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003013esac
3014
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003015
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003016ac_ext=c
3017ac_cpp='$CPP $CPPFLAGS'
3018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003022ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003023ac_cpp='$CXXCPP $CPPFLAGS'
3024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003027if test -z "$CXX"; then
3028 if test -n "$CCC"; then
3029 CXX=$CCC
3030 else
3031 if test -n "$ac_tool_prefix"; then
3032 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 +00003033 do
3034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003036{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003038if test "${ac_cv_prog_CXX+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040else
3041 if test -n "$CXX"; then
3042 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3043else
3044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045for as_dir in $PATH
3046do
3047 IFS=$as_save_IFS
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003050 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 +00003051 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3054 fi
3055done
3056done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003057IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003058
3059fi
3060fi
3061CXX=$ac_cv_prog_CXX
3062if test -n "$CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003063 { echo "$as_me:$LINENO: result: $CXX" >&5
3064echo "${ECHO_T}$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003065else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003066 { echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003068fi
3069
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003070
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003071 test -n "$CXX" && break
3072 done
3073fi
3074if test -z "$CXX"; then
3075 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003076 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 +00003077do
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003080{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003082if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3084else
3085 if test -n "$ac_ct_CXX"; then
3086 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3087else
3088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089for as_dir in $PATH
3090do
3091 IFS=$as_save_IFS
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003094 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 +00003095 ac_cv_prog_ac_ct_CXX="$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097 break 2
3098 fi
3099done
3100done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003101IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003102
3103fi
3104fi
3105ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3106if test -n "$ac_ct_CXX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003107 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3108echo "${ECHO_T}$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003109else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003110 { echo "$as_me:$LINENO: result: no" >&5
3111echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003112fi
3113
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003114
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003115 test -n "$ac_ct_CXX" && break
3116done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003117
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003118 if test "x$ac_ct_CXX" = x; then
3119 CXX="g++"
3120 else
3121 case $cross_compiling:$ac_tool_warned in
3122yes:)
3123{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3124whose name does not start with the host triplet. If you think this
3125configuration is useful to you, please write to autoconf@gnu.org." >&5
3126echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3127whose name does not start with the host triplet. If you think this
3128configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3129ac_tool_warned=yes ;;
3130esac
3131 CXX=$ac_ct_CXX
3132 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003133fi
3134
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003135 fi
3136fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003137# Provide some information about the compiler.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003138echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003139ac_compiler=`set X $ac_compile; echo $2`
Jeremy White0ebeb532006-06-20 13:18:41 +02003140{ (ac_try="$ac_compiler --version >&5"
3141case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3144esac
3145eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_compiler --version >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003150{ (ac_try="$ac_compiler -v >&5"
3151case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154esac
3155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_compiler -v >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003157 ac_status=$?
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
Jeremy White0ebeb532006-06-20 13:18:41 +02003160{ (ac_try="$ac_compiler -V >&5"
3161case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compiler -V >&5") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3170
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003171{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3172echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003173if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3175else
3176 cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h. */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h. */
3182
3183int
3184main ()
3185{
3186#ifndef __GNUC__
3187 choke me
3188#endif
3189
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003195if { (ac_try="$ac_compile"
3196case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
3200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003202 ac_status=$?
3203 grep -v '^ *+' conftest.er1 >conftest.err
3204 rm -f conftest.er1
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003208 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3209 { (case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
3213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003215 ac_status=$?
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; } &&
3218 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003219 { (case "(($ac_try" in
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3222esac
3223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); }; }; then
3228 ac_compiler_gnu=yes
3229else
3230 echo "$as_me: failed program was:" >&5
3231sed 's/^/| /' conftest.$ac_ext >&5
3232
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003233 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003234fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003235
Jeremy White0ebeb532006-06-20 13:18:41 +02003236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003237ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3238
3239fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003240{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3241echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003242GXX=`test $ac_compiler_gnu = yes && echo yes`
3243ac_test_CXXFLAGS=${CXXFLAGS+set}
3244ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003245{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3246echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003247if test "${ac_cv_prog_cxx_g+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3249else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003250 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3251 ac_cxx_werror_flag=yes
3252 ac_cv_prog_cxx_g=no
3253 CXXFLAGS="-g"
3254 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h. */
3260
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003270if { (ac_try="$ac_compile"
3271case "(($ac_try" in
3272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3273 *) ac_try_echo=$ac_try;;
3274esac
3275eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3276 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003283 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3284 { (case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003290 ac_status=$?
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; } &&
3293 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003294 { (case "(($ac_try" in
3295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3296 *) ac_try_echo=$ac_try;;
3297esac
3298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3299 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003300 ac_status=$?
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); }; }; then
3303 ac_cv_prog_cxx_g=yes
3304else
3305 echo "$as_me: failed program was:" >&5
3306sed 's/^/| /' conftest.$ac_ext >&5
3307
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003308 CXXFLAGS=""
3309 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003315
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003316int
3317main ()
3318{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003319
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003320 ;
3321 return 0;
3322}
3323_ACEOF
3324rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003325if { (ac_try="$ac_compile"
3326case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329esac
3330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3339 { (case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342esac
3343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }; } &&
3348 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003349 { (case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352esac
3353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; }; then
3358 :
3359else
3360 echo "$as_me: failed program was:" >&5
3361sed 's/^/| /' conftest.$ac_ext >&5
3362
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003363 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3364 CXXFLAGS="-g"
3365 cat >conftest.$ac_ext <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003371
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003372int
3373main ()
3374{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003375
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003376 ;
3377 return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02003381if { (ac_try="$ac_compile"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02003394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3395 { (case "(($ac_try" in
3396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397 *) ac_try_echo=$ac_try;;
3398esac
3399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; } &&
3404 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02003405 { (case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408esac
3409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003411 ac_status=$?
3412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003414 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003415else
3416 echo "$as_me: failed program was:" >&5
3417sed 's/^/| /' conftest.$ac_ext >&5
3418
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003419
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003420fi
3421
Jeremy White0ebeb532006-06-20 13:18:41 +02003422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003423fi
3424
Jeremy White0ebeb532006-06-20 13:18:41 +02003425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003426fi
3427
Jeremy White0ebeb532006-06-20 13:18:41 +02003428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003429 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3430fi
3431{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3432echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3433if test "$ac_test_CXXFLAGS" = set; then
3434 CXXFLAGS=$ac_save_CXXFLAGS
3435elif test $ac_cv_prog_cxx_g = yes; then
3436 if test "$GXX" = yes; then
3437 CXXFLAGS="-g -O2"
3438 else
3439 CXXFLAGS="-g"
3440 fi
3441else
3442 if test "$GXX" = yes; then
3443 CXXFLAGS="-O2"
3444 else
3445 CXXFLAGS=
3446 fi
3447fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003448ac_ext=c
3449ac_cpp='$CPP $CPPFLAGS'
3450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452ac_compiler_gnu=$ac_cv_c_compiler_gnu
3453
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003454if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3456set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003457{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3458echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003459if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003462 if test -n "$CPPBIN"; then
3463 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003464else
3465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466for as_dir in $PATH
3467do
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003471 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 +00003472 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3475 fi
3476done
3477done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003478IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003479
3480fi
3481fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003482CPPBIN=$ac_cv_prog_CPPBIN
3483if test -n "$CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003484 { echo "$as_me:$LINENO: result: $CPPBIN" >&5
3485echo "${ECHO_T}$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003486else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003487 { echo "$as_me:$LINENO: result: no" >&5
3488echo "${ECHO_T}no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003489fi
3490
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003491
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003492fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003493if test -z "$ac_cv_prog_CPPBIN"; then
3494 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003495 # Extract the first word of "cpp", so it can be a program name with args.
3496set dummy cpp; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003497{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003499if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003502 if test -n "$ac_ct_CPPBIN"; then
3503 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003504else
3505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506for as_dir in $PATH
3507do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003511 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 +00003512 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516done
3517done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003518IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003519
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003520fi
3521fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003522ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3523if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003524 { echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3525echo "${ECHO_T}$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003526else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003527 { echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003529fi
3530
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003531 if test "x$ac_ct_CPPBIN" = x; then
3532 CPPBIN="cpp"
3533 else
3534 case $cross_compiling:$ac_tool_warned in
3535yes:)
3536{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3537whose name does not start with the host triplet. If you think this
3538configuration is useful to you, please write to autoconf@gnu.org." >&5
3539echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3540whose name does not start with the host triplet. If you think this
3541configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3542ac_tool_warned=yes ;;
3543esac
3544 CPPBIN=$ac_ct_CPPBIN
3545 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003546else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003547 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003548fi
3549
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003551{ echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3552echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003553if test "${wine_cv_toolsdir+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555else
3556 if test -z "$with_wine_tools"; then
3557 if test "$cross_compiling" = "yes"; then
3558 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3559echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3560 { (exit 1); exit 1; }; }
3561 else
3562 wine_cv_toolsdir="\$(TOPOBJDIR)"
3563 fi
3564 elif test -d "$with_wine_tools/tools/winebuild"; then
3565 case $with_wine_tools in
3566 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3567 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3568 esac
3569 else
3570 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3571echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3572 { (exit 1); exit 1; }; }
3573 fi
3574fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003575{ echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3576echo "${ECHO_T}$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003577TOOLSDIR=$wine_cv_toolsdir
3578
3579
3580
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003581ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003586{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3587echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003588# On Suns, sometimes $CPP names a directory.
3589if test -n "$CPP" && test -d "$CPP"; then
3590 CPP=
3591fi
3592if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003593 if test "${ac_cv_prog_CPP+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003595else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003596 # Double quotes because CPP needs to be expanded
3597 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3598 do
3599 ac_preproc_ok=false
3600for ac_c_preproc_warn_flag in '' yes
3601do
3602 # Use a header file that comes with gcc, so configuring glibc
3603 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003604 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3605 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003606 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003607 # not just through cpp. "Syntax error" is here to catch this case.
3608 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003609/* confdefs.h. */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h. */
3614#ifdef __STDC__
3615# include <limits.h>
3616#else
3617# include <assert.h>
3618#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003619 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003620_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003621if { (ac_try="$ac_cpp conftest.$ac_ext"
3622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003628 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003629 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003630 rm -f conftest.er1
3631 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003633 (exit $ac_status); } >/dev/null; then
3634 if test -s conftest.err; then
3635 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003637 else
3638 ac_cpp_err=
3639 fi
3640else
3641 ac_cpp_err=yes
3642fi
3643if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003644 :
3645else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003646 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003647sed 's/^/| /' conftest.$ac_ext >&5
3648
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003649 # Broken: fails on valid input.
3650continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003651fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003652
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003653rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003654
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003655 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003656 # can be detected and how.
3657 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003658/* confdefs.h. */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003663#include <ac_nonexistent.h>
3664_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003665if { (ac_try="$ac_cpp conftest.$ac_ext"
3666case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669esac
3670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003672 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003673 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003674 rm -f conftest.er1
3675 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003677 (exit $ac_status); } >/dev/null; then
3678 if test -s conftest.err; then
3679 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003681 else
3682 ac_cpp_err=
3683 fi
3684else
3685 ac_cpp_err=yes
3686fi
3687if test -z "$ac_cpp_err"; then
3688 # Broken: success on invalid input.
3689continue
3690else
3691 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003692sed 's/^/| /' conftest.$ac_ext >&5
3693
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003694 # Passes both tests.
3695ac_preproc_ok=:
3696break
3697fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003698
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003699rm -f conftest.err conftest.$ac_ext
3700
3701done
3702# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3703rm -f conftest.err conftest.$ac_ext
3704if $ac_preproc_ok; then
3705 break
3706fi
3707
3708 done
3709 ac_cv_prog_CPP=$CPP
3710
3711fi
3712 CPP=$ac_cv_prog_CPP
3713else
3714 ac_cv_prog_CPP=$CPP
3715fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003716{ echo "$as_me:$LINENO: result: $CPP" >&5
3717echo "${ECHO_T}$CPP" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003718ac_preproc_ok=false
3719for ac_c_preproc_warn_flag in '' yes
3720do
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003728/* confdefs.h. */
3729_ACEOF
3730cat confdefs.h >>conftest.$ac_ext
3731cat >>conftest.$ac_ext <<_ACEOF
3732/* end confdefs.h. */
3733#ifdef __STDC__
3734# include <limits.h>
3735#else
3736# include <assert.h>
3737#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003738 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003739_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003740if { (ac_try="$ac_cpp conftest.$ac_ext"
3741case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3744esac
3745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003747 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003748 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003749 rm -f conftest.er1
3750 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003752 (exit $ac_status); } >/dev/null; then
3753 if test -s conftest.err; then
3754 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003756 else
3757 ac_cpp_err=
3758 fi
3759else
3760 ac_cpp_err=yes
3761fi
3762if test -z "$ac_cpp_err"; then
3763 :
3764else
3765 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003766sed 's/^/| /' conftest.$ac_ext >&5
3767
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003768 # Broken: fails on valid input.
3769continue
3770fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003771
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003772rm -f conftest.err conftest.$ac_ext
3773
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003774 # OK, works on sane cases. Now check whether nonexistent headers
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003775 # can be detected and how.
3776 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003777/* confdefs.h. */
3778_ACEOF
3779cat confdefs.h >>conftest.$ac_ext
3780cat >>conftest.$ac_ext <<_ACEOF
3781/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003782#include <ac_nonexistent.h>
3783_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003784if { (ac_try="$ac_cpp conftest.$ac_ext"
3785case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003791 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003792 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003793 rm -f conftest.er1
3794 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003796 (exit $ac_status); } >/dev/null; then
3797 if test -s conftest.err; then
3798 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003800 else
3801 ac_cpp_err=
3802 fi
3803else
3804 ac_cpp_err=yes
3805fi
3806if test -z "$ac_cpp_err"; then
3807 # Broken: success on invalid input.
3808continue
3809else
3810 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003811sed 's/^/| /' conftest.$ac_ext >&5
3812
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003813 # Passes both tests.
3814ac_preproc_ok=:
3815break
3816fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003817
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003818rm -f conftest.err conftest.$ac_ext
3819
3820done
3821# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3822rm -f conftest.err conftest.$ac_ext
3823if $ac_preproc_ok; then
3824 :
3825else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003826 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3827See \`config.log' for more details." >&5
3828echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3829See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003830 { (exit 1); exit 1; }; }
3831fi
3832
3833ac_ext=c
3834ac_cpp='$CPP $CPPFLAGS'
3835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3837ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003839
Jeremy White0ebeb532006-06-20 13:18:41 +02003840{ echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003841echo $ECHO_N "checking for X... $ECHO_C" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003842
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003843
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003844# Check whether --with-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003845if test "${with_x+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003846 withval=$with_x;
3847fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003848
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003849# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003850if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003851 # The user explicitly disabled X.
3852 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003853else
Jeremy White0ebeb532006-06-20 13:18:41 +02003854 case $x_includes,$x_libraries in #(
3855 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3856echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3857 { (exit 1); exit 1; }; };; #(
3858 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003859 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003860else
3861 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003862ac_x_includes=no ac_x_libraries=no
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003863rm -f -r conftest.dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003864if mkdir conftest.dir; then
3865 cd conftest.dir
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003866 cat >Imakefile <<'_ACEOF'
Jeremy White0ebeb532006-06-20 13:18:41 +02003867incroot:
3868 @echo incroot='${INCROOT}'
3869usrlibdir:
3870 @echo usrlibdir='${USRLIBDIR}'
3871libdir:
3872 @echo libdir='${LIBDIR}'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003873_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003874 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003875 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02003876 for ac_var in incroot usrlibdir libdir; do
3877 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3878 done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003879 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3880 for ac_extension in a so sl; do
Jeremy White0ebeb532006-06-20 13:18:41 +02003881 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3882 test -f "$ac_im_libdir/libX11.$ac_extension"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003883 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003884 fi
3885 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003886 # Screen out bogus values from the imake configuration. They are
3887 # bogus both because they are the default anyway, and because
3888 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003889 case $ac_im_incroot in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003890 /usr/include) ac_x_includes= ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003891 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003892 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003893 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003894 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003896 esac
3897 fi
3898 cd ..
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003899 rm -f -r conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003900fi
3901
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003902# Standard set of common directories for X headers.
3903# Check X11 before X11Rn because it is often a symlink to the current release.
3904ac_x_header_dirs='
3905/usr/X11/include
3906/usr/X11R6/include
3907/usr/X11R5/include
3908/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003909
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003910/usr/include/X11
3911/usr/include/X11R6
3912/usr/include/X11R5
3913/usr/include/X11R4
3914
3915/usr/local/X11/include
3916/usr/local/X11R6/include
3917/usr/local/X11R5/include
3918/usr/local/X11R4/include
3919
3920/usr/local/include/X11
3921/usr/local/include/X11R6
3922/usr/local/include/X11R5
3923/usr/local/include/X11R4
3924
3925/usr/X386/include
3926/usr/x386/include
3927/usr/XFree86/include/X11
3928
3929/usr/include
3930/usr/local/include
3931/usr/unsupported/include
3932/usr/athena/include
3933/usr/local/x11r5/include
3934/usr/lpp/Xamples/include
3935
3936/usr/openwin/include
3937/usr/openwin/share/include'
3938
3939if test "$ac_x_includes" = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003940 # Guess where to find include files, by looking for Xlib.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003941 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003942 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003943/* confdefs.h. */
3944_ACEOF
3945cat confdefs.h >>conftest.$ac_ext
3946cat >>conftest.$ac_ext <<_ACEOF
3947/* end confdefs.h. */
Jeremy White0ebeb532006-06-20 13:18:41 +02003948#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003949_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02003950if { (ac_try="$ac_cpp conftest.$ac_ext"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003957 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003958 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003959 rm -f conftest.er1
3960 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003962 (exit $ac_status); } >/dev/null; then
3963 if test -s conftest.err; then
3964 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003966 else
3967 ac_cpp_err=
3968 fi
3969else
3970 ac_cpp_err=yes
3971fi
3972if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003973 # We can compile using X headers with no special include directory.
3974ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003975else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003976 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003977sed 's/^/| /' conftest.$ac_ext >&5
3978
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003979 for ac_dir in $ac_x_header_dirs; do
Alexandre Julliardd7d31692005-10-25 12:04:17 +00003980 if test -r "$ac_dir/X11/Xlib.h"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003981 ac_x_includes=$ac_dir
3982 break
3983 fi
3984done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003985fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003986
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003987rm -f conftest.err conftest.$ac_ext
3988fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003989
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003990if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003991 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003992 # See if we find them without any special options.
3993 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003994 ac_save_LIBS=$LIBS
Alexandre Julliardd01063e2006-06-22 12:07:57 +02003995 LIBS="-lX11 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003996 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004002#include <X11/Xlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004003int
4004main ()
4005{
Alexandre Julliardd7d31692005-10-25 12:04:17 +00004006XrmInitialize ()
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004012if { (ac_try="$ac_link"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004019 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004024 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029esac
4030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004032 ac_status=$?
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004036 { (case "(($ac_try" in
4037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4038 *) ac_try_echo=$ac_try;;
4039esac
4040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4041 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004042 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044 (exit $ac_status); }; }; then
4045 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004046# We can link X programs with no special library path.
4047ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004049 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004050sed 's/^/| /' conftest.$ac_ext >&5
4051
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004052 LIBS=$ac_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004053for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004054do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004055 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004056 for ac_extension in a so sl; do
Alexandre Julliardd01063e2006-06-22 12:07:57 +02004057 if test -r "$ac_dir/libX11.$ac_extension"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004058 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004059 break 2
4060 fi
4061 done
4062done
4063fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004064
Jeremy White0ebeb532006-06-20 13:18:41 +02004065rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004066 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004067fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004068
Jeremy White0ebeb532006-06-20 13:18:41 +02004069case $ac_x_includes,$ac_x_libraries in #(
4070 no,* | *,no | *\'*)
4071 # Didn't find X, or a directory has "'" in its name.
4072 ac_cv_have_x="have_x=no";; #(
4073 *)
4074 # Record where we found X for the cache.
4075 ac_cv_have_x="have_x=yes\
4076 ac_x_includes='$ac_x_includes'\
4077 ac_x_libraries='$ac_x_libraries'"
4078esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004079fi
Jeremy White0ebeb532006-06-20 13:18:41 +02004080;; #(
4081 *) have_x=yes;;
4082 esac
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004083 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004084fi # $with_x != no
4085
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004086if test "$have_x" != yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004087 { echo "$as_me:$LINENO: result: $have_x" >&5
4088echo "${ECHO_T}$have_x" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004089 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004090else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004091 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004092 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4093 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004094 # Update the cache value to reflect the command line values.
Jeremy White0ebeb532006-06-20 13:18:41 +02004095 ac_cv_have_x="have_x=yes\
4096 ac_x_includes='$x_includes'\
4097 ac_x_libraries='$x_libraries'"
4098 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4099echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004100fi
4101
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00004102if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004103 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004104
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004105cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004106#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004107_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004108
4109 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004110else
4111 if test -n "$x_includes"; then
4112 X_CFLAGS="$X_CFLAGS -I$x_includes"
4113 fi
4114
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004115 # It would also be nice to do this for all -L options, not just this one.
4116 if test -n "$x_libraries"; then
4117 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004118 # For Solaris; some versions of Sun CC require a space after -R and
4119 # others require no space. Words are not sufficient . . . .
Alexandre Julliardc8278922006-08-04 22:11:00 +02004120 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004121echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
Alexandre Julliardc8278922006-08-04 22:11:00 +02004122 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4123 ac_xsave_c_werror_flag=$ac_c_werror_flag
4124 ac_c_werror_flag=yes
4125 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004131
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004132int
4133main ()
4134{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004135
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004136 ;
4137 return 0;
4138}
4139_ACEOF
4140rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004141if { (ac_try="$ac_link"
4142case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004148 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004153 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4158esac
4159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004171 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004173 (exit $ac_status); }; }; then
Alexandre Julliardc8278922006-08-04 22:11:00 +02004174 { echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004175echo "${ECHO_T}no" >&6; }
Alexandre Julliardc8278922006-08-04 22:11:00 +02004176 X_LIBS="$X_LIBS -R$x_libraries"
4177else
4178 echo "$as_me: failed program was:" >&5
4179sed 's/^/| /' conftest.$ac_ext >&5
4180
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004181 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardc8278922006-08-04 22:11:00 +02004182 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004188
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004189int
4190main ()
4191{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004192
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004193 ;
4194 return 0;
4195}
4196_ACEOF
4197rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004198if { (ac_try="$ac_link"
4199case "(($ac_try" in
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4202esac
4203eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004205 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004210 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4212 { (case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; } &&
4221 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004222 { (case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004228 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004230 (exit $ac_status); }; }; then
Alexandre Julliardc8278922006-08-04 22:11:00 +02004231 { echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004232echo "${ECHO_T}yes" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004233 X_LIBS="$X_LIBS -R $x_libraries"
Alexandre Julliardc8278922006-08-04 22:11:00 +02004234else
4235 echo "$as_me: failed program was:" >&5
4236sed 's/^/| /' conftest.$ac_ext >&5
4237
4238 { echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004239echo "${ECHO_T}neither works" >&6; }
Alexandre Julliardc8278922006-08-04 22:11:00 +02004240fi
4241
4242rm -f core conftest.err conftest.$ac_objext \
4243 conftest$ac_exeext conftest.$ac_ext
4244fi
4245
4246rm -f core conftest.err conftest.$ac_objext \
4247 conftest$ac_exeext conftest.$ac_ext
4248 ac_c_werror_flag=$ac_xsave_c_werror_flag
4249 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004250 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004251
4252 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004253 # Do this before checking for the system-independent R6 libraries
4254 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004255
4256 if test "$ISC" = yes; then
4257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4258 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004259 # Martyn Johnson says this is needed for Ultrix, if the X
4260 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004261 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004262 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4263 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004269
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004270/* Override any GCC internal prototype to avoid an error.
4271 Use char because int might match the return type of a GCC
4272 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004273#ifdef __cplusplus
4274extern "C"
4275#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004276char XOpenDisplay ();
4277int
4278main ()
4279{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004280return XOpenDisplay ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004281 ;
4282 return 0;
4283}
4284_ACEOF
4285rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004286if { (ac_try="$ac_link"
4287case "(($ac_try" in
4288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289 *) ac_try_echo=$ac_try;;
4290esac
4291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004293 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004298 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4300 { (case "(($ac_try" in
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4303esac
4304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004306 ac_status=$?
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; } &&
4309 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004310 { (case "(($ac_try" in
4311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4312 *) ac_try_echo=$ac_try;;
4313esac
4314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4315 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004316 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004318 (exit $ac_status); }; }; then
4319 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004320else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004321 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004322sed 's/^/| /' conftest.$ac_ext >&5
4323
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004324 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4325echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004326if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4328else
4329 ac_check_lib_save_LIBS=$LIBS
4330LIBS="-ldnet $LIBS"
4331cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004332/* confdefs.h. */
4333_ACEOF
4334cat confdefs.h >>conftest.$ac_ext
4335cat >>conftest.$ac_ext <<_ACEOF
4336/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004338/* Override any GCC internal prototype to avoid an error.
4339 Use char because int might match the return type of a GCC
4340 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004341#ifdef __cplusplus
4342extern "C"
4343#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004344char dnet_ntoa ();
4345int
4346main ()
4347{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004348return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004349 ;
4350 return 0;
4351}
4352_ACEOF
4353rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004354if { (ac_try="$ac_link"
4355case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004361 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004366 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4368 { (case "(($ac_try" in
4369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370 *) ac_try_echo=$ac_try;;
4371esac
4372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); }; } &&
4377 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004378 { (case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004384 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004386 (exit $ac_status); }; }; then
4387 ac_cv_lib_dnet_dnet_ntoa=yes
4388else
4389 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004390sed 's/^/| /' conftest.$ac_ext >&5
4391
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004392 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004393fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004394
Jeremy White0ebeb532006-06-20 13:18:41 +02004395rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004396 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397LIBS=$ac_check_lib_save_LIBS
4398fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004399{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4400echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004401if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004402 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004403fi
4404
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004405 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004406 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4407echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004408if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004410else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004411 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004412LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004413cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004414/* confdefs.h. */
4415_ACEOF
4416cat confdefs.h >>conftest.$ac_ext
4417cat >>conftest.$ac_ext <<_ACEOF
4418/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004419
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004420/* Override any GCC internal prototype to avoid an error.
4421 Use char because int might match the return type of a GCC
4422 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004423#ifdef __cplusplus
4424extern "C"
4425#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004426char dnet_ntoa ();
4427int
4428main ()
4429{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004430return dnet_ntoa ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004431 ;
4432 return 0;
4433}
4434_ACEOF
4435rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004436if { (ac_try="$ac_link"
4437case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440esac
4441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004448 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4450 { (case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453esac
4454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); }; } &&
4459 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004460 { (case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463esac
4464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004466 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004468 (exit $ac_status); }; }; then
4469 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004471 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004472sed 's/^/| /' conftest.$ac_ext >&5
4473
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004474 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004475fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004476
Jeremy White0ebeb532006-06-20 13:18:41 +02004477rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004478 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004479LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004480fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004481{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4482echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004483if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004484 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004485fi
4486
4487 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004488fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004489
Jeremy White0ebeb532006-06-20 13:18:41 +02004490rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004491 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004492 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004493
4494 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4495 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004496 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004497 # needs -lnsl.
4498 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004499 # on Irix 5.2, according to T.E. Dickey.
4500 # The functions gethostbyname, getservbyname, and inet_addr are
4501 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004502 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4503echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004504if test "${ac_cv_func_gethostbyname+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004507 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004508/* confdefs.h. */
4509_ACEOF
4510cat confdefs.h >>conftest.$ac_ext
4511cat >>conftest.$ac_ext <<_ACEOF
4512/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004513/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4515#define gethostbyname innocuous_gethostbyname
4516
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004517/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004518 which can conflict with char gethostbyname (); below.
4519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004521
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004522#ifdef __STDC__
4523# include <limits.h>
4524#else
4525# include <assert.h>
4526#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004527
4528#undef gethostbyname
4529
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004530/* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004533#ifdef __cplusplus
4534extern "C"
4535#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004536char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004537/* The GNU C library defines this for functions which it implements
4538 to always fail with ENOSYS. Some functions are actually named
4539 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004540#if defined __stub_gethostbyname || defined __stub___gethostbyname
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004541choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004542#endif
4543
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004544int
4545main ()
4546{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004547return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004548 ;
4549 return 0;
4550}
4551_ACEOF
4552rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004553if { (ac_try="$ac_link"
4554case "(($ac_try" in
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4557esac
4558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4559 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004560 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004561 grep -v '^ *+' conftest.er1 >conftest.err
4562 rm -f conftest.er1
4563 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004565 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4567 { (case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570esac
4571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004573 ac_status=$?
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; } &&
4576 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004577 { (case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580esac
4581eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004583 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004585 (exit $ac_status); }; }; then
4586 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004587else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004588 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004589sed 's/^/| /' conftest.$ac_ext >&5
4590
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004591 ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004592fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004593
Jeremy White0ebeb532006-06-20 13:18:41 +02004594rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004595 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004596fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004597{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4598echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004599
4600 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004601 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4602echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004603if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004605else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004606 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004607LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004608cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004609/* confdefs.h. */
4610_ACEOF
4611cat confdefs.h >>conftest.$ac_ext
4612cat >>conftest.$ac_ext <<_ACEOF
4613/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004615/* Override any GCC internal prototype to avoid an error.
4616 Use char because int might match the return type of a GCC
4617 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004618#ifdef __cplusplus
4619extern "C"
4620#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004621char gethostbyname ();
4622int
4623main ()
4624{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004625return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004626 ;
4627 return 0;
4628}
4629_ACEOF
4630rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004631if { (ac_try="$ac_link"
4632case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4635esac
4636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004638 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004639 grep -v '^ *+' conftest.er1 >conftest.err
4640 rm -f conftest.er1
4641 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004643 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4645 { (case "(($ac_try" in
4646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4647 *) ac_try_echo=$ac_try;;
4648esac
4649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004655 { (case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658esac
4659eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004661 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004663 (exit $ac_status); }; }; then
4664 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004665else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004666 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004667sed 's/^/| /' conftest.$ac_ext >&5
4668
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004669 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004671
Jeremy White0ebeb532006-06-20 13:18:41 +02004672rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004673 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004674LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004675fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004676{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4677echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004678if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004679 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004680fi
4681
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004682 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004683 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4684echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004685if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688 ac_check_lib_save_LIBS=$LIBS
4689LIBS="-lbsd $LIBS"
4690cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004696
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004697/* Override any GCC internal prototype to avoid an error.
4698 Use char because int might match the return type of a GCC
4699 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004700#ifdef __cplusplus
4701extern "C"
4702#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004703char gethostbyname ();
4704int
4705main ()
4706{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004707return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004708 ;
4709 return 0;
4710}
4711_ACEOF
4712rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004713if { (ac_try="$ac_link"
4714case "(($ac_try" in
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4717esac
4718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004720 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004721 grep -v '^ *+' conftest.er1 >conftest.err
4722 rm -f conftest.er1
4723 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004725 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4727 { (case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730esac
4731eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004733 ac_status=$?
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); }; } &&
4736 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004737 { (case "(($ac_try" in
4738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4740esac
4741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004743 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004745 (exit $ac_status); }; }; then
4746 ac_cv_lib_bsd_gethostbyname=yes
4747else
4748 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004749sed 's/^/| /' conftest.$ac_ext >&5
4750
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004751 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004752fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004753
Jeremy White0ebeb532006-06-20 13:18:41 +02004754rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004755 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004756LIBS=$ac_check_lib_save_LIBS
4757fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004758{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4759echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004760if test $ac_cv_lib_bsd_gethostbyname = yes; then
4761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4762fi
4763
4764 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004765 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004766
4767 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004768 # socket/setsockopt and other routines are undefined under SCO ODT
4769 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004770 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00004771 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004772 # must be given before -lnsl if both are needed. We assume that
4773 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004774 { echo "$as_me:$LINENO: checking for connect" >&5
4775echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004776if test "${ac_cv_func_connect+set}" = set; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004778else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004779 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004780/* confdefs.h. */
4781_ACEOF
4782cat confdefs.h >>conftest.$ac_ext
4783cat >>conftest.$ac_ext <<_ACEOF
4784/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004785/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4787#define connect innocuous_connect
4788
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004789/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004790 which can conflict with char connect (); below.
4791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4792 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004793
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004794#ifdef __STDC__
4795# include <limits.h>
4796#else
4797# include <assert.h>
4798#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004799
4800#undef connect
4801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004802/* Override any GCC internal prototype to avoid an error.
4803 Use char because int might match the return type of a GCC
4804 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004805#ifdef __cplusplus
4806extern "C"
4807#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004808char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004809/* The GNU C library defines this for functions which it implements
4810 to always fail with ENOSYS. Some functions are actually named
4811 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004812#if defined __stub_connect || defined __stub___connect
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004813choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004814#endif
4815
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004816int
4817main ()
4818{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004819return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004820 ;
4821 return 0;
4822}
4823_ACEOF
4824rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004825if { (ac_try="$ac_link"
4826case "(($ac_try" in
4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4828 *) ac_try_echo=$ac_try;;
4829esac
4830eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4831 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004832 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004833 grep -v '^ *+' conftest.er1 >conftest.err
4834 rm -f conftest.er1
4835 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004837 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4839 { (case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
4843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4844 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004849 { (case "(($ac_try" in
4850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4851 *) ac_try_echo=$ac_try;;
4852esac
4853eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4854 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004855 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004857 (exit $ac_status); }; }; then
4858 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004859else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004860 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004861sed 's/^/| /' conftest.$ac_ext >&5
4862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004863 ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004864fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004865
Jeremy White0ebeb532006-06-20 13:18:41 +02004866rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004867 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004868fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004869{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4870echo "${ECHO_T}$ac_cv_func_connect" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004871
4872 if test $ac_cv_func_connect = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004873 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4874echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004875if test "${ac_cv_lib_socket_connect+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004878 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004879LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004880cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004881/* confdefs.h. */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004887/* Override any GCC internal prototype to avoid an error.
4888 Use char because int might match the return type of a GCC
4889 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004890#ifdef __cplusplus
4891extern "C"
4892#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004893char connect ();
4894int
4895main ()
4896{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004897return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004898 ;
4899 return 0;
4900}
4901_ACEOF
4902rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02004903if { (ac_try="$ac_link"
4904case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907esac
4908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004910 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004911 grep -v '^ *+' conftest.er1 >conftest.err
4912 rm -f conftest.er1
4913 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004915 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02004916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4917 { (case "(($ac_try" in
4918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919 *) ac_try_echo=$ac_try;;
4920esac
4921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4922 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; } &&
4926 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02004927 { (case "(($ac_try" in
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4930esac
4931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004935 (exit $ac_status); }; }; then
4936 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004937else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004938 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004939sed 's/^/| /' conftest.$ac_ext >&5
4940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004941 ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004942fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004943
Jeremy White0ebeb532006-06-20 13:18:41 +02004944rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00004945 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004946LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004947fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004948{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4949echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004950if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004951 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004952fi
4953
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004954 fi
4955
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004956 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004957 { echo "$as_me:$LINENO: checking for remove" >&5
4958echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004959if test "${ac_cv_func_remove+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004961else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004962 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004963/* confdefs.h. */
4964_ACEOF
4965cat confdefs.h >>conftest.$ac_ext
4966cat >>conftest.$ac_ext <<_ACEOF
4967/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004968/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4970#define remove innocuous_remove
4971
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004972/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004973 which can conflict with char remove (); below.
4974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4975 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004976
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004977#ifdef __STDC__
4978# include <limits.h>
4979#else
4980# include <assert.h>
4981#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004982
4983#undef remove
4984
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004985/* Override any GCC internal prototype to avoid an error.
4986 Use char because int might match the return type of a GCC
4987 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004988#ifdef __cplusplus
4989extern "C"
4990#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004991char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004992/* The GNU C library defines this for functions which it implements
4993 to always fail with ENOSYS. Some functions are actually named
4994 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004995#if defined __stub_remove || defined __stub___remove
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004996choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004997#endif
4998
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004999int
5000main ()
5001{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005002return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005003 ;
5004 return 0;
5005}
5006_ACEOF
5007rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005008if { (ac_try="$ac_link"
5009case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012esac
5013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005015 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005020 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5022 { (case "(($ac_try" in
5023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024 *) ac_try_echo=$ac_try;;
5025esac
5026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5027 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005028 ac_status=$?
5029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030 (exit $ac_status); }; } &&
5031 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005032 { (case "(($ac_try" in
5033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034 *) ac_try_echo=$ac_try;;
5035esac
5036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5037 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005038 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005040 (exit $ac_status); }; }; then
5041 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005042else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005043 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005044sed 's/^/| /' conftest.$ac_ext >&5
5045
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005046 ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005047fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005048
Jeremy White0ebeb532006-06-20 13:18:41 +02005049rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005050 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005051fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005052{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
5053echo "${ECHO_T}$ac_cv_func_remove" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005054
5055 if test $ac_cv_func_remove = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005056 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
5057echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005058if test "${ac_cv_lib_posix_remove+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005060else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005061 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005062LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005063cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005064/* confdefs.h. */
5065_ACEOF
5066cat confdefs.h >>conftest.$ac_ext
5067cat >>conftest.$ac_ext <<_ACEOF
5068/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005069
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005070/* Override any GCC internal prototype to avoid an error.
5071 Use char because int might match the return type of a GCC
5072 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005073#ifdef __cplusplus
5074extern "C"
5075#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005076char remove ();
5077int
5078main ()
5079{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005080return remove ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005081 ;
5082 return 0;
5083}
5084_ACEOF
5085rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005086if { (ac_try="$ac_link"
5087case "(($ac_try" in
5088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5089 *) ac_try_echo=$ac_try;;
5090esac
5091eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5092 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005093 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005098 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5100 { (case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5103esac
5104eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005110 { (case "(($ac_try" in
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5113esac
5114eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005116 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005118 (exit $ac_status); }; }; then
5119 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005120else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005121 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005122sed 's/^/| /' conftest.$ac_ext >&5
5123
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005124 ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005125fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005126
Jeremy White0ebeb532006-06-20 13:18:41 +02005127rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005128 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005129LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005130fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005131{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
5132echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005133if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005135fi
5136
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005137 fi
5138
5139 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005140 { echo "$as_me:$LINENO: checking for shmat" >&5
5141echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005142if test "${ac_cv_func_shmat+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005144else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005145 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005146/* confdefs.h. */
5147_ACEOF
5148cat confdefs.h >>conftest.$ac_ext
5149cat >>conftest.$ac_ext <<_ACEOF
5150/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005151/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
5152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5153#define shmat innocuous_shmat
5154
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005155/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005156 which can conflict with char shmat (); below.
5157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5158 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005159
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005160#ifdef __STDC__
5161# include <limits.h>
5162#else
5163# include <assert.h>
5164#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005165
5166#undef shmat
5167
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005168/* Override any GCC internal prototype to avoid an error.
5169 Use char because int might match the return type of a GCC
5170 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005171#ifdef __cplusplus
5172extern "C"
5173#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005174char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005175/* The GNU C library defines this for functions which it implements
5176 to always fail with ENOSYS. Some functions are actually named
5177 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005178#if defined __stub_shmat || defined __stub___shmat
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005179choke me
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005180#endif
5181
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005182int
5183main ()
5184{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005185return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005186 ;
5187 return 0;
5188}
5189_ACEOF
5190rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005191if { (ac_try="$ac_link"
5192case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195esac
5196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005198 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005203 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5205 { (case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208esac
5209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5210 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005211 ac_status=$?
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); }; } &&
5214 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005215 { (case "(($ac_try" in
5216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217 *) ac_try_echo=$ac_try;;
5218esac
5219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005221 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005223 (exit $ac_status); }; }; then
5224 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005225else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005227sed 's/^/| /' conftest.$ac_ext >&5
5228
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005229 ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005230fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005231
Jeremy White0ebeb532006-06-20 13:18:41 +02005232rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005233 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005234fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005235{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
5236echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005237
5238 if test $ac_cv_func_shmat = no; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005239 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
5240echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005241if test "${ac_cv_lib_ipc_shmat+set}" = set; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005243else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005244 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005245LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005246cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005247/* confdefs.h. */
5248_ACEOF
5249cat confdefs.h >>conftest.$ac_ext
5250cat >>conftest.$ac_ext <<_ACEOF
5251/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005252
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005253/* Override any GCC internal prototype to avoid an error.
5254 Use char because int might match the return type of a GCC
5255 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005256#ifdef __cplusplus
5257extern "C"
5258#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005259char shmat ();
5260int
5261main ()
5262{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005263return shmat ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005264 ;
5265 return 0;
5266}
5267_ACEOF
5268rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005269if { (ac_try="$ac_link"
5270case "(($ac_try" in
5271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5272 *) ac_try_echo=$ac_try;;
5273esac
5274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5275 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005276 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005281 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5283 { (case "(($ac_try" in
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5286esac
5287eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; } &&
5292 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005293 { (case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005299 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005301 (exit $ac_status); }; }; then
5302 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005303else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005304 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005305sed 's/^/| /' conftest.$ac_ext >&5
5306
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005307 ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005308fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005309
Jeremy White0ebeb532006-06-20 13:18:41 +02005310rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005311 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005312LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005313fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005314{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
5315echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005317 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005318fi
5319
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005320 fi
5321 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005322
5323 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005324 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005325 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5326 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5327 # check for ICE first), but we must link in the order -lSM -lICE or
5328 # we get undefined symbols. So assume we have SM if we have ICE.
5329 # These have to be linked with before -lX11, unlike the other
5330 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005331 # John Interrante, Karl Berry
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005332 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
5333echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005334if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005336else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005337 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00005338LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005339cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005340/* confdefs.h. */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005345
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005346/* Override any GCC internal prototype to avoid an error.
5347 Use char because int might match the return type of a GCC
5348 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005349#ifdef __cplusplus
5350extern "C"
5351#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005352char IceConnectionNumber ();
5353int
5354main ()
5355{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005356return IceConnectionNumber ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005357 ;
5358 return 0;
5359}
5360_ACEOF
5361rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005362if { (ac_try="$ac_link"
5363case "(($ac_try" in
5364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5365 *) ac_try_echo=$ac_try;;
5366esac
5367eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5368 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005369 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005370 grep -v '^ *+' conftest.er1 >conftest.err
5371 rm -f conftest.er1
5372 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005374 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5376 { (case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379esac
5380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; } &&
5385 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005386 { (case "(($ac_try" in
5387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388 *) ac_try_echo=$ac_try;;
5389esac
5390eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5391 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005392 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005394 (exit $ac_status); }; }; then
5395 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005396else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005397 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005398sed 's/^/| /' conftest.$ac_ext >&5
5399
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005400 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005401fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005402
Jeremy White0ebeb532006-06-20 13:18:41 +02005403rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005404 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005405LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005406fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005407{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5408echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005409if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005410 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005411fi
5412
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005413 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00005414
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005415fi
5416
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005417for ac_prog in flex lex
5418do
5419 # Extract the first word of "$ac_prog", so it can be a program name with args.
5420set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005423if test "${ac_cv_prog_LEX+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005425else
5426 if test -n "$LEX"; then
5427 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5428else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005435 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 +00005436 ac_cv_prog_LEX="$ac_prog"
5437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005441done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005442IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005443
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005444fi
5445fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005446LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005447if test -n "$LEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005448 { echo "$as_me:$LINENO: result: $LEX" >&5
5449echo "${ECHO_T}$LEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005450else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005451 { echo "$as_me:$LINENO: result: no" >&5
5452echo "${ECHO_T}no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005453fi
5454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005455
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005456 test -n "$LEX" && break
5457done
5458test -n "$LEX" || LEX=":"
5459
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005460if test -z "$LEXLIB"
5461then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005462 { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5463echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005464if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005466else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005467 ac_check_lib_save_LIBS=$LIBS
5468LIBS="-lfl $LIBS"
5469cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005470/* confdefs.h. */
5471_ACEOF
5472cat confdefs.h >>conftest.$ac_ext
5473cat >>conftest.$ac_ext <<_ACEOF
5474/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005475
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005476/* Override any GCC internal prototype to avoid an error.
5477 Use char because int might match the return type of a GCC
5478 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005479#ifdef __cplusplus
5480extern "C"
5481#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005482char yywrap ();
5483int
5484main ()
5485{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005486return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005487 ;
5488 return 0;
5489}
5490_ACEOF
5491rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005492if { (ac_try="$ac_link"
5493case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496esac
5497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005499 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005504 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5506 { (case "(($ac_try" in
5507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5508 *) ac_try_echo=$ac_try;;
5509esac
5510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005512 ac_status=$?
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; } &&
5515 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005516 { (case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519esac
5520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005522 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005524 (exit $ac_status); }; }; then
5525 ac_cv_lib_fl_yywrap=yes
5526else
5527 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005528sed 's/^/| /' conftest.$ac_ext >&5
5529
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005530 ac_cv_lib_fl_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005531fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005532
Jeremy White0ebeb532006-06-20 13:18:41 +02005533rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005534 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005535LIBS=$ac_check_lib_save_LIBS
5536fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005537{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5538echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005539if test $ac_cv_lib_fl_yywrap = yes; then
5540 LEXLIB="-lfl"
5541else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005542 { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5543echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005544if test "${ac_cv_lib_l_yywrap+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547 ac_check_lib_save_LIBS=$LIBS
5548LIBS="-ll $LIBS"
5549cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005550/* confdefs.h. */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005555
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005556/* Override any GCC internal prototype to avoid an error.
5557 Use char because int might match the return type of a GCC
5558 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005559#ifdef __cplusplus
5560extern "C"
5561#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005562char yywrap ();
5563int
5564main ()
5565{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005566return yywrap ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005567 ;
5568 return 0;
5569}
5570_ACEOF
5571rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005572if { (ac_try="$ac_link"
5573case "(($ac_try" in
5574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5575 *) ac_try_echo=$ac_try;;
5576esac
5577eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5578 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005579 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005580 grep -v '^ *+' conftest.er1 >conftest.err
5581 rm -f conftest.er1
5582 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005584 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5586 { (case "(($ac_try" in
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5589esac
5590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005592 ac_status=$?
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; } &&
5595 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005596 { (case "(($ac_try" in
5597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598 *) ac_try_echo=$ac_try;;
5599esac
5600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005602 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005604 (exit $ac_status); }; }; then
5605 ac_cv_lib_l_yywrap=yes
5606else
5607 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005608sed 's/^/| /' conftest.$ac_ext >&5
5609
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005610 ac_cv_lib_l_yywrap=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005611fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005612
Jeremy White0ebeb532006-06-20 13:18:41 +02005613rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005614 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005615LIBS=$ac_check_lib_save_LIBS
5616fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005617{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5618echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005619if test $ac_cv_lib_l_yywrap = yes; then
5620 LEXLIB="-ll"
5621fi
5622
5623fi
5624
5625fi
5626
5627if test "x$LEX" != "x:"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005628 { echo "$as_me:$LINENO: checking lex output file root" >&5
5629echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005630if test "${ac_cv_prog_lex_root+set}" = set; then
5631 echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633 # The minimal lex program is just a single line: %%. But some broken lexes
5634# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005635cat >conftest.l <<_ACEOF
5636%%
5637%%
5638_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02005639{ (ac_try="$LEX conftest.l"
5640case "(($ac_try" in
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5643esac
5644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$LEX conftest.l") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005649if test -f lex.yy.c; then
5650 ac_cv_prog_lex_root=lex.yy
5651elif test -f lexyy.c; then
5652 ac_cv_prog_lex_root=lexyy
5653else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005654 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005655echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5656 { (exit 1); exit 1; }; }
5657fi
5658fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005659{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5660echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005661rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005662LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5663
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005664{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5665echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005666if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 # POSIX says lex can declare yytext either as a pointer or an array; the
5670# default is implementation-dependent. Figure out which it is, since
5671# not all implementations provide the %pointer and %array declarations.
5672ac_cv_prog_lex_yytext_pointer=no
5673echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5674ac_save_LIBS=$LIBS
5675LIBS="$LIBS $LEXLIB"
5676cat >conftest.$ac_ext <<_ACEOF
5677`cat $LEX_OUTPUT_ROOT.c`
5678_ACEOF
5679rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02005680if { (ac_try="$ac_link"
5681case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684esac
5685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005687 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005688 grep -v '^ *+' conftest.er1 >conftest.err
5689 rm -f conftest.er1
5690 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005692 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02005693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5694 { (case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; } &&
5703 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02005704 { (case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707esac
5708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005710 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005712 (exit $ac_status); }; }; then
5713 ac_cv_prog_lex_yytext_pointer=yes
5714else
5715 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005716sed 's/^/| /' conftest.$ac_ext >&5
5717
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005718
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005719fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005720
Jeremy White0ebeb532006-06-20 13:18:41 +02005721rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005722 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005723LIBS=$ac_save_LIBS
5724rm -f "${LEX_OUTPUT_ROOT}.c"
5725
5726fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005727{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5728echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005729if test $ac_cv_prog_lex_yytext_pointer = yes; then
5730
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005731cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005732#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005733_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005734
5735fi
5736
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005737fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00005738
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005739for ac_prog in $LEX flex lex
5740do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005741 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005742set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005743{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005745if test "${ac_cv_prog_XLEX+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005747else
5748 if test -n "$XLEX"; then
5749 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
5750else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754 IFS=$as_save_IFS
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005757 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 +00005758 ac_cv_prog_XLEX="$ac_prog"
5759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 break 2
5761 fi
5762done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005763done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005764IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005766fi
5767fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005768XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005769if test -n "$XLEX"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005770 { echo "$as_me:$LINENO: result: $XLEX" >&5
5771echo "${ECHO_T}$XLEX" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005772else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005773 { echo "$as_me:$LINENO: result: no" >&5
5774echo "${ECHO_T}no" >&6; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005775fi
5776
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005777
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005778 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005779done
5780test -n "$XLEX" || XLEX="none"
5781
5782if test "$XLEX" = "none"
5783then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005784 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005785echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
5786 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00005787fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005788
Mike McCormackc068f672004-03-16 03:11:39 +00005789for ac_prog in bison
5790do
5791 # Extract the first word of "$ac_prog", so it can be a program name with args.
5792set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005793{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005795if test "${ac_cv_prog_BISON+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5797else
5798 if test -n "$BISON"; then
5799 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5800else
5801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005807 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 +00005808 ac_cv_prog_BISON="$ac_prog"
5809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5811 fi
5812done
5813done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005814IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00005815
5816fi
5817fi
5818BISON=$ac_cv_prog_BISON
5819if test -n "$BISON"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005820 { echo "$as_me:$LINENO: result: $BISON" >&5
5821echo "${ECHO_T}$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005822else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005823 { echo "$as_me:$LINENO: result: no" >&5
5824echo "${ECHO_T}no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00005825fi
5826
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005827
Mike McCormackc068f672004-03-16 03:11:39 +00005828 test -n "$BISON" && break
5829done
5830test -n "$BISON" || BISON="none"
5831
5832if test "$BISON" = "none"
5833then
5834 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
5835echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
5836 { (exit 1); exit 1; }; }
5837fi
5838
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005839if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005840 for ac_prog in gas as
5841 do
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5843set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005844{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005846if test "${ac_cv_prog_AS+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 if test -n "$AS"; then
5850 ac_cv_prog_AS="$AS" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005858 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 +00005859 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863done
5864done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005865IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005866
5867fi
5868fi
5869AS=$ac_cv_prog_AS
5870if test -n "$AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005871 { echo "$as_me:$LINENO: result: $AS" >&5
5872echo "${ECHO_T}$AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005873else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005874 { echo "$as_me:$LINENO: result: no" >&5
5875echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005876fi
5877
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005878
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005879 test -n "$AS" && break
5880 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00005881fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005882if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00005883 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005884 for ac_prog in gas as
5885do
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005888{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005890if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893 if test -n "$ac_ct_AS"; then
5894 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5895else
5896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897for as_dir in $PATH
5898do
5899 IFS=$as_save_IFS
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005902 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 +00005903 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00005904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 break 2
5906 fi
5907done
5908done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005909IFS=$as_save_IFS
Marcus Meissner1d4db782003-01-09 00:46:54 +00005910
Marcus Meissner1d4db782003-01-09 00:46:54 +00005911fi
5912fi
5913ac_ct_AS=$ac_cv_prog_ac_ct_AS
5914if test -n "$ac_ct_AS"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005915 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5916echo "${ECHO_T}$ac_ct_AS" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005917else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005918 { echo "$as_me:$LINENO: result: no" >&5
5919echo "${ECHO_T}no" >&6; }
Marcus Meissner1d4db782003-01-09 00:46:54 +00005920fi
5921
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005922
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005923 test -n "$ac_ct_AS" && break
5924done
Alexandre Julliardc80c2902003-05-06 18:41:52 +00005925
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005926 if test "x$ac_ct_AS" = x; then
5927 AS="as"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930yes:)
5931{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5932whose name does not start with the host triplet. If you think this
5933configuration is useful to you, please write to autoconf@gnu.org." >&5
5934echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5935whose name does not start with the host triplet. If you think this
5936configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5937ac_tool_warned=yes ;;
5938esac
5939 AS=$ac_ct_AS
5940 fi
Marcus Meissner1d4db782003-01-09 00:46:54 +00005941fi
5942
5943if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005944 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5945set dummy ${ac_tool_prefix}ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005946{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005948if test "${ac_cv_prog_LD+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951 if test -n "$LD"; then
5952 ac_cv_prog_LD="$LD" # Let the user override the test.
5953else
5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5955for as_dir in $PATH
5956do
5957 IFS=$as_save_IFS
5958 test -z "$as_dir" && as_dir=.
5959 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005960 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 +00005961 ac_cv_prog_LD="${ac_tool_prefix}ld"
5962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5963 break 2
5964 fi
5965done
5966done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005967IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005968
5969fi
5970fi
5971LD=$ac_cv_prog_LD
5972if test -n "$LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005973 { echo "$as_me:$LINENO: result: $LD" >&5
5974echo "${ECHO_T}$LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005975else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005976 { echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005978fi
5979
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005980
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005981fi
5982if test -z "$ac_cv_prog_LD"; then
5983 ac_ct_LD=$LD
5984 # Extract the first word of "ld", so it can be a program name with args.
5985set dummy ld; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005986{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00005988if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 if test -n "$ac_ct_LD"; then
5992 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5993else
5994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995for as_dir in $PATH
5996do
5997 IFS=$as_save_IFS
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006000 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 +00006001 ac_cv_prog_ac_ct_LD="ld"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6003 break 2
6004 fi
6005done
6006done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006007IFS=$as_save_IFS
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006008
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006009fi
6010fi
6011ac_ct_LD=$ac_cv_prog_ac_ct_LD
6012if test -n "$ac_ct_LD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006013 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
6014echo "${ECHO_T}$ac_ct_LD" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006015else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006016 { echo "$as_me:$LINENO: result: no" >&5
6017echo "${ECHO_T}no" >&6; }
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006018fi
6019
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006020 if test "x$ac_ct_LD" = x; then
6021 LD="ld"
6022 else
6023 case $cross_compiling:$ac_tool_warned in
6024yes:)
6025{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6026whose name does not start with the host triplet. If you think this
6027configuration is useful to you, please write to autoconf@gnu.org." >&5
6028echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6029whose name does not start with the host triplet. If you think this
6030configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6031ac_tool_warned=yes ;;
6032esac
6033 LD=$ac_ct_LD
6034 fi
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00006035else
6036 LD="$ac_cv_prog_LD"
6037fi
6038
6039if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006040 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6041set dummy ${ac_tool_prefix}ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006042{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006044if test "${ac_cv_prog_AR+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047 if test -n "$AR"; then
6048 ac_cv_prog_AR="$AR" # Let the user override the test.
6049else
6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051for as_dir in $PATH
6052do
6053 IFS=$as_save_IFS
6054 test -z "$as_dir" && as_dir=.
6055 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006056 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 +00006057 ac_cv_prog_AR="${ac_tool_prefix}ar"
6058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059 break 2
6060 fi
6061done
6062done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006063IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006064
6065fi
6066fi
6067AR=$ac_cv_prog_AR
6068if test -n "$AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006069 { echo "$as_me:$LINENO: result: $AR" >&5
6070echo "${ECHO_T}$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006071else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006072 { echo "$as_me:$LINENO: result: no" >&5
6073echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006074fi
6075
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006076
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006077fi
6078if test -z "$ac_cv_prog_AR"; then
6079 ac_ct_AR=$AR
6080 # Extract the first word of "ar", so it can be a program name with args.
6081set dummy ar; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006082{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006084if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6086else
6087 if test -n "$ac_ct_AR"; then
6088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6089else
6090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091for as_dir in $PATH
6092do
6093 IFS=$as_save_IFS
6094 test -z "$as_dir" && as_dir=.
6095 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006096 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 +00006097 ac_cv_prog_ac_ct_AR="ar"
6098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6099 break 2
6100 fi
6101done
6102done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006103IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006104
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006105fi
6106fi
6107ac_ct_AR=$ac_cv_prog_ac_ct_AR
6108if test -n "$ac_ct_AR"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006109 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6110echo "${ECHO_T}$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006111else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006112 { echo "$as_me:$LINENO: result: no" >&5
6113echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006114fi
6115
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006116 if test "x$ac_ct_AR" = x; then
6117 AR="ar"
6118 else
6119 case $cross_compiling:$ac_tool_warned in
6120yes:)
6121{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6122whose name does not start with the host triplet. If you think this
6123configuration is useful to you, please write to autoconf@gnu.org." >&5
6124echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6125whose name does not start with the host triplet. If you think this
6126configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6127ac_tool_warned=yes ;;
6128esac
6129 AR=$ac_ct_AR
6130 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006131else
6132 AR="$ac_cv_prog_AR"
6133fi
6134
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006135if test -n "$ac_tool_prefix"; then
6136 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6137set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006138{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006140if test "${ac_cv_prog_RANLIB+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006142else
6143 if test -n "$RANLIB"; then
6144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6145else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147for as_dir in $PATH
6148do
6149 IFS=$as_save_IFS
6150 test -z "$as_dir" && as_dir=.
6151 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006152 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 +00006153 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6155 break 2
6156 fi
6157done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006158done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006159IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006160
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006161fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006162fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006164if test -n "$RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006165 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6166echo "${ECHO_T}$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006167else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006168 { echo "$as_me:$LINENO: result: no" >&5
6169echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006170fi
6171
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006172
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006173fi
6174if test -z "$ac_cv_prog_RANLIB"; then
6175 ac_ct_RANLIB=$RANLIB
6176 # Extract the first word of "ranlib", so it can be a program name with args.
6177set dummy ranlib; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006178{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006180if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6181 echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183 if test -n "$ac_ct_RANLIB"; then
6184 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6185else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187for as_dir in $PATH
6188do
6189 IFS=$as_save_IFS
6190 test -z "$as_dir" && as_dir=.
6191 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006192 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 +00006193 ac_cv_prog_ac_ct_RANLIB="ranlib"
6194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6195 break 2
6196 fi
6197done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006198done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006199IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006200
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006201fi
6202fi
6203ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6204if test -n "$ac_ct_RANLIB"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006205 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6206echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006207else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006208 { echo "$as_me:$LINENO: result: no" >&5
6209echo "${ECHO_T}no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006210fi
6211
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006212 if test "x$ac_ct_RANLIB" = x; then
6213 RANLIB=":"
6214 else
6215 case $cross_compiling:$ac_tool_warned in
6216yes:)
6217{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6218whose name does not start with the host triplet. If you think this
6219configuration is useful to you, please write to autoconf@gnu.org." >&5
6220echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6221whose name does not start with the host triplet. If you think this
6222configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6223ac_tool_warned=yes ;;
6224esac
6225 RANLIB=$ac_ct_RANLIB
6226 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006227else
6228 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00006229fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00006230
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006231if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6233set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006234{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006236if test "${ac_cv_prog_STRIP+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 if test -n "$STRIP"; then
6240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006248 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 +00006249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006255IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006256
6257fi
6258fi
6259STRIP=$ac_cv_prog_STRIP
6260if test -n "$STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006261 { echo "$as_me:$LINENO: result: $STRIP" >&5
6262echo "${ECHO_T}$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006263else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006264 { echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006266fi
6267
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006268
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006269fi
6270if test -z "$ac_cv_prog_STRIP"; then
6271 ac_ct_STRIP=$STRIP
6272 # Extract the first word of "strip", so it can be a program name with args.
6273set dummy strip; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006274{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006276if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6278else
6279 if test -n "$ac_ct_STRIP"; then
6280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6281else
6282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283for as_dir in $PATH
6284do
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006288 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 +00006289 ac_cv_prog_ac_ct_STRIP="strip"
6290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6292 fi
6293done
6294done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006295IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006296
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006297fi
6298fi
6299ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6300if test -n "$ac_ct_STRIP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006301 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6302echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006303else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006304 { echo "$as_me:$LINENO: result: no" >&5
6305echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006306fi
6307
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006308 if test "x$ac_ct_STRIP" = x; then
6309 STRIP="strip"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312yes:)
6313{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6314whose name does not start with the host triplet. If you think this
6315configuration is useful to you, please write to autoconf@gnu.org." >&5
6316echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6317whose name does not start with the host triplet. If you think this
6318configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6319ac_tool_warned=yes ;;
6320esac
6321 STRIP=$ac_ct_STRIP
6322 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006323else
6324 STRIP="$ac_cv_prog_STRIP"
6325fi
6326
6327if test -n "$ac_tool_prefix"; then
6328 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6329set dummy ${ac_tool_prefix}windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006330{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006332if test "${ac_cv_prog_WINDRES+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 if test -n "$WINDRES"; then
6336 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006344 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 +00006345 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006351IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006352
6353fi
6354fi
6355WINDRES=$ac_cv_prog_WINDRES
6356if test -n "$WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006357 { echo "$as_me:$LINENO: result: $WINDRES" >&5
6358echo "${ECHO_T}$WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006359else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006360 { echo "$as_me:$LINENO: result: no" >&5
6361echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006362fi
6363
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006364
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006365fi
6366if test -z "$ac_cv_prog_WINDRES"; then
6367 ac_ct_WINDRES=$WINDRES
6368 # Extract the first word of "windres", so it can be a program name with args.
6369set dummy windres; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006370{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6371echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006372if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375 if test -n "$ac_ct_WINDRES"; then
6376 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6377else
6378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
6383 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006384 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 +00006385 ac_cv_prog_ac_ct_WINDRES="windres"
6386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6387 break 2
6388 fi
6389done
6390done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006391IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006392
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006393fi
6394fi
6395ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6396if test -n "$ac_ct_WINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006397 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6398echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006399else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006400 { echo "$as_me:$LINENO: result: no" >&5
6401echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006402fi
6403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006404 if test "x$ac_ct_WINDRES" = x; then
6405 WINDRES="false"
6406 else
6407 case $cross_compiling:$ac_tool_warned in
6408yes:)
6409{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6410whose name does not start with the host triplet. If you think this
6411configuration is useful to you, please write to autoconf@gnu.org." >&5
6412echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6413whose name does not start with the host triplet. If you think this
6414configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6415ac_tool_warned=yes ;;
6416esac
6417 WINDRES=$ac_ct_WINDRES
6418 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00006419else
6420 WINDRES="$ac_cv_prog_WINDRES"
6421fi
6422
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006423{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
6424echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006425LN_S=$as_ln_s
6426if test "$LN_S" = "ln -s"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006427 { echo "$as_me:$LINENO: result: yes" >&5
6428echo "${ECHO_T}yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006429else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006430 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6431echo "${ECHO_T}no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00006432fi
6433
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006434{ echo "$as_me:$LINENO: checking whether ln works" >&5
6435echo $ECHO_N "checking whether ln works... $ECHO_C" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006436rm -f conf$$ conf$$.file
6437echo >conf$$.file
6438if ln conf$$.file conf$$ 2>/dev/null; then
6439 LN=ln
6440
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006441 { echo "$as_me:$LINENO: result: yes" >&5
6442echo "${ECHO_T}yes" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006443else
6444 LN="cp -p"
6445
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006446 { echo "$as_me:$LINENO: result: no, using $LN" >&5
6447echo "${ECHO_T}no, using $LN" >&6; }
Alexandre Julliarddf234a92002-05-22 02:10:39 +00006448fi
6449rm -f conf$$ conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006450{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6451echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
6452if test "${ac_cv_path_GREP+set}" = set; then
Alexandre Julliardc6264912004-08-16 20:09:37 +00006453 echo $ECHO_N "(cached) $ECHO_C" >&6
6454else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006455 # Extract the first word of "grep ggrep" to use in msg output
6456if test -z "$GREP"; then
6457set dummy grep ggrep; ac_prog_name=$2
6458if test "${ac_cv_path_GREP+set}" = set; then
6459 echo $ECHO_N "(cached) $ECHO_C" >&6
6460else
6461 ac_path_GREP_found=false
6462# Loop through the user's path and test for each of PROGNAME-LIST
6463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6465do
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_prog in grep ggrep; do
6469 for ac_exec_ext in '' $ac_executable_extensions; do
6470 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6471 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
6472 # Check for GNU ac_path_GREP and select it if it is found.
6473 # Check for GNU $ac_path_GREP
6474case `"$ac_path_GREP" --version 2>&1` in
6475*GNU*)
6476 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6477*)
6478 ac_count=0
6479 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6480 while :
6481 do
6482 cat "conftest.in" "conftest.in" >"conftest.tmp"
6483 mv "conftest.tmp" "conftest.in"
6484 cp "conftest.in" "conftest.nl"
6485 echo 'GREP' >> "conftest.nl"
6486 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6488 ac_count=`expr $ac_count + 1`
6489 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6490 # Best one so far, save it but keep looking for a better one
6491 ac_cv_path_GREP="$ac_path_GREP"
6492 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00006493 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006494 # 10*(2^10) chars as input seems more than enough
6495 test $ac_count -gt 10 && break
6496 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006498esac
6499
6500
6501 $ac_path_GREP_found && break 3
6502 done
6503done
6504
6505done
6506IFS=$as_save_IFS
6507
6508
Alexandre Julliardc6264912004-08-16 20:09:37 +00006509fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006510
6511GREP="$ac_cv_path_GREP"
6512if test -z "$GREP"; then
6513 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6514echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6515 { (exit 1); exit 1; }; }
6516fi
6517
6518else
6519 ac_cv_path_GREP=$GREP
6520fi
6521
6522
6523fi
6524{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6525echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
6526 GREP="$ac_cv_path_GREP"
6527
6528
6529{ echo "$as_me:$LINENO: checking for egrep" >&5
6530echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
6531if test "${ac_cv_path_EGREP+set}" = set; then
6532 echo $ECHO_N "(cached) $ECHO_C" >&6
6533else
6534 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6535 then ac_cv_path_EGREP="$GREP -E"
6536 else
6537 # Extract the first word of "egrep" to use in msg output
6538if test -z "$EGREP"; then
6539set dummy egrep; ac_prog_name=$2
6540if test "${ac_cv_path_EGREP+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
6543 ac_path_EGREP_found=false
6544# Loop through the user's path and test for each of PROGNAME-LIST
6545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6547do
6548 IFS=$as_save_IFS
6549 test -z "$as_dir" && as_dir=.
6550 for ac_prog in egrep; do
6551 for ac_exec_ext in '' $ac_executable_extensions; do
6552 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6553 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
6554 # Check for GNU ac_path_EGREP and select it if it is found.
6555 # Check for GNU $ac_path_EGREP
6556case `"$ac_path_EGREP" --version 2>&1` in
6557*GNU*)
6558 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6559*)
6560 ac_count=0
6561 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6562 while :
6563 do
6564 cat "conftest.in" "conftest.in" >"conftest.tmp"
6565 mv "conftest.tmp" "conftest.in"
6566 cp "conftest.in" "conftest.nl"
6567 echo 'EGREP' >> "conftest.nl"
6568 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6569 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6570 ac_count=`expr $ac_count + 1`
6571 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6572 # Best one so far, save it but keep looking for a better one
6573 ac_cv_path_EGREP="$ac_path_EGREP"
6574 ac_path_EGREP_max=$ac_count
6575 fi
6576 # 10*(2^10) chars as input seems more than enough
6577 test $ac_count -gt 10 && break
6578 done
Jeremy White0ebeb532006-06-20 13:18:41 +02006579 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006580esac
6581
6582
6583 $ac_path_EGREP_found && break 3
6584 done
6585done
6586
6587done
6588IFS=$as_save_IFS
6589
6590
6591fi
6592
6593EGREP="$ac_cv_path_EGREP"
6594if test -z "$EGREP"; then
6595 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6596echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6597 { (exit 1); exit 1; }; }
6598fi
6599
6600else
6601 ac_cv_path_EGREP=$EGREP
6602fi
6603
6604
6605 fi
6606fi
6607{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6608echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6609 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00006610
6611
James Juranffe6b761999-06-12 08:21:57 +00006612# Extract the first word of "ldconfig", so it can be a program name with args.
6613set dummy ldconfig; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006616if test "${ac_cv_path_LDCONFIG+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00006618else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006619 case $LDCONFIG in
6620 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00006621 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
6622 ;;
6623 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00006625for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006626do
6627 IFS=$as_save_IFS
6628 test -z "$as_dir" && as_dir=.
6629 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006630 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 +00006631 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
6632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6633 break 2
6634 fi
6635done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006636done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006637IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006638
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00006639 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00006640 ;;
6641esac
6642fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006643LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00006644if test -n "$LDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006645 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
6646echo "${ECHO_T}$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006647else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006648 { echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00006650fi
6651
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006652
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006653# Find a good install program. We prefer a C program (faster),
6654# so one script is as good as another. But avoid the broken or
6655# incompatible versions:
6656# SysV /etc/install, /usr/sbin/install
6657# SunOS /usr/etc/install
6658# IRIX /sbin/install
6659# AIX /bin/install
6660# AmigaOS /C/install, which installs bootblocks on floppy discs
6661# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6662# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6663# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00006664# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006665# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006666{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6667echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006668if test -z "$INSTALL"; then
6669if test "${ac_cv_path_install+set}" = set; then
6670 echo $ECHO_N "(cached) $ECHO_C" >&6
6671else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673for as_dir in $PATH
6674do
6675 IFS=$as_save_IFS
6676 test -z "$as_dir" && as_dir=.
6677 # Account for people who put trailing slashes in PATH elements.
6678case $as_dir/ in
6679 ./ | .// | /cC/* | \
6680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006682 /usr/ucb/* ) ;;
6683 *)
6684 # OSF1 and SCO ODT 3.0 have their own names for install.
6685 # Don't use installbsd from OSF since it installs stuff as root
6686 # by default.
6687 for ac_prog in ginstall scoinst install; do
6688 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006689 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 +00006690 if test $ac_prog = install &&
6691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6692 # AIX install. It has an incompatible calling convention.
6693 :
6694 elif test $ac_prog = install &&
6695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6696 # program-specific install script used by HP pwplus--don't use.
6697 :
6698 else
6699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6700 break 3
6701 fi
6702 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006703 done
6704 done
6705 ;;
6706esac
6707done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006708IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006709
6710
6711fi
6712 if test "${ac_cv_path_install+set}" = set; then
6713 INSTALL=$ac_cv_path_install
6714 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006715 # As a last resort, use the slow shell script. Don't cache a
6716 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006717 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006718 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006719 INSTALL=$ac_install_sh
6720 fi
6721fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006722{ echo "$as_me:$LINENO: result: $INSTALL" >&5
6723echo "${ECHO_T}$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006724
6725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6726# It thinks the first close brace ends the variable substitution.
6727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6728
6729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6730
6731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6732
6733case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00006734 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006735 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6736esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006737
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006738for ac_prog in lclint lint
6739do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006740 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006741set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006742{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006744if test "${ac_cv_prog_LINT+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006746else
6747 if test -n "$LINT"; then
6748 ac_cv_prog_LINT="$LINT" # Let the user override the test.
6749else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6751for as_dir in $PATH
6752do
6753 IFS=$as_save_IFS
6754 test -z "$as_dir" && as_dir=.
6755 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006756 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 +00006757 ac_cv_prog_LINT="$ac_prog"
6758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6759 break 2
6760 fi
6761done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006762done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006763IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006764
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006765fi
6766fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006767LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006768if test -n "$LINT"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006769 { echo "$as_me:$LINENO: result: $LINT" >&5
6770echo "${ECHO_T}$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006771else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006772 { echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006774fi
6775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006776
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006777 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00006778done
6779
6780if test "$LINT" = "lint"
6781then
6782 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
6783 fi
6784
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006785
6786
Huw Davies00acb5f2004-08-17 22:33:14 +00006787for ac_prog in fontforge
6788do
6789 # Extract the first word of "$ac_prog", so it can be a program name with args.
6790set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006791{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006793if test "${ac_cv_prog_FONTFORGE+set}" = set; then
6794 echo $ECHO_N "(cached) $ECHO_C" >&6
6795else
6796 if test -n "$FONTFORGE"; then
6797 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
6798else
6799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800for as_dir in $PATH
6801do
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006805 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 +00006806 ac_cv_prog_FONTFORGE="$ac_prog"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6809 fi
6810done
6811done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006812IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00006813
6814fi
6815fi
6816FONTFORGE=$ac_cv_prog_FONTFORGE
6817if test -n "$FONTFORGE"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006818 { echo "$as_me:$LINENO: result: $FONTFORGE" >&5
6819echo "${ECHO_T}$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006820else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006821 { echo "$as_me:$LINENO: result: no" >&5
6822echo "${ECHO_T}no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00006823fi
6824
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006825
Huw Davies00acb5f2004-08-17 22:33:14 +00006826 test -n "$FONTFORGE" && break
6827done
6828test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006829
Mike McCormack90c75bd2005-08-08 18:36:53 +00006830for ac_prog in pkg-config
6831do
6832 # Extract the first word of "$ac_prog", so it can be a program name with args.
6833set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006834{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006836if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6838else
6839 if test -n "$PKG_CONFIG"; then
6840 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
6841else
6842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6843for as_dir in $PATH
6844do
6845 IFS=$as_save_IFS
6846 test -z "$as_dir" && as_dir=.
6847 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006848 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 +00006849 ac_cv_prog_PKG_CONFIG="$ac_prog"
6850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6851 break 2
6852 fi
6853done
6854done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006855IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00006856
6857fi
6858fi
6859PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
6860if test -n "$PKG_CONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006861 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6862echo "${ECHO_T}$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006863else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006864 { echo "$as_me:$LINENO: result: no" >&5
6865echo "${ECHO_T}no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00006866fi
6867
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006868
Mike McCormack90c75bd2005-08-08 18:36:53 +00006869 test -n "$PKG_CONFIG" && break
6870done
6871test -n "$PKG_CONFIG" || PKG_CONFIG="false"
6872
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00006873
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006874case $host_cpu in
6875 *i[3456789]86*)
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006876 # Extract the first word of "prelink", so it can be a program name with args.
6877set dummy prelink; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006880if test "${ac_cv_path_PRELINK+set}" = set; then
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006881 echo $ECHO_N "(cached) $ECHO_C" >&6
6882else
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006883 case $PRELINK in
6884 [\\/]* | ?:[\\/]*)
6885 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6886 ;;
6887 *)
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006889for as_dir in /sbin /usr/sbin $PATH
6890do
6891 IFS=$as_save_IFS
6892 test -z "$as_dir" && as_dir=.
6893 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006894 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 +02006895 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897 break 2
6898 fi
6899done
6900done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006901IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006902
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006903 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6904 ;;
6905esac
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006906fi
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02006907PRELINK=$ac_cv_path_PRELINK
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006908if test -n "$PRELINK"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006909 { echo "$as_me:$LINENO: result: $PRELINK" >&5
6910echo "${ECHO_T}$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006911else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006912 { echo "$as_me:$LINENO: result: no" >&5
6913echo "${ECHO_T}no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006914fi
6915
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006916
Alexandre Julliardadbb0982005-08-09 11:12:29 +00006917 ;;
6918esac
6919
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006920
6921
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006922{ echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
6923echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006924if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00006926else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006927 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006928LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006929cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006930/* confdefs.h. */
6931_ACEOF
6932cat confdefs.h >>conftest.$ac_ext
6933cat >>conftest.$ac_ext <<_ACEOF
6934/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006935
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006936/* Override any GCC internal prototype to avoid an error.
6937 Use char because int might match the return type of a GCC
6938 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006939#ifdef __cplusplus
6940extern "C"
6941#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006942char i386_set_ldt ();
6943int
6944main ()
6945{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006946return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006947 ;
6948 return 0;
6949}
6950_ACEOF
6951rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02006952if { (ac_try="$ac_link"
6953case "(($ac_try" in
6954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6955 *) ac_try_echo=$ac_try;;
6956esac
6957eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6958 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006959 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006960 grep -v '^ *+' conftest.er1 >conftest.err
6961 rm -f conftest.er1
6962 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006964 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02006965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6966 { (case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969esac
6970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02006976 { (case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
6980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006982 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006984 (exit $ac_status); }; }; then
6985 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00006986else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006987 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006988sed 's/^/| /' conftest.$ac_ext >&5
6989
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006990 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00006991fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006992
Jeremy White0ebeb532006-06-20 13:18:41 +02006993rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006994 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006995LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00006996fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02006997{ echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
6998echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006999if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007000 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007001#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007002_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00007003
7004 LIBS="-li386 $LIBS"
7005
Alexandre Julliard02e90081998-01-04 17:49:09 +00007006fi
7007
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007008
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007009{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
7010echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007011if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00007013else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007014 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007015LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007016cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007017/* confdefs.h. */
7018_ACEOF
7019cat confdefs.h >>conftest.$ac_ext
7020cat >>conftest.$ac_ext <<_ACEOF
7021/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007023/* Override any GCC internal prototype to avoid an error.
7024 Use char because int might match the return type of a GCC
7025 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007026#ifdef __cplusplus
7027extern "C"
7028#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007029char _oss_ioctl ();
7030int
7031main ()
7032{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007033return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007034 ;
7035 return 0;
7036}
7037_ACEOF
7038rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007039if { (ac_try="$ac_link"
7040case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043esac
7044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007046 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007047 grep -v '^ *+' conftest.er1 >conftest.err
7048 rm -f conftest.er1
7049 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007051 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7053 { (case "(($ac_try" in
7054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7055 *) ac_try_echo=$ac_try;;
7056esac
7057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7058 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007059 ac_status=$?
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; } &&
7062 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007063 { (case "(($ac_try" in
7064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065 *) ac_try_echo=$ac_try;;
7066esac
7067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007069 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007071 (exit $ac_status); }; }; then
7072 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00007073else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007074 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007075sed 's/^/| /' conftest.$ac_ext >&5
7076
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007077 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00007078fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007079
Jeremy White0ebeb532006-06-20 13:18:41 +02007080rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007081 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007082LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00007083fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007084{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7085echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007086if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007087 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007088#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007089_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00007090
7091 LIBS="-lossaudio $LIBS"
7092
Todd Vierlingecc76691998-12-15 17:49:02 +00007093fi
7094
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007095
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007096for ac_func in gethostbyname
7097do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007098as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007099{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7101if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007102 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007103else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007104 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7112#define $ac_func innocuous_$ac_func
7113
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007114/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007115 which can conflict with char $ac_func (); below.
7116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7117 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007118
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007119#ifdef __STDC__
7120# include <limits.h>
7121#else
7122# include <assert.h>
7123#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007124
7125#undef $ac_func
7126
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007127/* Override any GCC internal prototype to avoid an error.
7128 Use char because int might match the return type of a GCC
7129 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007130#ifdef __cplusplus
7131extern "C"
7132#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007133char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007134/* The GNU C library defines this for functions which it implements
7135 to always fail with ENOSYS. Some functions are actually named
7136 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007137#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007138choke me
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007139#endif
7140
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007141int
7142main ()
7143{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007144return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007145 ;
7146 return 0;
7147}
7148_ACEOF
7149rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007150if { (ac_try="$ac_link"
7151case "(($ac_try" in
7152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7153 *) ac_try_echo=$ac_try;;
7154esac
7155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7156 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007157 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007158 grep -v '^ *+' conftest.er1 >conftest.err
7159 rm -f conftest.er1
7160 cat conftest.err >&5
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); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7164 { (case "(($ac_try" in
7165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7166 *) ac_try_echo=$ac_try;;
7167esac
7168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7169 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007170 ac_status=$?
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007174 { (case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177esac
7178eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007180 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007182 (exit $ac_status); }; }; then
7183 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00007184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007185 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007186sed 's/^/| /' conftest.$ac_ext >&5
7187
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007188 eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00007189fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007190
Jeremy White0ebeb532006-06-20 13:18:41 +02007191rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007192 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00007193fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007194ac_res=`eval echo '${'$as_ac_var'}'`
7195 { echo "$as_me:$LINENO: result: $ac_res" >&5
7196echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007197if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007198 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007200_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00007201
Patrik Stridvallea584721998-11-01 16:22:07 +00007202else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007203
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007204{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7205echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007206if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00007208else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007209 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007210LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007211cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007212/* confdefs.h. */
7213_ACEOF
7214cat confdefs.h >>conftest.$ac_ext
7215cat >>conftest.$ac_ext <<_ACEOF
7216/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007217
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007218/* Override any GCC internal prototype to avoid an error.
7219 Use char because int might match the return type of a GCC
7220 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007221#ifdef __cplusplus
7222extern "C"
7223#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007224char gethostbyname ();
7225int
7226main ()
7227{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007228return gethostbyname ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007229 ;
7230 return 0;
7231}
7232_ACEOF
7233rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007234if { (ac_try="$ac_link"
7235case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7238esac
7239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007241 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007246 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7248 { (case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007258 { (case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261esac
7262eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7263 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007264 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007266 (exit $ac_status); }; }; then
7267 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00007268else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007269 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007270sed 's/^/| /' conftest.$ac_ext >&5
7271
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007272 ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00007273fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007274
Jeremy White0ebeb532006-06-20 13:18:41 +02007275rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007276 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007277LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00007278fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007279{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7280echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007281if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007282 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007284_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00007285
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00007286 LIBS="-lnsl $LIBS"
7287
Ron Recorde977d6c1999-09-05 12:32:05 +00007288fi
7289
Patrik Stridvallea584721998-11-01 16:22:07 +00007290fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00007291done
7292
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007293
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007294for ac_func in connect
7295do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007296as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007297{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7298echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7299if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007300 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007301else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007302 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007308/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7310#define $ac_func innocuous_$ac_func
7311
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007312/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007313 which can conflict with char $ac_func (); below.
7314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7315 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007316
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007317#ifdef __STDC__
7318# include <limits.h>
7319#else
7320# include <assert.h>
7321#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007322
7323#undef $ac_func
7324
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007325/* Override any GCC internal prototype to avoid an error.
7326 Use char because int might match the return type of a GCC
7327 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007328#ifdef __cplusplus
7329extern "C"
7330#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007331char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007332/* The GNU C library defines this for functions which it implements
7333 to always fail with ENOSYS. Some functions are actually named
7334 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007335#if defined __stub_$ac_func || defined __stub___$ac_func
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007336choke me
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007337#endif
7338
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007339int
7340main ()
7341{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007342return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007343 ;
7344 return 0;
7345}
7346_ACEOF
7347rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007348if { (ac_try="$ac_link"
7349case "(($ac_try" in
7350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7351 *) ac_try_echo=$ac_try;;
7352esac
7353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7354 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007355 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007356 grep -v '^ *+' conftest.er1 >conftest.err
7357 rm -f conftest.er1
7358 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007360 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7362 { (case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365esac
7366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007368 ac_status=$?
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; } &&
7371 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007372 { (case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375esac
7376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7377 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007378 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007380 (exit $ac_status); }; }; then
7381 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007382else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007383 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007384sed 's/^/| /' conftest.$ac_ext >&5
7385
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007386 eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007387fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007388
Jeremy White0ebeb532006-06-20 13:18:41 +02007389rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007390 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007391fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007392ac_res=`eval echo '${'$as_ac_var'}'`
7393 { echo "$as_me:$LINENO: result: $ac_res" >&5
7394echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007395if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007396 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007398_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007399
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007400else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007401
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007402{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7403echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007404if test "${ac_cv_lib_socket_connect+set}" = set; then
7405 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007406else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007407 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007408LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007409cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007410/* confdefs.h. */
7411_ACEOF
7412cat confdefs.h >>conftest.$ac_ext
7413cat >>conftest.$ac_ext <<_ACEOF
7414/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007415
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007416/* Override any GCC internal prototype to avoid an error.
7417 Use char because int might match the return type of a GCC
7418 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007419#ifdef __cplusplus
7420extern "C"
7421#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007422char connect ();
7423int
7424main ()
7425{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007426return connect ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007427 ;
7428 return 0;
7429}
7430_ACEOF
7431rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007432if { (ac_try="$ac_link"
7433case "(($ac_try" in
7434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7435 *) ac_try_echo=$ac_try;;
7436esac
7437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007439 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007444 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7446 { (case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449esac
7450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007456 { (case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459esac
7460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007462 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007464 (exit $ac_status); }; }; then
7465 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007466else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007467 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007468sed 's/^/| /' conftest.$ac_ext >&5
7469
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007470 ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007471fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007472
Jeremy White0ebeb532006-06-20 13:18:41 +02007473rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007474 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007475LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007476fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007477{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7478echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007479if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007480 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007481#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007482_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007483
7484 LIBS="-lsocket $LIBS"
7485
Ulrich Weigand715a55e1999-04-18 13:19:56 +00007486fi
7487
7488fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00007489done
7490
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007491
Alexandre Julliardc5552742002-04-03 20:24:44 +00007492for ac_func in inet_aton
7493do
7494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007495{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7497if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardc5552742002-04-03 20:24:44 +00007498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499else
7500 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007501/* confdefs.h. */
7502_ACEOF
7503cat confdefs.h >>conftest.$ac_ext
7504cat >>conftest.$ac_ext <<_ACEOF
7505/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7508#define $ac_func innocuous_$ac_func
7509
Alexandre Julliardc5552742002-04-03 20:24:44 +00007510/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007511 which can conflict with char $ac_func (); below.
7512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00007514
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007515#ifdef __STDC__
7516# include <limits.h>
7517#else
7518# include <assert.h>
7519#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00007520
7521#undef $ac_func
7522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007523/* Override any GCC internal prototype to avoid an error.
7524 Use char because int might match the return type of a GCC
7525 builtin and then its argument prototype would still apply. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00007526#ifdef __cplusplus
7527extern "C"
7528#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00007529char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007530/* The GNU C library defines this for functions which it implements
7531 to always fail with ENOSYS. Some functions are actually named
7532 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007533#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardc5552742002-04-03 20:24:44 +00007534choke me
Alexandre Julliardc5552742002-04-03 20:24:44 +00007535#endif
7536
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007537int
7538main ()
7539{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007540return $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00007541 ;
7542 return 0;
7543}
7544_ACEOF
7545rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007546if { (ac_try="$ac_link"
7547case "(($ac_try" in
7548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7549 *) ac_try_echo=$ac_try;;
7550esac
7551eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7552 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00007553 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007554 grep -v '^ *+' conftest.er1 >conftest.err
7555 rm -f conftest.er1
7556 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007558 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7560 { (case "(($ac_try" in
7561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7562 *) ac_try_echo=$ac_try;;
7563esac
7564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7565 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007566 ac_status=$?
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); }; } &&
7569 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007570 { (case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573esac
7574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_try") 2>&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007576 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00007578 (exit $ac_status); }; }; then
7579 eval "$as_ac_var=yes"
7580else
7581 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007582sed 's/^/| /' conftest.$ac_ext >&5
7583
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007584 eval "$as_ac_var=no"
Alexandre Julliardc5552742002-04-03 20:24:44 +00007585fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007586
Jeremy White0ebeb532006-06-20 13:18:41 +02007587rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007588 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00007589fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007590ac_res=`eval echo '${'$as_ac_var'}'`
7591 { echo "$as_me:$LINENO: result: $ac_res" >&5
7592echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardc5552742002-04-03 20:24:44 +00007593if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007594 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007595#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007596_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00007597
7598else
7599
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007600{ echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
7601echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007602if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 ac_check_lib_save_LIBS=$LIBS
7606LIBS="-lresolv $LIBS"
7607cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007608/* confdefs.h. */
7609_ACEOF
7610cat confdefs.h >>conftest.$ac_ext
7611cat >>conftest.$ac_ext <<_ACEOF
7612/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007613
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007614/* Override any GCC internal prototype to avoid an error.
7615 Use char because int might match the return type of a GCC
7616 builtin and then its argument prototype would still apply. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00007617#ifdef __cplusplus
7618extern "C"
7619#endif
Francois Gouget3b943bc2002-04-01 21:05:15 +00007620char inet_aton ();
7621int
7622main ()
7623{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007624return inet_aton ();
Francois Gouget3b943bc2002-04-01 21:05:15 +00007625 ;
7626 return 0;
7627}
7628_ACEOF
7629rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007630if { (ac_try="$ac_link"
7631case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634esac
7635eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_link") 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00007637 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007642 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7644 { (case "(($ac_try" in
7645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7646 *) ac_try_echo=$ac_try;;
7647esac
7648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7649 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; } &&
7653 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007654 { (case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657esac
7658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_try") 2>&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007660 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00007662 (exit $ac_status); }; }; then
7663 ac_cv_lib_resolv_inet_aton=yes
7664else
7665 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007666sed 's/^/| /' conftest.$ac_ext >&5
7667
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007668 ac_cv_lib_resolv_inet_aton=no
Francois Gouget3b943bc2002-04-01 21:05:15 +00007669fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007670
Jeremy White0ebeb532006-06-20 13:18:41 +02007671rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007672 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00007673LIBS=$ac_check_lib_save_LIBS
7674fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007675{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
7676echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; }
Francois Gouget3b943bc2002-04-01 21:05:15 +00007677if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007678 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007679#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007680_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00007681
7682 LIBS="-lresolv $LIBS"
7683
7684fi
7685
Alexandre Julliardc5552742002-04-03 20:24:44 +00007686fi
7687done
7688
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007689
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007690{ echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
7691echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007692if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
7693 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007694else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007695 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007696LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007697cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007698/* confdefs.h. */
7699_ACEOF
7700cat confdefs.h >>conftest.$ac_ext
7701cat >>conftest.$ac_ext <<_ACEOF
7702/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007704/* Override any GCC internal prototype to avoid an error.
7705 Use char because int might match the return type of a GCC
7706 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007707#ifdef __cplusplus
7708extern "C"
7709#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007710char _xpg4_setrunelocale ();
7711int
7712main ()
7713{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007714return _xpg4_setrunelocale ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007715 ;
7716 return 0;
7717}
7718_ACEOF
7719rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007720if { (ac_try="$ac_link"
7721case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7724esac
7725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007727 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007728 grep -v '^ *+' conftest.er1 >conftest.err
7729 rm -f conftest.er1
7730 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007732 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7734 { (case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737esac
7738eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007740 ac_status=$?
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007744 { (case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747esac
7748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007750 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007752 (exit $ac_status); }; }; then
7753 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007754else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007755 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007756sed 's/^/| /' conftest.$ac_ext >&5
7757
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007758 ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007759fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007760
Jeremy White0ebeb532006-06-20 13:18:41 +02007761rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007762 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007763LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007764fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007765{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
7766echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007767if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007768 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007769#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007770_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007771
7772 LIBS="-lxpg4 $LIBS"
7773
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00007774fi
7775
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007776
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007777{ echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
7778echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007779if test "${ac_cv_lib_poll_poll+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7781else
7782 ac_check_lib_save_LIBS=$LIBS
7783LIBS="-lpoll $LIBS"
7784cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007791/* Override any GCC internal prototype to avoid an error.
7792 Use char because int might match the return type of a GCC
7793 builtin and then its argument prototype would still apply. */
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007794#ifdef __cplusplus
7795extern "C"
7796#endif
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007797char poll ();
7798int
7799main ()
7800{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007801return poll ();
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007802 ;
7803 return 0;
7804}
7805_ACEOF
7806rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007807if { (ac_try="$ac_link"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_link") 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007814 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7821 { (case "(($ac_try" in
7822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7824esac
7825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007827 ac_status=$?
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; } &&
7830 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007831 { (case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834esac
7835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_try") 2>&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_lib_poll_poll=yes
7841else
7842 echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007845 ac_cv_lib_poll_poll=no
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007846fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007847
Jeremy White0ebeb532006-06-20 13:18:41 +02007848rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007849 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007850LIBS=$ac_check_lib_save_LIBS
7851fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007852{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
7853echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00007854if test $ac_cv_lib_poll_poll = yes; then
7855 cat >>confdefs.h <<_ACEOF
7856#define HAVE_LIBPOLL 1
7857_ACEOF
7858
7859 LIBS="-lpoll $LIBS"
7860
7861fi
7862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007863{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
7864echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007865if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007866 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007867else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007868 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007869LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007870cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007871/* confdefs.h. */
7872_ACEOF
7873cat confdefs.h >>conftest.$ac_ext
7874cat >>conftest.$ac_ext <<_ACEOF
7875/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007876
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007877/* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007880#ifdef __cplusplus
7881extern "C"
7882#endif
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007883char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007884int
7885main ()
7886{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007887return pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007888 ;
7889 return 0;
7890}
7891_ACEOF
7892rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02007893if { (ac_try="$ac_link"
7894case "(($ac_try" in
7895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7897esac
7898eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007900 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007905 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907 { (case "(($ac_try" in
7908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909 *) ac_try_echo=$ac_try;;
7910esac
7911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007913 ac_status=$?
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); }; } &&
7916 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02007917 { (case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920esac
7921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007923 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007925 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007926 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007927else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007928 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007929sed 's/^/| /' conftest.$ac_ext >&5
7930
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007931 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007932fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007933
Jeremy White0ebeb532006-06-20 13:18:41 +02007934rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00007935 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007936LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007937fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007938{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
7939echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliardf45325e2003-11-06 23:05:41 +00007940if test $ac_cv_lib_pthread_pthread_create = yes; then
7941 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007942
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00007943fi
7944
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007945
Alexandre Julliard82776022005-08-08 11:17:25 +00007946XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00007947
7948XFILES=""
7949
7950OPENGLFILES=""
7951
7952GLU32FILES=""
7953
7954OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00007955
Rein Klazes7ff12562004-11-09 20:16:35 +00007956
Alexandre Julliard82776022005-08-08 11:17:25 +00007957
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007958{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7959echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007960if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007961 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00007962else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007963 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007964/* confdefs.h. */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007969#include <stdlib.h>
7970#include <stdarg.h>
7971#include <string.h>
7972#include <float.h>
7973
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007974int
7975main ()
7976{
7977
7978 ;
7979 return 0;
7980}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007981_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007982rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02007983if { (ac_try="$ac_compile"
7984case "(($ac_try" in
7985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7986 *) ac_try_echo=$ac_try;;
7987esac
7988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7989 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007990 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007991 grep -v '^ *+' conftest.er1 >conftest.err
7992 rm -f conftest.er1
7993 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007995 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02007996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7997 { (case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); }; } &&
8006 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008007 { (case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac
8011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_try") 2>&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008013 ac_status=$?
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008016 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008017else
8018 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008019sed 's/^/| /' conftest.$ac_ext >&5
8020
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008021 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00008022fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008023
Jeremy White0ebeb532006-06-20 13:18:41 +02008024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008025
8026if test $ac_cv_header_stdc = yes; then
8027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8028 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008029/* confdefs.h. */
8030_ACEOF
8031cat confdefs.h >>conftest.$ac_ext
8032cat >>conftest.$ac_ext <<_ACEOF
8033/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008034#include <string.h>
8035
8036_ACEOF
8037if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008038 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008039 :
8040else
8041 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00008042fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008043rm -f conftest*
8044
8045fi
8046
8047if test $ac_cv_header_stdc = yes; then
8048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8049 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008050/* confdefs.h. */
8051_ACEOF
8052cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008055#include <stdlib.h>
8056
8057_ACEOF
8058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008059 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008060 :
8061else
8062 ac_cv_header_stdc=no
8063fi
8064rm -f conftest*
8065
8066fi
8067
8068if test $ac_cv_header_stdc = yes; then
8069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8070 if test "$cross_compiling" = yes; then
8071 :
8072else
8073 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008074/* confdefs.h. */
8075_ACEOF
8076cat confdefs.h >>conftest.$ac_ext
8077cat >>conftest.$ac_ext <<_ACEOF
8078/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008079#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008080#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008081#if ((' ' & 0x0FF) == 0x020)
8082# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8083# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8084#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008085# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008086 (('a' <= (c) && (c) <= 'i') \
8087 || ('j' <= (c) && (c) <= 'r') \
8088 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008089# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8090#endif
8091
8092#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8093int
8094main ()
8095{
8096 int i;
8097 for (i = 0; i < 256; i++)
8098 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00008099 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008100 return 2;
8101 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008102}
8103_ACEOF
8104rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02008105if { (ac_try="$ac_link"
8106case "(($ac_try" in
8107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8108 *) ac_try_echo=$ac_try;;
8109esac
8110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8111 (eval "$ac_link") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008112 ac_status=$?
8113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008115 { (case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118esac
8119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 :
8125else
8126 echo "$as_me: program exited with status $ac_status" >&5
8127echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008128sed 's/^/| /' conftest.$ac_ext >&5
8129
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008130( exit $ac_status )
8131ac_cv_header_stdc=no
8132fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8134fi
8135
8136
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008137fi
8138fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008139{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8140echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008141if test $ac_cv_header_stdc = yes; then
8142
8143cat >>confdefs.h <<\_ACEOF
8144#define STDC_HEADERS 1
8145_ACEOF
8146
8147fi
8148
8149# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00008160 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008161do
8162as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008163{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8165if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008166 echo $ECHO_N "(cached) $ECHO_C" >&6
8167else
8168 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008169/* confdefs.h. */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008174$ac_includes_default
8175
8176#include <$ac_header>
8177_ACEOF
8178rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008179if { (ac_try="$ac_compile"
8180case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8185 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008186 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8193 { (case "(($ac_try" in
8194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195 *) ac_try_echo=$ac_try;;
8196esac
8197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008203 { (case "(($ac_try" in
8204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8205 *) ac_try_echo=$ac_try;;
8206esac
8207eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8208 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; }; then
8212 eval "$as_ac_Header=yes"
8213else
8214 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008215sed 's/^/| /' conftest.$ac_ext >&5
8216
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008217 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008218fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008219
Jeremy White0ebeb532006-06-20 13:18:41 +02008220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008221fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008222ac_res=`eval echo '${'$as_ac_Header'}'`
8223 { echo "$as_me:$LINENO: result: $ac_res" >&5
8224echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008225if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008226 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008227#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008228_ACEOF
8229
8230fi
8231
8232done
8233
8234
8235
Rein Klazes7ff12562004-11-09 20:16:35 +00008236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
Steven Edwards57279182005-03-04 12:38:36 +00008318
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00008319
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008320
8321
Phil Krylov0f6c0392005-07-01 19:15:26 +00008322
Hans Leidekkerea524de2005-07-15 16:39:42 +00008323
8324
Alexandre Julliard73482142005-08-03 19:21:04 +00008325
8326
8327
8328
8329
8330
8331
8332
8333
8334
Gerald Pfeiferebe04842005-08-22 09:33:37 +00008335
Robert Shearman1e5153c2005-12-01 11:18:43 +01008336
Mike McCormack0cd06262006-03-01 01:07:04 +09008337
Alexandre Julliard9603ee02006-04-06 11:57:37 +02008338
Emmanuel Maillard144a5352006-05-28 22:46:23 +02008339
8340
Alexandre Julliardc8278922006-08-04 22:11:00 +02008341
Tijl Coosemansfc8172f2006-08-05 23:31:07 +02008342
Rein Klazes7ff12562004-11-09 20:16:35 +00008343for ac_header in \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02008344 AudioUnit/AudioUnit.h \
8345 CoreAudio/CoreAudio.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00008346 IOKit/IOKitLib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008347 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008348 arpa/inet.h \
8349 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00008350 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008351 capi20.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008352 cups/cups.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008353 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008354 direct.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008355 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008356 elf.h \
8357 float.h \
8358 fontconfig/fontconfig.h \
8359 getopt.h \
8360 gif_lib.h \
8361 ieeefp.h \
8362 io.h \
8363 jack/jack.h \
8364 jpeglib.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00008365 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008366 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008367 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00008368 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008369 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008370 link.h \
8371 linux/cdrom.h \
8372 linux/compiler.h \
8373 linux/hdreg.h \
8374 linux/input.h \
8375 linux/ioctl.h \
8376 linux/joystick.h \
8377 linux/major.h \
8378 linux/param.h \
8379 linux/serial.h \
8380 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008381 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008382 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00008383 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008384 machine/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008385 mntent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008386 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008387 netdb.h \
8388 netinet/in.h \
8389 netinet/in_systm.h \
8390 netinet/tcp.h \
8391 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01008392 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008393 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00008394 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008395 process.h \
8396 pthread.h \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +02008397 pthread_np.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008398 pwd.h \
8399 regex.h \
8400 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008401 scsi/scsi.h \
8402 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008403 scsi/sg.h \
8404 soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008405 stdint.h \
8406 strings.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008407 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008408 sys/cdio.h \
8409 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008410 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008411 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02008412 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008413 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008414 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008415 sys/ioctl.h \
8416 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00008417 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008418 sys/link.h \
8419 sys/lwp.h \
8420 sys/mman.h \
8421 sys/modem.h \
8422 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01008423 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008424 sys/param.h \
8425 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02008426 sys/prctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008427 sys/ptrace.h \
8428 sys/reg.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09008429 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008430 sys/scsiio.h \
8431 sys/shm.h \
8432 sys/signal.h \
8433 sys/socket.h \
8434 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008435 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008436 sys/statvfs.h \
8437 sys/strtio.h \
8438 sys/syscall.h \
8439 sys/sysctl.h \
8440 sys/time.h \
8441 sys/times.h \
8442 sys/uio.h \
8443 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008444 sys/vm86.h \
8445 sys/wait.h \
8446 syscall.h \
8447 termios.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008448 unicode/ubidi.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00008449 unistd.h \
8450 utime.h \
8451 valgrind/memcheck.h
8452
8453do
8454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008455if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8458if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008461ac_res=`eval echo '${'$as_ac_Header'}'`
8462 { echo "$as_me:$LINENO: result: $ac_res" >&5
8463echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008464else
8465 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008466{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008468cat >conftest.$ac_ext <<_ACEOF
8469/* confdefs.h. */
8470_ACEOF
8471cat confdefs.h >>conftest.$ac_ext
8472cat >>conftest.$ac_ext <<_ACEOF
8473/* end confdefs.h. */
8474$ac_includes_default
8475#include <$ac_header>
8476_ACEOF
8477rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008478if { (ac_try="$ac_compile"
8479case "(($ac_try" in
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8482esac
8483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00008485 ac_status=$?
8486 grep -v '^ *+' conftest.er1 >conftest.err
8487 rm -f conftest.er1
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495esac
8496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00008498 ac_status=$?
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8505esac
8506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
Rein Klazes7ff12562004-11-09 20:16:35 +00008508 ac_status=$?
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_header_compiler=yes
8512else
8513 echo "$as_me: failed program was:" >&5
8514sed 's/^/| /' conftest.$ac_ext >&5
8515
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008516 ac_header_compiler=no
Rein Klazes7ff12562004-11-09 20:16:35 +00008517fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008518
Jeremy White0ebeb532006-06-20 13:18:41 +02008519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008520{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521echo "${ECHO_T}$ac_header_compiler" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008522
8523# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008524{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8525echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532#include <$ac_header>
8533_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +02008534if { (ac_try="$ac_cpp conftest.$ac_ext"
8535case "(($ac_try" in
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8538esac
8539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Rein Klazes7ff12562004-11-09 20:16:35 +00008541 ac_status=$?
8542 grep -v '^ *+' conftest.er1 >conftest.err
8543 rm -f conftest.er1
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } >/dev/null; then
8547 if test -s conftest.err; then
8548 ac_cpp_err=$ac_c_preproc_warn_flag
8549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8550 else
8551 ac_cpp_err=
8552 fi
8553else
8554 ac_cpp_err=yes
8555fi
8556if test -z "$ac_cpp_err"; then
8557 ac_header_preproc=yes
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562 ac_header_preproc=no
8563fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008564
Rein Klazes7ff12562004-11-09 20:16:35 +00008565rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008566{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8567echo "${ECHO_T}$ac_header_preproc" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008568
8569# So? What about this header?
8570case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8571 yes:no: )
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8573echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8575echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8576 ac_header_preproc=yes
8577 ;;
8578 no:yes:* )
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8580echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8582echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8584echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8586echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8590echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008591 ( cat <<\_ASBOX
Rein Klazes7ff12562004-11-09 20:16:35 +00008592## ------------------------------------ ##
8593## Report this to wine-devel@winehq.org ##
8594## ------------------------------------ ##
8595_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008596 ) | sed "s/^/$as_me: WARNING: /" >&2
Rein Klazes7ff12562004-11-09 20:16:35 +00008597 ;;
8598esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008599{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Rein Klazes7ff12562004-11-09 20:16:35 +00008602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604 eval "$as_ac_Header=\$ac_header_preproc"
8605fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008606ac_res=`eval echo '${'$as_ac_Header'}'`
8607 { echo "$as_me:$LINENO: result: $ac_res" >&5
8608echo "${ECHO_T}$ac_res" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008609
8610fi
8611if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612 cat >>confdefs.h <<_ACEOF
8613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8614_ACEOF
8615
8616fi
8617
8618done
8619
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008620{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8621echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008622if test "${ac_cv_header_stat_broken+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625 cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h. */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h. */
8631#include <sys/types.h>
8632#include <sys/stat.h>
8633
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008634#if defined S_ISBLK && defined S_IFDIR
Rein Klazes7ff12562004-11-09 20:16:35 +00008635# if S_ISBLK (S_IFDIR)
8636You lose.
8637# endif
8638#endif
8639
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008640#if defined S_ISBLK && defined S_IFCHR
Rein Klazes7ff12562004-11-09 20:16:35 +00008641# if S_ISBLK (S_IFCHR)
8642You lose.
8643# endif
8644#endif
8645
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008646#if defined S_ISLNK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008647# if S_ISLNK (S_IFREG)
8648You lose.
8649# endif
8650#endif
8651
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008652#if defined S_ISSOCK && defined S_IFREG
Rein Klazes7ff12562004-11-09 20:16:35 +00008653# if S_ISSOCK (S_IFREG)
8654You lose.
8655# endif
8656#endif
8657
8658_ACEOF
8659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8660 $EGREP "You lose" >/dev/null 2>&1; then
8661 ac_cv_header_stat_broken=yes
8662else
8663 ac_cv_header_stat_broken=no
8664fi
8665rm -f conftest*
8666
8667fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008668{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8669echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00008670if test $ac_cv_header_stat_broken = yes; then
8671
8672cat >>confdefs.h <<\_ACEOF
8673#define STAT_MACROS_BROKEN 1
8674_ACEOF
8675
8676fi
8677
8678
8679
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008680
8681
8682
8683
8684for ac_header in sys/mount.h sys/statfs.h sys/user.h sys/vfs.h
8685do
8686as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008687{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8688echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691else
8692 cat >conftest.$ac_ext <<_ACEOF
8693/* confdefs.h. */
8694_ACEOF
8695cat confdefs.h >>conftest.$ac_ext
8696cat >>conftest.$ac_ext <<_ACEOF
8697/* end confdefs.h. */
8698#include <sys/types.h>
8699 #if HAVE_SYS_PARAM_H
8700 # include <sys/param.h>
8701 #endif
8702
8703#include <$ac_header>
8704_ACEOF
8705rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008706if { (ac_try="$ac_compile"
8707case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8720 { (case "(($ac_try" in
8721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8722 *) ac_try_echo=$ac_try;;
8723esac
8724eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8725 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008726 ac_status=$?
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008730 { (case "(($ac_try" in
8731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8732 *) ac_try_echo=$ac_try;;
8733esac
8734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8735 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; }; then
8739 eval "$as_ac_Header=yes"
8740else
8741 echo "$as_me: failed program was:" >&5
8742sed 's/^/| /' conftest.$ac_ext >&5
8743
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008744 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008745fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008746
Jeremy White0ebeb532006-06-20 13:18:41 +02008747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008748fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008749ac_res=`eval echo '${'$as_ac_Header'}'`
8750 { echo "$as_me:$LINENO: result: $ac_res" >&5
8751echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008752if test `eval echo '${'$as_ac_Header'}'` = yes; then
8753 cat >>confdefs.h <<_ACEOF
8754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8755_ACEOF
8756
8757fi
8758
8759done
8760
8761
8762
8763
8764
8765
8766
8767
8768for ac_header in net/if.h net/if_arp.h net/if_dl.h net/if_types.h net/route.h netipx/ipx.h
8769do
8770as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008771{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8773if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776 cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
8782#include <sys/types.h>
8783 #if HAVE_SYS_SOCKET_H
8784 # include <sys/socket.h>
8785 #endif
8786
8787#include <$ac_header>
8788_ACEOF
8789rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008790if { (ac_try="$ac_compile"
8791case "(($ac_try" in
8792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8793 *) ac_try_echo=$ac_try;;
8794esac
8795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8796 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008797 ac_status=$?
8798 grep -v '^ *+' conftest.er1 >conftest.err
8799 rm -f conftest.er1
8800 cat conftest.err >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8804 { (case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807esac
8808eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008810 ac_status=$?
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); }; } &&
8813 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008814 { (case "(($ac_try" in
8815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8816 *) ac_try_echo=$ac_try;;
8817esac
8818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8819 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 eval "$as_ac_Header=yes"
8824else
8825 echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008828 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008829fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008830
Jeremy White0ebeb532006-06-20 13:18:41 +02008831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008832fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008833ac_res=`eval echo '${'$as_ac_Header'}'`
8834 { echo "$as_me:$LINENO: result: $ac_res" >&5
8835echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008836if test `eval echo '${'$as_ac_Header'}'` = yes; then
8837 cat >>confdefs.h <<_ACEOF
8838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8839_ACEOF
8840
8841fi
8842
8843done
8844
8845
8846
8847for ac_header in resolv.h
8848do
8849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008850{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008853 echo $ECHO_N "(cached) $ECHO_C" >&6
8854else
8855 cat >conftest.$ac_ext <<_ACEOF
8856/* confdefs.h. */
8857_ACEOF
8858cat confdefs.h >>conftest.$ac_ext
8859cat >>conftest.$ac_ext <<_ACEOF
8860/* end confdefs.h. */
8861#include <sys/types.h>
8862 #if HAVE_SYS_SOCKET_H
8863 # include <sys/socket.h>
8864 #endif
8865 #if HAVE_NETINET_IN_H
8866 # include <netinet/in.h>
8867 #endif
8868 #if HAVE_ARPA_NAMESER_H
8869 # include <arpa/nameser.h>
8870 #endif
8871
8872#include <$ac_header>
8873_ACEOF
8874rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008875if { (ac_try="$ac_compile"
8876case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879esac
8880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8881 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8889 { (case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892esac
8893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008899 { (case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8902esac
8903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008905 ac_status=$?
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 eval "$as_ac_Header=yes"
8909else
8910 echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008913 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008914fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008915
Jeremy White0ebeb532006-06-20 13:18:41 +02008916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008917fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008918ac_res=`eval echo '${'$as_ac_Header'}'`
8919 { echo "$as_me:$LINENO: result: $ac_res" >&5
8920echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008921if test `eval echo '${'$as_ac_Header'}'` = yes; then
8922 cat >>confdefs.h <<_ACEOF
8923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8924_ACEOF
8925
8926fi
8927
8928done
8929
8930
8931
8932for ac_header in ucontext.h
8933do
8934as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008935{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939else
8940 cat >conftest.$ac_ext <<_ACEOF
8941/* confdefs.h. */
8942_ACEOF
8943cat confdefs.h >>conftest.$ac_ext
8944cat >>conftest.$ac_ext <<_ACEOF
8945/* end confdefs.h. */
8946#include <signal.h>
8947
8948#include <$ac_header>
8949_ACEOF
8950rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02008951if { (ac_try="$ac_compile"
8952case "(($ac_try" in
8953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8954 *) ac_try_echo=$ac_try;;
8955esac
8956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8957 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008958 ac_status=$?
8959 grep -v '^ *+' conftest.er1 >conftest.err
8960 rm -f conftest.er1
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02008964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8965 { (case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968esac
8969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008971 ac_status=$?
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; } &&
8974 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02008975 { (case "(($ac_try" in
8976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8977 *) ac_try_echo=$ac_try;;
8978esac
8979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008981 ac_status=$?
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; }; then
8984 eval "$as_ac_Header=yes"
8985else
8986 echo "$as_me: failed program was:" >&5
8987sed 's/^/| /' conftest.$ac_ext >&5
8988
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008989 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008990fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008991
Jeremy White0ebeb532006-06-20 13:18:41 +02008992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008993fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008994ac_res=`eval echo '${'$as_ac_Header'}'`
8995 { echo "$as_me:$LINENO: result: $ac_res" >&5
8996echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02008997if test `eval echo '${'$as_ac_Header'}'` = yes; then
8998 cat >>confdefs.h <<_ACEOF
8999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9000_ACEOF
9001
9002fi
9003
9004done
9005
9006
9007
9008
9009for ac_header in linux/ipx.h linux/videodev.h
9010do
9011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009012{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9013echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9014if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009015 echo $ECHO_N "(cached) $ECHO_C" >&6
9016else
9017 cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h. */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h. */
9023#ifdef HAVE_SYS_TIME_H
9024#include <sys/time.h>
9025#endif
9026#include <sys/types.h>
9027#ifdef HAVE_ASM_TYPES_H
9028#include <asm/types.h>
9029#endif
9030
9031#include <$ac_header>
9032_ACEOF
9033rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009034if { (ac_try="$ac_compile"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9040 (eval "$ac_compile") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009041 ac_status=$?
9042 grep -v '^ *+' conftest.er1 >conftest.err
9043 rm -f conftest.er1
9044 cat conftest.err >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9048 { (case "(($ac_try" in
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9051esac
9052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009054 ac_status=$?
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; } &&
9057 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009058 { (case "(($ac_try" in
9059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060 *) ac_try_echo=$ac_try;;
9061esac
9062eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009064 ac_status=$?
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); }; }; then
9067 eval "$as_ac_Header=yes"
9068else
9069 echo "$as_me: failed program was:" >&5
9070sed 's/^/| /' conftest.$ac_ext >&5
9071
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009072 eval "$as_ac_Header=no"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009073fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009074
Jeremy White0ebeb532006-06-20 13:18:41 +02009075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009076fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009077ac_res=`eval echo '${'$as_ac_Header'}'`
9078 { echo "$as_me:$LINENO: result: $ac_res" >&5
9079echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009080if test `eval echo '${'$as_ac_Header'}'` = yes; then
9081 cat >>confdefs.h <<_ACEOF
9082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9083_ACEOF
9084
9085fi
9086
9087done
9088
9089
9090
Alexandre Julliardb079add2006-02-24 11:46:17 +01009091for ac_header in linux/capi.h
9092do
9093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009094{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9096if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardb079add2006-02-24 11:46:17 +01009097 echo $ECHO_N "(cached) $ECHO_C" >&6
9098else
9099 cat >conftest.$ac_ext <<_ACEOF
9100/* confdefs.h. */
9101_ACEOF
9102cat confdefs.h >>conftest.$ac_ext
9103cat >>conftest.$ac_ext <<_ACEOF
9104/* end confdefs.h. */
9105#define __user
9106
9107#include <$ac_header>
9108_ACEOF
9109rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009110if { (ac_try="$ac_compile"
9111case "(($ac_try" in
9112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113 *) ac_try_echo=$ac_try;;
9114esac
9115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb079add2006-02-24 11:46:17 +01009117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9124 { (case "(($ac_try" in
9125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9126 *) ac_try_echo=$ac_try;;
9127esac
9128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9129 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01009130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; } &&
9133 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009134 { (case "(($ac_try" in
9135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9137esac
9138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_try") 2>&5
Alexandre Julliardb079add2006-02-24 11:46:17 +01009140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 eval "$as_ac_Header=yes"
9144else
9145 echo "$as_me: failed program was:" >&5
9146sed 's/^/| /' conftest.$ac_ext >&5
9147
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009148 eval "$as_ac_Header=no"
Alexandre Julliardb079add2006-02-24 11:46:17 +01009149fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009150
Jeremy White0ebeb532006-06-20 13:18:41 +02009151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb079add2006-02-24 11:46:17 +01009152fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009153ac_res=`eval echo '${'$as_ac_Header'}'`
9154 { echo "$as_me:$LINENO: result: $ac_res" >&5
9155echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardb079add2006-02-24 11:46:17 +01009156if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157 cat >>confdefs.h <<_ACEOF
9158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159_ACEOF
9160
9161fi
9162
9163done
9164
9165
9166
Rein Klazes7ff12562004-11-09 20:16:35 +00009167if test "$have_x" = "yes"
9168then
9169 XLIB="-lXext -lX11"
9170 ac_save_CPPFLAGS="$CPPFLAGS"
9171 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9172
9173
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009174
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009175
Alexandre Julliard255b4862003-10-15 04:09:55 +00009176
9177
9178
9179
9180
9181
Alexandre Julliard73482142005-08-03 19:21:04 +00009182for ac_header in X11/Xlib.h \
9183 X11/XKBlib.h \
9184 X11/Xutil.h \
9185 X11/extensions/shape.h \
9186 X11/extensions/XInput.h \
9187 X11/extensions/XShm.h \
9188 X11/extensions/Xrandr.h \
9189 X11/extensions/Xrender.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00009190 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009191do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009192as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009193{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009196 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009197else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009198 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009199/* confdefs.h. */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009204#ifdef HAVE_X11_XLIB_H
9205# include <X11/Xlib.h>
9206#endif
9207#ifdef HAVE_X11_XUTIL_H
9208# include <X11/Xutil.h>
9209#endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009210
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009211#include <$ac_header>
9212_ACEOF
9213rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009214if { (ac_try="$ac_compile"
9215case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218esac
9219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009221 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9228 { (case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231esac
9232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009234 ac_status=$?
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; } &&
9237 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009238 { (case "(($ac_try" in
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9241esac
9242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00009247 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009248else
9249 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009250sed 's/^/| /' conftest.$ac_ext >&5
9251
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009252 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009253fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009254
Jeremy White0ebeb532006-06-20 13:18:41 +02009255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009256fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009257ac_res=`eval echo '${'$as_ac_Header'}'`
9258 { echo "$as_me:$LINENO: result: $ac_res" >&5
9259echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009260if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009261 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009262#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009263_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00009264
9265fi
9266
9267done
9268
9269
9270 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
9271 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009272 { echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
9273echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009274if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
9275 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009276else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009277 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00009278LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009279cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009280/* confdefs.h. */
9281_ACEOF
9282cat confdefs.h >>conftest.$ac_ext
9283cat >>conftest.$ac_ext <<_ACEOF
9284/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009285
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009286/* Override any GCC internal prototype to avoid an error.
9287 Use char because int might match the return type of a GCC
9288 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009289#ifdef __cplusplus
9290extern "C"
9291#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009292char XkbQueryExtension ();
9293int
9294main ()
9295{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009296return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009297 ;
9298 return 0;
9299}
9300_ACEOF
9301rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009302if { (ac_try="$ac_link"
9303case "(($ac_try" in
9304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305 *) ac_try_echo=$ac_try;;
9306esac
9307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9308 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009309 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009310 grep -v '^ *+' conftest.er1 >conftest.err
9311 rm -f conftest.er1
9312 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009314 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9316 { (case "(($ac_try" in
9317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9319esac
9320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009322 ac_status=$?
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; } &&
9325 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009326 { (case "(($ac_try" in
9327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9328 *) ac_try_echo=$ac_try;;
9329esac
9330eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9331 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009332 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009334 (exit $ac_status); }; }; then
9335 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009336else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009337 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009338sed 's/^/| /' conftest.$ac_ext >&5
9339
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009340 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009341fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009342
Jeremy White0ebeb532006-06-20 13:18:41 +02009343rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009344 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009345LIBS=$ac_check_lib_save_LIBS
9346fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009347{ echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
9348echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009349if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009350
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009351cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009352#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009353_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009354
Patrik Stridvall24110281999-02-04 10:09:54 +00009355fi
9356
Alexandre Julliard255b4862003-10-15 04:09:55 +00009357 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009358
Alexandre Julliard255b4862003-10-15 04:09:55 +00009359 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
9360 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009361 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
9362echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009363if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00009365else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009366 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00009367LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009368cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009369/* confdefs.h. */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009375/* Override any GCC internal prototype to avoid an error.
9376 Use char because int might match the return type of a GCC
9377 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009378#ifdef __cplusplus
9379extern "C"
9380#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009381char XShmQueryExtension ();
9382int
9383main ()
9384{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009385return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009386 ;
9387 return 0;
9388}
9389_ACEOF
9390rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009391if { (ac_try="$ac_link"
9392case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395esac
9396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009398 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009403 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9405 { (case "(($ac_try" in
9406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407 *) ac_try_echo=$ac_try;;
9408esac
9409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; } &&
9414 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009415 { (case "(($ac_try" in
9416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9417 *) ac_try_echo=$ac_try;;
9418esac
9419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9420 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009421 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009423 (exit $ac_status); }; }; then
9424 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00009425else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009426 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009427sed 's/^/| /' conftest.$ac_ext >&5
9428
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009429 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00009430fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009431
Jeremy White0ebeb532006-06-20 13:18:41 +02009432rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009433 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009434LIBS=$ac_check_lib_save_LIBS
9435fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009436{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
9437echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009438if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00009439
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009440cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009441#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009442_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00009443
Francois Jacques5b6879c2000-07-28 23:04:54 +00009444fi
9445
Alexandre Julliard255b4862003-10-15 04:09:55 +00009446 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009447
Alexandre Julliard255b4862003-10-15 04:09:55 +00009448 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
9449 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009450 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9451echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009452if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00009454else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009455 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00009456LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009457cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009458/* confdefs.h. */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009463
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009464/* Override any GCC internal prototype to avoid an error.
9465 Use char because int might match the return type of a GCC
9466 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009467#ifdef __cplusplus
9468extern "C"
9469#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009470char XShapeQueryExtension ();
9471int
9472main ()
9473{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009474return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009475 ;
9476 return 0;
9477}
9478_ACEOF
9479rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009480if { (ac_try="$ac_link"
9481case "(($ac_try" in
9482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9484esac
9485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009487 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9497esac
9498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009500 ac_status=$?
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; } &&
9503 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009504 { (case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009510 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009512 (exit $ac_status); }; }; then
9513 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00009514else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009515 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009516sed 's/^/| /' conftest.$ac_ext >&5
9517
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009518 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00009519fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009520
Jeremy White0ebeb532006-06-20 13:18:41 +02009521rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009522 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009523LIBS=$ac_check_lib_save_LIBS
9524fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009525{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9526echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009527if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00009528
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009529cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009530#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009531_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00009532
Ove Kaavenc90fb252001-01-02 22:39:14 +00009533fi
9534
Alexandre Julliard255b4862003-10-15 04:09:55 +00009535 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009536
Alexandre Julliard255b4862003-10-15 04:09:55 +00009537 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
9538 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009539 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
9540echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009541if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009543else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009544 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00009545LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009546cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009547/* confdefs.h. */
9548_ACEOF
9549cat confdefs.h >>conftest.$ac_ext
9550cat >>conftest.$ac_ext <<_ACEOF
9551/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009552
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009553/* Override any GCC internal prototype to avoid an error.
9554 Use char because int might match the return type of a GCC
9555 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009556#ifdef __cplusplus
9557extern "C"
9558#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009559char XF86VidModeQueryExtension ();
9560int
9561main ()
9562{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009563return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009564 ;
9565 return 0;
9566}
9567_ACEOF
9568rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009569if { (ac_try="$ac_link"
9570case "(($ac_try" in
9571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572 *) ac_try_echo=$ac_try;;
9573esac
9574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009576 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009581 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9583 { (case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586esac
9587eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009589 ac_status=$?
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); }; } &&
9592 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009593 { (case "(($ac_try" in
9594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9595 *) ac_try_echo=$ac_try;;
9596esac
9597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9598 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009599 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009601 (exit $ac_status); }; }; then
9602 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00009603else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009604 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009605sed 's/^/| /' conftest.$ac_ext >&5
9606
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009607 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009608fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009609
Jeremy White0ebeb532006-06-20 13:18:41 +02009610rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +00009611 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009612LIBS=$ac_check_lib_save_LIBS
9613fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009614{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
9615echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009616if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00009617
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009618cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00009619#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009620_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00009621
9622 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009623
Patrik Stridvall24110281999-02-04 10:09:54 +00009624fi
9625
Alexandre Julliard255b4862003-10-15 04:09:55 +00009626 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009627
Alexandre Julliard255b4862003-10-15 04:09:55 +00009628 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
9629 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00009630 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009631/* confdefs.h. */
9632_ACEOF
9633cat confdefs.h >>conftest.$ac_ext
9634cat >>conftest.$ac_ext <<_ACEOF
9635/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00009636#include <X11/Xlib.h>
9637#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009638int
9639main ()
9640{
Mike McCormackc7c9f932004-04-07 03:57:35 +00009641static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009642 ;
9643 return 0;
9644}
9645_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00009646rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009647if { (ac_try="$ac_compile"
9648case "(($ac_try" in
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9651esac
9652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_compile") 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009654 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663 *) ac_try_echo=$ac_try;;
9664esac
9665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00009670 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009671 { (case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_try") 2>&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009677 ac_status=$?
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009680
9681cat >>confdefs.h <<\_ACEOF
9682#define HAVE_LIBXRANDR 1
9683_ACEOF
9684
Mike McCormackc7c9f932004-04-07 03:57:35 +00009685else
9686 echo "$as_me: failed program was:" >&5
9687sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009688
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009689
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009690fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009691
Jeremy White0ebeb532006-06-20 13:18:41 +02009692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00009693 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00009694
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009695 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
9696 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009697 { echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
9698echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009699if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
9700 echo $ECHO_N "(cached) $ECHO_C" >&6
9701else
9702 ac_check_lib_save_LIBS=$LIBS
9703LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
9710
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009711/* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009714#ifdef __cplusplus
9715extern "C"
9716#endif
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009717char XRenderSetPictureTransform ();
9718int
9719main ()
9720{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009721return XRenderSetPictureTransform ();
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009722 ;
9723 return 0;
9724}
9725_ACEOF
9726rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009727if { (ac_try="$ac_link"
9728case "(($ac_try" in
9729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730 *) ac_try_echo=$ac_try;;
9731esac
9732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9733 (eval "$ac_link") 2>conftest.er1
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009734 ac_status=$?
9735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741 { (case "(($ac_try" in
9742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9743 *) ac_try_echo=$ac_try;;
9744esac
9745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9746 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009747 ac_status=$?
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; } &&
9750 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009751 { (case "(($ac_try" in
9752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9753 *) ac_try_echo=$ac_try;;
9754esac
9755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9756 (eval "$ac_try") 2>&5
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009757 ac_status=$?
9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9759 (exit $ac_status); }; }; then
9760 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
9761else
9762 echo "$as_me: failed program was:" >&5
9763sed 's/^/| /' conftest.$ac_ext >&5
9764
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009765 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009766fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009767
Jeremy White0ebeb532006-06-20 13:18:41 +02009768rm -f core conftest.err conftest.$ac_objext \
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009769 conftest$ac_exeext conftest.$ac_ext
9770LIBS=$ac_check_lib_save_LIBS
9771fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009772{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
9773echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00009774if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
9775
9776cat >>confdefs.h <<\_ACEOF
9777#define HAVE_XRENDERSETPICTURETRANSFORM 1
9778_ACEOF
9779
9780fi
9781
9782 fi
9783
Alexandre Julliardb8074992002-11-21 21:51:24 +00009784 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009785 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009786
9787
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009788
Huw Davies4eb45462006-03-07 13:55:35 +00009789
9790for ac_header in GL/gl.h GL/glx.h GL/glext.h GL/glu.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009791do
9792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009793{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9794echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
Alexandre Julliard73482142005-08-03 19:21:04 +00009804#ifdef HAVE_GL_GLX_H
9805# include <GL/glx.h>
9806#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009807
9808#include <$ac_header>
9809_ACEOF
9810rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009811if { (ac_try="$ac_compile"
9812case "(($ac_try" in
9813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9814 *) ac_try_echo=$ac_try;;
9815esac
9816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9817 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009818 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009819 grep -v '^ *+' conftest.er1 >conftest.err
9820 rm -f conftest.er1
9821 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9825 { (case "(($ac_try" in
9826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9828esac
9829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009835 { (case "(($ac_try" in
9836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9838esac
9839eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009841 ac_status=$?
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); }; }; then
9844 eval "$as_ac_Header=yes"
9845else
9846 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009847sed 's/^/| /' conftest.$ac_ext >&5
9848
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009849 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009850fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009851
Jeremy White0ebeb532006-06-20 13:18:41 +02009852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +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; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009857if test `eval echo '${'$as_ac_Header'}'` = yes; then
9858 cat >>confdefs.h <<_ACEOF
9859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9860_ACEOF
9861
9862fi
9863
9864done
9865
Alexandre Julliard73482142005-08-03 19:21:04 +00009866 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
9867 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009868 { echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
9869echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009870if test "${wine_cv_opengl_version_OK+set}" = set; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00009872else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009873 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009874/* confdefs.h. */
9875_ACEOF
9876cat confdefs.h >>conftest.$ac_ext
9877cat >>conftest.$ac_ext <<_ACEOF
9878/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00009879#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009880int
9881main ()
9882{
Lionel Ulmer5c085701999-02-28 19:48:53 +00009883GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009884 ;
9885 return 0;
9886}
9887_ACEOF
9888rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +02009889if { (ac_try="$ac_compile"
9890case "(($ac_try" in
9891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9892 *) ac_try_echo=$ac_try;;
9893esac
9894eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9895 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009896 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009897 grep -v '^ *+' conftest.er1 >conftest.err
9898 rm -f conftest.er1
9899 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009901 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9903 { (case "(($ac_try" in
9904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9905 *) ac_try_echo=$ac_try;;
9906esac
9907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9908 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; } &&
9912 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009913 { (case "(($ac_try" in
9914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9915 *) ac_try_echo=$ac_try;;
9916esac
9917eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9918 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009919 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009921 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00009922 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00009923else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009924 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009925sed 's/^/| /' conftest.$ac_ext >&5
9926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009927 wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00009928
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009929fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009930
Jeremy White0ebeb532006-06-20 13:18:41 +02009931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00009932
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009933fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009934{ echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
9935echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009936
Alexandre Julliardb8074992002-11-21 21:51:24 +00009937 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00009938 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009939 { echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
9940echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009941if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009943else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009944 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00009945LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009946cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009947/* confdefs.h. */
9948_ACEOF
9949cat confdefs.h >>conftest.$ac_ext
9950cat >>conftest.$ac_ext <<_ACEOF
9951/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009952
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009953/* Override any GCC internal prototype to avoid an error.
9954 Use char because int might match the return type of a GCC
9955 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009956#ifdef __cplusplus
9957extern "C"
9958#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009959char glXCreateContext ();
9960int
9961main ()
9962{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009963return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009964 ;
9965 return 0;
9966}
9967_ACEOF
9968rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02009969if { (ac_try="$ac_link"
9970case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973esac
9974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009976 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009977 grep -v '^ *+' conftest.er1 >conftest.err
9978 rm -f conftest.er1
9979 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009981 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +02009982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9986esac
9987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009989 ac_status=$?
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; } &&
9992 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +02009993 { (case "(($ac_try" in
9994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9996esac
9997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009999 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010001 (exit $ac_status); }; }; then
10002 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +000010003else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010004 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010005sed 's/^/| /' conftest.$ac_ext >&5
10006
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010007 ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +000010008fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010009
Jeremy White0ebeb532006-06-20 13:18:41 +020010010rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010011 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010012LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +000010013fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010014{ echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
10015echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010016if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010017 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +000010018
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010019fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010020
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010021
Alexandre Julliardb508a1d2002-01-21 18:06:10 +000010022 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +000010023 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +000010024 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010026cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +000010027#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010028_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +000010029
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +000010030 else
10031 if test -f /usr/X11R6/lib/libGL.a
10032 then
10033 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
10034This prevents linking to OpenGL. Delete the file and restart configure." >&5
10035echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
10036This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
10037 { (exit 1); exit 1; }; }
10038 fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010039 fi
Anderson Lizardo5a2da4e2005-07-25 11:12:11 +000010040
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010041 { echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
10042echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010043if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010045else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010046 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010047LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010048 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010049cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010050/* confdefs.h. */
10051_ACEOF
10052cat confdefs.h >>conftest.$ac_ext
10053cat >>conftest.$ac_ext <<_ACEOF
10054/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010055
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010056/* Override any GCC internal prototype to avoid an error.
10057 Use char because int might match the return type of a GCC
10058 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010059#ifdef __cplusplus
10060extern "C"
10061#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010062char gluLookAt ();
10063int
10064main ()
10065{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010066return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010067 ;
10068 return 0;
10069}
10070_ACEOF
10071rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010072if { (ac_try="$ac_link"
10073case "(($ac_try" in
10074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075 *) ac_try_echo=$ac_try;;
10076esac
10077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010079 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010080 grep -v '^ *+' conftest.er1 >conftest.err
10081 rm -f conftest.er1
10082 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010084 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10086 { (case "(($ac_try" in
10087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10088 *) ac_try_echo=$ac_try;;
10089esac
10090eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10091 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010096 { (case "(($ac_try" in
10097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10098 *) ac_try_echo=$ac_try;;
10099esac
10100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10101 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010102 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010104 (exit $ac_status); }; }; then
10105 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010106else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010107 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010108sed 's/^/| /' conftest.$ac_ext >&5
10109
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010110 ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010111fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010112
Jeremy White0ebeb532006-06-20 13:18:41 +020010113rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010114 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010115LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010116fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010117{ echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
10118echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010119if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000010120 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010121 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010122
Marcus Meissnerb63ab442001-06-08 19:02:57 +000010123fi
10124
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010125 fi
Jacek Cabanef799c42003-12-02 04:11:09 +000010126
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010127 { echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
10128echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +000010129if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
10130 echo $ECHO_N "(cached) $ECHO_C" >&6
10131else
10132 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +000010133LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +000010134cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +000010135/* confdefs.h. */
10136_ACEOF
10137cat confdefs.h >>conftest.$ac_ext
10138cat >>conftest.$ac_ext <<_ACEOF
10139/* end confdefs.h. */
10140
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010141/* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
Jacek Cabanef799c42003-12-02 04:11:09 +000010144#ifdef __cplusplus
10145extern "C"
10146#endif
Jacek Cabanef799c42003-12-02 04:11:09 +000010147char glutMainLoop ();
10148int
10149main ()
10150{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010151return glutMainLoop ();
Jacek Cabanef799c42003-12-02 04:11:09 +000010152 ;
10153 return 0;
10154}
10155_ACEOF
10156rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010157if { (ac_try="$ac_link"
10158case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161esac
10162eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10163 (eval "$ac_link") 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +000010164 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010165 grep -v '^ *+' conftest.er1 >conftest.err
10166 rm -f conftest.er1
10167 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +000010168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10171 { (case "(($ac_try" in
10172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173 *) ac_try_echo=$ac_try;;
10174esac
10175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010181 { (case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184esac
10185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
Jacek Cabanef799c42003-12-02 04:11:09 +000010187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_lib_glut_glutMainLoop=yes
10191else
10192 echo "$as_me: failed program was:" >&5
10193sed 's/^/| /' conftest.$ac_ext >&5
10194
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010195 ac_cv_lib_glut_glutMainLoop=no
Jacek Cabanef799c42003-12-02 04:11:09 +000010196fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010197
Jeremy White0ebeb532006-06-20 13:18:41 +020010198rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010199 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +000010200LIBS=$ac_check_lib_save_LIBS
10201fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010202{ echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
10203echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6; }
Jacek Cabanef799c42003-12-02 04:11:09 +000010204if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +000010205 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +000010206
10207 GLUT32FILES='$(GLUT32FILES)'
10208
10209fi
10210
Lionel Ulmerfbc15b12000-04-29 14:23:22 +000010211 fi
Patrik Stridvall24110281999-02-04 10:09:54 +000010212 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010213
Francois Gouget6f670b12002-10-10 17:54:27 +000010214 NASLIBS=""
10215
10216
10217for ac_header in audio/audiolib.h
10218do
10219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010220if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10223if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010226ac_res=`eval echo '${'$as_ac_Header'}'`
10227 { echo "$as_me:$LINENO: result: $ac_res" >&5
10228echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010229else
10230 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010231{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010233cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010234/* confdefs.h. */
10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010239$ac_includes_default
10240#include <$ac_header>
10241_ACEOF
10242rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010243if { (ac_try="$ac_compile"
10244case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247esac
10248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010250 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10257 { (case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260esac
10261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010263 ac_status=$?
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; } &&
10266 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010267 { (case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270esac
10271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_header_compiler=yes
10277else
10278 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010279sed 's/^/| /' conftest.$ac_ext >&5
10280
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010281 ac_header_compiler=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010282fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010283
Jeremy White0ebeb532006-06-20 13:18:41 +020010284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010285{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10286echo "${ECHO_T}$ac_header_compiler" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010287
10288# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010289{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10290echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010291cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010297#include <$ac_header>
10298_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010299if { (ac_try="$ac_cpp conftest.$ac_ext"
10300case "(($ac_try" in
10301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10302 *) ac_try_echo=$ac_try;;
10303esac
10304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010306 ac_status=$?
10307 grep -v '^ *+' conftest.er1 >conftest.err
10308 rm -f conftest.er1
10309 cat conftest.err >&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); } >/dev/null; then
10312 if test -s conftest.err; then
10313 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +000010315 else
10316 ac_cpp_err=
10317 fi
10318else
10319 ac_cpp_err=yes
10320fi
10321if test -z "$ac_cpp_err"; then
10322 ac_header_preproc=yes
10323else
10324 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010325sed 's/^/| /' conftest.$ac_ext >&5
10326
Francois Gouget6f670b12002-10-10 17:54:27 +000010327 ac_header_preproc=no
10328fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010329
Francois Gouget6f670b12002-10-10 17:54:27 +000010330rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010331{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10332echo "${ECHO_T}$ac_header_preproc" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010333
10334# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10336 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +000010337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10341 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010342 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000010343 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +000010344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +000010352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000010354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010356 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010357## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000010358## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010359## ------------------------------------ ##
10360_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010361 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010362 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +000010363esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010364{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010367 echo $ECHO_N "(cached) $ECHO_C" >&6
10368else
Alexandre Julliard875927f2004-01-02 01:55:29 +000010369 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +000010370fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010371ac_res=`eval echo '${'$as_ac_Header'}'`
10372 { echo "$as_me:$LINENO: result: $ac_res" >&5
10373echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010374
10375fi
10376if test `eval echo '${'$as_ac_Header'}'` = yes; then
10377 cat >>confdefs.h <<_ACEOF
10378#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10379_ACEOF
10380
10381for ac_header in audio/soundlib.h
10382do
10383as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010384{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10386if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Francois Gouget6f670b12002-10-10 17:54:27 +000010387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388else
10389 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010390/* confdefs.h. */
10391_ACEOF
10392cat confdefs.h >>conftest.$ac_ext
10393cat >>conftest.$ac_ext <<_ACEOF
10394/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010395#include <audio/audiolib.h>
10396
10397#include <$ac_header>
10398_ACEOF
10399rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010400if { (ac_try="$ac_compile"
10401case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10404esac
10405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_compile") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010407 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010408 grep -v '^ *+' conftest.er1 >conftest.err
10409 rm -f conftest.er1
10410 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10414 { (case "(($ac_try" in
10415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10416 *) ac_try_echo=$ac_try;;
10417esac
10418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10419 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; } &&
10423 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010424 { (case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427esac
10428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010430 ac_status=$?
10431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432 (exit $ac_status); }; }; then
10433 eval "$as_ac_Header=yes"
10434else
10435 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010436sed 's/^/| /' conftest.$ac_ext >&5
10437
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010438 eval "$as_ac_Header=no"
Francois Gouget6f670b12002-10-10 17:54:27 +000010439fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010440
Jeremy White0ebeb532006-06-20 13:18:41 +020010441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010442fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010443ac_res=`eval echo '${'$as_ac_Header'}'`
10444 { echo "$as_me:$LINENO: result: $ac_res" >&5
10445echo "${ECHO_T}$ac_res" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010446if test `eval echo '${'$as_ac_Header'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10449_ACEOF
10450
10451fi
10452
10453done
10454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010455 { echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
10456echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010457if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 ac_check_lib_save_LIBS=$LIBS
10461LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
10462cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010463/* confdefs.h. */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010468
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010469/* Override any GCC internal prototype to avoid an error.
10470 Use char because int might match the return type of a GCC
10471 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +000010472#ifdef __cplusplus
10473extern "C"
10474#endif
Francois Gouget6f670b12002-10-10 17:54:27 +000010475char AuCreateFlow ();
10476int
10477main ()
10478{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010479return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +000010480 ;
10481 return 0;
10482}
10483_ACEOF
10484rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010485if { (ac_try="$ac_link"
10486case "(($ac_try" in
10487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10489esac
10490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +000010492 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010493 grep -v '^ *+' conftest.er1 >conftest.err
10494 rm -f conftest.er1
10495 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10502esac
10503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010505 ac_status=$?
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; } &&
10508 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010509 { (case "(($ac_try" in
10510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10511 *) ac_try_echo=$ac_try;;
10512esac
10513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_try") 2>&5
Francois Gouget6f670b12002-10-10 17:54:27 +000010515 ac_status=$?
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; }; then
10518 ac_cv_lib_audio_AuCreateFlow=yes
10519else
10520 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010521sed 's/^/| /' conftest.$ac_ext >&5
10522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010523 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +000010524fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010525
Jeremy White0ebeb532006-06-20 13:18:41 +020010526rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000010527 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +000010528LIBS=$ac_check_lib_save_LIBS
10529fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010530{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
10531echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6; }
Francois Gouget6f670b12002-10-10 17:54:27 +000010532if test $ac_cv_lib_audio_AuCreateFlow = yes; then
10533
10534cat >>confdefs.h <<\_ACEOF
10535#define HAVE_NAS 1
10536_ACEOF
10537
10538 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10539fi
10540
10541fi
10542
10543done
10544
10545
Ove Kaaven1eb593c1999-02-14 09:34:46 +000010546 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +000010547 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +000010548else
10549 XLIB=""
10550 X_CFLAGS=""
10551 X_LIBS=""
10552fi
Alexandre Julliard902da691995-11-05 14:39:02 +000010553
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010554
10555XML2LIBS=""
10556
10557XML2INCL=""
10558
Mike McCormackf3719a82005-09-03 09:39:38 +000010559XSLTLIBS=""
10560
10561XSLTINCL=""
10562
Mike McCormack90c75bd2005-08-08 18:36:53 +000010563if test "$PKG_CONFIG" != "false"
10564then
10565 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010566 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
10567 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
Mike McCormack90c75bd2005-08-08 18:36:53 +000010568 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010569
10570for ac_header in libxml/parser.h
10571do
10572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010573if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10574 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10576if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010577 echo $ECHO_N "(cached) $ECHO_C" >&6
10578fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010579ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010582else
10583 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010584{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010586cat >conftest.$ac_ext <<_ACEOF
10587/* confdefs.h. */
10588_ACEOF
10589cat confdefs.h >>conftest.$ac_ext
10590cat >>conftest.$ac_ext <<_ACEOF
10591/* end confdefs.h. */
10592$ac_includes_default
10593#include <$ac_header>
10594_ACEOF
10595rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010596if { (ac_try="$ac_compile"
10597case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10600esac
10601eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_compile") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010603 ac_status=$?
10604 grep -v '^ *+' conftest.er1 >conftest.err
10605 rm -f conftest.er1
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10610 { (case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613esac
10614eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010616 ac_status=$?
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; } &&
10619 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010620 { (case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623esac
10624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010626 ac_status=$?
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ac_header_compiler=yes
10630else
10631 echo "$as_me: failed program was:" >&5
10632sed 's/^/| /' conftest.$ac_ext >&5
10633
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010634 ac_header_compiler=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010635fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010636
Jeremy White0ebeb532006-06-20 13:18:41 +020010637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010638{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10639echo "${ECHO_T}$ac_header_compiler" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010640
10641# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010642{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10643echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010644cat >conftest.$ac_ext <<_ACEOF
10645/* confdefs.h. */
10646_ACEOF
10647cat confdefs.h >>conftest.$ac_ext
10648cat >>conftest.$ac_ext <<_ACEOF
10649/* end confdefs.h. */
10650#include <$ac_header>
10651_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020010652if { (ac_try="$ac_cpp conftest.$ac_ext"
10653case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
10657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010659 ac_status=$?
10660 grep -v '^ *+' conftest.er1 >conftest.err
10661 rm -f conftest.er1
10662 cat conftest.err >&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); } >/dev/null; then
10665 if test -s conftest.err; then
10666 ac_cpp_err=$ac_c_preproc_warn_flag
10667 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10668 else
10669 ac_cpp_err=
10670 fi
10671else
10672 ac_cpp_err=yes
10673fi
10674if test -z "$ac_cpp_err"; then
10675 ac_header_preproc=yes
10676else
10677 echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680 ac_header_preproc=no
10681fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010682
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010683rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010684{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10685echo "${ECHO_T}$ac_header_preproc" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010686
10687# So? What about this header?
10688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10689 yes:no: )
10690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10694 ac_header_preproc=yes
10695 ;;
10696 no:yes:* )
10697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010709 ( cat <<\_ASBOX
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010710## ------------------------------------ ##
10711## Report this to wine-devel@winehq.org ##
10712## ------------------------------------ ##
10713_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010714 ) | sed "s/^/$as_me: WARNING: /" >&2
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010715 ;;
10716esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010717{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10718echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010720 echo $ECHO_N "(cached) $ECHO_C" >&6
10721else
10722 eval "$as_ac_Header=\$ac_header_preproc"
10723fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010724ac_res=`eval echo '${'$as_ac_Header'}'`
10725 { echo "$as_me:$LINENO: result: $ac_res" >&5
10726echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010727
10728fi
10729if test `eval echo '${'$as_ac_Header'}'` = yes; then
10730 cat >>confdefs.h <<_ACEOF
10731#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10732_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010733 { echo "$as_me:$LINENO: checking for xmlParseMemory in -lxml2" >&5
10734echo $ECHO_N "checking for xmlParseMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010735if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737else
10738 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +000010739LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010740cat >conftest.$ac_ext <<_ACEOF
10741/* confdefs.h. */
10742_ACEOF
10743cat confdefs.h >>conftest.$ac_ext
10744cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */
10746
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010747/* Override any GCC internal prototype to avoid an error.
10748 Use char because int might match the return type of a GCC
10749 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010750#ifdef __cplusplus
10751extern "C"
10752#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +000010753char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010754int
10755main ()
10756{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010757return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010758 ;
10759 return 0;
10760}
10761_ACEOF
10762rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010763if { (ac_try="$ac_link"
10764case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767esac
10768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_link") 2>conftest.er1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777 { (case "(($ac_try" in
10778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10779 *) ac_try_echo=$ac_try;;
10780esac
10781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10782 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010783 ac_status=$?
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010787 { (case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10790esac
10791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_try") 2>&5
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010793 ac_status=$?
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); }; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +000010796 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010797else
10798 echo "$as_me: failed program was:" >&5
10799sed 's/^/| /' conftest.$ac_ext >&5
10800
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010801 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010802fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010803
Jeremy White0ebeb532006-06-20 13:18:41 +020010804rm -f core conftest.err conftest.$ac_objext \
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010805 conftest$ac_exeext conftest.$ac_ext
10806LIBS=$ac_check_lib_save_LIBS
10807fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010808{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
10809echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +000010810if test $ac_cv_lib_xml2_xmlParseMemory = yes; then
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010811
10812cat >>confdefs.h <<\_ACEOF
10813#define HAVE_LIBXML2 1
10814_ACEOF
10815
Mike McCormack90c75bd2005-08-08 18:36:53 +000010816 XML2LIBS="$ac_xml_libs"
10817 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010818fi
10819
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010820 { echo "$as_me:$LINENO: checking for xmlReadMemory in -lxml2" >&5
10821echo $ECHO_N "checking for xmlReadMemory in -lxml2... $ECHO_C" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010822if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824else
10825 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +000010826LIBS="-lxml2 $ac_xml_libs $LIBS"
Mike McCormack70adb8f2005-08-12 10:35:17 +000010827cat >conftest.$ac_ext <<_ACEOF
10828/* confdefs.h. */
10829_ACEOF
10830cat confdefs.h >>conftest.$ac_ext
10831cat >>conftest.$ac_ext <<_ACEOF
10832/* end confdefs.h. */
10833
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010834/* Override any GCC internal prototype to avoid an error.
10835 Use char because int might match the return type of a GCC
10836 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +000010837#ifdef __cplusplus
10838extern "C"
10839#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +000010840char xmlReadMemory ();
10841int
10842main ()
10843{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010844return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +000010845 ;
10846 return 0;
10847}
10848_ACEOF
10849rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020010850if { (ac_try="$ac_link"
10851case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10854esac
10855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_link") 2>conftest.er1
Mike McCormack70adb8f2005-08-12 10:35:17 +000010857 ac_status=$?
10858 grep -v '^ *+' conftest.er1 >conftest.err
10859 rm -f conftest.er1
10860 cat conftest.err >&5
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10864 { (case "(($ac_try" in
10865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10867esac
10868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000010870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }; } &&
10873 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010874 { (case "(($ac_try" in
10875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10876 *) ac_try_echo=$ac_try;;
10877esac
10878eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
Mike McCormack70adb8f2005-08-12 10:35:17 +000010880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; }; then
10883 ac_cv_lib_xml2_xmlReadMemory=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010888 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +000010889fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010890
Jeremy White0ebeb532006-06-20 13:18:41 +020010891rm -f core conftest.err conftest.$ac_objext \
Mike McCormack70adb8f2005-08-12 10:35:17 +000010892 conftest$ac_exeext conftest.$ac_ext
10893LIBS=$ac_check_lib_save_LIBS
10894fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010895{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
10896echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Mike McCormack70adb8f2005-08-12 10:35:17 +000010897if test $ac_cv_lib_xml2_xmlReadMemory = yes; then
10898
10899cat >>confdefs.h <<\_ACEOF
10900#define HAVE_XMLREADMEMORY 1
10901_ACEOF
10902
10903fi
10904
10905
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000010906fi
10907
10908done
10909
Mike McCormack90c75bd2005-08-08 18:36:53 +000010910 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020010911 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
10912 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
Mike McCormackf3719a82005-09-03 09:39:38 +000010913 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
10914
10915
Vincent Bérond7f64242005-09-15 09:39:09 +000010916for ac_header in libxslt/pattern.h libxslt/transform.h
Mike McCormackf3719a82005-09-03 09:39:38 +000010917do
10918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010919{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Mike McCormackf3719a82005-09-03 09:39:38 +000010922 echo $ECHO_N "(cached) $ECHO_C" >&6
Mike McCormackf3719a82005-09-03 09:39:38 +000010923else
Vincent Bérond7f64242005-09-15 09:39:09 +000010924 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +000010925/* confdefs.h. */
10926_ACEOF
10927cat confdefs.h >>conftest.$ac_ext
10928cat >>conftest.$ac_ext <<_ACEOF
10929/* end confdefs.h. */
Vincent Bérond7f64242005-09-15 09:39:09 +000010930#ifdef HAVE_LIBXSLT_PATTERN_H
10931# include <libxslt/pattern.h>
10932#endif
10933
Mike McCormackf3719a82005-09-03 09:39:38 +000010934#include <$ac_header>
10935_ACEOF
10936rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020010937if { (ac_try="$ac_compile"
10938case "(($ac_try" in
10939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940 *) ac_try_echo=$ac_try;;
10941esac
10942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943 (eval "$ac_compile") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000010944 ac_status=$?
10945 grep -v '^ *+' conftest.er1 >conftest.err
10946 rm -f conftest.er1
10947 cat conftest.err >&5
10948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10949 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020010950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10951 { (case "(($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_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000010957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020010961 { (case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10966 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000010967 ac_status=$?
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; }; then
Vincent Bérond7f64242005-09-15 09:39:09 +000010970 eval "$as_ac_Header=yes"
Mike McCormackf3719a82005-09-03 09:39:38 +000010971else
10972 echo "$as_me: failed program was:" >&5
10973sed 's/^/| /' conftest.$ac_ext >&5
10974
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010975 eval "$as_ac_Header=no"
Mike McCormackf3719a82005-09-03 09:39:38 +000010976fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010977
Jeremy White0ebeb532006-06-20 13:18:41 +020010978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +000010979fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010980ac_res=`eval echo '${'$as_ac_Header'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982echo "${ECHO_T}$ac_res" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010983if test `eval echo '${'$as_ac_Header'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10986_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010987 { echo "$as_me:$LINENO: checking for xsltCompilePattern in -lxslt" >&5
10988echo $ECHO_N "checking for xsltCompilePattern in -lxslt... $ECHO_C" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000010989if test "${ac_cv_lib_xslt_xsltCompilePattern+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10991else
10992 ac_check_lib_save_LIBS=$LIBS
10993LIBS="-lxslt $ac_xslt_libs $LIBS"
10994cat >conftest.$ac_ext <<_ACEOF
10995/* confdefs.h. */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h. */
11000
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011001/* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +000011004#ifdef __cplusplus
11005extern "C"
11006#endif
Mike McCormackf3719a82005-09-03 09:39:38 +000011007char xsltCompilePattern ();
11008int
11009main ()
11010{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011011return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +000011012 ;
11013 return 0;
11014}
11015_ACEOF
11016rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011017if { (ac_try="$ac_link"
11018case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11021esac
11022eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_link") 2>conftest.er1
Mike McCormackf3719a82005-09-03 09:39:38 +000011024 ac_status=$?
11025 grep -v '^ *+' conftest.er1 >conftest.err
11026 rm -f conftest.er1
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033 *) ac_try_echo=$ac_try;;
11034esac
11035eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011037 ac_status=$?
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011041 { (case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11044esac
11045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
Mike McCormackf3719a82005-09-03 09:39:38 +000011047 ac_status=$?
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_lib_xslt_xsltCompilePattern=yes
11051else
11052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011055 ac_cv_lib_xslt_xsltCompilePattern=no
Mike McCormackf3719a82005-09-03 09:39:38 +000011056fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011057
Jeremy White0ebeb532006-06-20 13:18:41 +020011058rm -f core conftest.err conftest.$ac_objext \
Mike McCormackf3719a82005-09-03 09:39:38 +000011059 conftest$ac_exeext conftest.$ac_ext
11060LIBS=$ac_check_lib_save_LIBS
11061fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011062{ echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCompilePattern" >&5
11063echo "${ECHO_T}$ac_cv_lib_xslt_xsltCompilePattern" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +000011064if test $ac_cv_lib_xslt_xsltCompilePattern = yes; then
11065
11066cat >>confdefs.h <<\_ACEOF
11067#define HAVE_LIBXSLT 1
11068_ACEOF
11069
11070 XSLTLIBS="$ac_xslt_libs"
11071 XSLTINCL="$ac_xslt_cflags"
11072fi
11073
11074
11075fi
11076
11077done
11078
11079 CPPFLAGS="$ac_save_CPPFLAGS"
Mike McCormack90c75bd2005-08-08 18:36:53 +000011080fi
Mike McCormackdcc2d6c2005-08-02 11:29:04 +000011081
Alexandre Julliard00068982006-04-18 16:47:53 +020011082HALINCL=""
11083
11084if test "$PKG_CONFIG" != "false"
11085then
11086 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliardd01063e2006-06-22 12:07:57 +020011087 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
11088 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
Alexandre Julliard00068982006-04-18 16:47:53 +020011089 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
11090
11091
11092for ac_header in dbus/dbus.h hal/libhal.h
11093do
11094as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011099 echo $ECHO_N "(cached) $ECHO_C" >&6
11100fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011101ac_res=`eval echo '${'$as_ac_Header'}'`
11102 { echo "$as_me:$LINENO: result: $ac_res" >&5
11103echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011104else
11105 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011106{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011108cat >conftest.$ac_ext <<_ACEOF
11109/* confdefs.h. */
11110_ACEOF
11111cat confdefs.h >>conftest.$ac_ext
11112cat >>conftest.$ac_ext <<_ACEOF
11113/* end confdefs.h. */
11114$ac_includes_default
11115#include <$ac_header>
11116_ACEOF
11117rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011118if { (ac_try="$ac_compile"
11119case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11132 { (case "(($ac_try" in
11133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134 *) ac_try_echo=$ac_try;;
11135esac
11136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011142 { (case "(($ac_try" in
11143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144 *) ac_try_echo=$ac_try;;
11145esac
11146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_header_compiler=yes
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011156 ac_header_compiler=no
Alexandre Julliard00068982006-04-18 16:47:53 +020011157fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011158
Jeremy White0ebeb532006-06-20 13:18:41 +020011159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011160{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11161echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011162
11163# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011164{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11165echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011166cat >conftest.$ac_ext <<_ACEOF
11167/* confdefs.h. */
11168_ACEOF
11169cat confdefs.h >>conftest.$ac_ext
11170cat >>conftest.$ac_ext <<_ACEOF
11171/* end confdefs.h. */
11172#include <$ac_header>
11173_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011174if { (ac_try="$ac_cpp conftest.$ac_ext"
11175case "(($ac_try" in
11176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11177 *) ac_try_echo=$ac_try;;
11178esac
11179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011181 ac_status=$?
11182 grep -v '^ *+' conftest.er1 >conftest.err
11183 rm -f conftest.er1
11184 cat conftest.err >&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } >/dev/null; then
11187 if test -s conftest.err; then
11188 ac_cpp_err=$ac_c_preproc_warn_flag
11189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11190 else
11191 ac_cpp_err=
11192 fi
11193else
11194 ac_cpp_err=yes
11195fi
11196if test -z "$ac_cpp_err"; then
11197 ac_header_preproc=yes
11198else
11199 echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202 ac_header_preproc=no
11203fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011204
Alexandre Julliard00068982006-04-18 16:47:53 +020011205rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011206{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11207echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011208
11209# So? What about this header?
11210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11211 yes:no: )
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11216 ac_header_preproc=yes
11217 ;;
11218 no:yes:* )
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011231 ( cat <<\_ASBOX
Alexandre Julliard00068982006-04-18 16:47:53 +020011232## ------------------------------------ ##
11233## Report this to wine-devel@winehq.org ##
11234## ------------------------------------ ##
11235_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011236 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliard00068982006-04-18 16:47:53 +020011237 ;;
11238esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011239{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011242 echo $ECHO_N "(cached) $ECHO_C" >&6
11243else
11244 eval "$as_ac_Header=\$ac_header_preproc"
11245fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011246ac_res=`eval echo '${'$as_ac_Header'}'`
11247 { echo "$as_me:$LINENO: result: $ac_res" >&5
11248echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011249
11250fi
11251if test `eval echo '${'$as_ac_Header'}'` = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11254_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011255
11256fi
11257
11258done
11259
11260 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
11261 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011262 { echo "$as_me:$LINENO: checking for libhal_ctx_new in -lhal" >&5
11263echo $ECHO_N "checking for libhal_ctx_new in -lhal... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011264if test "${ac_cv_lib_hal_libhal_ctx_new+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266else
11267 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011268LIBS="-lhal $LIBS"
Alexandre Julliard00068982006-04-18 16:47:53 +020011269cat >conftest.$ac_ext <<_ACEOF
11270/* confdefs.h. */
11271_ACEOF
11272cat confdefs.h >>conftest.$ac_ext
11273cat >>conftest.$ac_ext <<_ACEOF
11274/* end confdefs.h. */
11275
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011276/* Override any GCC internal prototype to avoid an error.
11277 Use char because int might match the return type of a GCC
11278 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020011279#ifdef __cplusplus
11280extern "C"
11281#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020011282char libhal_ctx_new ();
11283int
11284main ()
11285{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011286return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020011287 ;
11288 return 0;
11289}
11290_ACEOF
11291rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011292if { (ac_try="$ac_link"
11293case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296esac
11297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020011299 ac_status=$?
11300 grep -v '^ *+' conftest.er1 >conftest.err
11301 rm -f conftest.er1
11302 cat conftest.err >&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11306 { (case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11309esac
11310eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011316 { (case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319esac
11320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020011322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_cv_lib_hal_libhal_ctx_new=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011330 ac_cv_lib_hal_libhal_ctx_new=no
Alexandre Julliard00068982006-04-18 16:47:53 +020011331fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011332
Jeremy White0ebeb532006-06-20 13:18:41 +020011333rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020011334 conftest$ac_exeext conftest.$ac_ext
11335LIBS=$ac_check_lib_save_LIBS
11336fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011337{ echo "$as_me:$LINENO: result: $ac_cv_lib_hal_libhal_ctx_new" >&5
11338echo "${ECHO_T}$ac_cv_lib_hal_libhal_ctx_new" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020011339if test $ac_cv_lib_hal_libhal_ctx_new = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011340 { echo "$as_me:$LINENO: checking for dbus_connection_close in -ldbus-1" >&5
11341echo $ECHO_N "checking for dbus_connection_close in -ldbus-1... $ECHO_C" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011342if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11344else
11345 ac_check_lib_save_LIBS=$LIBS
11346LIBS="-ldbus-1 $ac_hal_libs $LIBS"
11347cat >conftest.$ac_ext <<_ACEOF
11348/* confdefs.h. */
11349_ACEOF
11350cat confdefs.h >>conftest.$ac_ext
11351cat >>conftest.$ac_ext <<_ACEOF
11352/* end confdefs.h. */
11353
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011354/* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011357#ifdef __cplusplus
11358extern "C"
11359#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011360char dbus_connection_close ();
11361int
11362main ()
11363{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011364return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011365 ;
11366 return 0;
11367}
11368_ACEOF
11369rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011370if { (ac_try="$ac_link"
11371case "(($ac_try" in
11372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11373 *) ac_try_echo=$ac_try;;
11374esac
11375eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11376 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011377 ac_status=$?
11378 grep -v '^ *+' conftest.er1 >conftest.err
11379 rm -f conftest.er1
11380 cat conftest.err >&5
11381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11382 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11384 { (case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11387esac
11388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011394 { (case "(($ac_try" in
11395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11397esac
11398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_try") 2>&5
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011400 ac_status=$?
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 ac_cv_lib_dbus_1_dbus_connection_close=yes
11404else
11405 echo "$as_me: failed program was:" >&5
11406sed 's/^/| /' conftest.$ac_ext >&5
11407
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011408 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011409fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011410
Jeremy White0ebeb532006-06-20 13:18:41 +020011411rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011412 conftest$ac_exeext conftest.$ac_ext
11413LIBS=$ac_check_lib_save_LIBS
11414fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011415{ echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
11416echo "${ECHO_T}$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011417if test $ac_cv_lib_dbus_1_dbus_connection_close = yes; then
Alexandre Julliard00068982006-04-18 16:47:53 +020011418
11419cat >>confdefs.h <<\_ACEOF
11420#define HAVE_LIBHAL 1
11421_ACEOF
11422
11423 HALINCL="$ac_hal_cflags"
11424fi
11425
11426fi
11427
Alexandre Julliardb18b9f32006-04-18 19:10:59 +020011428 fi
Alexandre Julliard00068982006-04-18 16:47:53 +020011429 CPPFLAGS="$ac_save_CPPFLAGS"
11430fi
11431
Alexandre Julliard48957682001-12-26 23:08:31 +000011432CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011433if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +000011434then
Alexandre Julliard73482142005-08-03 19:21:04 +000011435 if test "$ac_cv_header_ncurses_h" = "yes"
11436 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011437 { echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
11438echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011439if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
11440 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011442 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011443LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011444cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011445/* confdefs.h. */
11446_ACEOF
11447cat confdefs.h >>conftest.$ac_ext
11448cat >>conftest.$ac_ext <<_ACEOF
11449/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011450
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011451/* Override any GCC internal prototype to avoid an error.
11452 Use char because int might match the return type of a GCC
11453 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011454#ifdef __cplusplus
11455extern "C"
11456#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011457char waddch ();
11458int
11459main ()
11460{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011461return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011462 ;
11463 return 0;
11464}
11465_ACEOF
11466rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011467if { (ac_try="$ac_link"
11468case "(($ac_try" in
11469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11470 *) ac_try_echo=$ac_try;;
11471esac
11472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11473 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011474 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011475 grep -v '^ *+' conftest.er1 >conftest.err
11476 rm -f conftest.er1
11477 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011479 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11481 { (case "(($ac_try" in
11482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11484esac
11485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; } &&
11490 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011491 { (case "(($ac_try" in
11492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11493 *) ac_try_echo=$ac_try;;
11494esac
11495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11496 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011497 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011499 (exit $ac_status); }; }; then
11500 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011502 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011503sed 's/^/| /' conftest.$ac_ext >&5
11504
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011505 ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011506fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011507
Jeremy White0ebeb532006-06-20 13:18:41 +020011508rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011509 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011510LIBS=$ac_check_lib_save_LIBS
11511fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011512{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
11513echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011514if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011515
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011516cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011517#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011518_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011519
Alexandre Julliard48957682001-12-26 23:08:31 +000011520 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011521fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011522
Alexandre Julliard73482142005-08-03 19:21:04 +000011523 elif test "$ac_cv_header_curses_h" = "yes"
11524 then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011525 { echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
11526echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011527if test "${ac_cv_lib_curses_waddch+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011529else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011530 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011531LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011532cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011533/* confdefs.h. */
11534_ACEOF
11535cat confdefs.h >>conftest.$ac_ext
11536cat >>conftest.$ac_ext <<_ACEOF
11537/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011538
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011539/* Override any GCC internal prototype to avoid an error.
11540 Use char because int might match the return type of a GCC
11541 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011542#ifdef __cplusplus
11543extern "C"
11544#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011545char waddch ();
11546int
11547main ()
11548{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011549return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011550 ;
11551 return 0;
11552}
11553_ACEOF
11554rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011555if { (ac_try="$ac_link"
11556case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11559esac
11560eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011562 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011567 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11569 { (case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572esac
11573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11574 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011575 ac_status=$?
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); }; } &&
11578 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011579 { (case "(($ac_try" in
11580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581 *) ac_try_echo=$ac_try;;
11582esac
11583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11584 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011585 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011587 (exit $ac_status); }; }; then
11588 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011589else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011590 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011591sed 's/^/| /' conftest.$ac_ext >&5
11592
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011593 ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011594fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011595
Jeremy White0ebeb532006-06-20 13:18:41 +020011596rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000011597 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011598LIBS=$ac_check_lib_save_LIBS
11599fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011600{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
11601echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011602if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011603
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011604cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +000011605#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011606_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011607
Alexandre Julliard73482142005-08-03 19:21:04 +000011608 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011609fi
11610
Alexandre Julliard73482142005-08-03 19:21:04 +000011611 fi
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020011612 ac_save_LIBS="$LIBS"
11613 LIBS="$LIBS $CURSESLIBS"
11614
11615for ac_func in mousemask
11616do
11617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11618{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11620if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
11629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11631#define $ac_func innocuous_$ac_func
11632
11633/* System header to define __stub macros and hopefully few prototypes,
11634 which can conflict with char $ac_func (); below.
11635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11636 <limits.h> exists even on freestanding compilers. */
11637
11638#ifdef __STDC__
11639# include <limits.h>
11640#else
11641# include <assert.h>
11642#endif
11643
11644#undef $ac_func
11645
11646/* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649#ifdef __cplusplus
11650extern "C"
11651#endif
11652char $ac_func ();
11653/* The GNU C library defines this for functions which it implements
11654 to always fail with ENOSYS. Some functions are actually named
11655 something starting with __ and the normal name is an alias. */
11656#if defined __stub_$ac_func || defined __stub___$ac_func
11657choke me
11658#endif
11659
11660int
11661main ()
11662{
11663return $ac_func ();
11664 ;
11665 return 0;
11666}
11667_ACEOF
11668rm -f conftest.$ac_objext conftest$ac_exeext
11669if { (ac_try="$ac_link"
11670case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11673esac
11674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_link") 2>conftest.er1
11676 ac_status=$?
11677 grep -v '^ *+' conftest.er1 >conftest.err
11678 rm -f conftest.er1
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11683 { (case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686esac
11687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_try") 2>&5
11689 ac_status=$?
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); }; } &&
11692 { ac_try='test -s conftest$ac_exeext'
11693 { (case "(($ac_try" in
11694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11695 *) ac_try_echo=$ac_try;;
11696esac
11697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11698 (eval "$ac_try") 2>&5
11699 ac_status=$?
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); }; }; then
11702 eval "$as_ac_var=yes"
11703else
11704 echo "$as_me: failed program was:" >&5
11705sed 's/^/| /' conftest.$ac_ext >&5
11706
11707 eval "$as_ac_var=no"
11708fi
11709
11710rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
11712fi
11713ac_res=`eval echo '${'$as_ac_var'}'`
11714 { echo "$as_me:$LINENO: result: $ac_res" >&5
11715echo "${ECHO_T}$ac_res" >&6; }
11716if test `eval echo '${'$as_ac_var'}'` = yes; then
11717 cat >>confdefs.h <<_ACEOF
11718#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11719_ACEOF
11720
11721fi
11722done
11723
11724 LIBS="$ac_save_LIBS"
Joseph Praneviche884f9c1999-01-03 16:14:34 +000011725fi
11726
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011727
Shi Quan He6b0720f2002-03-21 02:58:39 +000011728# Extract the first word of "sane-config", so it can be a program name with args.
11729set dummy sane-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011730{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011732if test "${ac_cv_prog_sane_devel+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11734else
11735 if test -n "$sane_devel"; then
11736 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
11737else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
11743 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011744 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 +000011745 ac_cv_prog_sane_devel="sane-config"
11746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11747 break 2
11748 fi
11749done
Shi Quan He6b0720f2002-03-21 02:58:39 +000011750done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011751IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +000011752
11753 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
11754fi
11755fi
11756sane_devel=$ac_cv_prog_sane_devel
11757if test -n "$sane_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011758 { echo "$as_me:$LINENO: result: $sane_devel" >&5
11759echo "${ECHO_T}$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011760else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011761 { echo "$as_me:$LINENO: result: no" >&5
11762echo "${ECHO_T}no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011763fi
11764
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011765
Alexandre Julliard82776022005-08-08 11:17:25 +000011766SANELIBS=""
11767
11768SANEINCL=""
11769
11770if test "$sane_devel" != "no"
Shi Quan He6b0720f2002-03-21 02:58:39 +000011771then
Shi Quan He6b0720f2002-03-21 02:58:39 +000011772 SANELIBS="`$sane_devel --libs`"
11773 SANEINCL="`$sane_devel --cflags`"
11774 ac_save_CPPFLAGS="$CPPFLAGS"
11775 ac_save_LIBS="$LIBS"
11776 CPPFLAGS="$CPPFLAGS $SANEINCL"
11777 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011778 if test "${ac_cv_header_sane_sane_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011779 { echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11780echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011781if test "${ac_cv_header_sane_sane_h+set}" = set; then
11782 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011783fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011784{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11785echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011786else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011787 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011788{ echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
11789echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011790cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011796$ac_includes_default
11797#include <sane/sane.h>
11798_ACEOF
11799rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020011800if { (ac_try="$ac_compile"
11801case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804esac
11805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011807 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (case "(($ac_try" in
11815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816 *) ac_try_echo=$ac_try;;
11817esac
11818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011820 ac_status=$?
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; } &&
11823 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011824 { (case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827esac
11828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_header_compiler=yes
11834else
11835 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011836sed 's/^/| /' conftest.$ac_ext >&5
11837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011838 ac_header_compiler=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011839fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011840
Jeremy White0ebeb532006-06-20 13:18:41 +020011841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011842{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11843echo "${ECHO_T}$ac_header_compiler" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011844
11845# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011846{ echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
11847echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011848cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011849/* confdefs.h. */
11850_ACEOF
11851cat confdefs.h >>conftest.$ac_ext
11852cat >>conftest.$ac_ext <<_ACEOF
11853/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011854#include <sane/sane.h>
11855_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020011856if { (ac_try="$ac_cpp conftest.$ac_ext"
11857case "(($ac_try" in
11858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11859 *) ac_try_echo=$ac_try;;
11860esac
11861eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000011863 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011864 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +000011865 rm -f conftest.er1
11866 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011868 (exit $ac_status); } >/dev/null; then
11869 if test -s conftest.err; then
11870 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +000011872 else
11873 ac_cpp_err=
11874 fi
11875else
11876 ac_cpp_err=yes
11877fi
11878if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011879 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +000011880else
11881 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011882sed 's/^/| /' conftest.$ac_ext >&5
11883
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011884 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000011885fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011886
Shi Quan He6b0720f2002-03-21 02:58:39 +000011887rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011888{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11889echo "${ECHO_T}$ac_header_preproc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011890
11891# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11893 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011894 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
11895echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011896 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
11897echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
11898 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011899 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011900 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011901 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
11902echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011903 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
11904echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
11906echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
11908echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011909 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011910echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011911 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
11912echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011913 ( cat <<\_ASBOX
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011914## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011915## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011916## ------------------------------------ ##
11917_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011918 ) | sed "s/^/$as_me: WARNING: /" >&2
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011919 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011920esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011921{ echo "$as_me:$LINENO: checking for sane/sane.h" >&5
11922echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011923if test "${ac_cv_header_sane_sane_h+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925else
11926 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +000011927fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011928{ echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
11929echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011930
11931fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000011932if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011933 { echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
11934echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000011935if test "${ac_cv_lib_sane_sane_open+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 ac_check_lib_save_LIBS=$LIBS
11939LIBS="-lsane $LIBS"
11940cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011941/* confdefs.h. */
11942_ACEOF
11943cat confdefs.h >>conftest.$ac_ext
11944cat >>conftest.$ac_ext <<_ACEOF
11945/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011947/* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
Shi Quan He6b0720f2002-03-21 02:58:39 +000011950#ifdef __cplusplus
11951extern "C"
11952#endif
Shi Quan He6b0720f2002-03-21 02:58:39 +000011953char sane_open ();
11954int
11955main ()
11956{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011957return sane_open ();
Shi Quan He6b0720f2002-03-21 02:58:39 +000011958 ;
11959 return 0;
11960}
11961_ACEOF
11962rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020011963if { (ac_try="$ac_link"
11964case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967esac
11968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +000011970 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011975 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020011976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11977 { (case "(($ac_try" in
11978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11980esac
11981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11982 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; } &&
11986 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020011987 { (case "(($ac_try" in
11988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989 *) ac_try_echo=$ac_try;;
11990esac
11991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_try") 2>&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011993 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +000011995 (exit $ac_status); }; }; then
11996 ac_cv_lib_sane_sane_open=yes
11997else
11998 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011999sed 's/^/| /' conftest.$ac_ext >&5
12000
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012001 ac_cv_lib_sane_sane_open=no
Shi Quan He6b0720f2002-03-21 02:58:39 +000012002fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012003
Jeremy White0ebeb532006-06-20 13:18:41 +020012004rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000012005 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +000012006LIBS=$ac_check_lib_save_LIBS
12007fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012008{ echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
12009echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +000012010if test $ac_cv_lib_sane_sane_open = yes; then
12011
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012012cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000012013#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012014_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +000012015
12016else
12017 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +000012018 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000012019fi
12020
Alexandre Julliard96328b32002-03-31 19:23:41 +000012021else
12022 SANELIBS=""
12023 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +000012024fi
12025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012026
Shi Quan He6b0720f2002-03-21 02:58:39 +000012027 LIBS="$ac_save_LIBS"
12028 CPPFLAGS="$ac_save_CPPFLAGS"
12029fi
12030
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012031# Extract the first word of "gphoto2-config", so it can be a program name with args.
12032set dummy gphoto2-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012035if test "${ac_cv_prog_gphoto2_devel+set}" = set; then
12036 echo $ECHO_N "(cached) $ECHO_C" >&6
12037else
12038 if test -n "$gphoto2_devel"; then
12039 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
12040else
12041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042for as_dir in $PATH
12043do
12044 IFS=$as_save_IFS
12045 test -z "$as_dir" && as_dir=.
12046 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012047 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 +020012048 ac_cv_prog_gphoto2_devel="gphoto2-config"
12049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12050 break 2
12051 fi
12052done
12053done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012054IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012055
12056 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
12057fi
12058fi
12059gphoto2_devel=$ac_cv_prog_gphoto2_devel
12060if test -n "$gphoto2_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012061 { echo "$as_me:$LINENO: result: $gphoto2_devel" >&5
12062echo "${ECHO_T}$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012063else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012064 { echo "$as_me:$LINENO: result: no" >&5
12065echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012066fi
12067
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012068
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012069# Extract the first word of "gphoto2-port-config", so it can be a program name with args.
12070set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012073if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12075else
12076 if test -n "$gphoto2port_devel"; then
12077 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
12078else
12079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080for as_dir in $PATH
12081do
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012085 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 +020012086 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
12087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12089 fi
12090done
12091done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012092IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012093
12094 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
12095fi
12096fi
12097gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
12098if test -n "$gphoto2port_devel"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012099 { echo "$as_me:$LINENO: result: $gphoto2port_devel" >&5
12100echo "${ECHO_T}$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012101else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012102 { echo "$as_me:$LINENO: result: no" >&5
12103echo "${ECHO_T}no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012104fi
12105
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012106
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012107GPHOTO2LIBS=""
12108
12109GPHOTO2INCL=""
12110
12111if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
12112then
12113 GPHOTO2INCL="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
12114 GPHOTO2LIBS=""
12115 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
12116 do
12117 case "$i" in
12118 -L/usr/lib|-L/usr/lib64) ;;
12119 -L*|-l*) GPHOTO2LIBS="$GPHOTO2LIBS $i";;
12120 esac
12121 done
12122 ac_save_CPPFLAGS="$CPPFLAGS"
12123 ac_save_LIBS="$LIBS"
12124 CPPFLAGS="$CPPFLAGS $GPHOTO2INCL"
12125 LIBS="$LIBS $GPHOTO2LIBS"
12126 if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012127 { echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12128echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012129if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12130 echo $ECHO_N "(cached) $ECHO_C" >&6
12131fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012132{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12133echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012134else
12135 # Is the header compilable?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012136{ echo "$as_me:$LINENO: checking gphoto2-camera.h usability" >&5
12137echo $ECHO_N "checking gphoto2-camera.h usability... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012138cat >conftest.$ac_ext <<_ACEOF
12139/* confdefs.h. */
12140_ACEOF
12141cat confdefs.h >>conftest.$ac_ext
12142cat >>conftest.$ac_ext <<_ACEOF
12143/* end confdefs.h. */
12144$ac_includes_default
12145#include <gphoto2-camera.h>
12146_ACEOF
12147rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020012148if { (ac_try="$ac_compile"
12149case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12152esac
12153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_compile") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012155 ac_status=$?
12156 grep -v '^ *+' conftest.er1 >conftest.err
12157 rm -f conftest.er1
12158 cat conftest.err >&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012161 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12162 { (case "(($ac_try" in
12163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12165esac
12166eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012168 ac_status=$?
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; } &&
12171 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012172 { (case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12175esac
12176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; }; then
12181 ac_header_compiler=yes
12182else
12183 echo "$as_me: failed program was:" >&5
12184sed 's/^/| /' conftest.$ac_ext >&5
12185
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012186 ac_header_compiler=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012187fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012188
Jeremy White0ebeb532006-06-20 13:18:41 +020012189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012190{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12191echo "${ECHO_T}$ac_header_compiler" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012192
12193# Is the header present?
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012194{ echo "$as_me:$LINENO: checking gphoto2-camera.h presence" >&5
12195echo $ECHO_N "checking gphoto2-camera.h presence... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012196cat >conftest.$ac_ext <<_ACEOF
12197/* confdefs.h. */
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
12202#include <gphoto2-camera.h>
12203_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020012204if { (ac_try="$ac_cpp conftest.$ac_ext"
12205case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208esac
12209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } >/dev/null; then
12217 if test -s conftest.err; then
12218 ac_cpp_err=$ac_c_preproc_warn_flag
12219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12220 else
12221 ac_cpp_err=
12222 fi
12223else
12224 ac_cpp_err=yes
12225fi
12226if test -z "$ac_cpp_err"; then
12227 ac_header_preproc=yes
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_header_preproc=no
12233fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012234
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012235rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012236{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12237echo "${ECHO_T}$ac_header_preproc" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012238
12239# So? What about this header?
12240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12241 yes:no: )
12242 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&5
12243echo "$as_me: WARNING: gphoto2-camera.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12244 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&5
12245echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the compiler's result" >&2;}
12246 ac_header_preproc=yes
12247 ;;
12248 no:yes:* )
12249 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: present but cannot be compiled" >&5
12250echo "$as_me: WARNING: gphoto2-camera.h: present but cannot be compiled" >&2;}
12251 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&5
12252echo "$as_me: WARNING: gphoto2-camera.h: check for missing prerequisite headers?" >&2;}
12253 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&5
12254echo "$as_me: WARNING: gphoto2-camera.h: see the Autoconf documentation" >&2;}
12255 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&5
12256echo "$as_me: WARNING: gphoto2-camera.h: section \"Present But Cannot Be Compiled\"" >&2;}
12257 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&5
12258echo "$as_me: WARNING: gphoto2-camera.h: proceeding with the preprocessor's result" >&2;}
12259 { echo "$as_me:$LINENO: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&5
12260echo "$as_me: WARNING: gphoto2-camera.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012261 ( cat <<\_ASBOX
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012262## ------------------------------------ ##
12263## Report this to wine-devel@winehq.org ##
12264## ------------------------------------ ##
12265_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012266 ) | sed "s/^/$as_me: WARNING: /" >&2
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012267 ;;
12268esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012269{ echo "$as_me:$LINENO: checking for gphoto2-camera.h" >&5
12270echo $ECHO_N "checking for gphoto2-camera.h... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012271if test "${ac_cv_header_gphoto2_camera_h+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 ac_cv_header_gphoto2_camera_h=$ac_header_preproc
12275fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012276{ echo "$as_me:$LINENO: result: $ac_cv_header_gphoto2_camera_h" >&5
12277echo "${ECHO_T}$ac_cv_header_gphoto2_camera_h" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012278
12279fi
12280if test $ac_cv_header_gphoto2_camera_h = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012281 { echo "$as_me:$LINENO: checking for gp_camera_new in -lgphoto2" >&5
12282echo $ECHO_N "checking for gp_camera_new in -lgphoto2... $ECHO_C" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012283if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12285else
12286 ac_check_lib_save_LIBS=$LIBS
12287LIBS="-lgphoto2 $LIBS"
12288cat >conftest.$ac_ext <<_ACEOF
12289/* confdefs.h. */
12290_ACEOF
12291cat confdefs.h >>conftest.$ac_ext
12292cat >>conftest.$ac_ext <<_ACEOF
12293/* end confdefs.h. */
12294
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012295/* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012298#ifdef __cplusplus
12299extern "C"
12300#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012301char gp_camera_new ();
12302int
12303main ()
12304{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012305return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012306 ;
12307 return 0;
12308}
12309_ACEOF
12310rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012311if { (ac_try="$ac_link"
12312case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315esac
12316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12328esac
12329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12338esac
12339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012341 ac_status=$?
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_lib_gphoto2_gp_camera_new=yes
12345else
12346 echo "$as_me: failed program was:" >&5
12347sed 's/^/| /' conftest.$ac_ext >&5
12348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012349 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012350fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012351
Jeremy White0ebeb532006-06-20 13:18:41 +020012352rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012353 conftest$ac_exeext conftest.$ac_ext
12354LIBS=$ac_check_lib_save_LIBS
12355fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012356{ echo "$as_me:$LINENO: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
12357echo "${ECHO_T}$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020012358if test $ac_cv_lib_gphoto2_gp_camera_new = yes; then
12359
12360cat >>confdefs.h <<\_ACEOF
12361#define HAVE_GPHOTO2 1
12362_ACEOF
12363
12364else
12365 GPHOTO2LIBS=""
12366 GPHOTO2INCL=""
12367fi
12368
12369else
12370 GPHOTO2LIBS=""
12371 GPHOTO2INCL=""
12372fi
12373
12374
12375 LIBS="$ac_save_LIBS"
12376 CPPFLAGS="$ac_save_CPPFLAGS"
12377fi
12378
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012379if test "$ac_cv_header_unicode_ubidi_h" = "yes"
12380then
Marcus Meissnerbc624582004-01-18 22:15:46 +000012381 saved_libs="$LIBS"
Scott Bambroughee112fc2006-06-16 10:42:20 -040012382 for i in ${ICU_LIB_DIR-/usr/lib}/libsicu ${ICU_LIB_DIR-/usr/lib}/libicu
12383 do
12384 TEST_ICUUC_LIB="${ICUUC_LIB-${i}uc.a}"
12385 TEST_ICUDATA_LIB="${ICUDATA_LIB-${i}data.a}"
12386 { echo "$as_me:$LINENO: checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB" >&5
12387echo $ECHO_N "checking whether can link with ICU libraries $TEST_ICUUC_LIB and $TEST_ICUDATA_LIB... $ECHO_C" >&6; }
12388 LIBS="$saved_libs $TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
12389 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012390/* confdefs.h. */
12391_ACEOF
12392cat confdefs.h >>conftest.$ac_ext
12393cat >>conftest.$ac_ext <<_ACEOF
12394/* end confdefs.h. */
12395#include <unicode/ubidi.h>
12396int
12397main ()
12398{
12399ubidi_open()
12400 ;
12401 return 0;
12402}
12403_ACEOF
12404rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012405if { (ac_try="$ac_link"
12406case "(($ac_try" in
12407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12408 *) ac_try_echo=$ac_try;;
12409esac
12410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12411 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012412 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012413 grep -v '^ *+' conftest.er1 >conftest.err
12414 rm -f conftest.er1
12415 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12419 { (case "(($ac_try" in
12420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12422esac
12423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); }; } &&
12428 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012429 { (case "(($ac_try" in
12430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12431 *) ac_try_echo=$ac_try;;
12432esac
12433eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12434 (eval "$ac_try") 2>&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012438
12439cat >>confdefs.h <<\_ACEOF
12440#define HAVE_ICU 1
12441_ACEOF
12442
Scott Bambroughee112fc2006-06-16 10:42:20 -040012443 ICULIBS="$TEST_ICUUC_LIB $TEST_ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012444
Scott Bambroughee112fc2006-06-16 10:42:20 -040012445 { echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012446echo "${ECHO_T}yes" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000012447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012451 { echo "$as_me:$LINENO: result: no" >&5
12452echo "${ECHO_T}no" >&6; }
Marcus Meissnerbc624582004-01-18 22:15:46 +000012453fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012454
Jeremy White0ebeb532006-06-20 13:18:41 +020012455rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerbc624582004-01-18 22:15:46 +000012456 conftest$ac_exeext conftest.$ac_ext
Scott Bambroughee112fc2006-06-16 10:42:20 -040012457 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000012458 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +000012459fi
12460
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012461RESOLVLIBS=""
12462
12463if test "$ac_cv_header_resolv_h" = "yes"
12464then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012465 { echo "$as_me:$LINENO: checking for res_query in -lresolv" >&5
12466echo $ECHO_N "checking for res_query in -lresolv... $ECHO_C" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012467if test "${ac_cv_lib_resolv_res_query+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12469else
12470 ac_check_lib_save_LIBS=$LIBS
12471LIBS="-lresolv $LIBS"
12472cat >conftest.$ac_ext <<_ACEOF
12473/* confdefs.h. */
12474_ACEOF
12475cat confdefs.h >>conftest.$ac_ext
12476cat >>conftest.$ac_ext <<_ACEOF
12477/* end confdefs.h. */
12478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012479/* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012482#ifdef __cplusplus
12483extern "C"
12484#endif
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012485char res_query ();
12486int
12487main ()
12488{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012489return res_query ();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012490 ;
12491 return 0;
12492}
12493_ACEOF
12494rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012495if { (ac_try="$ac_link"
12496case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12499esac
12500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_link") 2>conftest.er1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012502 ac_status=$?
12503 grep -v '^ *+' conftest.er1 >conftest.err
12504 rm -f conftest.er1
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509 { (case "(($ac_try" in
12510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511 *) ac_try_echo=$ac_try;;
12512esac
12513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012519 { (case "(($ac_try" in
12520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521 *) ac_try_echo=$ac_try;;
12522esac
12523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_try") 2>&5
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012525 ac_status=$?
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_cv_lib_resolv_res_query=yes
12529else
12530 echo "$as_me: failed program was:" >&5
12531sed 's/^/| /' conftest.$ac_ext >&5
12532
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012533 ac_cv_lib_resolv_res_query=no
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012534fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012535
Jeremy White0ebeb532006-06-20 13:18:41 +020012536rm -f core conftest.err conftest.$ac_objext \
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012537 conftest$ac_exeext conftest.$ac_ext
12538LIBS=$ac_check_lib_save_LIBS
12539fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012540{ echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_query" >&5
12541echo "${ECHO_T}$ac_cv_lib_resolv_res_query" >&6; }
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020012542if test $ac_cv_lib_resolv_res_query = yes; then
12543
12544cat >>confdefs.h <<\_ACEOF
12545#define HAVE_RESOLV 1
12546_ACEOF
12547
12548 RESOLVLIBS="-lresolv"
12549fi
12550
12551fi
12552
Hans Leidekkerd3447022005-07-15 10:09:43 +000012553LCMSLIBS=""
12554
12555if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
12556then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012557 { echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
12558echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012559if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12561else
12562 ac_check_lib_save_LIBS=$LIBS
12563LIBS="-llcms $LIBS"
12564cat >conftest.$ac_ext <<_ACEOF
12565/* confdefs.h. */
12566_ACEOF
12567cat confdefs.h >>conftest.$ac_ext
12568cat >>conftest.$ac_ext <<_ACEOF
12569/* end confdefs.h. */
12570
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012571/* Override any GCC internal prototype to avoid an error.
12572 Use char because int might match the return type of a GCC
12573 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000012574#ifdef __cplusplus
12575extern "C"
12576#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000012577char cmsOpenProfileFromFile ();
12578int
12579main ()
12580{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012581return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000012582 ;
12583 return 0;
12584}
12585_ACEOF
12586rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012587if { (ac_try="$ac_link"
12588case "(($ac_try" in
12589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12590 *) ac_try_echo=$ac_try;;
12591esac
12592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12593 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerd3447022005-07-15 10:09:43 +000012594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12601 { (case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; } &&
12610 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12614esac
12615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
Hans Leidekkerd3447022005-07-15 10:09:43 +000012617 ac_status=$?
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
12621else
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012625 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000012626fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012627
Jeremy White0ebeb532006-06-20 13:18:41 +020012628rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerd3447022005-07-15 10:09:43 +000012629 conftest$ac_exeext conftest.$ac_ext
12630LIBS=$ac_check_lib_save_LIBS
12631fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012632{ echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
12633echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Hans Leidekkerd3447022005-07-15 10:09:43 +000012634if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
12635
12636cat >>confdefs.h <<\_ACEOF
12637#define HAVE_LCMS 1
12638_ACEOF
12639
12640 LCMSLIBS="-llcms"
12641fi
12642
12643fi
12644
Hans Leidekkerea524de2005-07-15 16:39:42 +000012645LDAPLIBS=""
12646
12647if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12648then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012649 { echo "$as_me:$LINENO: checking for ldap_initialize in -lldap_r" >&5
12650echo $ECHO_N "checking for ldap_initialize in -lldap_r... $ECHO_C" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012651if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then
Hans Leidekkerea524de2005-07-15 16:39:42 +000012652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653else
12654 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012655LIBS="-lldap_r $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012656cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012663/* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012666#ifdef __cplusplus
12667extern "C"
12668#endif
Hans Leidekker20d0e802005-11-18 16:56:44 +000012669char ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012670int
12671main ()
12672{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012673return ldap_initialize ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012674 ;
12675 return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012679if { (ac_try="$ac_link"
12680case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683esac
12684eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12693 { (case "(($ac_try" in
12694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12695 *) ac_try_echo=$ac_try;;
12696esac
12697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12698 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012699 ac_status=$?
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); }; } &&
12702 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012703 { (case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706esac
12707eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012712 ac_cv_lib_ldap_r_ldap_initialize=yes
Hans Leidekkerea524de2005-07-15 16:39:42 +000012713else
12714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012717 ac_cv_lib_ldap_r_ldap_initialize=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012718fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012719
Jeremy White0ebeb532006-06-20 13:18:41 +020012720rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012721 conftest$ac_exeext conftest.$ac_ext
12722LIBS=$ac_check_lib_save_LIBS
12723fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012724{ echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
12725echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012726if test $ac_cv_lib_ldap_r_ldap_initialize = yes; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012727 { echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
12728echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012729if test "${ac_cv_lib_lber_ber_init+set}" = set; then
12730 echo $ECHO_N "(cached) $ECHO_C" >&6
12731else
12732 ac_check_lib_save_LIBS=$LIBS
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012733LIBS="-llber $LIBPTHREAD $LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012734cat >conftest.$ac_ext <<_ACEOF
12735/* confdefs.h. */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h. */
12740
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012741/* Override any GCC internal prototype to avoid an error.
12742 Use char because int might match the return type of a GCC
12743 builtin and then its argument prototype would still apply. */
Hans Leidekkerea524de2005-07-15 16:39:42 +000012744#ifdef __cplusplus
12745extern "C"
12746#endif
Hans Leidekkerea524de2005-07-15 16:39:42 +000012747char ber_init ();
12748int
12749main ()
12750{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012751return ber_init ();
Hans Leidekkerea524de2005-07-15 16:39:42 +000012752 ;
12753 return 0;
12754}
12755_ACEOF
12756rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012757if { (ac_try="$ac_link"
12758case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12761esac
12762eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerea524de2005-07-15 16:39:42 +000012764 ac_status=$?
12765 grep -v '^ *+' conftest.er1 >conftest.err
12766 rm -f conftest.er1
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12774esac
12775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12784esac
12785eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
Hans Leidekkerea524de2005-07-15 16:39:42 +000012787 ac_status=$?
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 ac_cv_lib_lber_ber_init=yes
12791else
12792 echo "$as_me: failed program was:" >&5
12793sed 's/^/| /' conftest.$ac_ext >&5
12794
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012795 ac_cv_lib_lber_ber_init=no
Hans Leidekkerea524de2005-07-15 16:39:42 +000012796fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012797
Jeremy White0ebeb532006-06-20 13:18:41 +020012798rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerea524de2005-07-15 16:39:42 +000012799 conftest$ac_exeext conftest.$ac_ext
12800LIBS=$ac_check_lib_save_LIBS
12801fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012802{ echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
12803echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6; }
Hans Leidekkerea524de2005-07-15 16:39:42 +000012804if test $ac_cv_lib_lber_ber_init = yes; then
12805
12806cat >>confdefs.h <<\_ACEOF
12807#define HAVE_LDAP 1
12808_ACEOF
12809
Hans Leidekkerecfc2c12005-11-29 17:35:09 +010012810 LDAPLIBS="-lldap_r -llber"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012811fi
12812
12813fi
12814
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012815 ac_wine_check_funcs_save_LIBS="$LIBS"
12816LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012817
12818
12819
12820
12821for ac_func in \
12822 ldap_count_references \
12823 ldap_first_reference \
12824 ldap_next_reference \
12825 ldap_parse_reference
12826do
12827as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012828{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12829echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12830if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012831 echo $ECHO_N "(cached) $ECHO_C" >&6
12832else
12833 cat >conftest.$ac_ext <<_ACEOF
12834/* confdefs.h. */
12835_ACEOF
12836cat confdefs.h >>conftest.$ac_ext
12837cat >>conftest.$ac_ext <<_ACEOF
12838/* end confdefs.h. */
12839/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12841#define $ac_func innocuous_$ac_func
12842
12843/* System header to define __stub macros and hopefully few prototypes,
12844 which can conflict with char $ac_func (); below.
12845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12846 <limits.h> exists even on freestanding compilers. */
12847
12848#ifdef __STDC__
12849# include <limits.h>
12850#else
12851# include <assert.h>
12852#endif
12853
12854#undef $ac_func
12855
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012856/* Override any GCC internal prototype to avoid an error.
12857 Use char because int might match the return type of a GCC
12858 builtin and then its argument prototype would still apply. */
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012859#ifdef __cplusplus
12860extern "C"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012861#endif
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012862char $ac_func ();
12863/* The GNU C library defines this for functions which it implements
12864 to always fail with ENOSYS. Some functions are actually named
12865 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012866#if defined __stub_$ac_func || defined __stub___$ac_func
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012867choke me
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012868#endif
12869
12870int
12871main ()
12872{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012873return $ac_func ();
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012874 ;
12875 return 0;
12876}
12877_ACEOF
12878rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020012879if { (ac_try="$ac_link"
12880case "(($ac_try" in
12881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882 *) ac_try_echo=$ac_try;;
12883esac
12884eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885 (eval "$ac_link") 2>conftest.er1
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012886 ac_status=$?
12887 grep -v '^ *+' conftest.er1 >conftest.err
12888 rm -f conftest.er1
12889 cat conftest.err >&5
12890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020012892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12893 { (case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12896esac
12897eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012899 ac_status=$?
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); }; } &&
12902 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020012903 { (case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906esac
12907eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12908 (eval "$ac_try") 2>&5
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }; }; then
12912 eval "$as_ac_var=yes"
12913else
12914 echo "$as_me: failed program was:" >&5
12915sed 's/^/| /' conftest.$ac_ext >&5
12916
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012917 eval "$as_ac_var=no"
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012918fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012919
Jeremy White0ebeb532006-06-20 13:18:41 +020012920rm -f core conftest.err conftest.$ac_objext \
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012921 conftest$ac_exeext conftest.$ac_ext
12922fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012923ac_res=`eval echo '${'$as_ac_var'}'`
12924 { echo "$as_me:$LINENO: result: $ac_res" >&5
12925echo "${ECHO_T}$ac_res" >&6; }
Hans Leidekkerb2c62c92005-12-21 18:42:00 +010012926if test `eval echo '${'$as_ac_var'}'` = yes; then
12927 cat >>confdefs.h <<_ACEOF
12928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12929_ACEOF
12930
12931fi
12932done
12933
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010012934LIBS="$ac_wine_check_funcs_save_LIBS"
Hans Leidekkerea524de2005-07-15 16:39:42 +000012935fi
12936
Alexandre Julliard82776022005-08-08 11:17:25 +000012937FREETYPELIBS=""
12938
12939FREETYPEINCL=""
12940
Mike McCormackd9ef88c2006-07-24 15:24:44 +090012941# Extract the first word of "freetype-config", so it can be a program name with args.
12942set dummy freetype-config; ac_word=$2
12943{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12944echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12945if test "${ac_cv_prog_ft_devel+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947else
12948 if test -n "$ft_devel"; then
12949 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
12950else
12951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952for as_dir in $PATH
12953do
12954 IFS=$as_save_IFS
12955 test -z "$as_dir" && as_dir=.
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12958 ac_cv_prog_ft_devel="freetype-config"
12959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12960 break 2
12961 fi
12962done
12963done
12964IFS=$as_save_IFS
12965
12966 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
12967fi
12968fi
12969ft_devel=$ac_cv_prog_ft_devel
12970if test -n "$ft_devel"; then
12971 { echo "$as_me:$LINENO: result: $ft_devel" >&5
12972echo "${ECHO_T}$ft_devel" >&6; }
12973else
12974 { echo "$as_me:$LINENO: result: no" >&5
12975echo "${ECHO_T}no" >&6; }
12976fi
12977
12978
12979if test "$ft_devel" = "no"
12980then
12981 # Extract the first word of "freetype2-config", so it can be a program name with args.
12982set dummy freetype2-config; ac_word=$2
12983{ echo "$as_me:$LINENO: checking for $ac_word" >&5
12984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12985if test "${ac_cv_prog_ft_devel2+set}" = set; then
12986 echo $ECHO_N "(cached) $ECHO_C" >&6
12987else
12988 if test -n "$ft_devel2"; then
12989 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
12990else
12991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12992for as_dir in $PATH
12993do
12994 IFS=$as_save_IFS
12995 test -z "$as_dir" && as_dir=.
12996 for ac_exec_ext in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_prog_ft_devel2="freetype2-config"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13000 break 2
13001 fi
13002done
13003done
13004IFS=$as_save_IFS
13005
13006 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
13007fi
13008fi
13009ft_devel2=$ac_cv_prog_ft_devel2
13010if test -n "$ft_devel2"; then
13011 { echo "$as_me:$LINENO: result: $ft_devel2" >&5
13012echo "${ECHO_T}$ft_devel2" >&6; }
13013else
13014 { echo "$as_me:$LINENO: result: no" >&5
13015echo "${ECHO_T}no" >&6; }
13016fi
13017
13018
13019 if test "$ft_devel2" = "freetype2-config"
13020 then
13021 ft_devel=$ft_devel2
13022 fi
13023fi
13024
13025if test "$ft_devel" = "no"
13026then
13027 wine_cv_msg_freetype=yes
13028else
13029 FREETYPELIBS=`$ft_devel --libs`
13030 FREETYPEINCL=`$ft_devel --cflags`
13031 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013032echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013033if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000013035else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013036 ac_check_lib_save_LIBS=$LIBS
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013037LIBS="-lfreetype $FREETYPELIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013038cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013039/* confdefs.h. */
13040_ACEOF
13041cat confdefs.h >>conftest.$ac_ext
13042cat >>conftest.$ac_ext <<_ACEOF
13043/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013044
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013045/* Override any GCC internal prototype to avoid an error.
13046 Use char because int might match the return type of a GCC
13047 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013048#ifdef __cplusplus
13049extern "C"
13050#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013051char FT_Init_FreeType ();
13052int
13053main ()
13054{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013055return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013056 ;
13057 return 0;
13058}
13059_ACEOF
13060rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013061if { (ac_try="$ac_link"
13062case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065esac
13066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013068 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013073 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13075 { (case "(($ac_try" in
13076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13077 *) ac_try_echo=$ac_try;;
13078esac
13079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13080 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013081 ac_status=$?
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; } &&
13084 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013085 { (case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13088esac
13089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013091 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013093 (exit $ac_status); }; }; then
13094 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000013095else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013096 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013097sed 's/^/| /' conftest.$ac_ext >&5
13098
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013099 ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000013100fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013101
Jeremy White0ebeb532006-06-20 13:18:41 +020013102rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013103 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013104LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000013105fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013106{ echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
13107echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013108if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000013109 ft_lib=yes
13110else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013111 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000013112fi
13113
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013114 if test "$ft_lib" = "no"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000013115 then
Ian Pilcher563598d2001-05-16 20:56:05 +000013116 wine_cv_msg_freetype=yes
Mike McCormackd9ef88c2006-07-24 15:24:44 +090013117 FREETYPELIBS=""
13118 FREETYPEINCL=""
Ian Pilcher563598d2001-05-16 20:56:05 +000013119 else
Ian Pilcher40432fe2001-06-06 21:05:23 +000013120 ac_save_CPPFLAGS="$CPPFLAGS"
13121 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013122
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013123
13124
13125
13126
13127
13128
13129
Rein Klazese617a9c2003-11-19 02:18:13 +000013130
Huw Daviesc2217182004-06-16 20:06:26 +000013131
Huw Davies603d21c2006-01-24 10:57:35 +010013132
Rein Klazese617a9c2003-11-19 02:18:13 +000013133for ac_header in ft2build.h \
13134 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000013135 freetype/ftglyph.h \
13136 freetype/tttables.h \
13137 freetype/ftnames.h \
13138 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000013139 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000013140 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000013141 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010013142 freetype/ftmodapi.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000013143 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000013144do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013146{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13148if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013149 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013150else
Rein Klazes9c269172003-11-20 04:17:33 +000013151 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000013157#if HAVE_FT2BUILD_H
13158 #include <ft2build.h>
13159 #endif
13160
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013161#include <$ac_header>
13162_ACEOF
13163rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013164if { (ac_try="$ac_compile"
13165case "(($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_compile") 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013171 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013177 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13178 { (case "(($ac_try" in
13179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13180 *) ac_try_echo=$ac_try;;
13181esac
13182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13183 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013188 { (case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191esac
13192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_try") 2>&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013194 ac_status=$?
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000013197 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013198else
13199 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013200sed 's/^/| /' conftest.$ac_ext >&5
13201
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013202 eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013203fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013204
Jeremy White0ebeb532006-06-20 13:18:41 +020013205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013206fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013207ac_res=`eval echo '${'$as_ac_Header'}'`
13208 { echo "$as_me:$LINENO: result: $ac_res" >&5
13209echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013210if test `eval echo '${'$as_ac_Header'}'` = yes; then
13211 cat >>confdefs.h <<_ACEOF
13212#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13213_ACEOF
13214
13215fi
13216
Ian Pilcher40432fe2001-06-06 21:05:23 +000013217done
13218
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013219 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000013225#include <ft2build.h>
13226 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013227_ACEOF
Jeremy White0ebeb532006-06-20 13:18:41 +020013228if { (ac_try="$ac_cpp conftest.$ac_ext"
13229case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232esac
13233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013235 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013236 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013237 rm -f conftest.er1
13238 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013240 (exit $ac_status); } >/dev/null; then
13241 if test -s conftest.err; then
13242 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013243 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013244 else
13245 ac_cpp_err=
13246 fi
13247else
13248 ac_cpp_err=yes
13249fi
13250if test -z "$ac_cpp_err"; then
13251
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013252cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000013253#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013254_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000013255
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013256 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000013257else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013258 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013259sed 's/^/| /' conftest.$ac_ext >&5
13260
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013261 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000013262fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013263
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013264rm -f conftest.err conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013265 { echo "$as_me:$LINENO: checking for FT_TrueTypeEngineType" >&5
13266echo $ECHO_N "checking for FT_TrueTypeEngineType... $ECHO_C" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000013267if test "${ac_cv_type_FT_TrueTypeEngineType+set}" = set; then
13268 echo $ECHO_N "(cached) $ECHO_C" >&6
13269else
13270 cat >conftest.$ac_ext <<_ACEOF
13271/* confdefs.h. */
13272_ACEOF
13273cat confdefs.h >>conftest.$ac_ext
13274cat >>conftest.$ac_ext <<_ACEOF
13275/* end confdefs.h. */
13276#include <freetype/ftmodapi.h>
13277
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013278typedef FT_TrueTypeEngineType ac__type_new_;
Huw Daviesd8a6c272006-02-22 12:24:25 +000013279int
13280main ()
13281{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013282if ((ac__type_new_ *) 0)
Huw Daviesd8a6c272006-02-22 12:24:25 +000013283 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013284if (sizeof (ac__type_new_))
Huw Daviesd8a6c272006-02-22 12:24:25 +000013285 return 0;
13286 ;
13287 return 0;
13288}
13289_ACEOF
13290rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013291if { (ac_try="$ac_compile"
13292case "(($ac_try" in
13293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13294 *) ac_try_echo=$ac_try;;
13295esac
13296eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13297 (eval "$ac_compile") 2>conftest.er1
Huw Daviesd8a6c272006-02-22 12:24:25 +000013298 ac_status=$?
13299 grep -v '^ *+' conftest.er1 >conftest.err
13300 rm -f conftest.er1
13301 cat conftest.err >&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13305 { (case "(($ac_try" in
13306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13307 *) ac_try_echo=$ac_try;;
13308esac
13309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13310 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000013311 ac_status=$?
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); }; } &&
13314 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013315 { (case "(($ac_try" in
13316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13317 *) ac_try_echo=$ac_try;;
13318esac
13319eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13320 (eval "$ac_try") 2>&5
Huw Daviesd8a6c272006-02-22 12:24:25 +000013321 ac_status=$?
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 ac_cv_type_FT_TrueTypeEngineType=yes
13325else
13326 echo "$as_me: failed program was:" >&5
13327sed 's/^/| /' conftest.$ac_ext >&5
13328
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013329 ac_cv_type_FT_TrueTypeEngineType=no
Huw Daviesd8a6c272006-02-22 12:24:25 +000013330fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013331
Jeremy White0ebeb532006-06-20 13:18:41 +020013332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Huw Daviesd8a6c272006-02-22 12:24:25 +000013333fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013334{ echo "$as_me:$LINENO: result: $ac_cv_type_FT_TrueTypeEngineType" >&5
13335echo "${ECHO_T}$ac_cv_type_FT_TrueTypeEngineType" >&6; }
Huw Daviesd8a6c272006-02-22 12:24:25 +000013336if test $ac_cv_type_FT_TrueTypeEngineType = yes; then
13337
13338cat >>confdefs.h <<_ACEOF
13339#define HAVE_FT_TRUETYPEENGINETYPE 1
13340_ACEOF
13341
13342
13343fi
13344
Huw Davies35bca772006-04-12 12:14:27 +010013345 ac_save_CFLAGS="$CFLAGS"
13346 CFLAGS="$CFLAGS $FREETYPELIBS"
13347
13348for ac_func in FT_Load_Sfnt_Table
13349do
13350as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013351{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13352echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13353if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Huw Davies35bca772006-04-12 12:14:27 +010013354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355else
13356 cat >conftest.$ac_ext <<_ACEOF
13357/* confdefs.h. */
13358_ACEOF
13359cat confdefs.h >>conftest.$ac_ext
13360cat >>conftest.$ac_ext <<_ACEOF
13361/* end confdefs.h. */
13362/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13364#define $ac_func innocuous_$ac_func
13365
13366/* System header to define __stub macros and hopefully few prototypes,
13367 which can conflict with char $ac_func (); below.
13368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13369 <limits.h> exists even on freestanding compilers. */
13370
13371#ifdef __STDC__
13372# include <limits.h>
13373#else
13374# include <assert.h>
13375#endif
13376
13377#undef $ac_func
13378
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013379/* Override any GCC internal prototype to avoid an error.
13380 Use char because int might match the return type of a GCC
13381 builtin and then its argument prototype would still apply. */
Huw Davies35bca772006-04-12 12:14:27 +010013382#ifdef __cplusplus
13383extern "C"
Huw Davies35bca772006-04-12 12:14:27 +010013384#endif
Huw Davies35bca772006-04-12 12:14:27 +010013385char $ac_func ();
13386/* The GNU C library defines this for functions which it implements
13387 to always fail with ENOSYS. Some functions are actually named
13388 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013389#if defined __stub_$ac_func || defined __stub___$ac_func
Huw Davies35bca772006-04-12 12:14:27 +010013390choke me
Huw Davies35bca772006-04-12 12:14:27 +010013391#endif
13392
13393int
13394main ()
13395{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013396return $ac_func ();
Huw Davies35bca772006-04-12 12:14:27 +010013397 ;
13398 return 0;
13399}
13400_ACEOF
13401rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013402if { (ac_try="$ac_link"
13403case "(($ac_try" in
13404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13405 *) ac_try_echo=$ac_try;;
13406esac
13407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13408 (eval "$ac_link") 2>conftest.er1
Huw Davies35bca772006-04-12 12:14:27 +010013409 ac_status=$?
13410 grep -v '^ *+' conftest.er1 >conftest.err
13411 rm -f conftest.er1
13412 cat conftest.err >&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419esac
13420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010013422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; } &&
13425 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013426 { (case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13429esac
13430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_try") 2>&5
Huw Davies35bca772006-04-12 12:14:27 +010013432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 eval "$as_ac_var=yes"
13436else
13437 echo "$as_me: failed program was:" >&5
13438sed 's/^/| /' conftest.$ac_ext >&5
13439
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013440 eval "$as_ac_var=no"
Huw Davies35bca772006-04-12 12:14:27 +010013441fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013442
Jeremy White0ebeb532006-06-20 13:18:41 +020013443rm -f core conftest.err conftest.$ac_objext \
Huw Davies35bca772006-04-12 12:14:27 +010013444 conftest$ac_exeext conftest.$ac_ext
13445fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013446ac_res=`eval echo '${'$as_ac_var'}'`
13447 { echo "$as_me:$LINENO: result: $ac_res" >&5
13448echo "${ECHO_T}$ac_res" >&6; }
Huw Davies35bca772006-04-12 12:14:27 +010013449if test `eval echo '${'$as_ac_var'}'` = yes; then
13450 cat >>confdefs.h <<_ACEOF
13451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13452_ACEOF
13453
13454fi
13455done
13456
13457 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000013458 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000013459 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013460 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013461
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013462cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013463#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013464_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013465
13466 wine_cv_msg_freetype=no
13467 else
Huw Davies00acb5f2004-08-17 22:33:14 +000013468 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000013469 FREETYPEINCL=""
13470 wine_cv_msg_freetype=yes
13471 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000013472 fi
13473fi
13474
Huw Davies00acb5f2004-08-17 22:33:14 +000013475if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
13476then
13477 FONTSSUBDIRS="fonts"
13478
13479fi
13480
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013481{ echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
13482echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013483if test "${ac_cv_c_ppdev+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000013485else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013486 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013487/* confdefs.h. */
13488_ACEOF
13489cat confdefs.h >>conftest.$ac_ext
13490cat >>conftest.$ac_ext <<_ACEOF
13491/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013492#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013493int
13494main ()
13495{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013496ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013497 ;
13498 return 0;
13499}
13500_ACEOF
13501rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013502if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +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 Julliarddaa28862002-04-11 21:54:01 +000013513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013514 (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_objext'
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 Julliardf5818d22002-02-14 19:47:29 +000013532 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013534 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013535 ac_cv_c_ppdev="yes"
13536else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013537 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013538sed 's/^/| /' conftest.$ac_ext >&5
13539
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013540 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013541fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013542
Jeremy White0ebeb532006-06-20 13:18:41 +020013543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013544
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013545fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013546{ echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
13547echo "${ECHO_T}$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013548if test "$ac_cv_c_ppdev" = "yes"
13549then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013550
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013551cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013552#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013553_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000013554
13555fi
13556
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013557{ echo "$as_me:$LINENO: checking for va_copy" >&5
13558echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013559if test "${ac_cv_c_va_copy+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13561else
13562 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013563/* confdefs.h. */
13564_ACEOF
13565cat confdefs.h >>conftest.$ac_ext
13566cat >>conftest.$ac_ext <<_ACEOF
13567/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013568#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013569int
13570main ()
13571{
13572va_list ap1, ap2;
13573 va_copy(ap1,ap2);
13574
13575 ;
13576 return 0;
13577}
13578_ACEOF
13579rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013580if { (ac_try="$ac_link"
13581case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13584esac
13585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013587 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013588 grep -v '^ *+' conftest.er1 >conftest.err
13589 rm -f conftest.er1
13590 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13594 { (case "(($ac_try" in
13595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13597esac
13598eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013600 ac_status=$?
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013604 { (case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13607esac
13608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_c_va_copy="yes"
13614else
13615 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013616sed 's/^/| /' conftest.$ac_ext >&5
13617
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013618 ac_cv_c_va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013619fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013620
Jeremy White0ebeb532006-06-20 13:18:41 +020013621rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013622 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013623
13624fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013625{ echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
13626echo "${ECHO_T}$ac_cv_c_va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013627if test "$ac_cv_c_va_copy" = "yes"
13628then
13629
13630cat >>confdefs.h <<\_ACEOF
13631#define HAVE_VA_COPY 1
13632_ACEOF
13633
13634fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013635{ echo "$as_me:$LINENO: checking for __va_copy" >&5
13636echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013637if test "${ac_cv_c___va_copy+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13639else
13640 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013641/* confdefs.h. */
13642_ACEOF
13643cat confdefs.h >>conftest.$ac_ext
13644cat >>conftest.$ac_ext <<_ACEOF
13645/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013646#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013647int
13648main ()
13649{
13650va_list ap1, ap2;
13651 __va_copy(ap1,ap2);
13652
13653 ;
13654 return 0;
13655}
13656_ACEOF
13657rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013658if { (ac_try="$ac_link"
13659case "(($ac_try" in
13660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661 *) ac_try_echo=$ac_try;;
13662esac
13663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664 (eval "$ac_link") 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013665 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13672 { (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
Alexandre Julliard875927f2004-01-02 01:55:29 +000013678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013682 { (case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685esac
13686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_try") 2>&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_c___va_copy="yes"
13692else
13693 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013694sed 's/^/| /' conftest.$ac_ext >&5
13695
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013696 ac_cv_c___va_copy="no"
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013697fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013698
Jeremy White0ebeb532006-06-20 13:18:41 +020013699rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013700 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013701
13702fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013703{ echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
13704echo "${ECHO_T}$ac_cv_c___va_copy" >&6; }
Marcus Meissner5ee517a2002-08-09 19:49:31 +000013705if test "$ac_cv_c___va_copy" = "yes"
13706then
13707
13708cat >>confdefs.h <<\_ACEOF
13709#define HAVE___VA_COPY 1
13710_ACEOF
13711
13712fi
13713
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013714{ echo "$as_me:$LINENO: checking for sigsetjmp" >&5
13715echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013716if test "${ac_cv_c_sigsetjmp+set}" = set; then
13717 echo $ECHO_N "(cached) $ECHO_C" >&6
13718else
13719 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013720/* confdefs.h. */
13721_ACEOF
13722cat confdefs.h >>conftest.$ac_ext
13723cat >>conftest.$ac_ext <<_ACEOF
13724/* end confdefs.h. */
13725#include <setjmp.h>
13726int
13727main ()
13728{
13729sigjmp_buf buf;
13730 sigsetjmp( buf, 1 );
13731 siglongjmp( buf, 1 );
13732 ;
13733 return 0;
13734}
13735_ACEOF
13736rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020013737if { (ac_try="$ac_link"
13738case "(($ac_try" in
13739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13740 *) ac_try_echo=$ac_try;;
13741esac
13742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13743 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013744 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013745 grep -v '^ *+' conftest.er1 >conftest.err
13746 rm -f conftest.er1
13747 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013750 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13751 { (case "(($ac_try" in
13752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753 *) ac_try_echo=$ac_try;;
13754esac
13755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013757 ac_status=$?
13758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759 (exit $ac_status); }; } &&
13760 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013761 { (case "(($ac_try" in
13762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763 *) ac_try_echo=$ac_try;;
13764esac
13765eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766 (eval "$ac_try") 2>&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013767 ac_status=$?
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_c_sigsetjmp="yes"
13771else
13772 echo "$as_me: failed program was:" >&5
13773sed 's/^/| /' conftest.$ac_ext >&5
13774
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013775 ac_cv_c_sigsetjmp="no"
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013776fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013777
Jeremy White0ebeb532006-06-20 13:18:41 +020013778rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000013779 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013780
13781fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013782{ echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
13783echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6; }
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000013784if test "$ac_cv_c_sigsetjmp" = "yes"
13785then
13786
13787cat >>confdefs.h <<\_ACEOF
13788#define HAVE_SIGSETJMP 1
13789_ACEOF
13790
13791fi
13792
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013793{ echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
13794echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013795if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013799/* confdefs.h. */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h. */
13804#define _GNU_SOURCE
13805#include <pthread.h>
13806
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013807typedef pthread_rwlock_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013808int
13809main ()
13810{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013811if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013812 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013813if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013814 return 0;
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013820if { (ac_try="$ac_compile"
13821case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
13825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013827 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013828 grep -v '^ *+' conftest.er1 >conftest.err
13829 rm -f conftest.er1
13830 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13834 { (case "(($ac_try" in
13835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13836 *) ac_try_echo=$ac_try;;
13837esac
13838eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13839 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013844 { (case "(($ac_try" in
13845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13846 *) ac_try_echo=$ac_try;;
13847esac
13848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_cv_type_pthread_rwlock_t=yes
13854else
13855 echo "$as_me: failed program was:" >&5
13856sed 's/^/| /' conftest.$ac_ext >&5
13857
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013858 ac_cv_type_pthread_rwlock_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013859fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013860
Jeremy White0ebeb532006-06-20 13:18:41 +020013861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013862fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013863{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
13864echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013865if test $ac_cv_type_pthread_rwlock_t = yes; then
13866
13867cat >>confdefs.h <<_ACEOF
13868#define HAVE_PTHREAD_RWLOCK_T 1
13869_ACEOF
13870
13871
13872fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013873{ echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
13874echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013875if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13877else
13878 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013879/* confdefs.h. */
13880_ACEOF
13881cat confdefs.h >>conftest.$ac_ext
13882cat >>conftest.$ac_ext <<_ACEOF
13883/* end confdefs.h. */
13884#define _GNU_SOURCE
13885#include <pthread.h>
13886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013887typedef pthread_rwlockattr_t ac__type_new_;
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013888int
13889main ()
13890{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013891if ((ac__type_new_ *) 0)
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013892 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013893if (sizeof (ac__type_new_))
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013894 return 0;
13895 ;
13896 return 0;
13897}
13898_ACEOF
13899rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020013900if { (ac_try="$ac_compile"
13901case "(($ac_try" in
13902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13904esac
13905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013907 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013908 grep -v '^ *+' conftest.er1 >conftest.err
13909 rm -f conftest.er1
13910 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020013913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916 *) ac_try_echo=$ac_try;;
13917esac
13918eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020013924 { (case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13927esac
13928eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_try") 2>&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013930 ac_status=$?
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_type_pthread_rwlockattr_t=yes
13934else
13935 echo "$as_me: failed program was:" >&5
13936sed 's/^/| /' conftest.$ac_ext >&5
13937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013938 ac_cv_type_pthread_rwlockattr_t=no
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013939fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013940
Jeremy White0ebeb532006-06-20 13:18:41 +020013941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013942fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013943{ echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
13944echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6; }
Alexandre Julliard80e34db2003-09-03 00:26:08 +000013945if test $ac_cv_type_pthread_rwlockattr_t = yes; then
13946
13947cat >>confdefs.h <<_ACEOF
13948#define HAVE_PTHREAD_RWLOCKATTR_T 1
13949_ACEOF
13950
13951
13952fi
13953
13954
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013955ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000013956LIBS="$LIBS $LIBPTHREAD"
13957
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000013958
13959
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020013960
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000013961for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020013962 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000013963 pthread_getattr_np \
13964 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010013965 pthread_get_stacksize_np
Alexandre Julliard821ab862003-11-12 22:44:56 +000013966do
13967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013968{ echo "$as_me:$LINENO: checking for $ac_func" >&5
13969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13970if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard821ab862003-11-12 22:44:56 +000013971 echo $ECHO_N "(cached) $ECHO_C" >&6
13972else
13973 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000013974/* confdefs.h. */
13975_ACEOF
13976cat confdefs.h >>conftest.$ac_ext
13977cat >>conftest.$ac_ext <<_ACEOF
13978/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13981#define $ac_func innocuous_$ac_func
13982
Alexandre Julliard821ab862003-11-12 22:44:56 +000013983/* System header to define __stub macros and hopefully few prototypes,
13984 which can conflict with char $ac_func (); below.
13985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13986 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013987
Alexandre Julliard821ab862003-11-12 22:44:56 +000013988#ifdef __STDC__
13989# include <limits.h>
13990#else
13991# include <assert.h>
13992#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013993
13994#undef $ac_func
13995
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013996/* Override any GCC internal prototype to avoid an error.
13997 Use char because int might match the return type of a GCC
13998 builtin and then its argument prototype would still apply. */
Alexandre Julliard821ab862003-11-12 22:44:56 +000013999#ifdef __cplusplus
14000extern "C"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014001#endif
Alexandre Julliard821ab862003-11-12 22:44:56 +000014002char $ac_func ();
14003/* The GNU C library defines this for functions which it implements
14004 to always fail with ENOSYS. Some functions are actually named
14005 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014006#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard821ab862003-11-12 22:44:56 +000014007choke me
Alexandre Julliard821ab862003-11-12 22:44:56 +000014008#endif
14009
14010int
14011main ()
14012{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014013return $ac_func ();
Alexandre Julliard821ab862003-11-12 22:44:56 +000014014 ;
14015 return 0;
14016}
14017_ACEOF
14018rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014019if { (ac_try="$ac_link"
14020case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14023esac
14024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000014026 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014027 grep -v '^ *+' conftest.er1 >conftest.err
14028 rm -f conftest.er1
14029 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000014030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14033 { (case "(($ac_try" in
14034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14035 *) ac_try_echo=$ac_try;;
14036esac
14037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } &&
14042 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014043 { (case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14046esac
14047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_try") 2>&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000014049 ac_status=$?
14050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051 (exit $ac_status); }; }; then
14052 eval "$as_ac_var=yes"
14053else
14054 echo "$as_me: failed program was:" >&5
14055sed 's/^/| /' conftest.$ac_ext >&5
14056
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014057 eval "$as_ac_var=no"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014058fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014059
Jeremy White0ebeb532006-06-20 13:18:41 +020014060rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014061 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000014062fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014063ac_res=`eval echo '${'$as_ac_var'}'`
14064 { echo "$as_me:$LINENO: result: $ac_res" >&5
14065echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard821ab862003-11-12 22:44:56 +000014066if test `eval echo '${'$as_ac_var'}'` = yes; then
14067 cat >>confdefs.h <<_ACEOF
14068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14069_ACEOF
14070
14071fi
14072done
14073
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010014074LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000014075
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014076# Extract the first word of "artsc-config", so it can be a program name with args.
14077set dummy artsc-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014078{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014080if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
14081 echo $ECHO_N "(cached) $ECHO_C" >&6
14082else
14083 case $ARTSCCONFIG in
14084 [\\/]* | ?:[\\/]*)
14085 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
14086 ;;
14087 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14089for as_dir in $PATH
14090do
14091 IFS=$as_save_IFS
14092 test -z "$as_dir" && as_dir=.
14093 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014094 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 +000014095 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
14096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14097 break 2
14098 fi
14099done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014100done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014101IFS=$as_save_IFS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014102
14103 ;;
14104esac
14105fi
14106ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014107if test -n "$ARTSCCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014108 { echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
14109echo "${ECHO_T}$ARTSCCONFIG" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014110else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014111 { echo "$as_me:$LINENO: result: no" >&5
14112echo "${ECHO_T}no" >&6; }
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014113fi
14114
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014115
Marcus Meissnerbc624582004-01-18 22:15:46 +000014116if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
14117then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000014118 ARTSC_CFLAGS=""
14119 for i in `$ARTSCCONFIG --cflags`
14120 do
14121 case "$i" in
14122 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
14123 esac
14124 done
Alexandre Julliard197a7d02006-04-04 12:08:30 +020014125 ARTSC_LIBS=""
14126 for i in `$ARTSCCONFIG --libs`
14127 do
14128 case "$i" in
14129 -L/usr/lib|-L/usr/lib64) ;;
14130 -L*|-l*) ARTSC_LIBS="$ARTSC_LIBS $i";;
14131 esac
14132 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000014133 save_CFLAGS="$CFLAGS"
14134 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014135 { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
14136echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000014137if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000014141LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000014142cat >conftest.$ac_ext <<_ACEOF
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014149/* Override any GCC internal prototype to avoid an error.
14150 Use char because int might match the return type of a GCC
14151 builtin and then its argument prototype would still apply. */
Jacek Caban6f8f4752005-03-28 09:58:45 +000014152#ifdef __cplusplus
14153extern "C"
14154#endif
Jacek Caban6f8f4752005-03-28 09:58:45 +000014155char arts_init ();
14156int
14157main ()
14158{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014159return arts_init ();
Jacek Caban6f8f4752005-03-28 09:58:45 +000014160 ;
14161 return 0;
14162}
14163_ACEOF
14164rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014165if { (ac_try="$ac_link"
14166case "(($ac_try" in
14167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168 *) ac_try_echo=$ac_try;;
14169esac
14170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171 (eval "$ac_link") 2>conftest.er1
Jacek Caban6f8f4752005-03-28 09:58:45 +000014172 ac_status=$?
14173 grep -v '^ *+' conftest.er1 >conftest.err
14174 rm -f conftest.er1
14175 cat conftest.err >&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14179 { (case "(($ac_try" in
14180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14181 *) ac_try_echo=$ac_try;;
14182esac
14183eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14184 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000014185 ac_status=$?
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; } &&
14188 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014189 { (case "(($ac_try" in
14190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14191 *) ac_try_echo=$ac_try;;
14192esac
14193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14194 (eval "$ac_try") 2>&5
Jacek Caban6f8f4752005-03-28 09:58:45 +000014195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_lib_artsc_arts_init=yes
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014203 ac_cv_lib_artsc_arts_init=no
Jacek Caban6f8f4752005-03-28 09:58:45 +000014204fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014205
Jeremy White0ebeb532006-06-20 13:18:41 +020014206rm -f core conftest.err conftest.$ac_objext \
Jacek Caban6f8f4752005-03-28 09:58:45 +000014207 conftest$ac_exeext conftest.$ac_ext
14208LIBS=$ac_check_lib_save_LIBS
14209fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014210{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
14211echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
Jacek Caban6f8f4752005-03-28 09:58:45 +000014212if test $ac_cv_lib_artsc_arts_init = yes; then
14213 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000014219#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014220int
14221main ()
14222{
Marcus Meissnerbc624582004-01-18 22:15:46 +000014223arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014224 ;
14225 return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014229if { (ac_try="$ac_compile"
14230case "(($ac_try" in
14231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232 *) ac_try_echo=$ac_try;;
14233esac
14234eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235 (eval "$ac_compile") 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014236 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014237 grep -v '^ *+' conftest.er1 >conftest.err
14238 rm -f conftest.er1
14239 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014241 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14243 { (case "(($ac_try" in
14244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245 *) ac_try_echo=$ac_try;;
14246esac
14247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; } &&
14252 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014253 { (case "(($ac_try" in
14254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14255 *) ac_try_echo=$ac_try;;
14256esac
14257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14258 (eval "$ac_try") 2>&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014259 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014261 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000014262 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014263
Jacek Caban6f8f4752005-03-28 09:58:45 +000014264 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000014265
14266
14267cat >>confdefs.h <<\_ACEOF
14268#define HAVE_ARTS 1
14269_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014270
14271else
14272 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014273sed 's/^/| /' conftest.$ac_ext >&5
14274
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014275
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014276fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014277
Jeremy White0ebeb532006-06-20 13:18:41 +020014278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000014279fi
14280
Marcus Meissnerbc624582004-01-18 22:15:46 +000014281 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000014282fi
14283
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014284# Extract the first word of "esd-config", so it can be a program name with args.
14285set dummy esd-config; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014286{ echo "$as_me:$LINENO: checking for $ac_word" >&5
14287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014288if test "${ac_cv_path_ESDCONFIG+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290else
14291 case $ESDCONFIG in
14292 [\\/]* | ?:[\\/]*)
14293 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
14294 ;;
14295 *)
14296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14297for as_dir in $PATH
14298do
14299 IFS=$as_save_IFS
14300 test -z "$as_dir" && as_dir=.
14301 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014302 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 +000014303 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
14304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14305 break 2
14306 fi
14307done
14308done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014309IFS=$as_save_IFS
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014310
14311 ;;
14312esac
14313fi
14314ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014315if test -n "$ESDCONFIG"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014316 { echo "$as_me:$LINENO: result: $ESDCONFIG" >&5
14317echo "${ECHO_T}$ESDCONFIG" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014318else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014319 { echo "$as_me:$LINENO: result: no" >&5
14320echo "${ECHO_T}no" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014321fi
14322
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014323
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014324if test x$ESDCONFIG != x -a x$ESDCONFIG != x'"$ESDCONFIG"';
14325then
14326 ESD_CFLAGS=""
14327 for i in `$ESDCONFIG --cflags`
14328 do
14329 case "$i" in
14330 -I*) ESD_CFLAGS="$ESD_CFLAGS $i";;
14331 esac
14332 done
14333 ESD_LIBS=`$ESDCONFIG --libs`
14334 save_CFLAGS="$CFLAGS"
14335 CFLAGS="$CFLAGS $ESD_CFLAGS"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014336 { echo "$as_me:$LINENO: checking for esd_open_sound in -lesd" >&5
14337echo $ECHO_N "checking for esd_open_sound in -lesd... $ECHO_C" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014338if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14340else
14341 ac_check_lib_save_LIBS=$LIBS
14342LIBS="-lesd $LIBS"
14343cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014350/* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014353#ifdef __cplusplus
14354extern "C"
14355#endif
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014356char esd_open_sound ();
14357int
14358main ()
14359{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014360return esd_open_sound ();
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014361 ;
14362 return 0;
14363}
14364_ACEOF
14365rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014366if { (ac_try="$ac_link"
14367case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14370esac
14371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_link") 2>conftest.er1
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14380 { (case "(($ac_try" in
14381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382 *) ac_try_echo=$ac_try;;
14383esac
14384eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014386 ac_status=$?
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); }; } &&
14389 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014390 { (case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393esac
14394eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_try") 2>&5
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
14399 ac_cv_lib_esd_esd_open_sound=yes
14400else
14401 echo "$as_me: failed program was:" >&5
14402sed 's/^/| /' conftest.$ac_ext >&5
14403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014404 ac_cv_lib_esd_esd_open_sound=no
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014405fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014406
Jeremy White0ebeb532006-06-20 13:18:41 +020014407rm -f core conftest.err conftest.$ac_objext \
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014408 conftest$ac_exeext conftest.$ac_ext
14409LIBS=$ac_check_lib_save_LIBS
14410fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014411{ echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_open_sound" >&5
14412echo "${ECHO_T}$ac_cv_lib_esd_esd_open_sound" >&6; }
Peter Ă…strand7a15eb92005-08-03 15:53:26 +000014413if test $ac_cv_lib_esd_esd_open_sound = yes; then
14414 ESDLIBS=$ESD_LIBS
14415
14416 ESDINCL=$ESD_CFLAGS
14417
14418
14419cat >>confdefs.h <<\_ACEOF
14420#define HAVE_ESD 1
14421_ACEOF
14422
14423fi
14424
14425 CFLAGS="$save_CFLAGS"
14426fi
14427
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014428ALSALIBS=""
14429
Marco Pietrobono0e79a412002-08-29 01:51:31 +000014430if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014431then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014432 { echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
14433echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6; }
Vincent Béron151015f2005-01-10 13:26:33 +000014434if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 ac_check_lib_save_LIBS=$LIBS
14438LIBS="-lasound $LIBS"
14439cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014440/* confdefs.h. */
14441_ACEOF
14442cat confdefs.h >>conftest.$ac_ext
14443cat >>conftest.$ac_ext <<_ACEOF
14444/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014445
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014446/* Override any GCC internal prototype to avoid an error.
14447 Use char because int might match the return type of a GCC
14448 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014449#ifdef __cplusplus
14450extern "C"
14451#endif
Vincent Béron151015f2005-01-10 13:26:33 +000014452char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014453int
14454main ()
14455{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014456return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014457 ;
14458 return 0;
14459}
14460_ACEOF
14461rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014462if { (ac_try="$ac_link"
14463case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466esac
14467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014469 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14476 { (case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14479esac
14480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014482 ac_status=$?
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); }; } &&
14485 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014486 { (case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14489esac
14490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14491 (eval "$ac_try") 2>&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014492 ac_status=$?
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); }; }; then
Vincent Béron151015f2005-01-10 13:26:33 +000014495 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014496else
14497 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014498sed 's/^/| /' conftest.$ac_ext >&5
14499
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014500 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014501fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014502
Jeremy White0ebeb532006-06-20 13:18:41 +020014503rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014504 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014505LIBS=$ac_check_lib_save_LIBS
14506fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014507{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
14508echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Vincent Béron151015f2005-01-10 13:26:33 +000014509if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
14510 cat >conftest.$ac_ext <<_ACEOF
14511/* confdefs.h. */
14512_ACEOF
14513cat confdefs.h >>conftest.$ac_ext
14514cat >>conftest.$ac_ext <<_ACEOF
14515/* end confdefs.h. */
14516#ifdef HAVE_ALSA_ASOUNDLIB_H
14517#include <alsa/asoundlib.h>
14518#elif defined(HAVE_SYS_ASOUNDLIB_H)
14519#include <sys/asoundlib.h>
14520#endif
14521int
14522main ()
14523{
14524int ret = snd_pcm_hw_params_get_access(NULL, NULL)
14525 ;
14526 return 0;
14527}
14528_ACEOF
14529rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020014530if { (ac_try="$ac_compile"
14531case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14534esac
14535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_compile") 2>conftest.er1
Vincent Béron151015f2005-01-10 13:26:33 +000014537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14544 { (case "(($ac_try" in
14545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546 *) ac_try_echo=$ac_try;;
14547esac
14548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14549 (eval "$ac_try") 2>&5
Vincent Béron151015f2005-01-10 13:26:33 +000014550 ac_status=$?
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); }; } &&
14553 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014554 { (case "(($ac_try" in
14555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556 *) ac_try_echo=$ac_try;;
14557esac
14558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559 (eval "$ac_try") 2>&5
Vincent Béron151015f2005-01-10 13:26:33 +000014560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014563
14564cat >>confdefs.h <<\_ACEOF
14565#define HAVE_ALSA 1
14566_ACEOF
14567
Vincent Béron151015f2005-01-10 13:26:33 +000014568 ALSALIBS="-lasound"
14569else
14570 echo "$as_me: failed program was:" >&5
14571sed 's/^/| /' conftest.$ac_ext >&5
14572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014573
Vincent Béron151015f2005-01-10 13:26:33 +000014574fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014575
Jeremy White0ebeb532006-06-20 13:18:41 +020014576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000014577fi
14578
14579fi
14580
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014581
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014582AUDIOIOLIBS=""
14583
Alexandre Julliard73482142005-08-03 19:21:04 +000014584if test "$ac_cv_header_libaudioio_h" = "yes"
14585then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014586 { echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
14587echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014588if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14590else
14591 ac_check_lib_save_LIBS=$LIBS
14592LIBS="-laudioio $LIBS"
14593cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014594/* confdefs.h. */
14595_ACEOF
14596cat confdefs.h >>conftest.$ac_ext
14597cat >>conftest.$ac_ext <<_ACEOF
14598/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014599
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014600/* Override any GCC internal prototype to avoid an error.
14601 Use char because int might match the return type of a GCC
14602 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014603#ifdef __cplusplus
14604extern "C"
14605#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014606char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014607int
14608main ()
14609{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014610return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014611 ;
14612 return 0;
14613}
14614_ACEOF
14615rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014616if { (ac_try="$ac_link"
14617case "(($ac_try" in
14618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14620esac
14621eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014623 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014624 grep -v '^ *+' conftest.er1 >conftest.err
14625 rm -f conftest.er1
14626 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14630 { (case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633esac
14634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014640 { (case "(($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_try") 2>&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014646 ac_status=$?
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); }; }; then
14649 ac_cv_lib_audioio_AudioIOGetVersion=yes
14650else
14651 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014652sed 's/^/| /' conftest.$ac_ext >&5
14653
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014654 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014655fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014656
Jeremy White0ebeb532006-06-20 13:18:41 +020014657rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014658 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014659LIBS=$ac_check_lib_save_LIBS
14660fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014661{ echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
14662echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014663if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
14664 AUDIOIOLIBS="-laudioio"
14665
14666cat >>confdefs.h <<\_ACEOF
14667#define HAVE_LIBAUDIOIO 1
14668_ACEOF
14669
14670fi
14671
14672fi
14673
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000014674
Alexandre Julliard73482142005-08-03 19:21:04 +000014675if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
14676then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014677 { echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
14678echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014679if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14681else
14682 ac_check_lib_save_LIBS=$LIBS
14683LIBS="-lcapi20 $LIBS"
14684cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014685/* confdefs.h. */
14686_ACEOF
14687cat confdefs.h >>conftest.$ac_ext
14688cat >>conftest.$ac_ext <<_ACEOF
14689/* end confdefs.h. */
14690
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014691/* Override any GCC internal prototype to avoid an error.
14692 Use char because int might match the return type of a GCC
14693 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014694#ifdef __cplusplus
14695extern "C"
14696#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014697char capi20_register ();
14698int
14699main ()
14700{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014701return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014702 ;
14703 return 0;
14704}
14705_ACEOF
14706rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014707if { (ac_try="$ac_link"
14708case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711esac
14712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014714 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14721 { (case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724esac
14725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014727 ac_status=$?
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; } &&
14730 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014731 { (case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734esac
14735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736 (eval "$ac_try") 2>&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014737 ac_status=$?
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); }; }; then
14740 ac_cv_lib_capi20_capi20_register=yes
14741else
14742 echo "$as_me: failed program was:" >&5
14743sed 's/^/| /' conftest.$ac_ext >&5
14744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014745 ac_cv_lib_capi20_capi20_register=no
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014746fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014747
Jeremy White0ebeb532006-06-20 13:18:41 +020014748rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014749 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014750LIBS=$ac_check_lib_save_LIBS
14751fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014752{ echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
14753echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014754if test $ac_cv_lib_capi20_capi20_register = yes; then
14755
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014756cat >>confdefs.h <<\_ACEOF
14757#define HAVE_CAPI4LINUX 1
14758_ACEOF
14759
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014760fi
14761
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014762fi
14763
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000014764
Robert Shearman68249c12006-07-25 10:36:06 +010014765if test "$ac_cv_header_gif_lib_h" = "yes"
14766then
14767 cat >conftest.$ac_ext <<_ACEOF
14768/* confdefs.h. */
14769_ACEOF
14770cat confdefs.h >>conftest.$ac_ext
14771cat >>conftest.$ac_ext <<_ACEOF
14772/* end confdefs.h. */
14773#include <gif_lib.h>
14774int
14775main ()
14776{
14777static typeof(DGifOpen) * func;
14778 ;
14779 return 0;
14780}
14781_ACEOF
14782rm -f conftest.$ac_objext
14783if { (ac_try="$ac_compile"
14784case "(($ac_try" in
14785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14786 *) ac_try_echo=$ac_try;;
14787esac
14788eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14789 (eval "$ac_compile") 2>conftest.er1
14790 ac_status=$?
14791 grep -v '^ *+' conftest.er1 >conftest.err
14792 rm -f conftest.er1
14793 cat conftest.err >&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); } &&
14796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14797 { (case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14800esac
14801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_try") 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; } &&
14806 { ac_try='test -s conftest.$ac_objext'
14807 { (case "(($ac_try" in
14808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14809 *) ac_try_echo=$ac_try;;
14810esac
14811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14812 (eval "$ac_try") 2>&5
14813 ac_status=$?
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); }; }; then
14816
14817cat >>confdefs.h <<\_ACEOF
14818#define HAVE_GIF 1
14819_ACEOF
14820
14821else
14822 echo "$as_me: failed program was:" >&5
14823sed 's/^/| /' conftest.$ac_ext >&5
14824
14825
14826fi
14827
14828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829fi
14830
14831
Alexandre Julliardfc094232003-04-14 21:46:41 +000014832EXTRACFLAGS=""
14833
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014834if test "x${GCC}" = "xyes"
14835then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000014836 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000014837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014838 { echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
14839echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014840if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014842else
14843 if test "$cross_compiling" = yes; then
14844 ac_cv_c_gcc_strength_bug="yes"
14845else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014846 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014852
Eric Pouech5aee80f2000-11-11 00:31:39 +000014853int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014854int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014855 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014856 unsigned int B = 3;
14857 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000014858 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000014859 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
14860 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014861
Eric Pouech5aee80f2000-11-11 00:31:39 +000014862 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014863}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014864_ACEOF
14865rm -f conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014866if { (ac_try="$ac_link"
14867case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870esac
14871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014876 { (case "(($ac_try" in
14877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878 *) ac_try_echo=$ac_try;;
14879esac
14880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14881 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014882 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014884 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014885 ac_cv_c_gcc_strength_bug="no"
14886else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014887 echo "$as_me: program exited with status $ac_status" >&5
14888echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014889sed 's/^/| /' conftest.$ac_ext >&5
14890
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014891( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014892ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014893fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014894rm -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 +000014895fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014896
14897
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014898fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014899{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
14900echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014901 if test "$ac_cv_c_gcc_strength_bug" = "yes"
14902 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000014903 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000014904 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000014905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014906 { echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
14907echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014908if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910else
14911 ac_wine_try_cflags_saved=$CFLAGS
14912CFLAGS="$CFLAGS -fshort-wchar"
14913cat >conftest.$ac_ext <<_ACEOF
14914/* confdefs.h. */
14915_ACEOF
14916cat confdefs.h >>conftest.$ac_ext
14917cat >>conftest.$ac_ext <<_ACEOF
14918/* end confdefs.h. */
14919
14920int
14921main ()
14922{
14923
14924 ;
14925 return 0;
14926}
14927_ACEOF
14928rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020014929if { (ac_try="$ac_link"
14930case "(($ac_try" in
14931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14932 *) ac_try_echo=$ac_try;;
14933esac
14934eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14935 (eval "$ac_link") 2>conftest.er1
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020014942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14943 { (case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946esac
14947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_try") 2>&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014949 ac_status=$?
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; } &&
14952 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020014953 { (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
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_c_gcc_fshort_wchar="yes"
14963else
14964 echo "$as_me: failed program was:" >&5
14965sed 's/^/| /' conftest.$ac_ext >&5
14966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014967 ac_cv_c_gcc_fshort_wchar="no"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014968fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014969
Jeremy White0ebeb532006-06-20 13:18:41 +020014970rm -f core conftest.err conftest.$ac_objext \
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014971 conftest$ac_exeext conftest.$ac_ext
14972CFLAGS=$ac_wine_try_cflags_saved
14973fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014974{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
14975echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000014976 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
14977 then
14978
14979cat >>confdefs.h <<\_ACEOF
14980#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
14981_ACEOF
14982
14983 fi
14984
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014985 { echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
14986echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014987if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
14988 echo $ECHO_N "(cached) $ECHO_C" >&6
14989else
14990 ac_wine_try_cflags_saved=$CFLAGS
14991CFLAGS="$CFLAGS -fno-strict-aliasing"
14992cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000014993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998
14999int
15000main ()
15001{
15002
15003 ;
15004 return 0;
15005}
15006_ACEOF
15007rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015008if { (ac_try="$ac_link"
15009case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012esac
15013eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015015 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15022 { (case "(($ac_try" in
15023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15024 *) ac_try_echo=$ac_try;;
15025esac
15026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; } &&
15031 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015032 { (case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035esac
15036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15037 (eval "$ac_try") 2>&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015038 ac_status=$?
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; }; then
15041 ac_cv_c_gcc_no_strict_aliasing="yes"
15042else
15043 echo "$as_me: failed program was:" >&5
15044sed 's/^/| /' conftest.$ac_ext >&5
15045
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015046 ac_cv_c_gcc_no_strict_aliasing="no"
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015047fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015048
Jeremy White0ebeb532006-06-20 13:18:41 +020015049rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015050 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015051CFLAGS=$ac_wine_try_cflags_saved
15052fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015053{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
15054echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000015055 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
15056 then
15057 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
15058 fi
15059
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015060 { echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
15061echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015062if test "${ac_cv_c_gcc_gstabs+set}" = set; then
15063 echo $ECHO_N "(cached) $ECHO_C" >&6
15064else
15065 ac_wine_try_cflags_saved=$CFLAGS
15066CFLAGS="$CFLAGS -gstabs+"
15067cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015068/* confdefs.h. */
15069_ACEOF
15070cat confdefs.h >>conftest.$ac_ext
15071cat >>conftest.$ac_ext <<_ACEOF
15072/* end confdefs.h. */
15073
15074int
15075main ()
15076{
15077
15078 ;
15079 return 0;
15080}
15081_ACEOF
15082rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015083if { (ac_try="$ac_link"
15084case "(($ac_try" in
15085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086 *) ac_try_echo=$ac_try;;
15087esac
15088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015090 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015103 ac_status=$?
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015107 { (case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110esac
15111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_try") 2>&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_c_gcc_gstabs="yes"
15117else
15118 echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015121 ac_cv_c_gcc_gstabs="no"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015122fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015123
Jeremy White0ebeb532006-06-20 13:18:41 +020015124rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015125 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015126CFLAGS=$ac_wine_try_cflags_saved
15127fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015128{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
15129echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6; }
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015130 if test "$ac_cv_c_gcc_gstabs" = "yes"
15131 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015132 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000015133 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000015134
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015135 { echo "$as_me:$LINENO: checking for gcc -Wdeclaration-after-statement support" >&5
15136echo $ECHO_N "checking for gcc -Wdeclaration-after-statement support... $ECHO_C" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015137if test "${ac_cv_c_gcc_decl_after_statement+set}" = set; then
15138 echo $ECHO_N "(cached) $ECHO_C" >&6
15139else
15140 ac_wine_try_cflags_saved=$CFLAGS
15141CFLAGS="$CFLAGS -Wdeclaration-after-statement"
15142cat >conftest.$ac_ext <<_ACEOF
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
15148
15149int
15150main ()
15151{
15152
15153 ;
15154 return 0;
15155}
15156_ACEOF
15157rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015158if { (ac_try="$ac_link"
15159case "(($ac_try" in
15160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15162esac
15163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015165 ac_status=$?
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15172 { (case "(($ac_try" in
15173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15174 *) ac_try_echo=$ac_try;;
15175esac
15176eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15177 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015182 { (case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15185esac
15186eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_try") 2>&5
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015188 ac_status=$?
15189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190 (exit $ac_status); }; }; then
15191 ac_cv_c_gcc_decl_after_statement="yes"
15192else
15193 echo "$as_me: failed program was:" >&5
15194sed 's/^/| /' conftest.$ac_ext >&5
15195
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015196 ac_cv_c_gcc_decl_after_statement="no"
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015197fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015198
Jeremy White0ebeb532006-06-20 13:18:41 +020015199rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015200 conftest$ac_exeext conftest.$ac_ext
15201CFLAGS=$ac_wine_try_cflags_saved
15202fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015203{ echo "$as_me:$LINENO: result: $ac_cv_c_gcc_decl_after_statement" >&5
15204echo "${ECHO_T}$ac_cv_c_gcc_decl_after_statement" >&6; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000015205 if test "$ac_cv_c_gcc_decl_after_statement" = "yes"
15206 then
15207 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
15208 fi
15209
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015210 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000015211 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015212 { echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
15213echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6; }
Mike McCormackc509bc42003-02-25 04:01:58 +000015214if test "${ac_cv_c_string_h_warnings+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216else
15217 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000015218/* confdefs.h. */
15219_ACEOF
15220cat confdefs.h >>conftest.$ac_ext
15221cat >>conftest.$ac_ext <<_ACEOF
15222/* end confdefs.h. */
15223#include <string.h>
15224int
15225main ()
15226{
15227
15228 ;
15229 return 0;
15230}
15231_ACEOF
15232rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020015233if { (ac_try="$ac_compile"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_compile") 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000015240 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000015244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15247 { (case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15250esac
15251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; } &&
15256 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15260esac
15261eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
Mike McCormackc509bc42003-02-25 04:01:58 +000015263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_cv_c_string_h_warnings=no
15267else
15268 echo "$as_me: failed program was:" >&5
15269sed 's/^/| /' conftest.$ac_ext >&5
15270
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015271 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000015272fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015273
Jeremy White0ebeb532006-06-20 13:18:41 +020015274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000015275fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015276{ echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
15277echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000015278 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000015279 if test "$ac_cv_c_string_h_warnings" = "no"
15280 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000015281 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000015282 fi
Mike McCormackb7443722005-08-11 17:12:18 +000015283
15284 BUILTINFLAG=""
15285
15286 saved_CFLAGS="$CFLAGS"
15287 CFLAGS="$CFLAGS -Werror"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015288 { echo "$as_me:$LINENO: checking for builtin wchar inlines" >&5
15289echo $ECHO_N "checking for builtin wchar inlines... $ECHO_C" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000015290if test "${ac_cv_c_builtin_wchar_ctype+set}" = set; then
15291 echo $ECHO_N "(cached) $ECHO_C" >&6
15292else
15293 cat >conftest.$ac_ext <<_ACEOF
15294/* confdefs.h. */
15295_ACEOF
15296cat confdefs.h >>conftest.$ac_ext
15297cat >>conftest.$ac_ext <<_ACEOF
15298/* end confdefs.h. */
15299
15300int
15301main ()
15302{
15303int iswlower(unsigned short);
15304 ;
15305 return 0;
15306}
15307_ACEOF
15308rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020015309if { (ac_try="$ac_compile"
15310case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313esac
15314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_compile") 2>conftest.er1
Mike McCormackb7443722005-08-11 17:12:18 +000015316 ac_status=$?
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15323 { (case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
15327eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000015329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015333 { (case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15336esac
15337eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
Mike McCormackb7443722005-08-11 17:12:18 +000015339 ac_status=$?
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_c_builtin_wchar_ctype=no
15343else
15344 echo "$as_me: failed program was:" >&5
15345sed 's/^/| /' conftest.$ac_ext >&5
15346
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015347 ac_cv_c_builtin_wchar_ctype=yes
Mike McCormackb7443722005-08-11 17:12:18 +000015348fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015349
Jeremy White0ebeb532006-06-20 13:18:41 +020015350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackb7443722005-08-11 17:12:18 +000015351fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015352{ echo "$as_me:$LINENO: result: $ac_cv_c_builtin_wchar_ctype" >&5
15353echo "${ECHO_T}$ac_cv_c_builtin_wchar_ctype" >&6; }
Mike McCormackb7443722005-08-11 17:12:18 +000015354 CFLAGS="$saved_CFLAGS"
15355 if test "$ac_cv_c_builtin_wchar_ctype" = "yes"
15356 then
Mike McCormacka26dabe2006-07-19 19:16:59 +090015357 BUILTINFLAG="-fno-builtin"
Mike McCormackb7443722005-08-11 17:12:18 +000015358 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000015359fi
15360
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015361
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015362{ echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
15363echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015364if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015365 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015366else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015367 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015368/* confdefs.h. */
15369_ACEOF
15370cat confdefs.h >>conftest.$ac_ext
15371cat >>conftest.$ac_ext <<_ACEOF
15372/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015373void 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 +000015374
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015375int
15376main ()
15377{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015378
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015379 ;
15380 return 0;
15381}
15382_ACEOF
15383rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015384if { (ac_try="$ac_link"
15385case "(($ac_try" in
15386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15387 *) ac_try_echo=$ac_try;;
15388esac
15389eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15390 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015391 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015392 grep -v '^ *+' conftest.er1 >conftest.err
15393 rm -f conftest.er1
15394 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015396 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401esac
15402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; } &&
15407 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015408 { (case "(($ac_try" in
15409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410 *) ac_try_echo=$ac_try;;
15411esac
15412eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015414 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015416 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015417 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000015418else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015419 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015420sed 's/^/| /' conftest.$ac_ext >&5
15421
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015422 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015423/* confdefs.h. */
15424_ACEOF
15425cat confdefs.h >>conftest.$ac_ext
15426cat >>conftest.$ac_ext <<_ACEOF
15427/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015428void 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 +000015429
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015430int
15431main ()
15432{
15433
15434 ;
15435 return 0;
15436}
15437_ACEOF
15438rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015439if { (ac_try="$ac_link"
15440case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443esac
15444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015446 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15453 { (case "(($ac_try" in
15454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15455 *) ac_try_echo=$ac_try;;
15456esac
15457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15458 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015459 ac_status=$?
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015463 { (case "(($ac_try" in
15464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15466esac
15467eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015472 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015473else
15474 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015475sed 's/^/| /' conftest.$ac_ext >&5
15476
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015477 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015478/* confdefs.h. */
15479_ACEOF
15480cat confdefs.h >>conftest.$ac_ext
15481cat >>conftest.$ac_ext <<_ACEOF
15482/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015483void 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 +000015484
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015485int
15486main ()
15487{
15488
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015494if { (ac_try="$ac_link"
15495case "(($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_link") 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015501 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015502 grep -v '^ *+' conftest.er1 >conftest.err
15503 rm -f conftest.er1
15504 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15508 { (case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511esac
15512eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015518 { (case "(($ac_try" in
15519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15521esac
15522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_try") 2>&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; }; then
15527 ac_cv_asm_func_def=".type 2"
15528else
15529 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015530sed 's/^/| /' conftest.$ac_ext >&5
15531
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015532 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015533fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015534
Jeremy White0ebeb532006-06-20 13:18:41 +020015535rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015536 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015537fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015538
Jeremy White0ebeb532006-06-20 13:18:41 +020015539rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015540 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015541fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015542
Jeremy White0ebeb532006-06-20 13:18:41 +020015543rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015544 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015545fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015546{ echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
15547echo "${ECHO_T}$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015548
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015549
15550
15551case "$ac_cv_asm_func_def" in
15552 ".def")
15553 cat >>confdefs.h <<\_ACEOF
15554#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015555_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015556 ;;
15557 ".type @function")
15558 cat >>confdefs.h <<\_ACEOF
15559#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
15560_ACEOF
15561 ;;
15562 ".type 2")
15563 cat >>confdefs.h <<\_ACEOF
15564#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
15565_ACEOF
15566 ;;
15567 *)
15568 cat >>confdefs.h <<\_ACEOF
15569#define __ASM_FUNC(name) ""
15570_ACEOF
15571 ;;
15572esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000015573
15574
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015575{ echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
15576echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015577if test "${ac_cv_c_extern_prefix+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015579else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015580 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000015586void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015587extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015588int
15589main ()
15590{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015591if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015592 ;
15593 return 0;
15594}
15595_ACEOF
15596rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015597if { (ac_try="$ac_link"
15598case "(($ac_try" in
15599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15601esac
15602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015604 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015609 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15611 { (case "(($ac_try" in
15612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15613 *) ac_try_echo=$ac_try;;
15614esac
15615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15616 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; } &&
15620 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015621 { (case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15624esac
15625eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015627 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015629 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015630 ac_cv_c_extern_prefix="yes"
15631else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015632 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015633sed 's/^/| /' conftest.$ac_ext >&5
15634
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015635 ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015636fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015637
Jeremy White0ebeb532006-06-20 13:18:41 +020015638rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015639 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015640fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015641{ echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
15642echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015643
15644
15645
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015646if test "$ac_cv_c_extern_prefix" = "yes"
15647then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015648 cat >>confdefs.h <<\_ACEOF
15649#define __ASM_NAME(name) "_" name
15650_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015651
Alexandre Julliard84555cc2002-07-22 20:51:02 +000015652else
15653 cat >>confdefs.h <<\_ACEOF
15654#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015655_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000015656
15657fi
15658
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015659
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015660DLLEXT=""
15661
Alexandre Julliardfc094232003-04-14 21:46:41 +000015662DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015663
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015664DLLIBS=""
15665
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015666LDSHARED=""
15667
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000015668LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000015669
Alexandre Julliardada5e652002-12-12 22:03:14 +000015670LIBEXT="so"
15671
15672IMPLIBEXT="def"
15673
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000015674
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015675case $host_os in
15676 cygwin*|mingw32*)
15677 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000015678 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15679set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015680{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015682if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15683 echo $ECHO_N "(cached) $ECHO_C" >&6
15684else
15685 if test -n "$DLLTOOL"; then
15686 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15687else
15688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689for as_dir in $PATH
15690do
15691 IFS=$as_save_IFS
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015694 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 +000015695 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15697 break 2
15698 fi
15699done
15700done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015701IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015702
15703fi
15704fi
15705DLLTOOL=$ac_cv_prog_DLLTOOL
15706if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015707 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15708echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015709else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015710 { echo "$as_me:$LINENO: result: no" >&5
15711echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015712fi
15713
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015714
Alexandre Julliardada5e652002-12-12 22:03:14 +000015715fi
15716if test -z "$ac_cv_prog_DLLTOOL"; then
15717 ac_ct_DLLTOOL=$DLLTOOL
15718 # Extract the first word of "dlltool", so it can be a program name with args.
15719set dummy dlltool; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015720{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015722if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15723 echo $ECHO_N "(cached) $ECHO_C" >&6
15724else
15725 if test -n "$ac_ct_DLLTOOL"; then
15726 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15727else
15728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15729for as_dir in $PATH
15730do
15731 IFS=$as_save_IFS
15732 test -z "$as_dir" && as_dir=.
15733 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015734 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 +000015735 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15737 break 2
15738 fi
15739done
15740done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015741IFS=$as_save_IFS
Alexandre Julliardada5e652002-12-12 22:03:14 +000015742
Alexandre Julliardada5e652002-12-12 22:03:14 +000015743fi
15744fi
15745ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15746if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015747 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15748echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015749else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015750 { echo "$as_me:$LINENO: result: no" >&5
15751echo "${ECHO_T}no" >&6; }
Alexandre Julliardada5e652002-12-12 22:03:14 +000015752fi
15753
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015754 if test "x$ac_ct_DLLTOOL" = x; then
15755 DLLTOOL="false"
15756 else
15757 case $cross_compiling:$ac_tool_warned in
15758yes:)
15759{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15760whose name does not start with the host triplet. If you think this
15761configuration is useful to you, please write to autoconf@gnu.org." >&5
15762echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15763whose name does not start with the host triplet. If you think this
15764configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15765ac_tool_warned=yes ;;
15766esac
15767 DLLTOOL=$ac_ct_DLLTOOL
15768 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015769else
15770 DLLTOOL="$ac_cv_prog_DLLTOOL"
15771fi
15772
15773 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015774 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
15775set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015776{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015778if test "${ac_cv_prog_DLLWRAP+set}" = set; then
15779 echo $ECHO_N "(cached) $ECHO_C" >&6
15780else
15781 if test -n "$DLLWRAP"; then
15782 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
15783else
15784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15785for as_dir in $PATH
15786do
15787 IFS=$as_save_IFS
15788 test -z "$as_dir" && as_dir=.
15789 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015790 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 +000015791 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000015792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15793 break 2
15794 fi
15795done
15796done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015797IFS=$as_save_IFS
Alexandre Julliard466ae142002-05-07 18:33:47 +000015798
Alexandre Julliard466ae142002-05-07 18:33:47 +000015799fi
15800fi
15801DLLWRAP=$ac_cv_prog_DLLWRAP
15802if test -n "$DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015803 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
15804echo "${ECHO_T}$DLLWRAP" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015805else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015806 { echo "$as_me:$LINENO: result: no" >&5
15807echo "${ECHO_T}no" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000015808fi
15809
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015810
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015811fi
15812if test -z "$ac_cv_prog_DLLWRAP"; then
15813 ac_ct_DLLWRAP=$DLLWRAP
15814 # Extract the first word of "dllwrap", so it can be a program name with args.
15815set dummy dllwrap; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015816{ echo "$as_me:$LINENO: checking for $ac_word" >&5
15817echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015818if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
15819 echo $ECHO_N "(cached) $ECHO_C" >&6
15820else
15821 if test -n "$ac_ct_DLLWRAP"; then
15822 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
15823else
15824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15825for as_dir in $PATH
15826do
15827 IFS=$as_save_IFS
15828 test -z "$as_dir" && as_dir=.
15829 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015830 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 +000015831 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
15832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15833 break 2
15834 fi
15835done
15836done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015837IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015838
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015839fi
15840fi
15841ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
15842if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015843 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
15844echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015845else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015846 { echo "$as_me:$LINENO: result: no" >&5
15847echo "${ECHO_T}no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015848fi
15849
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015850 if test "x$ac_ct_DLLWRAP" = x; then
15851 DLLWRAP="false"
15852 else
15853 case $cross_compiling:$ac_tool_warned in
15854yes:)
15855{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15856whose name does not start with the host triplet. If you think this
15857configuration is useful to you, please write to autoconf@gnu.org." >&5
15858echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15859whose name does not start with the host triplet. If you think this
15860configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15861ac_tool_warned=yes ;;
15862esac
15863 DLLWRAP=$ac_ct_DLLWRAP
15864 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015865else
15866 DLLWRAP="$ac_cv_prog_DLLWRAP"
15867fi
15868
15869 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015870 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000015871 else
15872 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015873 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000015874 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000015875 WIN16_FILES=""
15876 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015877 ;;
15878 *)
Alexandre Julliard73482142005-08-03 19:21:04 +000015879 if test "$ac_cv_header_dlfcn_h" = "yes"
15880 then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015881
15882for ac_func in dlopen
15883do
15884as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015885{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15886echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15887if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889else
15890 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015896/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15898#define $ac_func innocuous_$ac_func
15899
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015900/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015901 which can conflict with char $ac_func (); below.
15902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15903 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015904
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015905#ifdef __STDC__
15906# include <limits.h>
15907#else
15908# include <assert.h>
15909#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000015910
15911#undef $ac_func
15912
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015913/* Override any GCC internal prototype to avoid an error.
15914 Use char because int might match the return type of a GCC
15915 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015916#ifdef __cplusplus
15917extern "C"
15918#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015919char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015920/* The GNU C library defines this for functions which it implements
15921 to always fail with ENOSYS. Some functions are actually named
15922 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015923#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015924choke me
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015925#endif
15926
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015927int
15928main ()
15929{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015930return $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015931 ;
15932 return 0;
15933}
15934_ACEOF
15935rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020015936if { (ac_try="$ac_link"
15937case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940esac
15941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015943 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020015949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15953esac
15954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020015960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15963esac
15964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 eval "$as_ac_var=yes"
15970else
15971 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015972sed 's/^/| /' conftest.$ac_ext >&5
15973
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015974 eval "$as_ac_var=no"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015975fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015976
Jeremy White0ebeb532006-06-20 13:18:41 +020015977rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015978 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015979fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015980ac_res=`eval echo '${'$as_ac_var'}'`
15981 { echo "$as_me:$LINENO: result: $ac_res" >&5
15982echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015983if test `eval echo '${'$as_ac_var'}'` = yes; then
15984 cat >>confdefs.h <<_ACEOF
15985#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15986_ACEOF
15987
15988else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015989 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15990echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015991if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15992 echo $ECHO_N "(cached) $ECHO_C" >&6
15993else
15994 ac_check_lib_save_LIBS=$LIBS
15995LIBS="-ldl $LIBS"
15996cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015997/* confdefs.h. */
15998_ACEOF
15999cat confdefs.h >>conftest.$ac_ext
16000cat >>conftest.$ac_ext <<_ACEOF
16001/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016002
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016003/* Override any GCC internal prototype to avoid an error.
16004 Use char because int might match the return type of a GCC
16005 builtin and then its argument prototype would still apply. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016006#ifdef __cplusplus
16007extern "C"
16008#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016009char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016010int
16011main ()
16012{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016013return dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016014 ;
16015 return 0;
16016}
16017_ACEOF
16018rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016019if { (ac_try="$ac_link"
16020case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16023esac
16024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016026 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16033 { (case "(($ac_try" in
16034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035 *) ac_try_echo=$ac_try;;
16036esac
16037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16038 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; } &&
16042 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016043 { (case "(($ac_try" in
16044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16045 *) ac_try_echo=$ac_try;;
16046esac
16047eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16048 (eval "$ac_try") 2>&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; }; then
16052 ac_cv_lib_dl_dlopen=yes
16053else
16054 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016055sed 's/^/| /' conftest.$ac_ext >&5
16056
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016057 ac_cv_lib_dl_dlopen=no
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016058fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016059
Jeremy White0ebeb532006-06-20 13:18:41 +020016060rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016061 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016062LIBS=$ac_check_lib_save_LIBS
16063fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016064{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16065echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016066if test $ac_cv_lib_dl_dlopen = yes; then
16067
16068cat >>confdefs.h <<\_ACEOF
16069#define HAVE_DLOPEN 1
16070_ACEOF
16071
16072 DLLIBS="-ldl"
16073else
16074 LIBEXT="a"
16075fi
16076
16077fi
16078done
16079
Alexandre Julliard266c6092006-02-11 20:55:50 +010016080 ac_wine_check_funcs_save_LIBS="$LIBS"
16081LIBS="$LIBS $DLLIBS"
16082
16083for ac_func in dladdr
16084do
16085as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016086{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16087echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16088if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliard266c6092006-02-11 20:55:50 +010016089 echo $ECHO_N "(cached) $ECHO_C" >&6
16090else
16091 cat >conftest.$ac_ext <<_ACEOF
16092/* confdefs.h. */
16093_ACEOF
16094cat confdefs.h >>conftest.$ac_ext
16095cat >>conftest.$ac_ext <<_ACEOF
16096/* end confdefs.h. */
16097/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16099#define $ac_func innocuous_$ac_func
16100
16101/* System header to define __stub macros and hopefully few prototypes,
16102 which can conflict with char $ac_func (); below.
16103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16104 <limits.h> exists even on freestanding compilers. */
16105
16106#ifdef __STDC__
16107# include <limits.h>
16108#else
16109# include <assert.h>
16110#endif
16111
16112#undef $ac_func
16113
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016114/* Override any GCC internal prototype to avoid an error.
16115 Use char because int might match the return type of a GCC
16116 builtin and then its argument prototype would still apply. */
Alexandre Julliard266c6092006-02-11 20:55:50 +010016117#ifdef __cplusplus
16118extern "C"
Alexandre Julliard266c6092006-02-11 20:55:50 +010016119#endif
Alexandre Julliard266c6092006-02-11 20:55:50 +010016120char $ac_func ();
16121/* The GNU C library defines this for functions which it implements
16122 to always fail with ENOSYS. Some functions are actually named
16123 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016124#if defined __stub_$ac_func || defined __stub___$ac_func
Alexandre Julliard266c6092006-02-11 20:55:50 +010016125choke me
Alexandre Julliard266c6092006-02-11 20:55:50 +010016126#endif
16127
16128int
16129main ()
16130{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016131return $ac_func ();
Alexandre Julliard266c6092006-02-11 20:55:50 +010016132 ;
16133 return 0;
16134}
16135_ACEOF
16136rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016137if { (ac_try="$ac_link"
16138case "(($ac_try" in
16139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16140 *) ac_try_echo=$ac_try;;
16141esac
16142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16143 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard266c6092006-02-11 20:55:50 +010016144 ac_status=$?
16145 grep -v '^ *+' conftest.er1 >conftest.err
16146 rm -f conftest.er1
16147 cat conftest.err >&5
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16151 { (case "(($ac_try" in
16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153 *) ac_try_echo=$ac_try;;
16154esac
16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16156 (eval "$ac_try") 2>&5
Alexandre Julliard266c6092006-02-11 20:55:50 +010016157 ac_status=$?
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; } &&
16160 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016161 { (case "(($ac_try" in
16162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16163 *) ac_try_echo=$ac_try;;
16164esac
16165eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16166 (eval "$ac_try") 2>&5
Alexandre Julliard266c6092006-02-11 20:55:50 +010016167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 eval "$as_ac_var=yes"
16171else
16172 echo "$as_me: failed program was:" >&5
16173sed 's/^/| /' conftest.$ac_ext >&5
16174
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016175 eval "$as_ac_var=no"
Alexandre Julliard266c6092006-02-11 20:55:50 +010016176fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016177
Jeremy White0ebeb532006-06-20 13:18:41 +020016178rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard266c6092006-02-11 20:55:50 +010016179 conftest$ac_exeext conftest.$ac_ext
16180fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016181ac_res=`eval echo '${'$as_ac_var'}'`
16182 { echo "$as_me:$LINENO: result: $ac_res" >&5
16183echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliard266c6092006-02-11 20:55:50 +010016184if test `eval echo '${'$as_ac_var'}'` = yes; then
16185 cat >>confdefs.h <<_ACEOF
16186#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16187_ACEOF
16188
16189fi
16190done
16191
16192LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard73482142005-08-03 19:21:04 +000016193 else
16194 LIBEXT="a"
16195 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000016196
16197 if test "$LIBEXT" = "so"
16198 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000016199 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000016200 DLLEXT=".so"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016201 { echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
16202echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016203if test "${ac_cv_c_dll_gnuelf+set}" = set; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016205else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016206 ac_wine_try_cflags_saved=$CFLAGS
Jeremy White0ebeb532006-06-20 13:18:41 +020016207CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016208cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016209void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016210_ACEOF
16211rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016212if { (ac_try="$ac_link"
16213case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16216esac
16217eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016219 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016220 grep -v '^ *+' conftest.er1 >conftest.err
16221 rm -f conftest.er1
16222 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016224 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16226 { (case "(($ac_try" in
16227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228 *) ac_try_echo=$ac_try;;
16229esac
16230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16239esac
16240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016242 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016244 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000016245 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016246else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016247 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016248sed 's/^/| /' conftest.$ac_ext >&5
16249
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016250 ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016251fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016252
Jeremy White0ebeb532006-06-20 13:18:41 +020016253rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016254 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016255CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016256fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016257{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
16258echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000016259 if test "$ac_cv_c_dll_gnuelf" = "yes"
16260 then
Jeremy White0ebeb532006-06-20 13:18:41 +020016261 LDSHARED="\$(CC) -shared"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016262 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Jeremy White0ebeb532006-06-20 13:18:41 +020016263 { echo "$as_me:$LINENO: checking whether the linker accepts soname" >&5
16264echo $ECHO_N "checking whether the linker accepts soname... $ECHO_C" >&6; }
16265if test "${ac_cv_c_sonames+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267else
16268 ac_wine_try_cflags_saved=$CFLAGS
16269CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
16270cat >conftest.$ac_ext <<_ACEOF
16271/* confdefs.h. */
16272_ACEOF
16273cat confdefs.h >>conftest.$ac_ext
16274cat >>conftest.$ac_ext <<_ACEOF
16275/* end confdefs.h. */
16276
16277int
16278main ()
16279{
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext conftest$ac_exeext
16286if { (ac_try="$ac_link"
16287case "(($ac_try" in
16288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289 *) ac_try_echo=$ac_try;;
16290esac
16291eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292 (eval "$ac_link") 2>conftest.er1
16293 ac_status=$?
16294 grep -v '^ *+' conftest.er1 >conftest.err
16295 rm -f conftest.er1
16296 cat conftest.err >&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16300 { (case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303esac
16304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_try") 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; } &&
16309 { ac_try='test -s conftest$ac_exeext'
16310 { (case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16313esac
16314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_try") 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 ac_cv_c_sonames="yes"
16320else
16321 echo "$as_me: failed program was:" >&5
16322sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 ac_cv_c_sonames="no"
16325fi
16326
16327rm -f core conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
16329CFLAGS=$ac_wine_try_cflags_saved
16330fi
16331{ echo "$as_me:$LINENO: result: $ac_cv_c_sonames" >&5
16332echo "${ECHO_T}$ac_cv_c_sonames" >&6; }
16333 if test "$ac_cv_c_sonames" = "yes"
16334 then
16335 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
16336 else
16337 { echo "$as_me:$LINENO: checking check to see if -h soname is an alternate" >&5
16338echo $ECHO_N "checking check to see if -h soname is an alternate... $ECHO_C" >&6; }
16339if test "${ac_cv_c_h_sonames+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341else
16342 ac_wine_try_cflags_saved=$CFLAGS
16343CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
16344cat >conftest.$ac_ext <<_ACEOF
16345/* confdefs.h. */
16346_ACEOF
16347cat confdefs.h >>conftest.$ac_ext
16348cat >>conftest.$ac_ext <<_ACEOF
16349/* end confdefs.h. */
16350
16351int
16352main ()
16353{
16354
16355 ;
16356 return 0;
16357}
16358_ACEOF
16359rm -f conftest.$ac_objext conftest$ac_exeext
16360if { (ac_try="$ac_link"
16361case "(($ac_try" in
16362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16363 *) ac_try_echo=$ac_try;;
16364esac
16365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16366 (eval "$ac_link") 2>conftest.er1
16367 ac_status=$?
16368 grep -v '^ *+' conftest.er1 >conftest.err
16369 rm -f conftest.er1
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16374 { (case "(($ac_try" in
16375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16376 *) ac_try_echo=$ac_try;;
16377esac
16378eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16379 (eval "$ac_try") 2>&5
16380 ac_status=$?
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; } &&
16383 { ac_try='test -s conftest$ac_exeext'
16384 { (case "(($ac_try" in
16385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16386 *) ac_try_echo=$ac_try;;
16387esac
16388eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16389 (eval "$ac_try") 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_c_h_sonames="yes"
16394else
16395 echo "$as_me: failed program was:" >&5
16396sed 's/^/| /' conftest.$ac_ext >&5
16397
16398 ac_cv_c_h_sonames="no"
16399fi
16400
16401rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403CFLAGS=$ac_wine_try_cflags_saved
16404fi
16405{ echo "$as_me:$LINENO: result: $ac_cv_c_h_sonames" >&5
16406echo "${ECHO_T}$ac_cv_c_h_sonames" >&6; }
16407 if test "$ac_cv_c_h_sonames" = "yes"
16408 then
16409 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
16410 fi
16411 fi
16412
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016413 { echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
16414echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016415if test "${ac_cv_c_dll_zdefs+set}" = set; then
16416 echo $ECHO_N "(cached) $ECHO_C" >&6
16417else
16418 ac_wine_try_cflags_saved=$CFLAGS
16419CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
16420cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016426
16427int
16428main ()
16429{
16430
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016436if { (ac_try="$ac_link"
16437case "(($ac_try" in
16438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16439 *) ac_try_echo=$ac_try;;
16440esac
16441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16442 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016443 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016444 grep -v '^ *+' conftest.er1 >conftest.err
16445 rm -f conftest.er1
16446 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16450 { (case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16453esac
16454eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; } &&
16459 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016460 { (case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463esac
16464eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_try") 2>&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 ac_cv_c_dll_zdefs="yes"
16470else
16471 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016472sed 's/^/| /' conftest.$ac_ext >&5
16473
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016474 ac_cv_c_dll_zdefs="no"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016475fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016476
Jeremy White0ebeb532006-06-20 13:18:41 +020016477rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016478 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016479CFLAGS=$ac_wine_try_cflags_saved
16480fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016481{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
16482echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6; }
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016483 if test "$ac_cv_c_dll_zdefs" = "yes"
16484 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016485 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000016486 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000016487
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016488 { echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
16489echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000016490if test "${ac_cv_c_dll_init_fini+set}" = set; then
16491 echo $ECHO_N "(cached) $ECHO_C" >&6
16492else
16493 ac_wine_try_cflags_saved=$CFLAGS
16494CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
16495cat >conftest.$ac_ext <<_ACEOF
16496/* confdefs.h. */
16497_ACEOF
16498cat confdefs.h >>conftest.$ac_ext
16499cat >>conftest.$ac_ext <<_ACEOF
16500/* end confdefs.h. */
16501
16502int
16503main ()
16504{
16505
16506 ;
16507 return 0;
16508}
16509_ACEOF
16510rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016511if { (ac_try="$ac_link"
16512case "(($ac_try" in
16513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16514 *) ac_try_echo=$ac_try;;
16515esac
16516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16517 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard36048242004-01-08 03:36:53 +000016518 ac_status=$?
16519 grep -v '^ *+' conftest.er1 >conftest.err
16520 rm -f conftest.er1
16521 cat conftest.err >&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016524 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16525 { (case "(($ac_try" in
16526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527 *) ac_try_echo=$ac_try;;
16528esac
16529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000016531 ac_status=$?
16532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); }; } &&
16534 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016535 { (case "(($ac_try" in
16536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537 *) ac_try_echo=$ac_try;;
16538esac
16539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540 (eval "$ac_try") 2>&5
Alexandre Julliard36048242004-01-08 03:36:53 +000016541 ac_status=$?
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_c_dll_init_fini="yes"
16545else
16546 echo "$as_me: failed program was:" >&5
16547sed 's/^/| /' conftest.$ac_ext >&5
16548
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016549 ac_cv_c_dll_init_fini="no"
Alexandre Julliard36048242004-01-08 03:36:53 +000016550fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016551
Jeremy White0ebeb532006-06-20 13:18:41 +020016552rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard36048242004-01-08 03:36:53 +000016553 conftest$ac_exeext conftest.$ac_ext
16554CFLAGS=$ac_wine_try_cflags_saved
16555fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016556{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
16557echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6; }
Alexandre Julliard36048242004-01-08 03:36:53 +000016558 if test "$ac_cv_c_dll_init_fini" = "yes"
16559 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016560 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000016561 fi
16562
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016563 { echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
16564echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016565if test "${ac_cv_c_ld_version_scripts+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16567else
16568 echo '{ global: *; };' >conftest.map
16569 ac_wine_try_cflags_saved=$CFLAGS
16570CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
16571cat >conftest.$ac_ext <<_ACEOF
16572/* confdefs.h. */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h. */
16577
16578int
16579main ()
16580{
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016587if { (ac_try="$ac_link"
16588case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16591esac
16592eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016594 ac_status=$?
16595 grep -v '^ *+' conftest.er1 >conftest.err
16596 rm -f conftest.er1
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16601 { (case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16606 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; } &&
16610 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016611 { (case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614esac
16615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_try") 2>&5
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016617 ac_status=$?
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 ac_cv_c_ld_version_scripts="yes"
16621else
16622 echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016625 ac_cv_c_ld_version_scripts="no"
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016626fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016627
Jeremy White0ebeb532006-06-20 13:18:41 +020016628rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016629 conftest$ac_exeext conftest.$ac_ext
16630CFLAGS=$ac_wine_try_cflags_saved
16631 rm -f conftest.map
16632fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016633{ echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
16634echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6; }
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000016635 if test "$ac_cv_c_ld_version_scripts" = "yes"
16636 then
16637 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
16638 fi
16639
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016640 { echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
16641echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016642if test "${ac_cv_c_export_dynamic+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 ac_wine_try_cflags_saved=$CFLAGS
16646CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
16647cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016648/* confdefs.h. */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h. */
16653
16654int
16655main ()
16656{
16657
16658 ;
16659 return 0;
16660}
16661_ACEOF
16662rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016663if { (ac_try="$ac_link"
16664case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16667esac
16668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016670 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016671 grep -v '^ *+' conftest.er1 >conftest.err
16672 rm -f conftest.er1
16673 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16677 { (case "(($ac_try" in
16678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16679 *) ac_try_echo=$ac_try;;
16680esac
16681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16682 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016683 ac_status=$?
16684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685 (exit $ac_status); }; } &&
16686 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016687 { (case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16690esac
16691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_try") 2>&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; }; then
16696 ac_cv_c_export_dynamic="yes"
16697else
16698 echo "$as_me: failed program was:" >&5
16699sed 's/^/| /' conftest.$ac_ext >&5
16700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016701 ac_cv_c_export_dynamic="no"
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016702fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016703
Jeremy White0ebeb532006-06-20 13:18:41 +020016704rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016705 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016706CFLAGS=$ac_wine_try_cflags_saved
16707fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016708{ echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
16709echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6; }
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016710 if test "$ac_cv_c_export_dynamic" = "yes"
16711 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016712 LDEXECFLAGS="-Wl,--export-dynamic"
16713
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000016714 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016715
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016716 { echo "$as_me:$LINENO: checking whether the linker accepts --rpath" >&5
16717echo $ECHO_N "checking whether the linker accepts --rpath... $ECHO_C" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016718if test "${ac_cv_ld_rpath+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720else
16721 ac_wine_try_cflags_saved=$CFLAGS
16722CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
16723cat >conftest.$ac_ext <<_ACEOF
16724/* confdefs.h. */
16725_ACEOF
16726cat confdefs.h >>conftest.$ac_ext
16727cat >>conftest.$ac_ext <<_ACEOF
16728/* end confdefs.h. */
16729
16730int
16731main ()
16732{
16733
16734 ;
16735 return 0;
16736}
16737_ACEOF
16738rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016739if { (ac_try="$ac_link"
16740case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16743esac
16744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016746 ac_status=$?
16747 grep -v '^ *+' conftest.er1 >conftest.err
16748 rm -f conftest.er1
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016752 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756esac
16757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016759 ac_status=$?
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; } &&
16762 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016763 { (case "(($ac_try" in
16764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16765 *) ac_try_echo=$ac_try;;
16766esac
16767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16768 (eval "$ac_try") 2>&5
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016769 ac_status=$?
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); }; }; then
16772 ac_cv_ld_rpath="yes"
16773else
16774 echo "$as_me: failed program was:" >&5
16775sed 's/^/| /' conftest.$ac_ext >&5
16776
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016777 ac_cv_ld_rpath="no"
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016778fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016779
Jeremy White0ebeb532006-06-20 13:18:41 +020016780rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016781 conftest$ac_exeext conftest.$ac_ext
16782CFLAGS=$ac_wine_try_cflags_saved
16783fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016784{ echo "$as_me:$LINENO: result: $ac_cv_ld_rpath" >&5
16785echo "${ECHO_T}$ac_cv_ld_rpath" >&6; }
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016786 if test "$ac_cv_ld_rpath" = "yes"
16787 then
16788 LDEXERPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
16789
Alexandre Julliard1fd32cf2006-03-20 22:08:26 +010016790 LDDLLRPATH="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(dlldir) \$(libdir)\`"
16791
Alexandre Julliard5ed59012006-02-20 11:20:47 +010016792 fi
16793
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016794 case $host_cpu in
Ge van Geldorp2adeefe2006-06-30 21:37:34 +020016795 *i[3456789]86* | x86_64)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016796 { echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
16797echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016798if test "${ac_cv_ld_reloc_exec+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016801 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000016802CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016803cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016804/* confdefs.h. */
16805_ACEOF
16806cat confdefs.h >>conftest.$ac_ext
16807cat >>conftest.$ac_ext <<_ACEOF
16808/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016809
16810int
16811main ()
16812{
16813
16814 ;
16815 return 0;
16816}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016817_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016818rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016819if { (ac_try="$ac_link"
16820case "(($ac_try" in
16821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16822 *) ac_try_echo=$ac_try;;
16823esac
16824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16825 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016826 ac_status=$?
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16833 { (case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836esac
16837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016843 { (case "(($ac_try" in
16844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845 *) ac_try_echo=$ac_try;;
16846esac
16847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848 (eval "$ac_try") 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; }; then
16852 ac_cv_ld_reloc_exec="yes"
16853else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016854 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016855sed 's/^/| /' conftest.$ac_ext >&5
16856
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016857 ac_cv_ld_reloc_exec="no"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016858fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016859
Jeremy White0ebeb532006-06-20 13:18:41 +020016860rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliardb1abca82004-05-28 20:59:22 +000016861 conftest$ac_exeext conftest.$ac_ext
16862CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016863fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016864{ echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
16865echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6; }
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016866 if test "$ac_cv_ld_reloc_exec" = "yes"
16867 then
Alexandre Julliard5729f582005-06-17 10:22:46 +000016868 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000016869 fi
16870 ;;
16871 esac
16872
Alexandre Julliard466ae142002-05-07 18:33:47 +000016873 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016874 { echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
16875echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016876if test "${ac_cv_c_dll_unixware+set}" = set; then
16877 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000016878else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016879 ac_wine_try_cflags_saved=$CFLAGS
16880CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
16881cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016882void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016883_ACEOF
16884rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016885if { (ac_try="$ac_link"
16886case "(($ac_try" in
16887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16888 *) ac_try_echo=$ac_try;;
16889esac
16890eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16891 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016892 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016893 grep -v '^ *+' conftest.er1 >conftest.err
16894 rm -f conftest.er1
16895 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016897 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16899 { (case "(($ac_try" in
16900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16901 *) ac_try_echo=$ac_try;;
16902esac
16903eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16904 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; } &&
16908 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016909 { (case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16912esac
16913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016915 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016917 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000016918 ac_cv_c_dll_unixware="yes"
16919else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016920 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016921sed 's/^/| /' conftest.$ac_ext >&5
16922
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016923 ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000016924fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016925
Jeremy White0ebeb532006-06-20 13:18:41 +020016926rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016927 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000016928CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016929fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016930{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
16931echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliard466ae142002-05-07 18:33:47 +000016932 if test "$ac_cv_c_dll_unixware" = "yes"
16933 then
16934 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000016935 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016936
16937 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016938 { echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
16939echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016940if test "${ac_cv_c_dll_macho+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16942else
16943 ac_wine_try_cflags_saved=$CFLAGS
16944CFLAGS="$CFLAGS -bundle"
16945cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000016946void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016947_ACEOF
16948rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020016949if { (ac_try="$ac_link"
16950case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953esac
16954eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_link") 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016956 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020016962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16963 { (case "(($ac_try" in
16964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965 *) ac_try_echo=$ac_try;;
16966esac
16967eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16968 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016969 ac_status=$?
16970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16971 (exit $ac_status); }; } &&
16972 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020016973 { (case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976esac
16977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_try") 2>&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_cv_c_dll_macho="yes"
16983else
16984 echo "$as_me: failed program was:" >&5
16985sed 's/^/| /' conftest.$ac_ext >&5
16986
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016987 ac_cv_c_dll_macho="no"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016988fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016989
Jeremy White0ebeb532006-06-20 13:18:41 +020016990rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016991 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016992CFLAGS=$ac_wine_try_cflags_saved
16993fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016994{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
16995echo "${ECHO_T}$ac_cv_c_dll_macho" >&6; }
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000016996 if test "$ac_cv_c_dll_macho" = "yes"
16997 then
16998 LIBEXT="dylib"
Alexandre Julliard495bf512005-09-15 09:48:18 +000016999 LDDLLFLAGS="-bundle"
Alexandre Julliard7ed7e8f2006-05-15 15:14:45 +020017000 LDSHARED="\$(CC) -dynamiclib -install_name @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/\$(DYNAME) \$(SOVERSION:%=-compatibility_version %)"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017001 STRIP="$STRIP -u -r"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017002 COREFOUNDATIONLIB="-framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000017003
Alexandre Julliard495bf512005-09-15 09:48:18 +000017004 IOKITLIB="-framework IOKit -framework CoreFoundation"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000017005
Alexandre Julliarde325efb2006-07-24 15:25:39 +020017006 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHARED_HEAP,0x7f000000"
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000017007
Emmanuel Maillard144a5352006-05-28 22:46:23 +020017008 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
17009 then
17010 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices"
17011
17012 fi
Emmanuel Maillardaaae6602006-02-15 13:52:02 +010017013 case $host_cpu in
Alexandre Julliard495bf512005-09-15 09:48:18 +000017014 *powerpc*)
17015 CFLAGS="$CFLAGS -ffixed-r13"
17016 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning"
Alexandre Julliard495bf512005-09-15 09:48:18 +000017017 ;;
17018 esac
17019
Warren Baird421e8b92004-09-22 19:17:55 +000017020 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017021 { echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
17022echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000017023if test "${ac_cv_c_dll_hpux+set}" = set; then
17024 echo $ECHO_N "(cached) $ECHO_C" >&6
17025else
17026 ac_wine_try_cflags_saved=$CFLAGS
17027CFLAGS="$CFLAGS -shared"
17028cat >conftest.$ac_ext <<_ACEOF
17029void myfunc() {}
17030_ACEOF
17031rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017032if { (ac_try="$ac_link"
17033case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17036esac
17037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_link") 2>conftest.er1
Warren Baird421e8b92004-09-22 19:17:55 +000017039 ac_status=$?
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17046 { (case "(($ac_try" in
17047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17048 *) ac_try_echo=$ac_try;;
17049esac
17050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17051 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000017052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; } &&
17055 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017056 { (case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17059esac
17060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_try") 2>&5
Warren Baird421e8b92004-09-22 19:17:55 +000017062 ac_status=$?
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_c_dll_hpux="yes"
17066else
17067 echo "$as_me: failed program was:" >&5
17068sed 's/^/| /' conftest.$ac_ext >&5
17069
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017070 ac_cv_c_dll_hpux="no"
Warren Baird421e8b92004-09-22 19:17:55 +000017071fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017072
Jeremy White0ebeb532006-06-20 13:18:41 +020017073rm -f core conftest.err conftest.$ac_objext \
Warren Baird421e8b92004-09-22 19:17:55 +000017074 conftest$ac_exeext conftest.$ac_ext
17075CFLAGS=$ac_wine_try_cflags_saved
17076fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017077{ echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
17078echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6; }
Warren Baird421e8b92004-09-22 19:17:55 +000017079 if test "$ac_cv_c_dll_hpux" = "yes"
17080 then
17081 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000017082 DLLEXT=".sl"
17083 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000017084 LDSHARED="\$(CC) -shared"
17085 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017086 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000017087 fi
17088 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000017089 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017090
17091 CROSSTEST=""
17092
17093 if test "$cross_compiling" = "no"
17094 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000017095 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017096do
17097 # Extract the first word of "$ac_prog", so it can be a program name with args.
17098set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017099{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017101if test "${ac_cv_prog_CROSSCC+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103else
17104 if test -n "$CROSSCC"; then
17105 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
17106else
17107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108for as_dir in $PATH
17109do
17110 IFS=$as_save_IFS
17111 test -z "$as_dir" && as_dir=.
17112 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017113 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 +000017114 ac_cv_prog_CROSSCC="$ac_prog"
17115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17116 break 2
17117 fi
17118done
17119done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017120IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017121
17122fi
17123fi
17124CROSSCC=$ac_cv_prog_CROSSCC
17125if test -n "$CROSSCC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017126 { echo "$as_me:$LINENO: result: $CROSSCC" >&5
17127echo "${ECHO_T}$CROSSCC" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017128else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017129 { echo "$as_me:$LINENO: result: no" >&5
17130echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017131fi
17132
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017133
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017134 test -n "$CROSSCC" && break
17135done
17136test -n "$CROSSCC" || CROSSCC="false"
17137
Kevin Koltzaud3444562004-04-15 00:01:05 +000017138 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017139do
17140 # Extract the first word of "$ac_prog", so it can be a program name with args.
17141set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017142{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017144if test "${ac_cv_prog_DLLTOOL+set}" = set; then
17145 echo $ECHO_N "(cached) $ECHO_C" >&6
17146else
17147 if test -n "$DLLTOOL"; then
17148 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
17149else
17150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17151for as_dir in $PATH
17152do
17153 IFS=$as_save_IFS
17154 test -z "$as_dir" && as_dir=.
17155 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017156 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 +000017157 ac_cv_prog_DLLTOOL="$ac_prog"
17158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17159 break 2
17160 fi
17161done
17162done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017163IFS=$as_save_IFS
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017164
17165fi
17166fi
17167DLLTOOL=$ac_cv_prog_DLLTOOL
17168if test -n "$DLLTOOL"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017169 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
17170echo "${ECHO_T}$DLLTOOL" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017171else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017172 { echo "$as_me:$LINENO: result: no" >&5
17173echo "${ECHO_T}no" >&6; }
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017174fi
17175
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017176
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017177 test -n "$DLLTOOL" && break
17178done
17179test -n "$DLLTOOL" || DLLTOOL="false"
17180
Kevin Koltzaud3444562004-04-15 00:01:05 +000017181 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017182do
17183 # Extract the first word of "$ac_prog", so it can be a program name with args.
17184set dummy $ac_prog; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017185{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017187if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189else
17190 if test -n "$CROSSWINDRES"; then
17191 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
17192else
17193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17194for as_dir in $PATH
17195do
17196 IFS=$as_save_IFS
17197 test -z "$as_dir" && as_dir=.
17198 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017199 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 +000017200 ac_cv_prog_CROSSWINDRES="$ac_prog"
17201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17202 break 2
17203 fi
17204done
17205done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017206IFS=$as_save_IFS
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017207
17208fi
17209fi
17210CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
17211if test -n "$CROSSWINDRES"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017212 { echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
17213echo "${ECHO_T}$CROSSWINDRES" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017214else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017215 { echo "$as_me:$LINENO: result: no" >&5
17216echo "${ECHO_T}no" >&6; }
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017217fi
17218
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017219
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017220 test -n "$CROSSWINDRES" && break
17221done
17222test -n "$CROSSWINDRES" || CROSSWINDRES="false"
17223
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017224 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
17225 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000017226 ;;
17227esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017228
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000017229if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017230 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017231It is currently not possible to build Wine without shared library
17232(.so) support to allow transparent switch between .so and .dll files.
17233If you are using Linux, you will need a newer binutils.
17234" >&5
17235echo "$as_me: error: could not find a way to build shared libraries.
17236It is currently not possible to build Wine without shared library
17237(.so) support to allow transparent switch between .so and .dll files.
17238If you are using Linux, you will need a newer binutils.
17239" >&2;}
17240 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000017241fi
17242
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017243case $build_os in
17244 cygwin*|mingw32*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017245 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017246 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017247 darwin*|macosx*)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017248 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$DYLD_LIBRARY_PATH\""
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000017249 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017250 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020017251 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017252 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017253esac
17254
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017255case $host_os in
17256 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000017257 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000017258
17259 SOCKETLIBS="-lws2_32"
17260
17261 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000017262esac
17263
Alexandre Julliard40bbcfb2006-06-20 13:44:19 +020017264MAIN_BINARY="wine-pthread"
17265 case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017266 *i[3456789]86*)
17267 case $host_os in
17268 linux* | k*bsd*-gnu)
17269 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000017270
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017271 EXTRA_BINARIES="wine-kthread wine-pthread wine-preloader"
17272 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010017273 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000017274 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017275esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017276
17277
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017278if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017279then
17280 # Extract the first word of "ldd", so it can be a program name with args.
17281set dummy ldd; ac_word=$2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017282{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017284if test "${ac_cv_path_LDD+set}" = set; then
17285 echo $ECHO_N "(cached) $ECHO_C" >&6
17286else
17287 case $LDD in
17288 [\\/]* | ?:[\\/]*)
17289 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17290 ;;
17291 *)
17292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017293as_dummy="/sbin:/usr/sbin:$PATH"
17294for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017295do
17296 IFS=$as_save_IFS
17297 test -z "$as_dir" && as_dir=.
17298 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017299 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 +000017300 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17302 break 2
17303 fi
17304done
17305done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017306IFS=$as_save_IFS
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017307
17308 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
17309 ;;
17310esac
17311fi
17312LDD=$ac_cv_path_LDD
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017313if test -n "$LDD"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017314 { echo "$as_me:$LINENO: result: $LDD" >&5
17315echo "${ECHO_T}$LDD" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017316else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017317 { echo "$as_me:$LINENO: result: no" >&5
17318echo "${ECHO_T}no" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017319fi
17320
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017321
17322{ echo "$as_me:$LINENO: checking for -lX11 soname" >&5
17323echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017324if test "${ac_cv_lib_soname_X11+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326else
17327 ac_get_soname_save_LIBS=$LIBS
17328LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
17329 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017330/* confdefs.h. */
17331_ACEOF
17332cat confdefs.h >>conftest.$ac_ext
17333cat >>conftest.$ac_ext <<_ACEOF
17334/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017335
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017336/* Override any GCC internal prototype to avoid an error.
17337 Use char because int might match the return type of a GCC
17338 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017339#ifdef __cplusplus
17340extern "C"
17341#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017342char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017343int
17344main ()
17345{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017346return XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017347 ;
17348 return 0;
17349}
17350_ACEOF
17351rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017352if { (ac_try="$ac_link"
17353case "(($ac_try" in
17354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355 *) ac_try_echo=$ac_try;;
17356esac
17357eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017359 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017360 grep -v '^ *+' conftest.er1 >conftest.err
17361 rm -f conftest.er1
17362 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17369esac
17370eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017376 { (case "(($ac_try" in
17377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17378 *) ac_try_echo=$ac_try;;
17379esac
17380eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17381 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017385 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.$LIBEXT | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017386 if test "x$ac_cv_lib_soname_X11" = "x"
17387 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017388 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017389 fi
17390else
17391 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017392sed 's/^/| /' conftest.$ac_ext >&5
17393
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017394 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017395fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017396
Jeremy White0ebeb532006-06-20 13:18:41 +020017397rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017398 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017399 LIBS=$ac_get_soname_save_LIBS
17400fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017401{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
17402echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017403if test "${ac_cv_lib_soname_X11+set}" = set; then
17404
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017405cat >>confdefs.h <<_ACEOF
17406#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
17407_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017408
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017409fi
17410
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017411 { echo "$as_me:$LINENO: checking for -lXext soname" >&5
17412echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017413if test "${ac_cv_lib_soname_Xext+set}" = set; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415else
17416 ac_get_soname_save_LIBS=$LIBS
17417LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
17418 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017419/* confdefs.h. */
17420_ACEOF
17421cat confdefs.h >>conftest.$ac_ext
17422cat >>conftest.$ac_ext <<_ACEOF
17423/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017424
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017425/* Override any GCC internal prototype to avoid an error.
17426 Use char because int might match the return type of a GCC
17427 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017428#ifdef __cplusplus
17429extern "C"
17430#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017431char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017432int
17433main ()
17434{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017435return XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017436 ;
17437 return 0;
17438}
17439_ACEOF
17440rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017441if { (ac_try="$ac_link"
17442case "(($ac_try" in
17443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17444 *) ac_try_echo=$ac_try;;
17445esac
17446eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17447 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017448 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017449 grep -v '^ *+' conftest.er1 >conftest.err
17450 rm -f conftest.er1
17451 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17455 { (case "(($ac_try" in
17456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457 *) ac_try_echo=$ac_try;;
17458esac
17459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17460 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017465 { (case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17468esac
17469eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017471 ac_status=$?
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017474 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.$LIBEXT | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017475 if test "x$ac_cv_lib_soname_Xext" = "x"
17476 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017477 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017478 fi
17479else
17480 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017481sed 's/^/| /' conftest.$ac_ext >&5
17482
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017483 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017484fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017485
Jeremy White0ebeb532006-06-20 13:18:41 +020017486rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017487 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017488 LIBS=$ac_get_soname_save_LIBS
17489fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017490{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
17491echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017492if test "${ac_cv_lib_soname_Xext+set}" = set; then
17493
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017494cat >>confdefs.h <<_ACEOF
17495#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
17496_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017497
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017498fi
17499
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017500 { echo "$as_me:$LINENO: checking for -lXi soname" >&5
17501echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6; }
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017502if test "${ac_cv_lib_soname_Xi+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17504else
17505 ac_get_soname_save_LIBS=$LIBS
17506LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17507 cat >conftest.$ac_ext <<_ACEOF
17508/* confdefs.h. */
17509_ACEOF
17510cat confdefs.h >>conftest.$ac_ext
17511cat >>conftest.$ac_ext <<_ACEOF
17512/* end confdefs.h. */
17513
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017514/* Override any GCC internal prototype to avoid an error.
17515 Use char because int might match the return type of a GCC
17516 builtin and then its argument prototype would still apply. */
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017517#ifdef __cplusplus
17518extern "C"
17519#endif
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017520char XOpenDevice ();
17521int
17522main ()
17523{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017524return XOpenDevice ();
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017525 ;
17526 return 0;
17527}
17528_ACEOF
17529rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017530if { (ac_try="$ac_link"
17531case "(($ac_try" in
17532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17533 *) ac_try_echo=$ac_try;;
17534esac
17535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17536 (eval "$ac_link") 2>conftest.er1
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017537 ac_status=$?
17538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17544 { (case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17547esac
17548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017554 { (case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17557esac
17558eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_try") 2>&5
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017560 ac_status=$?
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017563 ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep libXi\\.$LIBEXT | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017564 if test "x$ac_cv_lib_soname_Xi" = "x"
17565 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017566 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017567 fi
17568else
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017572 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017573fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017574
Jeremy White0ebeb532006-06-20 13:18:41 +020017575rm -f core conftest.err conftest.$ac_objext \
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017576 conftest$ac_exeext conftest.$ac_ext
17577 LIBS=$ac_get_soname_save_LIBS
17578fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017579{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
17580echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017581if test "${ac_cv_lib_soname_Xi+set}" = set; then
17582
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017583cat >>confdefs.h <<_ACEOF
17584#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
17585_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017586
Aric Stewart2eebf3c2004-01-09 00:03:00 +000017587fi
17588
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017589 { echo "$as_me:$LINENO: checking for -lXrender soname" >&5
17590echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017591if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593else
17594 ac_get_soname_save_LIBS=$LIBS
17595LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17596 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017597/* confdefs.h. */
17598_ACEOF
17599cat confdefs.h >>conftest.$ac_ext
17600cat >>conftest.$ac_ext <<_ACEOF
17601/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017603/* Override any GCC internal prototype to avoid an error.
17604 Use char because int might match the return type of a GCC
17605 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017606#ifdef __cplusplus
17607extern "C"
17608#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017609char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017610int
17611main ()
17612{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017613return XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017614 ;
17615 return 0;
17616}
17617_ACEOF
17618rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017619if { (ac_try="$ac_link"
17620case "(($ac_try" in
17621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17622 *) ac_try_echo=$ac_try;;
17623esac
17624eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17625 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017626 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017627 grep -v '^ *+' conftest.er1 >conftest.err
17628 rm -f conftest.er1
17629 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17633 { (case "(($ac_try" in
17634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635 *) ac_try_echo=$ac_try;;
17636esac
17637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017643 { (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 Julliard67e8dc62002-05-20 18:29:58 +000017649 ac_status=$?
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017652 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.$LIBEXT | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017653 if test "x$ac_cv_lib_soname_Xrender" = "x"
17654 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017655 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017656 fi
17657else
17658 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017659sed 's/^/| /' conftest.$ac_ext >&5
17660
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017661 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017662fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017663
Jeremy White0ebeb532006-06-20 13:18:41 +020017664rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017665 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017666 LIBS=$ac_get_soname_save_LIBS
17667fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017668{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
17669echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017670if test "${ac_cv_lib_soname_Xrender+set}" = set; then
17671
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017672cat >>confdefs.h <<_ACEOF
17673#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
17674_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017675
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017676fi
17677
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017678 { echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
17679echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6; }
Mike McCormackc7c9f932004-04-07 03:57:35 +000017680if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17681 echo $ECHO_N "(cached) $ECHO_C" >&6
17682else
17683 ac_get_soname_save_LIBS=$LIBS
17684LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
17685 cat >conftest.$ac_ext <<_ACEOF
17686/* confdefs.h. */
17687_ACEOF
17688cat confdefs.h >>conftest.$ac_ext
17689cat >>conftest.$ac_ext <<_ACEOF
17690/* end confdefs.h. */
17691
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017692/* Override any GCC internal prototype to avoid an error.
17693 Use char because int might match the return type of a GCC
17694 builtin and then its argument prototype would still apply. */
Mike McCormackc7c9f932004-04-07 03:57:35 +000017695#ifdef __cplusplus
17696extern "C"
17697#endif
Mike McCormackc7c9f932004-04-07 03:57:35 +000017698char XRRQueryExtension ();
17699int
17700main ()
17701{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017702return XRRQueryExtension ();
Mike McCormackc7c9f932004-04-07 03:57:35 +000017703 ;
17704 return 0;
17705}
17706_ACEOF
17707rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017708if { (ac_try="$ac_link"
17709case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17712esac
17713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_link") 2>conftest.er1
Mike McCormackc7c9f932004-04-07 03:57:35 +000017715 ac_status=$?
17716 grep -v '^ *+' conftest.er1 >conftest.err
17717 rm -f conftest.er1
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (case "(($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_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000017728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017732 { (case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735esac
17736eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
Mike McCormackc7c9f932004-04-07 03:57:35 +000017738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017741 ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrandr\\.$LIBEXT | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormackc7c9f932004-04-07 03:57:35 +000017742 if test "x$ac_cv_lib_soname_Xrandr" = "x"
17743 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017744 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000017745 fi
17746else
17747 echo "$as_me: failed program was:" >&5
17748sed 's/^/| /' conftest.$ac_ext >&5
17749
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017750 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000017751fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017752
Jeremy White0ebeb532006-06-20 13:18:41 +020017753rm -f core conftest.err conftest.$ac_objext \
Mike McCormackc7c9f932004-04-07 03:57:35 +000017754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_get_soname_save_LIBS
17756fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017757{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
17758echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017759if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
17760
Mike McCormackc7c9f932004-04-07 03:57:35 +000017761cat >>confdefs.h <<_ACEOF
17762#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
17763_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017764
Mike McCormackc7c9f932004-04-07 03:57:35 +000017765fi
17766
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017767 { echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
17768echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6; }
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017769if test "${ac_cv_lib_soname_freetype+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771else
17772 ac_get_soname_save_LIBS=$LIBS
17773LIBS="-lfreetype $X_LIBS $LIBS"
17774 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017781/* Override any GCC internal prototype to avoid an error.
17782 Use char because int might match the return type of a GCC
17783 builtin and then its argument prototype would still apply. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017784#ifdef __cplusplus
17785extern "C"
17786#endif
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017787char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017788int
17789main ()
17790{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017791return FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017792 ;
17793 return 0;
17794}
17795_ACEOF
17796rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017797if { (ac_try="$ac_link"
17798case "(($ac_try" in
17799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17800 *) ac_try_echo=$ac_try;;
17801esac
17802eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17803 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017804 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017805 grep -v '^ *+' conftest.er1 >conftest.err
17806 rm -f conftest.er1
17807 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17811 { (case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17814esac
17815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017821 { (case "(($ac_try" in
17822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17824esac
17825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017830 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.$LIBEXT | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017831 if test "x$ac_cv_lib_soname_freetype" = "x"
17832 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017833 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017834 fi
17835else
17836 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017837sed 's/^/| /' conftest.$ac_ext >&5
17838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017839 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017840fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017841
Jeremy White0ebeb532006-06-20 13:18:41 +020017842rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017843 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017844 LIBS=$ac_get_soname_save_LIBS
17845fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017846{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
17847echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017848if test "${ac_cv_lib_soname_freetype+set}" = set; then
17849
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017850cat >>confdefs.h <<_ACEOF
17851#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
17852_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017853
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017854fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000017855
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017856 { echo "$as_me:$LINENO: checking for -lGL soname" >&5
17857echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6; }
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017858if test "${ac_cv_lib_soname_GL+set}" = set; then
17859 echo $ECHO_N "(cached) $ECHO_C" >&6
17860else
17861 ac_get_soname_save_LIBS=$LIBS
17862LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
17863 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017864/* confdefs.h. */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017869
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017870/* Override any GCC internal prototype to avoid an error.
17871 Use char because int might match the return type of a GCC
17872 builtin and then its argument prototype would still apply. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017873#ifdef __cplusplus
17874extern "C"
17875#endif
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017876char glXQueryExtension ();
17877int
17878main ()
17879{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017880return glXQueryExtension ();
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017881 ;
17882 return 0;
17883}
17884_ACEOF
17885rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017886if { (ac_try="$ac_link"
17887case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17890esac
17891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_link") 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017893 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17900 { (case "(($ac_try" in
17901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17902 *) ac_try_echo=$ac_try;;
17903esac
17904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17905 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017910 { (case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17913esac
17914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_try") 2>&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017916 ac_status=$?
17917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17918 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000017919 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.$LIBEXT | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017920 if test "x$ac_cv_lib_soname_GL" = "x"
17921 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000017922 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017923 fi
17924else
17925 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017926sed 's/^/| /' conftest.$ac_ext >&5
17927
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017928 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017929fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017930
Jeremy White0ebeb532006-06-20 13:18:41 +020017931rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000017932 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017933 LIBS=$ac_get_soname_save_LIBS
17934fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017935{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
17936echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017937if test "${ac_cv_lib_soname_GL+set}" = set; then
17938
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017939cat >>confdefs.h <<_ACEOF
17940#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
17941_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010017942
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017943fi
17944
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017945 { echo "$as_me:$LINENO: checking for -ldbus-1 soname" >&5
17946echo $ECHO_N "checking for -ldbus-1 soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020017947if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949else
17950 ac_get_soname_save_LIBS=$LIBS
17951LIBS="-ldbus-1 $LIBS"
17952 cat >conftest.$ac_ext <<_ACEOF
17953/* confdefs.h. */
17954_ACEOF
17955cat confdefs.h >>conftest.$ac_ext
17956cat >>conftest.$ac_ext <<_ACEOF
17957/* end confdefs.h. */
17958
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017959/* Override any GCC internal prototype to avoid an error.
17960 Use char because int might match the return type of a GCC
17961 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020017962#ifdef __cplusplus
17963extern "C"
17964#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020017965char dbus_error_init ();
17966int
17967main ()
17968{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017969return dbus_error_init ();
Alexandre Julliard00068982006-04-18 16:47:53 +020017970 ;
17971 return 0;
17972}
17973_ACEOF
17974rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020017975if { (ac_try="$ac_link"
17976case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17979esac
17980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020017982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020017988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17992esac
17993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020017995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020017999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18002esac
18003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018005 ac_status=$?
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_lib_soname_dbus_1=`$ac_cv_path_LDD conftest$ac_exeext | grep libdbus-1\\.$LIBEXT | sed -e "s/^.*\(libdbus-1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18009 if test "x$ac_cv_lib_soname_dbus_1" = "x"
18010 then
18011 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
18012 fi
18013else
18014 echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018017 ac_cv_lib_soname_dbus_1="libdbus-1.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020018018fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018019
Jeremy White0ebeb532006-06-20 13:18:41 +020018020rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020018021 conftest$ac_exeext conftest.$ac_ext
18022 LIBS=$ac_get_soname_save_LIBS
18023fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018024{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_dbus_1" >&5
18025echo "${ECHO_T}$ac_cv_lib_soname_dbus_1" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018026if test "${ac_cv_lib_soname_dbus_1+set}" = set; then
18027
18028cat >>confdefs.h <<_ACEOF
18029#define SONAME_LIBDBUS_1 "$ac_cv_lib_soname_dbus_1"
18030_ACEOF
18031
18032fi
18033
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018034 { echo "$as_me:$LINENO: checking for -lhal soname" >&5
18035echo $ECHO_N "checking for -lhal soname... $ECHO_C" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018036if test "${ac_cv_lib_soname_hal+set}" = set; then
18037 echo $ECHO_N "(cached) $ECHO_C" >&6
18038else
18039 ac_get_soname_save_LIBS=$LIBS
18040LIBS="-lhal $LIBS"
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018048/* Override any GCC internal prototype to avoid an error.
18049 Use char because int might match the return type of a GCC
18050 builtin and then its argument prototype would still apply. */
Alexandre Julliard00068982006-04-18 16:47:53 +020018051#ifdef __cplusplus
18052extern "C"
18053#endif
Alexandre Julliard00068982006-04-18 16:47:53 +020018054char libhal_ctx_new ();
18055int
18056main ()
18057{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018058return libhal_ctx_new ();
Alexandre Julliard00068982006-04-18 16:47:53 +020018059 ;
18060 return 0;
18061}
18062_ACEOF
18063rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018064if { (ac_try="$ac_link"
18065case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18068esac
18069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_link") 2>conftest.er1
Alexandre Julliard00068982006-04-18 16:47:53 +020018071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18078 { (case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081esac
18082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18083 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018084 ac_status=$?
18085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086 (exit $ac_status); }; } &&
18087 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018088 { (case "(($ac_try" in
18089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090 *) ac_try_echo=$ac_try;;
18091esac
18092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093 (eval "$ac_try") 2>&5
Alexandre Julliard00068982006-04-18 16:47:53 +020018094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
18097 ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep libhal\\.$LIBEXT | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
18098 if test "x$ac_cv_lib_soname_hal" = "x"
18099 then
18100 ac_cv_lib_soname_hal="libhal.$LIBEXT"
18101 fi
18102else
18103 echo "$as_me: failed program was:" >&5
18104sed 's/^/| /' conftest.$ac_ext >&5
18105
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018106 ac_cv_lib_soname_hal="libhal.$LIBEXT"
Alexandre Julliard00068982006-04-18 16:47:53 +020018107fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018108
Jeremy White0ebeb532006-06-20 13:18:41 +020018109rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard00068982006-04-18 16:47:53 +020018110 conftest$ac_exeext conftest.$ac_ext
18111 LIBS=$ac_get_soname_save_LIBS
18112fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018113{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_hal" >&5
18114echo "${ECHO_T}$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliard00068982006-04-18 16:47:53 +020018115if test "${ac_cv_lib_soname_hal+set}" = set; then
18116
18117cat >>confdefs.h <<_ACEOF
18118#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
18119_ACEOF
18120
18121fi
18122
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018123 { echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
18124echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6; }
Christian Costaeac96b52004-07-30 18:54:32 +000018125if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128 ac_get_soname_save_LIBS=$LIBS
18129LIBS="-ltxc_dxtn $LIBS"
18130 cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018137/* Override any GCC internal prototype to avoid an error.
18138 Use char because int might match the return type of a GCC
18139 builtin and then its argument prototype would still apply. */
Christian Costaeac96b52004-07-30 18:54:32 +000018140#ifdef __cplusplus
18141extern "C"
18142#endif
Christian Costaeac96b52004-07-30 18:54:32 +000018143char fetch_2d_texel_rgba_dxt1 ();
18144int
18145main ()
18146{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018147return fetch_2d_texel_rgba_dxt1 ();
Christian Costaeac96b52004-07-30 18:54:32 +000018148 ;
18149 return 0;
18150}
18151_ACEOF
18152rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018153if { (ac_try="$ac_link"
18154case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157esac
18158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_link") 2>conftest.er1
Christian Costaeac96b52004-07-30 18:54:32 +000018160 ac_status=$?
18161 grep -v '^ *+' conftest.er1 >conftest.err
18162 rm -f conftest.er1
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18167 { (case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18170esac
18171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000018173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018177 { (case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180esac
18181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_try") 2>&5
Christian Costaeac96b52004-07-30 18:54:32 +000018183 ac_status=$?
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018186 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed -e "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Christian Costaeac96b52004-07-30 18:54:32 +000018187 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
18188 then
18189 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
18190 fi
18191else
18192 echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018195 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
Christian Costaeac96b52004-07-30 18:54:32 +000018196fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018197
Jeremy White0ebeb532006-06-20 13:18:41 +020018198rm -f core conftest.err conftest.$ac_objext \
Christian Costaeac96b52004-07-30 18:54:32 +000018199 conftest$ac_exeext conftest.$ac_ext
18200 LIBS=$ac_get_soname_save_LIBS
18201fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018202{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
18203echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018204if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
18205
Christian Costaeac96b52004-07-30 18:54:32 +000018206cat >>confdefs.h <<_ACEOF
18207#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
18208_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018209
Christian Costaeac96b52004-07-30 18:54:32 +000018210fi
18211
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018212 { echo "$as_me:$LINENO: checking for -lcups soname" >&5
18213echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6; }
Marcus Meissnerf061f762002-11-12 02:22:24 +000018214if test "${ac_cv_lib_soname_cups+set}" = set; then
18215 echo $ECHO_N "(cached) $ECHO_C" >&6
18216else
18217 ac_get_soname_save_LIBS=$LIBS
18218LIBS="-lcups $LIBS"
18219 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018220/* confdefs.h. */
18221_ACEOF
18222cat confdefs.h >>conftest.$ac_ext
18223cat >>conftest.$ac_ext <<_ACEOF
18224/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000018225
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018226/* Override any GCC internal prototype to avoid an error.
18227 Use char because int might match the return type of a GCC
18228 builtin and then its argument prototype would still apply. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000018229#ifdef __cplusplus
18230extern "C"
18231#endif
Marcus Meissnerf061f762002-11-12 02:22:24 +000018232char cupsGetDefault ();
18233int
18234main ()
18235{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018236return cupsGetDefault ();
Marcus Meissnerf061f762002-11-12 02:22:24 +000018237 ;
18238 return 0;
18239}
18240_ACEOF
18241rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018242if { (ac_try="$ac_link"
18243case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18246esac
18247eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_link") 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000018249 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000018253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259esac
18260eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18261 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018262 ac_status=$?
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); }; } &&
18265 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018266 { (case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18269esac
18270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_try") 2>&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000018272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018275 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.$LIBEXT | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissnerf061f762002-11-12 02:22:24 +000018276 if test "x$ac_cv_lib_soname_cups" = "x"
18277 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018278 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000018279 fi
18280else
18281 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018282sed 's/^/| /' conftest.$ac_ext >&5
18283
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018284 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000018285fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018286
Jeremy White0ebeb532006-06-20 13:18:41 +020018287rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018288 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000018289 LIBS=$ac_get_soname_save_LIBS
18290fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018291{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
18292echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018293if test "${ac_cv_lib_soname_cups+set}" = set; then
18294
Marcus Meissnerf061f762002-11-12 02:22:24 +000018295cat >>confdefs.h <<_ACEOF
18296#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
18297_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018298
Marcus Meissnerf061f762002-11-12 02:22:24 +000018299fi
Chris Morgan4691b182002-12-13 02:26:18 +000018300
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018301 { echo "$as_me:$LINENO: checking for -ljack soname" >&5
18302echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6; }
Chris Morgan4691b182002-12-13 02:26:18 +000018303if test "${ac_cv_lib_soname_jack+set}" = set; then
18304 echo $ECHO_N "(cached) $ECHO_C" >&6
18305else
18306 ac_get_soname_save_LIBS=$LIBS
18307LIBS="-ljack $LIBS"
18308 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000018314
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018315/* Override any GCC internal prototype to avoid an error.
18316 Use char because int might match the return type of a GCC
18317 builtin and then its argument prototype would still apply. */
Chris Morgan4691b182002-12-13 02:26:18 +000018318#ifdef __cplusplus
18319extern "C"
18320#endif
Chris Morgan4691b182002-12-13 02:26:18 +000018321char jack_client_new ();
18322int
18323main ()
18324{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018325return jack_client_new ();
Chris Morgan4691b182002-12-13 02:26:18 +000018326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018331if { (ac_try="$ac_link"
18332case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18335esac
18336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_link") 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000018338 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018339 grep -v '^ *+' conftest.er1 >conftest.err
18340 rm -f conftest.er1
18341 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000018342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345 { (case "(($ac_try" in
18346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18348esac
18349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018355 { (case "(($ac_try" in
18356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357 *) ac_try_echo=$ac_try;;
18358esac
18359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_try") 2>&5
Chris Morgan4691b182002-12-13 02:26:18 +000018361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018364 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.$LIBEXT | sed -e "s/^.*\(libjack\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Chris Morgan4691b182002-12-13 02:26:18 +000018365 if test "x$ac_cv_lib_soname_jack" = "x"
18366 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018367 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000018368 fi
18369else
18370 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018371sed 's/^/| /' conftest.$ac_ext >&5
18372
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018373 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000018374fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018375
Jeremy White0ebeb532006-06-20 13:18:41 +020018376rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018377 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000018378 LIBS=$ac_get_soname_save_LIBS
18379fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018380{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
18381echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018382if test "${ac_cv_lib_soname_jack+set}" = set; then
18383
Chris Morgan4691b182002-12-13 02:26:18 +000018384cat >>confdefs.h <<_ACEOF
18385#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
18386_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018387
Chris Morgan4691b182002-12-13 02:26:18 +000018388fi
David Hammerton852c7ae2003-06-20 23:26:56 +000018389
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018390 { echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
18391echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6; }
Huw Davies6e128072003-11-09 00:30:13 +000018392if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18393 echo $ECHO_N "(cached) $ECHO_C" >&6
18394else
18395 ac_get_soname_save_LIBS=$LIBS
18396LIBS="-lfontconfig $LIBS"
18397 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000018398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
18403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018404/* Override any GCC internal prototype to avoid an error.
18405 Use char because int might match the return type of a GCC
18406 builtin and then its argument prototype would still apply. */
Huw Davies6e128072003-11-09 00:30:13 +000018407#ifdef __cplusplus
18408extern "C"
18409#endif
Huw Davies6e128072003-11-09 00:30:13 +000018410char FcInit ();
18411int
18412main ()
18413{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018414return FcInit ();
Huw Davies6e128072003-11-09 00:30:13 +000018415 ;
18416 return 0;
18417}
18418_ACEOF
18419rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018420if { (ac_try="$ac_link"
18421case "(($ac_try" in
18422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18423 *) ac_try_echo=$ac_try;;
18424esac
18425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18426 (eval "$ac_link") 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000018427 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000018431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18434 { (case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437esac
18438eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018440 ac_status=$?
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); }; } &&
18443 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018444 { (case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18447esac
18448eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_try") 2>&5
Huw Davies6e128072003-11-09 00:30:13 +000018450 ac_status=$?
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018453 ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep libfontconfig\\.$LIBEXT | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Davies6e128072003-11-09 00:30:13 +000018454 if test "x$ac_cv_lib_soname_fontconfig" = "x"
18455 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018456 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000018457 fi
18458else
18459 echo "$as_me: failed program was:" >&5
18460sed 's/^/| /' conftest.$ac_ext >&5
18461
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018462 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000018463fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018464
Jeremy White0ebeb532006-06-20 13:18:41 +020018465rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018466 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000018467 LIBS=$ac_get_soname_save_LIBS
18468fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018469{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
18470echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018471if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
18472
Huw Davies6e128072003-11-09 00:30:13 +000018473cat >>confdefs.h <<_ACEOF
18474#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
18475_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018476
Alexandre Julliard79994692003-11-13 20:58:55 +000018477fi
Huw Davies6e128072003-11-09 00:30:13 +000018478
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018479 { echo "$as_me:$LINENO: checking for -lssl soname" >&5
18480echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000018481if test "${ac_cv_lib_soname_ssl+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18483else
18484 ac_get_soname_save_LIBS=$LIBS
18485LIBS="-lssl $LIBS"
18486 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000018487/* confdefs.h. */
18488_ACEOF
18489cat confdefs.h >>conftest.$ac_ext
18490cat >>conftest.$ac_ext <<_ACEOF
18491/* end confdefs.h. */
18492
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018493/* Override any GCC internal prototype to avoid an error.
18494 Use char because int might match the return type of a GCC
18495 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000018496#ifdef __cplusplus
18497extern "C"
18498#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000018499char SSL_library_init ();
18500int
18501main ()
18502{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018503return SSL_library_init ();
David Hammerton852c7ae2003-06-20 23:26:56 +000018504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018509if { (ac_try="$ac_link"
18510case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18513esac
18514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000018516 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18523 { (case "(($ac_try" in
18524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18525 *) ac_try_echo=$ac_try;;
18526esac
18527eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18528 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018529 ac_status=$?
18530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18531 (exit $ac_status); }; } &&
18532 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018533 { (case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18536esac
18537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018539 ac_status=$?
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018542 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.$LIBEXT | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
David Hammerton852c7ae2003-06-20 23:26:56 +000018543 if test "x$ac_cv_lib_soname_ssl" = "x"
18544 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018545 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018546 fi
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018551 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018552fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018553
Jeremy White0ebeb532006-06-20 13:18:41 +020018554rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018555 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000018556 LIBS=$ac_get_soname_save_LIBS
18557fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018558{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
18559echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018560if test "${ac_cv_lib_soname_ssl+set}" = set; then
18561
David Hammerton852c7ae2003-06-20 23:26:56 +000018562cat >>confdefs.h <<_ACEOF
18563#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
18564_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018565
David Hammerton852c7ae2003-06-20 23:26:56 +000018566fi
18567
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018568 { echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
18569echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6; }
David Hammerton852c7ae2003-06-20 23:26:56 +000018570if test "${ac_cv_lib_soname_crypto+set}" = set; then
18571 echo $ECHO_N "(cached) $ECHO_C" >&6
18572else
18573 ac_get_soname_save_LIBS=$LIBS
18574LIBS="-lcrypto $LIBS"
18575 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000018576/* confdefs.h. */
18577_ACEOF
18578cat confdefs.h >>conftest.$ac_ext
18579cat >>conftest.$ac_ext <<_ACEOF
18580/* end confdefs.h. */
18581
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018582/* Override any GCC internal prototype to avoid an error.
18583 Use char because int might match the return type of a GCC
18584 builtin and then its argument prototype would still apply. */
David Hammerton852c7ae2003-06-20 23:26:56 +000018585#ifdef __cplusplus
18586extern "C"
18587#endif
David Hammerton852c7ae2003-06-20 23:26:56 +000018588char BIO_new_socket ();
18589int
18590main ()
18591{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018592return BIO_new_socket ();
David Hammerton852c7ae2003-06-20 23:26:56 +000018593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018598if { (ac_try="$ac_link"
18599case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18602esac
18603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_link") 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000018605 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018606 grep -v '^ *+' conftest.er1 >conftest.err
18607 rm -f conftest.er1
18608 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18612 { (case "(($ac_try" in
18613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614 *) ac_try_echo=$ac_try;;
18615esac
18616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018618 ac_status=$?
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); }; } &&
18621 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018622 { (case "(($ac_try" in
18623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18624 *) ac_try_echo=$ac_try;;
18625esac
18626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18627 (eval "$ac_try") 2>&5
David Hammerton852c7ae2003-06-20 23:26:56 +000018628 ac_status=$?
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018631 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.$LIBEXT | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
David Hammerton852c7ae2003-06-20 23:26:56 +000018632 if test "x$ac_cv_lib_soname_crypto" = "x"
18633 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018634 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018635 fi
18636else
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018640 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000018641fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018642
Jeremy White0ebeb532006-06-20 13:18:41 +020018643rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018644 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000018645 LIBS=$ac_get_soname_save_LIBS
18646fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018647{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
18648echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018649if test "${ac_cv_lib_soname_crypto+set}" = set; then
18650
David Hammerton852c7ae2003-06-20 23:26:56 +000018651cat >>confdefs.h <<_ACEOF
18652#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
18653_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018654
David Hammerton852c7ae2003-06-20 23:26:56 +000018655fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000018656
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018657 { echo "$as_me:$LINENO: checking for -lncurses soname" >&5
18658echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000018659if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661else
18662 ac_get_soname_save_LIBS=$LIBS
18663LIBS="-lncurses $LIBS"
18664 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000018665/* confdefs.h. */
18666_ACEOF
18667cat confdefs.h >>conftest.$ac_ext
18668cat >>conftest.$ac_ext <<_ACEOF
18669/* end confdefs.h. */
18670
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018671/* Override any GCC internal prototype to avoid an error.
18672 Use char because int might match the return type of a GCC
18673 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000018674#ifdef __cplusplus
18675extern "C"
18676#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000018677char waddch ();
18678int
18679main ()
18680{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018681return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000018682 ;
18683 return 0;
18684}
18685_ACEOF
18686rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018687if { (ac_try="$ac_link"
18688case "(($ac_try" in
18689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690 *) ac_try_echo=$ac_try;;
18691esac
18692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018694 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18704esac
18705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018707 ac_status=$?
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; } &&
18710 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018711 { (case "(($ac_try" in
18712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18713 *) ac_try_echo=$ac_try;;
18714esac
18715eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18716 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018720 ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep libncurses\\.$LIBEXT | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormack9557d1b2003-08-20 04:19:01 +000018721 if test "x$ac_cv_lib_soname_ncurses" = "x"
18722 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018723 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018724 fi
18725else
18726 echo "$as_me: failed program was:" >&5
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018729 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018730fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018731
Jeremy White0ebeb532006-06-20 13:18:41 +020018732rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018733 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018734 LIBS=$ac_get_soname_save_LIBS
18735fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018736{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
18737echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018738if test "${ac_cv_lib_soname_ncurses+set}" = set; then
18739
Mike McCormack9557d1b2003-08-20 04:19:01 +000018740cat >>confdefs.h <<_ACEOF
18741#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
18742_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018743
Mike McCormack9557d1b2003-08-20 04:19:01 +000018744fi
18745
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018746 { echo "$as_me:$LINENO: checking for -lcurses soname" >&5
18747echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6; }
Mike McCormack9557d1b2003-08-20 04:19:01 +000018748if test "${ac_cv_lib_soname_curses+set}" = set; then
18749 echo $ECHO_N "(cached) $ECHO_C" >&6
18750else
18751 ac_get_soname_save_LIBS=$LIBS
18752LIBS="-lcurses $LIBS"
18753 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000018754/* confdefs.h. */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h. */
18759
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018760/* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
Mike McCormack9557d1b2003-08-20 04:19:01 +000018763#ifdef __cplusplus
18764extern "C"
18765#endif
Mike McCormack9557d1b2003-08-20 04:19:01 +000018766char waddch ();
18767int
18768main ()
18769{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018770return waddch ();
Mike McCormack9557d1b2003-08-20 04:19:01 +000018771 ;
18772 return 0;
18773}
18774_ACEOF
18775rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018776if { (ac_try="$ac_link"
18777case "(($ac_try" in
18778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18779 *) ac_try_echo=$ac_try;;
18780esac
18781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18782 (eval "$ac_link") 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000018783 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018784 grep -v '^ *+' conftest.er1 >conftest.err
18785 rm -f conftest.er1
18786 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018789 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18790 { (case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18793esac
18794eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; } &&
18799 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018800 { (case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18803esac
18804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_try") 2>&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000018806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018809 ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep libcurses\\.$LIBEXT | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Mike McCormack9557d1b2003-08-20 04:19:01 +000018810 if test "x$ac_cv_lib_soname_curses" = "x"
18811 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000018812 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018813 fi
18814else
18815 echo "$as_me: failed program was:" >&5
18816sed 's/^/| /' conftest.$ac_ext >&5
18817
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018818 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000018819fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018820
Jeremy White0ebeb532006-06-20 13:18:41 +020018821rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000018822 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000018823 LIBS=$ac_get_soname_save_LIBS
18824fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018825{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
18826echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018827if test "${ac_cv_lib_soname_curses+set}" = set; then
18828
Mike McCormack9557d1b2003-08-20 04:19:01 +000018829cat >>confdefs.h <<_ACEOF
18830#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
18831_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018832
Mike McCormack9557d1b2003-08-20 04:19:01 +000018833fi
Huw Daviese82dfab2004-08-04 19:10:26 +000018834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018835 { echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
18836echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000018837if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839else
18840 ac_get_soname_save_LIBS=$LIBS
18841LIBS="-ljpeg $LIBS"
18842 cat >conftest.$ac_ext <<_ACEOF
18843/* confdefs.h. */
18844_ACEOF
18845cat confdefs.h >>conftest.$ac_ext
18846cat >>conftest.$ac_ext <<_ACEOF
18847/* end confdefs.h. */
18848
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018849/* Override any GCC internal prototype to avoid an error.
18850 Use char because int might match the return type of a GCC
18851 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000018852#ifdef __cplusplus
18853extern "C"
18854#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000018855char jpeg_start_decompress ();
18856int
18857main ()
18858{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018859return jpeg_start_decompress ();
Huw Daviese82dfab2004-08-04 19:10:26 +000018860 ;
18861 return 0;
18862}
18863_ACEOF
18864rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018865if { (ac_try="$ac_link"
18866case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18869esac
18870eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000018872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18882esac
18883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018889 { (case "(($ac_try" in
18890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891 *) ac_try_echo=$ac_try;;
18892esac
18893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018895 ac_status=$?
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018898 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Daviese82dfab2004-08-04 19:10:26 +000018899 if test "x$ac_cv_lib_soname_jpeg" = "x"
18900 then
18901 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
18902 fi
18903else
18904 echo "$as_me: failed program was:" >&5
18905sed 's/^/| /' conftest.$ac_ext >&5
18906
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018907 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000018908fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018909
Jeremy White0ebeb532006-06-20 13:18:41 +020018910rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000018911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_get_soname_save_LIBS
18913fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018914{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
18915echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018916if test "${ac_cv_lib_soname_jpeg+set}" = set; then
18917
Huw Daviese82dfab2004-08-04 19:10:26 +000018918cat >>confdefs.h <<_ACEOF
18919#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
18920_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010018921
Huw Daviese82dfab2004-08-04 19:10:26 +000018922fi
18923
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018924 { echo "$as_me:$LINENO: checking for -lungif soname" >&5
18925echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6; }
Huw Daviese82dfab2004-08-04 19:10:26 +000018926if test "${ac_cv_lib_soname_ungif+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928else
18929 ac_get_soname_save_LIBS=$LIBS
18930LIBS="-lungif $LIBS"
18931 cat >conftest.$ac_ext <<_ACEOF
18932/* confdefs.h. */
18933_ACEOF
18934cat confdefs.h >>conftest.$ac_ext
18935cat >>conftest.$ac_ext <<_ACEOF
18936/* end confdefs.h. */
18937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018938/* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
Huw Daviese82dfab2004-08-04 19:10:26 +000018941#ifdef __cplusplus
18942extern "C"
18943#endif
Huw Daviese82dfab2004-08-04 19:10:26 +000018944char DGifOpen ();
18945int
18946main ()
18947{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018948return DGifOpen ();
Huw Daviese82dfab2004-08-04 19:10:26 +000018949 ;
18950 return 0;
18951}
18952_ACEOF
18953rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020018954if { (ac_try="$ac_link"
18955case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18958esac
18959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_link") 2>conftest.er1
Huw Daviese82dfab2004-08-04 19:10:26 +000018961 ac_status=$?
18962 grep -v '^ *+' conftest.er1 >conftest.err
18963 rm -f conftest.er1
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18966 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020018967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18968 { (case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971esac
18972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18973 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; } &&
18977 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020018978 { (case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18981esac
18982eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_try") 2>&5
Huw Daviese82dfab2004-08-04 19:10:26 +000018984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000018987 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed -e "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Huw Daviese82dfab2004-08-04 19:10:26 +000018988 if test "x$ac_cv_lib_soname_ungif" = "x"
18989 then
18990 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
18991 fi
18992else
18993 echo "$as_me: failed program was:" >&5
18994sed 's/^/| /' conftest.$ac_ext >&5
18995
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018996 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
Huw Daviese82dfab2004-08-04 19:10:26 +000018997fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020018998
Jeremy White0ebeb532006-06-20 13:18:41 +020018999rm -f core conftest.err conftest.$ac_objext \
Huw Daviese82dfab2004-08-04 19:10:26 +000019000 conftest$ac_exeext conftest.$ac_ext
19001 LIBS=$ac_get_soname_save_LIBS
19002fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019003{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
19004echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019005if test "${ac_cv_lib_soname_ungif+set}" = set; then
19006
Huw Daviese82dfab2004-08-04 19:10:26 +000019007cat >>confdefs.h <<_ACEOF
19008#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
19009_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019010
Huw Daviese82dfab2004-08-04 19:10:26 +000019011fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019012
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019013 { echo "$as_me:$LINENO: checking for -lgif soname" >&5
19014echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6; }
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019015if test "${ac_cv_lib_soname_gif+set}" = set; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018 ac_get_soname_save_LIBS=$LIBS
19019LIBS="-lgif $LIBS"
19020 cat >conftest.$ac_ext <<_ACEOF
19021/* confdefs.h. */
19022_ACEOF
19023cat confdefs.h >>conftest.$ac_ext
19024cat >>conftest.$ac_ext <<_ACEOF
19025/* end confdefs.h. */
19026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019027/* Override any GCC internal prototype to avoid an error.
19028 Use char because int might match the return type of a GCC
19029 builtin and then its argument prototype would still apply. */
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019030#ifdef __cplusplus
19031extern "C"
19032#endif
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019033char DGifOpen ();
19034int
19035main ()
19036{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019037return DGifOpen ();
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019038 ;
19039 return 0;
19040}
19041_ACEOF
19042rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019043if { (ac_try="$ac_link"
19044case "(($ac_try" in
19045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19046 *) ac_try_echo=$ac_try;;
19047esac
19048eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19049 (eval "$ac_link") 2>conftest.er1
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19057 { (case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19060esac
19061eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019063 ac_status=$?
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; } &&
19066 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019067 { (case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19070esac
19071eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_try") 2>&5
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019076 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed -e "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019077 if test "x$ac_cv_lib_soname_gif" = "x"
19078 then
19079 ac_cv_lib_soname_gif="libgif.$LIBEXT"
19080 fi
19081else
19082 echo "$as_me: failed program was:" >&5
19083sed 's/^/| /' conftest.$ac_ext >&5
19084
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019085 ac_cv_lib_soname_gif="libgif.$LIBEXT"
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019086fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019087
Jeremy White0ebeb532006-06-20 13:18:41 +020019088rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019089 conftest$ac_exeext conftest.$ac_ext
19090 LIBS=$ac_get_soname_save_LIBS
19091fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019092{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
19093echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019094if test "${ac_cv_lib_soname_gif+set}" = set; then
19095
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019096cat >>confdefs.h <<_ACEOF
19097#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
19098_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019099
Marcus Meissner00cf13a2004-09-14 19:27:58 +000019100fi
Hans Leidekker081b2502004-10-07 19:12:41 +000019101
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019102 { echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
19103echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6; }
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019104if test "${ac_cv_lib_soname_capi20+set}" = set; then
19105 echo $ECHO_N "(cached) $ECHO_C" >&6
19106else
19107 ac_get_soname_save_LIBS=$LIBS
19108LIBS="-lcapi20 $LIBS"
19109 cat >conftest.$ac_ext <<_ACEOF
19110/* confdefs.h. */
19111_ACEOF
19112cat confdefs.h >>conftest.$ac_ext
19113cat >>conftest.$ac_ext <<_ACEOF
19114/* end confdefs.h. */
19115
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019116/* Override any GCC internal prototype to avoid an error.
19117 Use char because int might match the return type of a GCC
19118 builtin and then its argument prototype would still apply. */
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019119#ifdef __cplusplus
19120extern "C"
19121#endif
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019122char capi20_isinstalled ();
19123int
19124main ()
19125{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019126return capi20_isinstalled ();
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019127 ;
19128 return 0;
19129}
19130_ACEOF
19131rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019132if { (ac_try="$ac_link"
19133case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19136esac
19137eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019139 ac_status=$?
19140 grep -v '^ *+' conftest.er1 >conftest.err
19141 rm -f conftest.er1
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19144 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19146 { (case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19149esac
19150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19151 (eval "$ac_try") 2>&5
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019156 { (case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19159esac
19160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_try") 2>&5
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; }; then
Marcus Meissner049b5942005-10-27 10:22:13 +000019165 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'`
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019166 if test "x$ac_cv_lib_soname_capi20" = "x"
19167 then
19168 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
19169 fi
19170else
19171 echo "$as_me: failed program was:" >&5
19172sed 's/^/| /' conftest.$ac_ext >&5
19173
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019174 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019175fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019176
Jeremy White0ebeb532006-06-20 13:18:41 +020019177rm -f core conftest.err conftest.$ac_objext \
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019178 conftest$ac_exeext conftest.$ac_ext
19179 LIBS=$ac_get_soname_save_LIBS
19180fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019181{ echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
19182echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019183if test "${ac_cv_lib_soname_capi20+set}" = set; then
19184
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019185cat >>confdefs.h <<_ACEOF
19186#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
19187_ACEOF
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019188
Marcus Meissner67d3afb2005-01-07 15:33:02 +000019189fi
Alexandre Julliard30de3e82006-03-10 21:24:05 +010019190
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000019191fi
19192
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019193
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000019194
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
Steven Edwardsb9627c12002-05-05 21:03:44 +000019237
19238
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019239
19240
Alexandre Julliard142dab82002-07-01 18:17:30 +000019241
Patrik Stridvall6caeb722002-11-25 21:12:26 +000019242
19243
19244
Pavel Roskin7add08a2003-09-24 18:54:40 +000019245
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000019246
Alexandre Julliarde2930742004-01-08 05:07:05 +000019247
Alexandre Julliard13af4892004-03-05 21:03:46 +000019248
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000019249
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000019250
19251
Alexandre Julliard969f57c2004-09-23 04:48:24 +000019252
Paul Millar10a6c562004-12-07 17:19:54 +000019253
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000019254
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000019255
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010019256
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010019257
Alexandre Julliard9603ee02006-04-06 11:57:37 +020019258
Paul Millardf10b7d2006-07-16 15:06:28 +010019259
Alexandre Julliardc8278922006-08-04 22:11:00 +020019260
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019261for ac_func in \
19262 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000019263 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019264 _pclose \
19265 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019266 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000019267 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019268 _stricmp \
19269 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000019270 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010019271 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019272 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019273 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000019274 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000019275 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000019276 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000019277 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000019278 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000019279 fstatfs \
19280 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019281 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000019282 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000019283 futimesat \
Marcus Meissner7a6fdea2005-11-17 12:58:35 +000019284 getaddrinfo \
Hans Leidekkerc0e6bb22006-02-20 14:16:38 +010019285 getnameinfo \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019286 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000019287 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019288 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019289 getprotobyname \
19290 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000019291 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019292 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000019293 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000019294 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000019295 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019296 inet_network \
Alexandre Julliardc8278922006-08-04 22:11:00 +020019297 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000019298 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019299 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000019300 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019301 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000019302 popen \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020019303 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000019304 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000019305 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000019306 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019307 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000019308 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019309 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019310 sendmsg \
Paul Millardf10b7d2006-07-16 15:06:28 +010019311 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019312 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019313 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000019314 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000019315 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000019316 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000019317 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000019318 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000019319 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019320 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000019321 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019322 tcgetattr \
19323 timegm \
19324 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000019325 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019326 wait4 \
19327 waitpid \
19328
19329do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019331{ echo "$as_me:$LINENO: checking for $ac_func" >&5
19332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19333if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019334 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019335else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019336 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019337/* confdefs.h. */
19338_ACEOF
19339cat confdefs.h >>conftest.$ac_ext
19340cat >>conftest.$ac_ext <<_ACEOF
19341/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000019342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19344#define $ac_func innocuous_$ac_func
19345
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019346/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019347 which can conflict with char $ac_func (); below.
19348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19349 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000019350
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019351#ifdef __STDC__
19352# include <limits.h>
19353#else
19354# include <assert.h>
19355#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000019356
19357#undef $ac_func
19358
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019359/* Override any GCC internal prototype to avoid an error.
19360 Use char because int might match the return type of a GCC
19361 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019362#ifdef __cplusplus
19363extern "C"
19364#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019365char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019366/* The GNU C library defines this for functions which it implements
19367 to always fail with ENOSYS. Some functions are actually named
19368 something starting with __ and the normal name is an alias. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019369#if defined __stub_$ac_func || defined __stub___$ac_func
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019370choke me
Patrik Stridvall1bb94031999-05-08 15:47:44 +000019371#endif
19372
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019373int
19374main ()
19375{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019376return $ac_func ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019377 ;
19378 return 0;
19379}
19380_ACEOF
19381rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020019382if { (ac_try="$ac_link"
19383case "(($ac_try" in
19384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19385 *) ac_try_echo=$ac_try;;
19386esac
19387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19388 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019389 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019390 grep -v '^ *+' conftest.er1 >conftest.err
19391 rm -f conftest.er1
19392 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019394 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19396 { (case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19399esac
19400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019402 ac_status=$?
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); }; } &&
19405 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019406 { (case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409esac
19410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019412 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019414 (exit $ac_status); }; }; then
19415 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019416else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019417 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019418sed 's/^/| /' conftest.$ac_ext >&5
19419
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019420 eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019421fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019422
Jeremy White0ebeb532006-06-20 13:18:41 +020019423rm -f core conftest.err conftest.$ac_objext \
Alexandre Julliard875927f2004-01-02 01:55:29 +000019424 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019425fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019426ac_res=`eval echo '${'$as_ac_var'}'`
19427 { echo "$as_me:$LINENO: result: $ac_res" >&5
19428echo "${ECHO_T}$ac_res" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019429if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019430 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019431#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019432_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000019433
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019434fi
19435done
19436
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019437
19438
19439
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019440{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19441echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019442if test "${ac_cv_c_const+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444else
19445 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019446/* confdefs.h. */
19447_ACEOF
19448cat confdefs.h >>conftest.$ac_ext
19449cat >>conftest.$ac_ext <<_ACEOF
19450/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019451
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019452int
19453main ()
19454{
19455/* FIXME: Include the comments suggested by Paul. */
19456#ifndef __cplusplus
19457 /* Ultrix mips cc rejects this. */
19458 typedef int charset[2];
19459 const charset x;
19460 /* SunOS 4.1.1 cc rejects this. */
19461 char const *const *ccp;
19462 char **p;
19463 /* NEC SVR4.0.2 mips cc rejects this. */
19464 struct point {int x, y;};
19465 static struct point const zero = {0,0};
19466 /* AIX XL C 1.02.0.0 rejects this.
19467 It does not let you subtract one const X* pointer from another in
19468 an arm of an if-expression whose if-part is not a constant
19469 expression */
19470 const char *g = "string";
19471 ccp = &g + (g ? g-g : 0);
19472 /* HPUX 7.0 cc rejects these. */
19473 ++ccp;
19474 p = (char**) ccp;
19475 ccp = (char const *const *) p;
19476 { /* SCO 3.2v4 cc rejects this. */
19477 char *t;
19478 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019479
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019480 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019481 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019482 }
19483 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19484 int x[] = {25, 17};
19485 const int *foo = &x[0];
19486 ++foo;
19487 }
19488 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19489 typedef const int *iptr;
19490 iptr p = 0;
19491 ++p;
19492 }
19493 { /* AIX XL C 1.02.0.0 rejects this saying
19494 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19495 struct s { int j; const int *ap[3]; };
19496 struct s *b; b->j = 5;
19497 }
19498 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19499 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019500 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019501 }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019502 return !x[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019503#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019504
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019505 ;
19506 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019507}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019508_ACEOF
19509rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019510if { (ac_try="$ac_compile"
19511case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514esac
19515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019517 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019522 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019523 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527esac
19528eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019534 { (case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19537esac
19538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019540 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019542 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019543 ac_cv_c_const=yes
19544else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019545 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019546sed 's/^/| /' conftest.$ac_ext >&5
19547
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019548 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019549fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019550
Jeremy White0ebeb532006-06-20 13:18:41 +020019551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019552fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019553{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19554echo "${ECHO_T}$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019555if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019556
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019557cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019558#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019559_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019560
19561fi
19562
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019563{ echo "$as_me:$LINENO: checking for inline" >&5
19564echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019565if test "${ac_cv_c_inline+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019567else
19568 ac_cv_c_inline=no
19569for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019570 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019571/* confdefs.h. */
19572_ACEOF
19573cat confdefs.h >>conftest.$ac_ext
19574cat >>conftest.$ac_ext <<_ACEOF
19575/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019576#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000019577typedef int foo_t;
19578static $ac_kw foo_t static_foo () {return 0; }
19579$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019580#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019581
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019582_ACEOF
19583rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019584if { (ac_try="$ac_compile"
19585case "(($ac_try" in
19586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19587 *) ac_try_echo=$ac_try;;
19588esac
19589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19590 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019591 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019592 grep -v '^ *+' conftest.er1 >conftest.err
19593 rm -f conftest.er1
19594 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019596 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19598 { (case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19603 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019604 ac_status=$?
19605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19606 (exit $ac_status); }; } &&
19607 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019608 { (case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19611esac
19612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019614 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019616 (exit $ac_status); }; }; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019617 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019618else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019619 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019620sed 's/^/| /' conftest.$ac_ext >&5
19621
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019622
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019623fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019624
Jeremy White0ebeb532006-06-20 13:18:41 +020019625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019626 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019627done
19628
19629fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019630{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
19631echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000019632
19633
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019634case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019635 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000019636 *)
19637 case $ac_cv_c_inline in
19638 no) ac_val=;;
19639 *) ac_val=$ac_cv_c_inline;;
19640 esac
19641 cat >>confdefs.h <<_ACEOF
19642#ifndef __cplusplus
19643#define inline $ac_val
19644#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019645_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000019646 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000019647esac
19648
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019649{ echo "$as_me:$LINENO: checking for mode_t" >&5
19650echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019651if test "${ac_cv_type_mode_t+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653else
19654 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019660$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019661typedef mode_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019662int
19663main ()
19664{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019665if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019666 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019667if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019668 return 0;
19669 ;
19670 return 0;
19671}
19672_ACEOF
19673rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019674if { (ac_try="$ac_compile"
19675case "(($ac_try" in
19676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677 *) ac_try_echo=$ac_try;;
19678esac
19679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019681 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019686 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19688 { (case "(($ac_try" in
19689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19690 *) ac_try_echo=$ac_try;;
19691esac
19692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19693 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019698 { (case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701esac
19702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019704 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019706 (exit $ac_status); }; }; then
19707 ac_cv_type_mode_t=yes
19708else
19709 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019710sed 's/^/| /' conftest.$ac_ext >&5
19711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019712 ac_cv_type_mode_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019713fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019714
Jeremy White0ebeb532006-06-20 13:18:41 +020019715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019716fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019717{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
19718echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019719if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019720
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019721cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019722#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019723_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019724
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019725
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019726fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019727{ echo "$as_me:$LINENO: checking for off_t" >&5
19728echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019729if test "${ac_cv_type_off_t+set}" = set; then
19730 echo $ECHO_N "(cached) $ECHO_C" >&6
19731else
19732 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019733/* confdefs.h. */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
19737/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019738$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019739typedef off_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019740int
19741main ()
19742{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019743if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019744 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019745if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019746 return 0;
19747 ;
19748 return 0;
19749}
19750_ACEOF
19751rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019752if { (ac_try="$ac_compile"
19753case "(($ac_try" in
19754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19756esac
19757eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019759 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019764 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768 *) ac_try_echo=$ac_try;;
19769esac
19770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019772 ac_status=$?
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019776 { (case "(($ac_try" in
19777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19779esac
19780eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019782 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019784 (exit $ac_status); }; }; then
19785 ac_cv_type_off_t=yes
19786else
19787 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019788sed 's/^/| /' conftest.$ac_ext >&5
19789
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019790 ac_cv_type_off_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019791fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019792
Jeremy White0ebeb532006-06-20 13:18:41 +020019793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019794fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019795{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
19796echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019797if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019798
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019799cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019800#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019801_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019802
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019803
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019804fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019805{ echo "$as_me:$LINENO: checking for pid_t" >&5
19806echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019807if test "${ac_cv_type_pid_t+set}" = set; then
19808 echo $ECHO_N "(cached) $ECHO_C" >&6
19809else
19810 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019811/* confdefs.h. */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019816$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019817typedef pid_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019818int
19819main ()
19820{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019821if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019822 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019823if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019824 return 0;
19825 ;
19826 return 0;
19827}
19828_ACEOF
19829rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019830if { (ac_try="$ac_compile"
19831case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834esac
19835eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019837 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019842 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019843 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19844 { (case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19847esac
19848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; } &&
19853 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019854 { (case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857esac
19858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019860 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019862 (exit $ac_status); }; }; then
19863 ac_cv_type_pid_t=yes
19864else
19865 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019866sed 's/^/| /' conftest.$ac_ext >&5
19867
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019868 ac_cv_type_pid_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019869fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019870
Jeremy White0ebeb532006-06-20 13:18:41 +020019871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019872fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019873{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19874echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019875if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019876
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019877cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019878#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019879_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019880
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019881
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019882fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019883{ echo "$as_me:$LINENO: checking for size_t" >&5
19884echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019885if test "${ac_cv_type_size_t+set}" = set; then
19886 echo $ECHO_N "(cached) $ECHO_C" >&6
19887else
19888 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019889/* confdefs.h. */
19890_ACEOF
19891cat confdefs.h >>conftest.$ac_ext
19892cat >>conftest.$ac_ext <<_ACEOF
19893/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019894$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019895typedef size_t ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019896int
19897main ()
19898{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019899if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019900 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019901if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019902 return 0;
19903 ;
19904 return 0;
19905}
19906_ACEOF
19907rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019908if { (ac_try="$ac_compile"
19909case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19912esac
19913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019915 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019916 grep -v '^ *+' conftest.er1 >conftest.err
19917 rm -f conftest.er1
19918 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019920 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19922 { (case "(($ac_try" in
19923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924 *) ac_try_echo=$ac_try;;
19925esac
19926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19927 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020019932 { (case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935esac
19936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019938 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019940 (exit $ac_status); }; }; then
19941 ac_cv_type_size_t=yes
19942else
19943 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019944sed 's/^/| /' conftest.$ac_ext >&5
19945
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019946 ac_cv_type_size_t=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019947fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019948
Jeremy White0ebeb532006-06-20 13:18:41 +020019949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019950fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019951{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19952echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019953if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019954
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019955cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019956#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019957_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000019958
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019959
19960fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019961{ echo "$as_me:$LINENO: checking for ssize_t" >&5
19962echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019963if test "${ac_cv_type_ssize_t+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019972$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019973typedef ssize_t ac__type_new_;
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019974int
19975main ()
19976{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019977if ((ac__type_new_ *) 0)
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019978 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020019979if (sizeof (ac__type_new_))
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019980 return 0;
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020019986if { (ac_try="$ac_compile"
19987case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19990esac
19991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019993 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000019997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020019999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20000 { (case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003esac
20004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; } &&
20009 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020010 { (case "(($ac_try" in
20011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20012 *) ac_try_echo=$ac_try;;
20013esac
20014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20015 (eval "$ac_try") 2>&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; }; then
20019 ac_cv_type_ssize_t=yes
20020else
20021 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020022sed 's/^/| /' conftest.$ac_ext >&5
20023
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020024 ac_cv_type_ssize_t=no
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020025fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020026
Jeremy White0ebeb532006-06-20 13:18:41 +020020027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020028fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020029{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
20030echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000020031if test $ac_cv_type_ssize_t = yes; then
20032
20033cat >>confdefs.h <<_ACEOF
20034#define HAVE_SSIZE_T 1
20035_ACEOF
20036
20037
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020038fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020039{ echo "$as_me:$LINENO: checking for long long" >&5
20040echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020041if test "${ac_cv_type_long_long+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
20043else
20044 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020050$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020051typedef long long ac__type_new_;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020052int
20053main ()
20054{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020055if ((ac__type_new_ *) 0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020056 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020057if (sizeof (ac__type_new_))
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020058 return 0;
20059 ;
20060 return 0;
20061}
20062_ACEOF
20063rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020064if { (ac_try="$ac_compile"
20065case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20068esac
20069eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020071 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020072 grep -v '^ *+' conftest.er1 >conftest.err
20073 rm -f conftest.er1
20074 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020076 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20078 { (case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081esac
20082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20083 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020084 ac_status=$?
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020088 { (case "(($ac_try" in
20089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090 *) ac_try_echo=$ac_try;;
20091esac
20092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020094 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020096 (exit $ac_status); }; }; then
20097 ac_cv_type_long_long=yes
20098else
20099 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020100sed 's/^/| /' conftest.$ac_ext >&5
20101
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020102 ac_cv_type_long_long=no
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020103fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020104
Jeremy White0ebeb532006-06-20 13:18:41 +020020105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020106fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020107{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20108echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020109if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020110
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020111cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020112#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020113_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000020114
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020115
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020116fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020117{ echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
20118echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020119if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
20120 echo $ECHO_N "(cached) $ECHO_C" >&6
20121else
20122 cat >conftest.$ac_ext <<_ACEOF
20123/* confdefs.h. */
20124_ACEOF
20125cat confdefs.h >>conftest.$ac_ext
20126cat >>conftest.$ac_ext <<_ACEOF
20127/* end confdefs.h. */
20128$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020129typedef fsblkcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020130int
20131main ()
20132{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020133if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020134 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020135if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020136 return 0;
20137 ;
20138 return 0;
20139}
20140_ACEOF
20141rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020142if { (ac_try="$ac_compile"
20143case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20146esac
20147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20156 { (case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20159esac
20160eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; } &&
20165 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020166 { (case "(($ac_try" in
20167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168 *) ac_try_echo=$ac_try;;
20169esac
20170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; }; then
20175 ac_cv_type_fsblkcnt_t=yes
20176else
20177 echo "$as_me: failed program was:" >&5
20178sed 's/^/| /' conftest.$ac_ext >&5
20179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020180 ac_cv_type_fsblkcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020181fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020182
Jeremy White0ebeb532006-06-20 13:18:41 +020020183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020184fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020185{ echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
20186echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020187if test $ac_cv_type_fsblkcnt_t = yes; then
20188
20189cat >>confdefs.h <<_ACEOF
20190#define HAVE_FSBLKCNT_T 1
20191_ACEOF
20192
20193
20194fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020195{ echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
20196echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020197if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
20198 echo $ECHO_N "(cached) $ECHO_C" >&6
20199else
20200 cat >conftest.$ac_ext <<_ACEOF
20201/* confdefs.h. */
20202_ACEOF
20203cat confdefs.h >>conftest.$ac_ext
20204cat >>conftest.$ac_ext <<_ACEOF
20205/* end confdefs.h. */
20206$ac_includes_default
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020207typedef fsfilcnt_t ac__type_new_;
Alexandre Julliard13af4892004-03-05 21:03:46 +000020208int
20209main ()
20210{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020211if ((ac__type_new_ *) 0)
Alexandre Julliard13af4892004-03-05 21:03:46 +000020212 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020213if (sizeof (ac__type_new_))
Alexandre Julliard13af4892004-03-05 21:03:46 +000020214 return 0;
20215 ;
20216 return 0;
20217}
20218_ACEOF
20219rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020220if { (ac_try="$ac_compile"
20221case "(($ac_try" in
20222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20223 *) ac_try_echo=$ac_try;;
20224esac
20225eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20226 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000020227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20234 { (case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20237esac
20238eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020240 ac_status=$?
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; } &&
20243 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020244 { (case "(($ac_try" in
20245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20246 *) ac_try_echo=$ac_try;;
20247esac
20248eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20249 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000020250 ac_status=$?
20251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); }; }; then
20253 ac_cv_type_fsfilcnt_t=yes
20254else
20255 echo "$as_me: failed program was:" >&5
20256sed 's/^/| /' conftest.$ac_ext >&5
20257
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020258 ac_cv_type_fsfilcnt_t=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000020259fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020260
Jeremy White0ebeb532006-06-20 13:18:41 +020020261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000020262fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020263{ echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
20264echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000020265if test $ac_cv_type_fsfilcnt_t = yes; then
20266
20267cat >>confdefs.h <<_ACEOF
20268#define HAVE_FSFILCNT_T 1
20269_ACEOF
20270
20271
20272fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000020273
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020274{ echo "$as_me:$LINENO: checking for sigset_t" >&5
20275echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020276if test "${ac_cv_type_sigset_t+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278else
20279 cat >conftest.$ac_ext <<_ACEOF
20280/* confdefs.h. */
20281_ACEOF
20282cat confdefs.h >>conftest.$ac_ext
20283cat >>conftest.$ac_ext <<_ACEOF
20284/* end confdefs.h. */
20285#include <signal.h>
20286
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020287typedef sigset_t ac__type_new_;
Paul Millar10a6c562004-12-07 17:19:54 +000020288int
20289main ()
20290{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020291if ((ac__type_new_ *) 0)
Paul Millar10a6c562004-12-07 17:19:54 +000020292 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020293if (sizeof (ac__type_new_))
Paul Millar10a6c562004-12-07 17:19:54 +000020294 return 0;
20295 ;
20296 return 0;
20297}
20298_ACEOF
20299rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020300if { (ac_try="$ac_compile"
20301case "(($ac_try" in
20302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20303 *) ac_try_echo=$ac_try;;
20304esac
20305eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20306 (eval "$ac_compile") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020307 ac_status=$?
20308 grep -v '^ *+' conftest.er1 >conftest.err
20309 rm -f conftest.er1
20310 cat conftest.err >&5
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20314 { (case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317esac
20318eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; } &&
20323 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020324 { (case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20329 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020330 ac_status=$?
20331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20332 (exit $ac_status); }; }; then
20333 ac_cv_type_sigset_t=yes
20334else
20335 echo "$as_me: failed program was:" >&5
20336sed 's/^/| /' conftest.$ac_ext >&5
20337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020338 ac_cv_type_sigset_t=no
Paul Millar10a6c562004-12-07 17:19:54 +000020339fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020340
Jeremy White0ebeb532006-06-20 13:18:41 +020020341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000020342fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020343{ echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
20344echo "${ECHO_T}$ac_cv_type_sigset_t" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020345if test $ac_cv_type_sigset_t = yes; then
20346
20347cat >>confdefs.h <<_ACEOF
20348#define HAVE_SIGSET_T 1
20349_ACEOF
20350
20351
20352fi
20353
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020354{ echo "$as_me:$LINENO: checking for request_sense" >&5
20355echo $ECHO_N "checking for request_sense... $ECHO_C" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020356if test "${ac_cv_type_request_sense+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20358else
20359 cat >conftest.$ac_ext <<_ACEOF
20360/* confdefs.h. */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h. */
20365#include <linux/cdrom.h>
20366
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020367typedef request_sense ac__type_new_;
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020368int
20369main ()
20370{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020371if ((ac__type_new_ *) 0)
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020372 return 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020373if (sizeof (ac__type_new_))
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020374 return 0;
20375 ;
20376 return 0;
20377}
20378_ACEOF
20379rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020380if { (ac_try="$ac_compile"
20381case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20384esac
20385eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020387 ac_status=$?
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20394 { (case "(($ac_try" in
20395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396 *) ac_try_echo=$ac_try;;
20397esac
20398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020400 ac_status=$?
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); }; } &&
20403 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020404 { (case "(($ac_try" in
20405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20406 *) ac_try_echo=$ac_try;;
20407esac
20408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20409 (eval "$ac_try") 2>&5
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 ac_cv_type_request_sense=yes
20414else
20415 echo "$as_me: failed program was:" >&5
20416sed 's/^/| /' conftest.$ac_ext >&5
20417
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020418 ac_cv_type_request_sense=no
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020419fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020420
Jeremy White0ebeb532006-06-20 13:18:41 +020020421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020422fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020423{ echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
20424echo "${ECHO_T}$ac_cv_type_request_sense" >&6; }
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000020425if test $ac_cv_type_request_sense = yes; then
20426
20427cat >>confdefs.h <<_ACEOF
20428#define HAVE_REQUEST_SENSE 1
20429_ACEOF
20430
20431
20432fi
20433
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020434
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020435{ echo "$as_me:$LINENO: checking for struct ff_effect.direction" >&5
20436echo $ECHO_N "checking for struct ff_effect.direction... $ECHO_C" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020437if test "${ac_cv_member_struct_ff_effect_direction+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20439else
20440 cat >conftest.$ac_ext <<_ACEOF
20441/* confdefs.h. */
20442_ACEOF
20443cat confdefs.h >>conftest.$ac_ext
20444cat >>conftest.$ac_ext <<_ACEOF
20445/* end confdefs.h. */
20446#ifdef HAVE_LINUX_INPUT_H
20447#include <linux/input.h>
20448#endif
20449
20450int
20451main ()
20452{
20453static struct ff_effect ac_aggr;
20454if (ac_aggr.direction)
20455return 0;
20456 ;
20457 return 0;
20458}
20459_ACEOF
20460rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020461if { (ac_try="$ac_compile"
20462case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465esac
20466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20475 { (case "(($ac_try" in
20476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20477 *) ac_try_echo=$ac_try;;
20478esac
20479eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20480 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020481 ac_status=$?
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); }; } &&
20484 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020485 { (case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20488esac
20489eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_member_struct_ff_effect_direction=yes
20495else
20496 echo "$as_me: failed program was:" >&5
20497sed 's/^/| /' conftest.$ac_ext >&5
20498
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020499 cat >conftest.$ac_ext <<_ACEOF
Daniel Remenake491e8f2005-07-29 14:18:58 +000020500/* confdefs.h. */
20501_ACEOF
20502cat confdefs.h >>conftest.$ac_ext
20503cat >>conftest.$ac_ext <<_ACEOF
20504/* end confdefs.h. */
20505#ifdef HAVE_LINUX_INPUT_H
20506#include <linux/input.h>
20507#endif
20508
20509int
20510main ()
20511{
20512static struct ff_effect ac_aggr;
20513if (sizeof ac_aggr.direction)
20514return 0;
20515 ;
20516 return 0;
20517}
20518_ACEOF
20519rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020520if { (ac_try="$ac_compile"
20521case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524esac
20525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_compile") 2>conftest.er1
Daniel Remenake491e8f2005-07-29 14:18:58 +000020527 ac_status=$?
20528 grep -v '^ *+' conftest.er1 >conftest.err
20529 rm -f conftest.er1
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534 { (case "(($ac_try" in
20535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536 *) ac_try_echo=$ac_try;;
20537esac
20538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020540 ac_status=$?
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); }; } &&
20543 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020544 { (case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20547esac
20548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_try") 2>&5
Daniel Remenake491e8f2005-07-29 14:18:58 +000020550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; }; then
20553 ac_cv_member_struct_ff_effect_direction=yes
20554else
20555 echo "$as_me: failed program was:" >&5
20556sed 's/^/| /' conftest.$ac_ext >&5
20557
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020558 ac_cv_member_struct_ff_effect_direction=no
Daniel Remenake491e8f2005-07-29 14:18:58 +000020559fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020560
Jeremy White0ebeb532006-06-20 13:18:41 +020020561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020562fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020563
Jeremy White0ebeb532006-06-20 13:18:41 +020020564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Daniel Remenake491e8f2005-07-29 14:18:58 +000020565fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020566{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_ff_effect_direction" >&5
20567echo "${ECHO_T}$ac_cv_member_struct_ff_effect_direction" >&6; }
Daniel Remenake491e8f2005-07-29 14:18:58 +000020568if test $ac_cv_member_struct_ff_effect_direction = yes; then
20569
20570cat >>confdefs.h <<_ACEOF
20571#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
20572_ACEOF
20573
20574
20575fi
20576
20577
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020578{ echo "$as_me:$LINENO: checking for sigaddset" >&5
20579echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020580if test "${wine_cv_have_sigaddset+set}" = set; then
20581 echo $ECHO_N "(cached) $ECHO_C" >&6
20582else
20583 cat >conftest.$ac_ext <<_ACEOF
20584/* confdefs.h. */
20585_ACEOF
20586cat confdefs.h >>conftest.$ac_ext
20587cat >>conftest.$ac_ext <<_ACEOF
20588/* end confdefs.h. */
20589#include <signal.h>
20590int
20591main ()
20592{
20593sigset_t set; sigaddset(&set,SIGTERM);
20594 ;
20595 return 0;
20596}
20597_ACEOF
20598rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020599if { (ac_try="$ac_link"
20600case "(($ac_try" in
20601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20602 *) ac_try_echo=$ac_try;;
20603esac
20604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20605 (eval "$ac_link") 2>conftest.er1
Paul Millar10a6c562004-12-07 17:19:54 +000020606 ac_status=$?
20607 grep -v '^ *+' conftest.er1 >conftest.err
20608 rm -f conftest.er1
20609 cat conftest.err >&5
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20616esac
20617eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; } &&
20622 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020623 { (case "(($ac_try" in
20624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20625 *) ac_try_echo=$ac_try;;
20626esac
20627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20628 (eval "$ac_try") 2>&5
Paul Millar10a6c562004-12-07 17:19:54 +000020629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 wine_cv_have_sigaddset=yes
20633else
20634 echo "$as_me: failed program was:" >&5
20635sed 's/^/| /' conftest.$ac_ext >&5
20636
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020637 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000020638fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020639
Jeremy White0ebeb532006-06-20 13:18:41 +020020640rm -f core conftest.err conftest.$ac_objext \
Paul Millar10a6c562004-12-07 17:19:54 +000020641 conftest$ac_exeext conftest.$ac_ext
20642fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020643{ echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
20644echo "${ECHO_T}$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000020645if test "$wine_cv_have_sigaddset" = "yes"
20646then
20647
20648cat >>confdefs.h <<\_ACEOF
20649#define HAVE_SIGADDSET 1
20650_ACEOF
20651
20652fi
20653
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020654
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020655{ echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
20656echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020657if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000020659else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020660 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020661/* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000020666
20667#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020668
20669int
20670main ()
20671{
Rein Klazesff7a61f2000-09-24 19:41:57 +000020672
20673 char *name=NULL;
20674 struct hostent he;
20675 struct hostent *result;
20676 char *buf=NULL;
20677 int bufsize=0;
20678 int res,errnr;
20679 char *addr=NULL;
20680 int addrlen=0;
20681 int addrtype=0;
20682 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
20683 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020684
20685 ;
20686 return 0;
20687}
20688_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020689rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020020690if { (ac_try="$ac_link"
20691case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694esac
20695eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_link") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020697 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020702 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20704 { (case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20707esac
20708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020713 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020714 { (case "(($ac_try" in
20715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20716 *) ac_try_echo=$ac_try;;
20717esac
20718eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20719 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020720 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020722 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000020723 wine_cv_linux_gethostbyname_r_6=yes
20724else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020725 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020726sed 's/^/| /' conftest.$ac_ext >&5
20727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020728 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000020729
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020730fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020731
Jeremy White0ebeb532006-06-20 13:18:41 +020020732rm -f core conftest.err conftest.$ac_objext \
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000020733 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020734
20735fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020736{ echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
20737echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000020738 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
20739 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020740
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020741cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020742#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020743_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000020744
20745 fi
20746
Marcus Meissner028e9a11999-08-04 15:07:56 +000020747if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020748then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020749 { echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
20750echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020751if test "${wine_cv_linux_joystick_22_api+set}" = set; then
20752 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020753else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020754 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020755/* confdefs.h. */
20756_ACEOF
20757cat confdefs.h >>conftest.$ac_ext
20758cat >>conftest.$ac_ext <<_ACEOF
20759/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020760
Marcus Meissner028e9a11999-08-04 15:07:56 +000020761 #include <sys/ioctl.h>
20762 #include <linux/joystick.h>
20763
20764 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000020765 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
20766 #error "no 2.2 header"
20767 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020768
20769int
20770main ()
20771{
Marcus Meissner028e9a11999-08-04 15:07:56 +000020772/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020773 ;
20774 return 0;
20775}
20776_ACEOF
20777rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020778if { (ac_try="$ac_compile"
20779case "(($ac_try" in
20780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781 *) ac_try_echo=$ac_try;;
20782esac
20783eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20784 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020785 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020790 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20792 { (case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20795esac
20796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020798 ac_status=$?
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); }; } &&
20801 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020802 { (case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805esac
20806eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020808 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020810 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000020811 wine_cv_linux_joystick_22_api=yes
20812else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020813 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020814sed 's/^/| /' conftest.$ac_ext >&5
20815
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020816 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000020817fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020818
Jeremy White0ebeb532006-06-20 13:18:41 +020020819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000020820
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020821fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020822{ echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
20823echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000020824 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000020825 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020826
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020827cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020828#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020829_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000020830
20831 fi
20832fi
20833
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020835{ echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
20836echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020837if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020838 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020839else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020840 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020841/* confdefs.h. */
20842_ACEOF
20843cat confdefs.h >>conftest.$ac_ext
20844cat >>conftest.$ac_ext <<_ACEOF
20845/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020846#include <sys/types.h>
20847#ifdef HAVE_SYS_PARAM_H
20848# include <sys/param.h>
20849#endif
Robert Millan55b74482006-02-06 21:53:27 +010020850#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020851# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020852#endif
20853#ifdef HAVE_SYS_VFS_H
20854# include <sys/vfs.h>
20855#endif
20856#ifdef HAVE_SYS_STATFS_H
20857# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020858#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020859
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020860int
20861main ()
20862{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020863static struct statfs ac_aggr;
20864if (ac_aggr.f_bfree)
20865return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020866 ;
20867 return 0;
20868}
20869_ACEOF
20870rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020871if { (ac_try="$ac_compile"
20872case "(($ac_try" in
20873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20874 *) ac_try_echo=$ac_try;;
20875esac
20876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20877 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020878 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020879 grep -v '^ *+' conftest.er1 >conftest.err
20880 rm -f conftest.er1
20881 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020883 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20885 { (case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888esac
20889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020891 ac_status=$?
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; } &&
20894 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020895 { (case "(($ac_try" in
20896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20897 *) ac_try_echo=$ac_try;;
20898esac
20899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20900 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020901 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020903 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020904 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020905else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020906 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020907sed 's/^/| /' conftest.$ac_ext >&5
20908
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020909 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020910/* confdefs.h. */
20911_ACEOF
20912cat confdefs.h >>conftest.$ac_ext
20913cat >>conftest.$ac_ext <<_ACEOF
20914/* end confdefs.h. */
20915#include <sys/types.h>
20916#ifdef HAVE_SYS_PARAM_H
20917# include <sys/param.h>
20918#endif
Robert Millan55b74482006-02-06 21:53:27 +010020919#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020920# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010020921#endif
20922#ifdef HAVE_SYS_VFS_H
20923# include <sys/vfs.h>
20924#endif
20925#ifdef HAVE_SYS_STATFS_H
20926# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020927#endif
20928
20929int
20930main ()
20931{
20932static struct statfs ac_aggr;
20933if (sizeof ac_aggr.f_bfree)
20934return 0;
20935 ;
20936 return 0;
20937}
20938_ACEOF
20939rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020020940if { (ac_try="$ac_compile"
20941case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20944esac
20945eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020947 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000020948 grep -v '^ *+' conftest.er1 >conftest.err
20949 rm -f conftest.er1
20950 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020020953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20954 { (case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20957esac
20958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000020960 ac_status=$?
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; } &&
20963 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020020964 { (case "(($ac_try" in
20965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20966 *) ac_try_echo=$ac_try;;
20967esac
20968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20969 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020970 ac_status=$?
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); }; }; then
20973 ac_cv_member_struct_statfs_f_bfree=yes
20974else
20975 echo "$as_me: failed program was:" >&5
20976sed 's/^/| /' conftest.$ac_ext >&5
20977
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020978 ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020979fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020980
Jeremy White0ebeb532006-06-20 13:18:41 +020020981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020982fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020983
Jeremy White0ebeb532006-06-20 13:18:41 +020020984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020985fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020986{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
20987echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020988if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020989
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020990cat >>confdefs.h <<_ACEOF
20991#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020992_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020993
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020994
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000020995fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020020996{ echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
20997echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000020998if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020999 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000021000else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021001 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021007#include <sys/types.h>
21008#ifdef HAVE_SYS_PARAM_H
21009# include <sys/param.h>
21010#endif
Robert Millan55b74482006-02-06 21:53:27 +010021011#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021012# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021013#endif
21014#ifdef HAVE_SYS_VFS_H
21015# include <sys/vfs.h>
21016#endif
21017#ifdef HAVE_SYS_STATFS_H
21018# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021019#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021020
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021021int
21022main ()
21023{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021024static struct statfs ac_aggr;
21025if (ac_aggr.f_bavail)
21026return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021027 ;
21028 return 0;
21029}
21030_ACEOF
21031rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021032if { (ac_try="$ac_compile"
21033case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036esac
21037eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021039 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021044 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21046 { (case "(($ac_try" in
21047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048 *) ac_try_echo=$ac_try;;
21049esac
21050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; } &&
21055 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021056 { (case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21059esac
21060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021062 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021064 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021065 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000021066else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021067 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021068sed 's/^/| /' conftest.$ac_ext >&5
21069
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021070 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021071/* confdefs.h. */
21072_ACEOF
21073cat confdefs.h >>conftest.$ac_ext
21074cat >>conftest.$ac_ext <<_ACEOF
21075/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000021076#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021077#ifdef HAVE_SYS_PARAM_H
21078# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000021079#endif
Robert Millan55b74482006-02-06 21:53:27 +010021080#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021081# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021082#endif
21083#ifdef HAVE_SYS_VFS_H
21084# include <sys/vfs.h>
21085#endif
21086#ifdef HAVE_SYS_STATFS_H
21087# include <sys/statfs.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021088#endif
21089
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021090int
21091main ()
21092{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021093static struct statfs ac_aggr;
21094if (sizeof ac_aggr.f_bavail)
21095return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021096 ;
21097 return 0;
21098}
21099_ACEOF
21100rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021101if { (ac_try="$ac_compile"
21102case "(($ac_try" in
21103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21104 *) ac_try_echo=$ac_try;;
21105esac
21106eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21107 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021108 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021113 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21115 { (case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21118esac
21119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; } &&
21124 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021125 { (case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21128esac
21129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021131 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021133 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021134 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000021135else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021136 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021137sed 's/^/| /' conftest.$ac_ext >&5
21138
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021139 ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000021140fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021141
Jeremy White0ebeb532006-06-20 13:18:41 +020021142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000021143fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021144
Jeremy White0ebeb532006-06-20 13:18:41 +020021145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000021146fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021147{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
21148echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021149if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000021150
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021151cat >>confdefs.h <<_ACEOF
21152#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021153_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000021154
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021155
Patrik Stridvall09da9662001-07-08 22:30:50 +000021156fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021157{ echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
21158echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021159if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
21160 echo $ECHO_N "(cached) $ECHO_C" >&6
21161else
21162 cat >conftest.$ac_ext <<_ACEOF
21163/* confdefs.h. */
21164_ACEOF
21165cat confdefs.h >>conftest.$ac_ext
21166cat >>conftest.$ac_ext <<_ACEOF
21167/* end confdefs.h. */
21168#include <sys/types.h>
21169#ifdef HAVE_SYS_PARAM_H
21170# include <sys/param.h>
21171#endif
Robert Millan55b74482006-02-06 21:53:27 +010021172#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021173# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021174#endif
21175#ifdef HAVE_SYS_VFS_H
21176# include <sys/vfs.h>
21177#endif
21178#ifdef HAVE_SYS_STATFS_H
21179# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021180#endif
21181
21182int
21183main ()
21184{
21185static struct statfs ac_aggr;
21186if (ac_aggr.f_frsize)
21187return 0;
21188 ;
21189 return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021193if { (ac_try="$ac_compile"
21194case "(($ac_try" in
21195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196 *) ac_try_echo=$ac_try;;
21197esac
21198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021200 ac_status=$?
21201 grep -v '^ *+' conftest.er1 >conftest.err
21202 rm -f conftest.er1
21203 cat conftest.err >&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21207 { (case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21210esac
21211eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021213 ac_status=$?
21214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); }; } &&
21216 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021217 { (case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21220esac
21221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021223 ac_status=$?
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); }; }; then
21226 ac_cv_member_struct_statfs_f_frsize=yes
21227else
21228 echo "$as_me: failed program was:" >&5
21229sed 's/^/| /' conftest.$ac_ext >&5
21230
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021231 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021232/* confdefs.h. */
21233_ACEOF
21234cat confdefs.h >>conftest.$ac_ext
21235cat >>conftest.$ac_ext <<_ACEOF
21236/* end confdefs.h. */
21237#include <sys/types.h>
21238#ifdef HAVE_SYS_PARAM_H
21239# include <sys/param.h>
21240#endif
Robert Millan55b74482006-02-06 21:53:27 +010021241#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021242# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021243#endif
21244#ifdef HAVE_SYS_VFS_H
21245# include <sys/vfs.h>
21246#endif
21247#ifdef HAVE_SYS_STATFS_H
21248# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021249#endif
21250
21251int
21252main ()
21253{
21254static struct statfs ac_aggr;
21255if (sizeof ac_aggr.f_frsize)
21256return 0;
21257 ;
21258 return 0;
21259}
21260_ACEOF
21261rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021262if { (ac_try="$ac_compile"
21263case "(($ac_try" in
21264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265 *) ac_try_echo=$ac_try;;
21266esac
21267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021269 ac_status=$?
21270 grep -v '^ *+' conftest.er1 >conftest.err
21271 rm -f conftest.er1
21272 cat conftest.err >&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21276 { (case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279esac
21280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021282 ac_status=$?
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; } &&
21285 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021286 { (case "(($ac_try" in
21287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288 *) ac_try_echo=$ac_try;;
21289esac
21290eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021292 ac_status=$?
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); }; }; then
21295 ac_cv_member_struct_statfs_f_frsize=yes
21296else
21297 echo "$as_me: failed program was:" >&5
21298sed 's/^/| /' conftest.$ac_ext >&5
21299
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021300 ac_cv_member_struct_statfs_f_frsize=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021301fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021302
Jeremy White0ebeb532006-06-20 13:18:41 +020021303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021304fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021305
Jeremy White0ebeb532006-06-20 13:18:41 +020021306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021307fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021308{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
21309echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021310if test $ac_cv_member_struct_statfs_f_frsize = yes; then
21311
21312cat >>confdefs.h <<_ACEOF
21313#define HAVE_STRUCT_STATFS_F_FRSIZE 1
21314_ACEOF
21315
21316
21317fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021318{ echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
21319echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021320if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
21321 echo $ECHO_N "(cached) $ECHO_C" >&6
21322else
21323 cat >conftest.$ac_ext <<_ACEOF
21324/* confdefs.h. */
21325_ACEOF
21326cat confdefs.h >>conftest.$ac_ext
21327cat >>conftest.$ac_ext <<_ACEOF
21328/* end confdefs.h. */
21329#include <sys/types.h>
21330#ifdef HAVE_SYS_PARAM_H
21331# include <sys/param.h>
21332#endif
Robert Millan55b74482006-02-06 21:53:27 +010021333#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021334# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021335#endif
21336#ifdef HAVE_SYS_VFS_H
21337# include <sys/vfs.h>
21338#endif
21339#ifdef HAVE_SYS_STATFS_H
21340# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021341#endif
21342
21343int
21344main ()
21345{
21346static struct statfs ac_aggr;
21347if (ac_aggr.f_ffree)
21348return 0;
21349 ;
21350 return 0;
21351}
21352_ACEOF
21353rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021354if { (ac_try="$ac_compile"
21355case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358esac
21359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021367 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21368 { (case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21371esac
21372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; } &&
21377 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021378 { (case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381esac
21382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 ac_cv_member_struct_statfs_f_ffree=yes
21388else
21389 echo "$as_me: failed program was:" >&5
21390sed 's/^/| /' conftest.$ac_ext >&5
21391
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021392 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021393/* confdefs.h. */
21394_ACEOF
21395cat confdefs.h >>conftest.$ac_ext
21396cat >>conftest.$ac_ext <<_ACEOF
21397/* end confdefs.h. */
21398#include <sys/types.h>
21399#ifdef HAVE_SYS_PARAM_H
21400# include <sys/param.h>
21401#endif
Robert Millan55b74482006-02-06 21:53:27 +010021402#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021403# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021404#endif
21405#ifdef HAVE_SYS_VFS_H
21406# include <sys/vfs.h>
21407#endif
21408#ifdef HAVE_SYS_STATFS_H
21409# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021410#endif
21411
21412int
21413main ()
21414{
21415static struct statfs ac_aggr;
21416if (sizeof ac_aggr.f_ffree)
21417return 0;
21418 ;
21419 return 0;
21420}
21421_ACEOF
21422rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021423if { (ac_try="$ac_compile"
21424case "(($ac_try" in
21425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426 *) ac_try_echo=$ac_try;;
21427esac
21428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21437 { (case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21440esac
21441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021443 ac_status=$?
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); }; } &&
21446 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021447 { (case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450esac
21451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 ac_cv_member_struct_statfs_f_ffree=yes
21457else
21458 echo "$as_me: failed program was:" >&5
21459sed 's/^/| /' conftest.$ac_ext >&5
21460
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021461 ac_cv_member_struct_statfs_f_ffree=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021462fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021463
Jeremy White0ebeb532006-06-20 13:18:41 +020021464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021465fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021466
Jeremy White0ebeb532006-06-20 13:18:41 +020021467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021468fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021469{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
21470echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021471if test $ac_cv_member_struct_statfs_f_ffree = yes; then
21472
21473cat >>confdefs.h <<_ACEOF
21474#define HAVE_STRUCT_STATFS_F_FFREE 1
21475_ACEOF
21476
21477
21478fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021479{ echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
21480echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021481if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483else
21484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490#include <sys/types.h>
21491#ifdef HAVE_SYS_PARAM_H
21492# include <sys/param.h>
21493#endif
Robert Millan55b74482006-02-06 21:53:27 +010021494#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021495# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021496#endif
21497#ifdef HAVE_SYS_VFS_H
21498# include <sys/vfs.h>
21499#endif
21500#ifdef HAVE_SYS_STATFS_H
21501# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021502#endif
21503
21504int
21505main ()
21506{
21507static struct statfs ac_aggr;
21508if (ac_aggr.f_favail)
21509return 0;
21510 ;
21511 return 0;
21512}
21513_ACEOF
21514rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021515if { (ac_try="$ac_compile"
21516case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21519esac
21520eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021522 ac_status=$?
21523 grep -v '^ *+' conftest.er1 >conftest.err
21524 rm -f conftest.er1
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21529 { (case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21532esac
21533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021539 { (case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21542esac
21543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_member_struct_statfs_f_favail=yes
21549else
21550 echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021553 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021554/* confdefs.h. */
21555_ACEOF
21556cat confdefs.h >>conftest.$ac_ext
21557cat >>conftest.$ac_ext <<_ACEOF
21558/* end confdefs.h. */
21559#include <sys/types.h>
21560#ifdef HAVE_SYS_PARAM_H
21561# include <sys/param.h>
21562#endif
Robert Millan55b74482006-02-06 21:53:27 +010021563#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000021564# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021565#endif
21566#ifdef HAVE_SYS_VFS_H
21567# include <sys/vfs.h>
21568#endif
21569#ifdef HAVE_SYS_STATFS_H
21570# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000021571#endif
21572
21573int
21574main ()
21575{
21576static struct statfs ac_aggr;
21577if (sizeof ac_aggr.f_favail)
21578return 0;
21579 ;
21580 return 0;
21581}
21582_ACEOF
21583rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021584if { (ac_try="$ac_compile"
21585case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21588esac
21589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021591 ac_status=$?
21592 grep -v '^ *+' conftest.er1 >conftest.err
21593 rm -f conftest.er1
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21596 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21598 { (case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21601esac
21602eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021604 ac_status=$?
21605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21606 (exit $ac_status); }; } &&
21607 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021608 { (case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611esac
21612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21613 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); }; }; then
21617 ac_cv_member_struct_statfs_f_favail=yes
21618else
21619 echo "$as_me: failed program was:" >&5
21620sed 's/^/| /' conftest.$ac_ext >&5
21621
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021622 ac_cv_member_struct_statfs_f_favail=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021623fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021624
Jeremy White0ebeb532006-06-20 13:18:41 +020021625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021626fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021627
Jeremy White0ebeb532006-06-20 13:18:41 +020021628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021629fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021630{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
21631echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021632if test $ac_cv_member_struct_statfs_f_favail = yes; then
21633
21634cat >>confdefs.h <<_ACEOF
21635#define HAVE_STRUCT_STATFS_F_FAVAIL 1
21636_ACEOF
21637
21638
21639fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021640{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
21641echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021642if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644else
21645 cat >conftest.$ac_ext <<_ACEOF
21646/* confdefs.h. */
21647_ACEOF
21648cat confdefs.h >>conftest.$ac_ext
21649cat >>conftest.$ac_ext <<_ACEOF
21650/* end confdefs.h. */
21651#include <sys/types.h>
21652#ifdef HAVE_SYS_PARAM_H
21653# include <sys/param.h>
21654#endif
Robert Millan55b74482006-02-06 21:53:27 +010021655#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021656# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021657#endif
21658#ifdef HAVE_SYS_VFS_H
21659# include <sys/vfs.h>
21660#endif
21661#ifdef HAVE_SYS_STATFS_H
21662# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021663#endif
21664
21665int
21666main ()
21667{
21668static struct statfs ac_aggr;
21669if (ac_aggr.f_namelen)
21670return 0;
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021676if { (ac_try="$ac_compile"
21677case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680esac
21681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21690 { (case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21693esac
21694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021700 { (case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703esac
21704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021706 ac_status=$?
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; }; then
21709 ac_cv_member_struct_statfs_f_namelen=yes
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021714 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb859a682004-03-07 03:16:43 +000021715/* confdefs.h. */
21716_ACEOF
21717cat confdefs.h >>conftest.$ac_ext
21718cat >>conftest.$ac_ext <<_ACEOF
21719/* end confdefs.h. */
21720#include <sys/types.h>
21721#ifdef HAVE_SYS_PARAM_H
21722# include <sys/param.h>
21723#endif
Robert Millan55b74482006-02-06 21:53:27 +010021724#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000021725# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010021726#endif
21727#ifdef HAVE_SYS_VFS_H
21728# include <sys/vfs.h>
21729#endif
21730#ifdef HAVE_SYS_STATFS_H
21731# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000021732#endif
21733
21734int
21735main ()
21736{
21737static struct statfs ac_aggr;
21738if (sizeof ac_aggr.f_namelen)
21739return 0;
21740 ;
21741 return 0;
21742}
21743_ACEOF
21744rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021745if { (ac_try="$ac_compile"
21746case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21749esac
21750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardb859a682004-03-07 03:16:43 +000021752 ac_status=$?
21753 grep -v '^ *+' conftest.er1 >conftest.err
21754 rm -f conftest.er1
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21759 { (case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21762esac
21763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021765 ac_status=$?
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; } &&
21768 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021769 { (case "(($ac_try" in
21770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771 *) ac_try_echo=$ac_try;;
21772esac
21773eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774 (eval "$ac_try") 2>&5
Alexandre Julliardb859a682004-03-07 03:16:43 +000021775 ac_status=$?
21776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777 (exit $ac_status); }; }; then
21778 ac_cv_member_struct_statfs_f_namelen=yes
21779else
21780 echo "$as_me: failed program was:" >&5
21781sed 's/^/| /' conftest.$ac_ext >&5
21782
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021783 ac_cv_member_struct_statfs_f_namelen=no
Alexandre Julliardb859a682004-03-07 03:16:43 +000021784fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021785
Jeremy White0ebeb532006-06-20 13:18:41 +020021786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021787fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021788
Jeremy White0ebeb532006-06-20 13:18:41 +020021789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb859a682004-03-07 03:16:43 +000021790fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021791{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
21792echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
Alexandre Julliardb859a682004-03-07 03:16:43 +000021793if test $ac_cv_member_struct_statfs_f_namelen = yes; then
21794
21795cat >>confdefs.h <<_ACEOF
21796#define HAVE_STRUCT_STATFS_F_NAMELEN 1
21797_ACEOF
21798
21799
21800fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000021801
21802
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021803{ echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
21804echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021805if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807else
21808 cat >conftest.$ac_ext <<_ACEOF
21809/* confdefs.h. */
21810_ACEOF
21811cat confdefs.h >>conftest.$ac_ext
21812cat >>conftest.$ac_ext <<_ACEOF
21813/* end confdefs.h. */
21814#ifdef HAVE_SYS_STATVFS_H
21815#include <sys/statvfs.h>
21816#endif
21817
21818int
21819main ()
21820{
21821static struct statvfs ac_aggr;
21822if (ac_aggr.f_blocks)
21823return 0;
21824 ;
21825 return 0;
21826}
21827_ACEOF
21828rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021829if { (ac_try="$ac_compile"
21830case "(($ac_try" in
21831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832 *) ac_try_echo=$ac_try;;
21833esac
21834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021836 ac_status=$?
21837 grep -v '^ *+' conftest.er1 >conftest.err
21838 rm -f conftest.er1
21839 cat conftest.err >&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21843 { (case "(($ac_try" in
21844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845 *) ac_try_echo=$ac_try;;
21846esac
21847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021849 ac_status=$?
21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); }; } &&
21852 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021853 { (case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21856esac
21857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021859 ac_status=$?
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); }; }; then
21862 ac_cv_member_struct_statvfs_f_blocks=yes
21863else
21864 echo "$as_me: failed program was:" >&5
21865sed 's/^/| /' conftest.$ac_ext >&5
21866
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021867 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard13af4892004-03-05 21:03:46 +000021868/* confdefs.h. */
21869_ACEOF
21870cat confdefs.h >>conftest.$ac_ext
21871cat >>conftest.$ac_ext <<_ACEOF
21872/* end confdefs.h. */
21873#ifdef HAVE_SYS_STATVFS_H
21874#include <sys/statvfs.h>
21875#endif
21876
21877int
21878main ()
21879{
21880static struct statvfs ac_aggr;
21881if (sizeof ac_aggr.f_blocks)
21882return 0;
21883 ;
21884 return 0;
21885}
21886_ACEOF
21887rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021888if { (ac_try="$ac_compile"
21889case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21892esac
21893eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard13af4892004-03-05 21:03:46 +000021895 ac_status=$?
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21902 { (case "(($ac_try" in
21903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21904 *) ac_try_echo=$ac_try;;
21905esac
21906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21907 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; } &&
21911 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020021912 { (case "(($ac_try" in
21913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21914 *) ac_try_echo=$ac_try;;
21915esac
21916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21917 (eval "$ac_try") 2>&5
Alexandre Julliard13af4892004-03-05 21:03:46 +000021918 ac_status=$?
21919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); }; }; then
21921 ac_cv_member_struct_statvfs_f_blocks=yes
21922else
21923 echo "$as_me: failed program was:" >&5
21924sed 's/^/| /' conftest.$ac_ext >&5
21925
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021926 ac_cv_member_struct_statvfs_f_blocks=no
Alexandre Julliard13af4892004-03-05 21:03:46 +000021927fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021928
Jeremy White0ebeb532006-06-20 13:18:41 +020021929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021930fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021931
Jeremy White0ebeb532006-06-20 13:18:41 +020021932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard13af4892004-03-05 21:03:46 +000021933fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021934{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
21935echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6; }
Alexandre Julliard13af4892004-03-05 21:03:46 +000021936if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
21937
21938cat >>confdefs.h <<_ACEOF
21939#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
21940_ACEOF
21941
21942
21943fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000021944
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021945
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020021946{ echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
21947echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021948if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021949 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000021950else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021951 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021952/* confdefs.h. */
21953_ACEOF
21954cat confdefs.h >>conftest.$ac_ext
21955cat >>conftest.$ac_ext <<_ACEOF
21956/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000021957#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000021958#ifdef HAVE_SYS_SOCKET_H
21959# include <sys/socket.h>
21960#endif
21961#ifdef HAVE_SYS_UN_H
21962# include <sys/un.h>
21963#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021964
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021965int
21966main ()
21967{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000021968static struct msghdr ac_aggr;
21969if (ac_aggr.msg_accrights)
21970return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021971 ;
21972 return 0;
21973}
21974_ACEOF
21975rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020021976if { (ac_try="$ac_compile"
21977case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21980esac
21981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021983 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000021984 grep -v '^ *+' conftest.er1 >conftest.err
21985 rm -f conftest.er1
21986 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021988 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020021989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21990 { (case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21993esac
21994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000021996 ac_status=$?
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); }; } &&
21999 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022000 { (case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22003esac
22004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_try") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022006 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022008 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022009 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000022010else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022011 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000022012sed 's/^/| /' conftest.$ac_ext >&5
22013
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022014 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022015/* confdefs.h. */
22016_ACEOF
22017cat confdefs.h >>conftest.$ac_ext
22018cat >>conftest.$ac_ext <<_ACEOF
22019/* end confdefs.h. */
22020#include <sys/types.h>
22021#ifdef HAVE_SYS_SOCKET_H
22022# include <sys/socket.h>
22023#endif
22024#ifdef HAVE_SYS_UN_H
22025# include <sys/un.h>
22026#endif
22027
22028int
22029main ()
22030{
22031static struct msghdr ac_aggr;
22032if (sizeof ac_aggr.msg_accrights)
22033return 0;
22034 ;
22035 return 0;
22036}
22037_ACEOF
22038rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022039if { (ac_try="$ac_compile"
22040case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043esac
22044eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22045 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022046 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022047 grep -v '^ *+' conftest.er1 >conftest.err
22048 rm -f conftest.er1
22049 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22053 { (case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056esac
22057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022063 { (case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22066esac
22067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022069 ac_status=$?
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); }; }; then
22072 ac_cv_member_struct_msghdr_msg_accrights=yes
22073else
22074 echo "$as_me: failed program was:" >&5
22075sed 's/^/| /' conftest.$ac_ext >&5
22076
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022077 ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000022078fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022079
Jeremy White0ebeb532006-06-20 13:18:41 +020022080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000022081fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022082
Jeremy White0ebeb532006-06-20 13:18:41 +020022083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022084fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022085{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
22086echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022087if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000022088
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022089cat >>confdefs.h <<_ACEOF
22090#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022091_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000022092
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022093
22094fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022095{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
22096echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022097if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
22098 echo $ECHO_N "(cached) $ECHO_C" >&6
22099else
22100 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022101/* confdefs.h. */
22102_ACEOF
22103cat confdefs.h >>conftest.$ac_ext
22104cat >>conftest.$ac_ext <<_ACEOF
22105/* end confdefs.h. */
22106#include <sys/types.h>
22107#ifdef HAVE_SYS_SOCKET_H
22108# include <sys/socket.h>
22109#endif
22110#ifdef HAVE_SYS_UN_H
22111# include <sys/un.h>
22112#endif
22113
22114int
22115main ()
22116{
22117static struct sockaddr ac_aggr;
22118if (ac_aggr.sa_len)
22119return 0;
22120 ;
22121 return 0;
22122}
22123_ACEOF
22124rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022125if { (ac_try="$ac_compile"
22126case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22129esac
22130eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022132 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022133 grep -v '^ *+' conftest.er1 >conftest.err
22134 rm -f conftest.er1
22135 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22139 { (case "(($ac_try" in
22140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141 *) ac_try_echo=$ac_try;;
22142esac
22143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022145 ac_status=$?
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); }; } &&
22148 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022149 { (case "(($ac_try" in
22150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151 *) ac_try_echo=$ac_try;;
22152esac
22153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_member_struct_sockaddr_sa_len=yes
22159else
22160 echo "$as_me: failed program was:" >&5
22161sed 's/^/| /' conftest.$ac_ext >&5
22162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022163 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022164/* confdefs.h. */
22165_ACEOF
22166cat confdefs.h >>conftest.$ac_ext
22167cat >>conftest.$ac_ext <<_ACEOF
22168/* end confdefs.h. */
22169#include <sys/types.h>
22170#ifdef HAVE_SYS_SOCKET_H
22171# include <sys/socket.h>
22172#endif
22173#ifdef HAVE_SYS_UN_H
22174# include <sys/un.h>
22175#endif
22176
22177int
22178main ()
22179{
22180static struct sockaddr ac_aggr;
22181if (sizeof ac_aggr.sa_len)
22182return 0;
22183 ;
22184 return 0;
22185}
22186_ACEOF
22187rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022188if { (ac_try="$ac_compile"
22189case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192esac
22193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022195 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22202 { (case "(($ac_try" in
22203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22204 *) ac_try_echo=$ac_try;;
22205esac
22206eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22207 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022208 ac_status=$?
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); }; } &&
22211 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022212 { (case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215esac
22216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 ac_cv_member_struct_sockaddr_sa_len=yes
22222else
22223 echo "$as_me: failed program was:" >&5
22224sed 's/^/| /' conftest.$ac_ext >&5
22225
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022226 ac_cv_member_struct_sockaddr_sa_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022227fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022228
Jeremy White0ebeb532006-06-20 13:18:41 +020022229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022230fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022231
Jeremy White0ebeb532006-06-20 13:18:41 +020022232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022233fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022234{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
22235echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022236if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
22237
22238cat >>confdefs.h <<_ACEOF
22239#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
22240_ACEOF
22241
22242
22243fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022244{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
22245echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022246if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248else
22249 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022250/* confdefs.h. */
22251_ACEOF
22252cat confdefs.h >>conftest.$ac_ext
22253cat >>conftest.$ac_ext <<_ACEOF
22254/* end confdefs.h. */
22255#include <sys/types.h>
22256#ifdef HAVE_SYS_SOCKET_H
22257# include <sys/socket.h>
22258#endif
22259#ifdef HAVE_SYS_UN_H
22260# include <sys/un.h>
22261#endif
22262
22263int
22264main ()
22265{
22266static struct sockaddr_un ac_aggr;
22267if (ac_aggr.sun_len)
22268return 0;
22269 ;
22270 return 0;
22271}
22272_ACEOF
22273rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022274if { (ac_try="$ac_compile"
22275case "(($ac_try" in
22276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22277 *) ac_try_echo=$ac_try;;
22278esac
22279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22280 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022281 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22288 { (case "(($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_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; } &&
22297 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022298 { (case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22301esac
22302eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; }; then
22307 ac_cv_member_struct_sockaddr_un_sun_len=yes
22308else
22309 echo "$as_me: failed program was:" >&5
22310sed 's/^/| /' conftest.$ac_ext >&5
22311
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022312 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022313/* confdefs.h. */
22314_ACEOF
22315cat confdefs.h >>conftest.$ac_ext
22316cat >>conftest.$ac_ext <<_ACEOF
22317/* end confdefs.h. */
22318#include <sys/types.h>
22319#ifdef HAVE_SYS_SOCKET_H
22320# include <sys/socket.h>
22321#endif
22322#ifdef HAVE_SYS_UN_H
22323# include <sys/un.h>
22324#endif
22325
22326int
22327main ()
22328{
22329static struct sockaddr_un ac_aggr;
22330if (sizeof ac_aggr.sun_len)
22331return 0;
22332 ;
22333 return 0;
22334}
22335_ACEOF
22336rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022337if { (ac_try="$ac_compile"
22338case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341esac
22342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022344 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22351 { (case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22354esac
22355eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; } &&
22360 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022361 { (case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364esac
22365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022367 ac_status=$?
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); }; }; then
22370 ac_cv_member_struct_sockaddr_un_sun_len=yes
22371else
22372 echo "$as_me: failed program was:" >&5
22373sed 's/^/| /' conftest.$ac_ext >&5
22374
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022375 ac_cv_member_struct_sockaddr_un_sun_len=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022376fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022377
Jeremy White0ebeb532006-06-20 13:18:41 +020022378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022379fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022380
Jeremy White0ebeb532006-06-20 13:18:41 +020022381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022382fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022383{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
22384echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022385if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
22386
22387cat >>confdefs.h <<_ACEOF
22388#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
22389_ACEOF
22390
22391
Juergen Lock2d33ab92000-02-13 16:03:29 +000022392fi
22393
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022394
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022395{ echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
22396echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022397if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
22398 echo $ECHO_N "(cached) $ECHO_C" >&6
22399else
22400 cat >conftest.$ac_ext <<_ACEOF
22401/* confdefs.h. */
22402_ACEOF
22403cat confdefs.h >>conftest.$ac_ext
22404cat >>conftest.$ac_ext <<_ACEOF
22405/* end confdefs.h. */
22406#include <sys/types.h>
22407#ifdef HAVE_SCSI_SG_H
22408#include <scsi/sg.h>
22409#endif
22410
22411int
22412main ()
22413{
22414static scsireq_t ac_aggr;
22415if (ac_aggr.cmd)
22416return 0;
22417 ;
22418 return 0;
22419}
22420_ACEOF
22421rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022422if { (ac_try="$ac_compile"
22423case "(($ac_try" in
22424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425 *) ac_try_echo=$ac_try;;
22426esac
22427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022429 ac_status=$?
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
22433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22436 { (case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22439esac
22440eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); }; } &&
22445 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022446 { (case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449esac
22450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 ac_cv_member_scsireq_t_cmd=yes
22456else
22457 echo "$as_me: failed program was:" >&5
22458sed 's/^/| /' conftest.$ac_ext >&5
22459
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022460 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022461/* confdefs.h. */
22462_ACEOF
22463cat confdefs.h >>conftest.$ac_ext
22464cat >>conftest.$ac_ext <<_ACEOF
22465/* end confdefs.h. */
22466#include <sys/types.h>
22467#ifdef HAVE_SCSI_SG_H
22468#include <scsi/sg.h>
22469#endif
22470
22471int
22472main ()
22473{
22474static scsireq_t ac_aggr;
22475if (sizeof ac_aggr.cmd)
22476return 0;
22477 ;
22478 return 0;
22479}
22480_ACEOF
22481rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022482if { (ac_try="$ac_compile"
22483case "(($ac_try" in
22484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485 *) ac_try_echo=$ac_try;;
22486esac
22487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022489 ac_status=$?
22490 grep -v '^ *+' conftest.er1 >conftest.err
22491 rm -f conftest.er1
22492 cat conftest.err >&5
22493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22494 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22496 { (case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499esac
22500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22501 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022502 ac_status=$?
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); }; } &&
22505 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022506 { (case "(($ac_try" in
22507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22508 *) ac_try_echo=$ac_try;;
22509esac
22510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22511 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022512 ac_status=$?
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); }; }; then
22515 ac_cv_member_scsireq_t_cmd=yes
22516else
22517 echo "$as_me: failed program was:" >&5
22518sed 's/^/| /' conftest.$ac_ext >&5
22519
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022520 ac_cv_member_scsireq_t_cmd=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022521fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022522
Jeremy White0ebeb532006-06-20 13:18:41 +020022523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022524fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022525
Jeremy White0ebeb532006-06-20 13:18:41 +020022526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022527fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022528{ echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
22529echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022530if test $ac_cv_member_scsireq_t_cmd = yes; then
22531
22532cat >>confdefs.h <<_ACEOF
22533#define HAVE_SCSIREQ_T_CMD 1
22534_ACEOF
22535
22536
22537fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022538{ echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
22539echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022540if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
22541 echo $ECHO_N "(cached) $ECHO_C" >&6
22542else
22543 cat >conftest.$ac_ext <<_ACEOF
22544/* confdefs.h. */
22545_ACEOF
22546cat confdefs.h >>conftest.$ac_ext
22547cat >>conftest.$ac_ext <<_ACEOF
22548/* end confdefs.h. */
22549#include <sys/types.h>
22550#ifdef HAVE_SCSI_SG_H
22551#include <scsi/sg.h>
22552#endif
22553
22554int
22555main ()
22556{
22557static sg_io_hdr_t ac_aggr;
22558if (ac_aggr.interface_id)
22559return 0;
22560 ;
22561 return 0;
22562}
22563_ACEOF
22564rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022565if { (ac_try="$ac_compile"
22566case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22569esac
22570eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022572 ac_status=$?
22573 grep -v '^ *+' conftest.er1 >conftest.err
22574 rm -f conftest.er1
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22579 { (case "(($ac_try" in
22580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22581 *) ac_try_echo=$ac_try;;
22582esac
22583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22584 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022585 ac_status=$?
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); }; } &&
22588 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022589 { (case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592esac
22593eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022595 ac_status=$?
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; }; then
22598 ac_cv_member_sg_io_hdr_t_interface_id=yes
22599else
22600 echo "$as_me: failed program was:" >&5
22601sed 's/^/| /' conftest.$ac_ext >&5
22602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022603 cat >conftest.$ac_ext <<_ACEOF
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022604/* confdefs.h. */
22605_ACEOF
22606cat confdefs.h >>conftest.$ac_ext
22607cat >>conftest.$ac_ext <<_ACEOF
22608/* end confdefs.h. */
22609#include <sys/types.h>
22610#ifdef HAVE_SCSI_SG_H
22611#include <scsi/sg.h>
22612#endif
22613
22614int
22615main ()
22616{
22617static sg_io_hdr_t ac_aggr;
22618if (sizeof ac_aggr.interface_id)
22619return 0;
22620 ;
22621 return 0;
22622}
22623_ACEOF
22624rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022625if { (ac_try="$ac_compile"
22626case "(($ac_try" in
22627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628 *) ac_try_echo=$ac_try;;
22629esac
22630eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631 (eval "$ac_compile") 2>conftest.er1
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022632 ac_status=$?
22633 grep -v '^ *+' conftest.er1 >conftest.err
22634 rm -f conftest.er1
22635 cat conftest.err >&5
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22639 { (case "(($ac_try" in
22640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22641 *) ac_try_echo=$ac_try;;
22642esac
22643eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022645 ac_status=$?
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); }; } &&
22648 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022649 { (case "(($ac_try" in
22650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22651 *) ac_try_echo=$ac_try;;
22652esac
22653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22654 (eval "$ac_try") 2>&5
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022655 ac_status=$?
22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657 (exit $ac_status); }; }; then
22658 ac_cv_member_sg_io_hdr_t_interface_id=yes
22659else
22660 echo "$as_me: failed program was:" >&5
22661sed 's/^/| /' conftest.$ac_ext >&5
22662
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022663 ac_cv_member_sg_io_hdr_t_interface_id=no
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022664fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022665
Jeremy White0ebeb532006-06-20 13:18:41 +020022666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022667fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022668
Jeremy White0ebeb532006-06-20 13:18:41 +020022669rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022670fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022671{ echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
22672echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6; }
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000022673if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
22674
22675cat >>confdefs.h <<_ACEOF
22676#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
22677_ACEOF
22678
22679
22680fi
22681
22682
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022683{ echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
22684echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022685if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22687else
22688 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022689/* confdefs.h. */
22690_ACEOF
22691cat confdefs.h >>conftest.$ac_ext
22692cat >>conftest.$ac_ext <<_ACEOF
22693/* end confdefs.h. */
22694#include <signal.h>
22695
22696int
22697main ()
22698{
22699static siginfo_t ac_aggr;
22700if (ac_aggr.si_fd)
22701return 0;
22702 ;
22703 return 0;
22704}
22705_ACEOF
22706rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022707if { (ac_try="$ac_compile"
22708case "(($ac_try" in
22709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22710 *) ac_try_echo=$ac_try;;
22711esac
22712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22713 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022714 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022715 grep -v '^ *+' conftest.er1 >conftest.err
22716 rm -f conftest.er1
22717 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22721 { (case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22724esac
22725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022727 ac_status=$?
22728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729 (exit $ac_status); }; } &&
22730 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022731 { (case "(($ac_try" in
22732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22733 *) ac_try_echo=$ac_try;;
22734esac
22735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22736 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; }; then
22740 ac_cv_member_siginfo_t_si_fd=yes
22741else
22742 echo "$as_me: failed program was:" >&5
22743sed 's/^/| /' conftest.$ac_ext >&5
22744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022745 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022746/* confdefs.h. */
22747_ACEOF
22748cat confdefs.h >>conftest.$ac_ext
22749cat >>conftest.$ac_ext <<_ACEOF
22750/* end confdefs.h. */
22751#include <signal.h>
22752
22753int
22754main ()
22755{
22756static siginfo_t ac_aggr;
22757if (sizeof ac_aggr.si_fd)
22758return 0;
22759 ;
22760 return 0;
22761}
22762_ACEOF
22763rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022764if { (ac_try="$ac_compile"
22765case "(($ac_try" in
22766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767 *) ac_try_echo=$ac_try;;
22768esac
22769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022771 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000022772 grep -v '^ *+' conftest.er1 >conftest.err
22773 rm -f conftest.er1
22774 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22778 { (case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22781esac
22782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000022784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; } &&
22787 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022788 { (case "(($ac_try" in
22789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22790 *) ac_try_echo=$ac_try;;
22791esac
22792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22793 (eval "$ac_try") 2>&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }; then
22797 ac_cv_member_siginfo_t_si_fd=yes
22798else
22799 echo "$as_me: failed program was:" >&5
22800sed 's/^/| /' conftest.$ac_ext >&5
22801
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022802 ac_cv_member_siginfo_t_si_fd=no
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022803fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022804
Jeremy White0ebeb532006-06-20 13:18:41 +020022805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022806fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022807
Jeremy White0ebeb532006-06-20 13:18:41 +020022808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022809fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022810{ echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
22811echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6; }
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000022812if test $ac_cv_member_siginfo_t_si_fd = yes; then
22813
22814cat >>confdefs.h <<_ACEOF
22815#define HAVE_SIGINFO_T_SI_FD 1
22816_ACEOF
22817
22818
22819fi
22820
Alexandre Julliarddaa28862002-04-11 21:54:01 +000022821
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022822{ echo "$as_me:$LINENO: checking for struct mtget.mt_blksiz" >&5
22823echo $ECHO_N "checking for struct mtget.mt_blksiz... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022824if test "${ac_cv_member_struct_mtget_mt_blksiz+set}" = set; then
22825 echo $ECHO_N "(cached) $ECHO_C" >&6
22826else
22827 cat >conftest.$ac_ext <<_ACEOF
22828/* confdefs.h. */
22829_ACEOF
22830cat confdefs.h >>conftest.$ac_ext
22831cat >>conftest.$ac_ext <<_ACEOF
22832/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022833#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022834#ifdef HAVE_SYS_MTIO_H
22835#include <sys/mtio.h>
22836#endif
22837
22838int
22839main ()
22840{
22841static struct mtget ac_aggr;
22842if (ac_aggr.mt_blksiz)
22843return 0;
22844 ;
22845 return 0;
22846}
22847_ACEOF
22848rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022849if { (ac_try="$ac_compile"
22850case "(($ac_try" in
22851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22852 *) ac_try_echo=$ac_try;;
22853esac
22854eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22855 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022856 ac_status=$?
22857 grep -v '^ *+' conftest.er1 >conftest.err
22858 rm -f conftest.er1
22859 cat conftest.err >&5
22860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22861 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22863 { (case "(($ac_try" in
22864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22865 *) ac_try_echo=$ac_try;;
22866esac
22867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22868 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022869 ac_status=$?
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); }; } &&
22872 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022873 { (case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876esac
22877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; }; then
22882 ac_cv_member_struct_mtget_mt_blksiz=yes
22883else
22884 echo "$as_me: failed program was:" >&5
22885sed 's/^/| /' conftest.$ac_ext >&5
22886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022887 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022888/* confdefs.h. */
22889_ACEOF
22890cat confdefs.h >>conftest.$ac_ext
22891cat >>conftest.$ac_ext <<_ACEOF
22892/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022893#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022894#ifdef HAVE_SYS_MTIO_H
22895#include <sys/mtio.h>
22896#endif
22897
22898int
22899main ()
22900{
22901static struct mtget ac_aggr;
22902if (sizeof ac_aggr.mt_blksiz)
22903return 0;
22904 ;
22905 return 0;
22906}
22907_ACEOF
22908rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022909if { (ac_try="$ac_compile"
22910case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22913esac
22914eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022916 ac_status=$?
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020022922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22923 { (case "(($ac_try" in
22924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925 *) ac_try_echo=$ac_try;;
22926esac
22927eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020022933 { (case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22936esac
22937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; }; then
22942 ac_cv_member_struct_mtget_mt_blksiz=yes
22943else
22944 echo "$as_me: failed program was:" >&5
22945sed 's/^/| /' conftest.$ac_ext >&5
22946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022947 ac_cv_member_struct_mtget_mt_blksiz=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022948fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022949
Jeremy White0ebeb532006-06-20 13:18:41 +020022950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022951fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022952
Jeremy White0ebeb532006-06-20 13:18:41 +020022953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022954fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022955{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blksiz" >&5
22956echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blksiz" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022957if test $ac_cv_member_struct_mtget_mt_blksiz = yes; then
22958
22959cat >>confdefs.h <<_ACEOF
22960#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
22961_ACEOF
22962
22963
22964fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020022965{ echo "$as_me:$LINENO: checking for struct mtget.mt_gstat" >&5
22966echo $ECHO_N "checking for struct mtget.mt_gstat... $ECHO_C" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022967if test "${ac_cv_member_struct_mtget_mt_gstat+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22969else
22970 cat >conftest.$ac_ext <<_ACEOF
22971/* confdefs.h. */
22972_ACEOF
22973cat confdefs.h >>conftest.$ac_ext
22974cat >>conftest.$ac_ext <<_ACEOF
22975/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010022976#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022977#ifdef HAVE_SYS_MTIO_H
22978#include <sys/mtio.h>
22979#endif
22980
22981int
22982main ()
22983{
22984static struct mtget ac_aggr;
22985if (ac_aggr.mt_gstat)
22986return 0;
22987 ;
22988 return 0;
22989}
22990_ACEOF
22991rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020022992if { (ac_try="$ac_compile"
22993case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22996esac
22997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22998 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010022999 ac_status=$?
23000 grep -v '^ *+' conftest.er1 >conftest.err
23001 rm -f conftest.er1
23002 cat conftest.err >&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23006 { (case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23009esac
23010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; } &&
23015 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023016 { (case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23019esac
23020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 ac_cv_member_struct_mtget_mt_gstat=yes
23026else
23027 echo "$as_me: failed program was:" >&5
23028sed 's/^/| /' conftest.$ac_ext >&5
23029
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023030 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023031/* confdefs.h. */
23032_ACEOF
23033cat confdefs.h >>conftest.$ac_ext
23034cat >>conftest.$ac_ext <<_ACEOF
23035/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023036#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023037#ifdef HAVE_SYS_MTIO_H
23038#include <sys/mtio.h>
23039#endif
23040
23041int
23042main ()
23043{
23044static struct mtget ac_aggr;
23045if (sizeof ac_aggr.mt_gstat)
23046return 0;
23047 ;
23048 return 0;
23049}
23050_ACEOF
23051rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023052if { (ac_try="$ac_compile"
23053case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056esac
23057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023059 ac_status=$?
23060 grep -v '^ *+' conftest.er1 >conftest.err
23061 rm -f conftest.er1
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23066 { (case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23069esac
23070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023072 ac_status=$?
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); }; } &&
23075 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023076 { (case "(($ac_try" in
23077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23078 *) ac_try_echo=$ac_try;;
23079esac
23080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23081 (eval "$ac_try") 2>&5
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023082 ac_status=$?
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; }; then
23085 ac_cv_member_struct_mtget_mt_gstat=yes
23086else
23087 echo "$as_me: failed program was:" >&5
23088sed 's/^/| /' conftest.$ac_ext >&5
23089
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023090 ac_cv_member_struct_mtget_mt_gstat=no
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023091fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023092
Jeremy White0ebeb532006-06-20 13:18:41 +020023093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023094fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023095
Jeremy White0ebeb532006-06-20 13:18:41 +020023096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023097fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023098{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_gstat" >&5
23099echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_gstat" >&6; }
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023100if test $ac_cv_member_struct_mtget_mt_gstat = yes; then
23101
23102cat >>confdefs.h <<_ACEOF
23103#define HAVE_STRUCT_MTGET_MT_GSTAT 1
23104_ACEOF
23105
23106
23107fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023108{ echo "$as_me:$LINENO: checking for struct mtget.mt_blkno" >&5
23109echo $ECHO_N "checking for struct mtget.mt_blkno... $ECHO_C" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023110if test "${ac_cv_member_struct_mtget_mt_blkno+set}" = set; then
23111 echo $ECHO_N "(cached) $ECHO_C" >&6
23112else
23113 cat >conftest.$ac_ext <<_ACEOF
23114/* confdefs.h. */
23115_ACEOF
23116cat confdefs.h >>conftest.$ac_ext
23117cat >>conftest.$ac_ext <<_ACEOF
23118/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023119#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023120#ifdef HAVE_SYS_MTIO_H
23121#include <sys/mtio.h>
23122#endif
23123
23124int
23125main ()
23126{
23127static struct mtget ac_aggr;
23128if (ac_aggr.mt_blkno)
23129return 0;
23130 ;
23131 return 0;
23132}
23133_ACEOF
23134rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023135if { (ac_try="$ac_compile"
23136case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139esac
23140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023142 ac_status=$?
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23149 { (case "(($ac_try" in
23150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151 *) ac_try_echo=$ac_try;;
23152esac
23153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023155 ac_status=$?
23156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); }; } &&
23158 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023159 { (case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162esac
23163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_cv_member_struct_mtget_mt_blkno=yes
23169else
23170 echo "$as_me: failed program was:" >&5
23171sed 's/^/| /' conftest.$ac_ext >&5
23172
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023173 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023174/* confdefs.h. */
23175_ACEOF
23176cat confdefs.h >>conftest.$ac_ext
23177cat >>conftest.$ac_ext <<_ACEOF
23178/* end confdefs.h. */
Phil Krylov368dab32006-02-11 20:26:33 +010023179#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023180#ifdef HAVE_SYS_MTIO_H
23181#include <sys/mtio.h>
23182#endif
23183
23184int
23185main ()
23186{
23187static struct mtget ac_aggr;
23188if (sizeof ac_aggr.mt_blkno)
23189return 0;
23190 ;
23191 return 0;
23192}
23193_ACEOF
23194rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023195if { (ac_try="$ac_compile"
23196case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23199esac
23200eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23201 (eval "$ac_compile") 2>conftest.er1
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023202 ac_status=$?
23203 grep -v '^ *+' conftest.er1 >conftest.err
23204 rm -f conftest.er1
23205 cat conftest.err >&5
23206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23207 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23209 { (case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23212esac
23213eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023215 ac_status=$?
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); }; } &&
23218 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023219 { (case "(($ac_try" in
23220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23221 *) ac_try_echo=$ac_try;;
23222esac
23223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23224 (eval "$ac_try") 2>&5
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 ac_cv_member_struct_mtget_mt_blkno=yes
23229else
23230 echo "$as_me: failed program was:" >&5
23231sed 's/^/| /' conftest.$ac_ext >&5
23232
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023233 ac_cv_member_struct_mtget_mt_blkno=no
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023234fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023235
Jeremy White0ebeb532006-06-20 13:18:41 +020023236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023237fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023238
Jeremy White0ebeb532006-06-20 13:18:41 +020023239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023240fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023241{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_mtget_mt_blkno" >&5
23242echo "${ECHO_T}$ac_cv_member_struct_mtget_mt_blkno" >&6; }
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010023243if test $ac_cv_member_struct_mtget_mt_blkno = yes; then
23244
23245cat >>confdefs.h <<_ACEOF
23246#define HAVE_STRUCT_MTGET_MT_BLKNO 1
23247_ACEOF
23248
23249
23250fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010023251
23252
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023253{ echo "$as_me:$LINENO: checking for struct option.name" >&5
23254echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023255if test "${ac_cv_member_struct_option_name+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
23257else
23258 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023259/* confdefs.h. */
23260_ACEOF
23261cat confdefs.h >>conftest.$ac_ext
23262cat >>conftest.$ac_ext <<_ACEOF
23263/* end confdefs.h. */
23264#ifdef HAVE_GETOPT_H
23265#include <getopt.h>
23266#endif
23267
23268int
23269main ()
23270{
23271static struct option ac_aggr;
23272if (ac_aggr.name)
23273return 0;
23274 ;
23275 return 0;
23276}
23277_ACEOF
23278rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023279if { (ac_try="$ac_compile"
23280case "(($ac_try" in
23281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282 *) ac_try_echo=$ac_try;;
23283esac
23284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023286 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023287 grep -v '^ *+' conftest.er1 >conftest.err
23288 rm -f conftest.er1
23289 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23293 { (case "(($ac_try" in
23294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295 *) ac_try_echo=$ac_try;;
23296esac
23297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; } &&
23302 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023303 { (case "(($ac_try" in
23304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23305 *) ac_try_echo=$ac_try;;
23306esac
23307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23308 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023309 ac_status=$?
23310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23311 (exit $ac_status); }; }; then
23312 ac_cv_member_struct_option_name=yes
23313else
23314 echo "$as_me: failed program was:" >&5
23315sed 's/^/| /' conftest.$ac_ext >&5
23316
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023317 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023318/* confdefs.h. */
23319_ACEOF
23320cat confdefs.h >>conftest.$ac_ext
23321cat >>conftest.$ac_ext <<_ACEOF
23322/* end confdefs.h. */
23323#ifdef HAVE_GETOPT_H
23324#include <getopt.h>
23325#endif
23326
23327int
23328main ()
23329{
23330static struct option ac_aggr;
23331if (sizeof ac_aggr.name)
23332return 0;
23333 ;
23334 return 0;
23335}
23336_ACEOF
23337rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023338if { (ac_try="$ac_compile"
23339case "(($ac_try" in
23340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341 *) ac_try_echo=$ac_try;;
23342esac
23343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023345 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023346 grep -v '^ *+' conftest.er1 >conftest.err
23347 rm -f conftest.er1
23348 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23352 { (case "(($ac_try" in
23353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23354 *) ac_try_echo=$ac_try;;
23355esac
23356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23357 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023358 ac_status=$?
23359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23360 (exit $ac_status); }; } &&
23361 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023362 { (case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23365esac
23366eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_try") 2>&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_member_struct_option_name=yes
23372else
23373 echo "$as_me: failed program was:" >&5
23374sed 's/^/| /' conftest.$ac_ext >&5
23375
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023376 ac_cv_member_struct_option_name=no
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023377fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023378
Jeremy White0ebeb532006-06-20 13:18:41 +020023379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023380fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023381
Jeremy White0ebeb532006-06-20 13:18:41 +020023382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023383fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023384{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
23385echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6; }
Alexandre Julliarddb89a542003-04-20 02:56:14 +000023386if test $ac_cv_member_struct_option_name = yes; then
23387
23388cat >>confdefs.h <<_ACEOF
23389#define HAVE_STRUCT_OPTION_NAME 1
23390_ACEOF
23391
23392
23393fi
23394
23395
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023396{ echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23397echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023398if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23400else
23401 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023402/* confdefs.h. */
23403_ACEOF
23404cat confdefs.h >>conftest.$ac_ext
23405cat >>conftest.$ac_ext <<_ACEOF
23406/* end confdefs.h. */
23407$ac_includes_default
23408int
23409main ()
23410{
23411static struct stat ac_aggr;
23412if (ac_aggr.st_blocks)
23413return 0;
23414 ;
23415 return 0;
23416}
23417_ACEOF
23418rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023419if { (ac_try="$ac_compile"
23420case "(($ac_try" in
23421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23422 *) ac_try_echo=$ac_try;;
23423esac
23424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23425 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023426 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023427 grep -v '^ *+' conftest.er1 >conftest.err
23428 rm -f conftest.er1
23429 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23433 { (case "(($ac_try" in
23434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435 *) ac_try_echo=$ac_try;;
23436esac
23437eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23438 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023439 ac_status=$?
23440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441 (exit $ac_status); }; } &&
23442 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023443 { (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
Pavel Roskind6507192003-10-03 03:28:40 +000023449 ac_status=$?
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); }; }; then
23452 ac_cv_member_struct_stat_st_blocks=yes
23453else
23454 echo "$as_me: failed program was:" >&5
23455sed 's/^/| /' conftest.$ac_ext >&5
23456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023457 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000023458/* confdefs.h. */
23459_ACEOF
23460cat confdefs.h >>conftest.$ac_ext
23461cat >>conftest.$ac_ext <<_ACEOF
23462/* end confdefs.h. */
23463$ac_includes_default
23464int
23465main ()
23466{
23467static struct stat ac_aggr;
23468if (sizeof ac_aggr.st_blocks)
23469return 0;
23470 ;
23471 return 0;
23472}
23473_ACEOF
23474rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023475if { (ac_try="$ac_compile"
23476case "(($ac_try" in
23477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23478 *) ac_try_echo=$ac_try;;
23479esac
23480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23481 (eval "$ac_compile") 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000023482 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000023483 grep -v '^ *+' conftest.er1 >conftest.err
23484 rm -f conftest.er1
23485 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000023486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23489 { (case "(($ac_try" in
23490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23491 *) ac_try_echo=$ac_try;;
23492esac
23493eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23494 (eval "$ac_try") 2>&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000023495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; } &&
23498 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023499 { (case "(($ac_try" in
23500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23501 *) ac_try_echo=$ac_try;;
23502esac
23503eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23504 (eval "$ac_try") 2>&5
Pavel Roskind6507192003-10-03 03:28:40 +000023505 ac_status=$?
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); }; }; then
23508 ac_cv_member_struct_stat_st_blocks=yes
23509else
23510 echo "$as_me: failed program was:" >&5
23511sed 's/^/| /' conftest.$ac_ext >&5
23512
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023513 ac_cv_member_struct_stat_st_blocks=no
Pavel Roskind6507192003-10-03 03:28:40 +000023514fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023515
Jeremy White0ebeb532006-06-20 13:18:41 +020023516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023517fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023518
Jeremy White0ebeb532006-06-20 13:18:41 +020023519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000023520fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023521{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23522echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
Pavel Roskind6507192003-10-03 03:28:40 +000023523if test $ac_cv_member_struct_stat_st_blocks = yes; then
23524
23525cat >>confdefs.h <<_ACEOF
23526#define HAVE_STRUCT_STAT_ST_BLOCKS 1
23527_ACEOF
23528
23529
23530fi
23531
23532
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023533{ echo "$as_me:$LINENO: checking for struct sockaddr_in6.sin6_scope_id" >&5
23534echo $ECHO_N "checking for struct sockaddr_in6.sin6_scope_id... $ECHO_C" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023535if test "${ac_cv_member_struct_sockaddr_in6_sin6_scope_id+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
23537else
23538 cat >conftest.$ac_ext <<_ACEOF
23539/* confdefs.h. */
23540_ACEOF
23541cat confdefs.h >>conftest.$ac_ext
23542cat >>conftest.$ac_ext <<_ACEOF
23543/* end confdefs.h. */
23544#ifdef HAVE_SYS_TYPES_H
23545#include <sys/types.h>
23546#endif
23547#ifdef HAVE_NETINET_IN_H
23548#include <netinet/in.h>
23549#endif
23550
23551int
23552main ()
23553{
23554static struct sockaddr_in6 ac_aggr;
23555if (ac_aggr.sin6_scope_id)
23556return 0;
23557 ;
23558 return 0;
23559}
23560_ACEOF
23561rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023562if { (ac_try="$ac_compile"
23563case "(($ac_try" in
23564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23565 *) ac_try_echo=$ac_try;;
23566esac
23567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23568 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023569 ac_status=$?
23570 grep -v '^ *+' conftest.er1 >conftest.err
23571 rm -f conftest.er1
23572 cat conftest.err >&5
23573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23576 { (case "(($ac_try" in
23577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23578 *) ac_try_echo=$ac_try;;
23579esac
23580eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23581 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023582 ac_status=$?
23583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23584 (exit $ac_status); }; } &&
23585 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023586 { (case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589esac
23590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23596else
23597 echo "$as_me: failed program was:" >&5
23598sed 's/^/| /' conftest.$ac_ext >&5
23599
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023600 cat >conftest.$ac_ext <<_ACEOF
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023601/* confdefs.h. */
23602_ACEOF
23603cat confdefs.h >>conftest.$ac_ext
23604cat >>conftest.$ac_ext <<_ACEOF
23605/* end confdefs.h. */
23606#ifdef HAVE_SYS_TYPES_H
23607#include <sys/types.h>
23608#endif
23609#ifdef HAVE_NETINET_IN_H
23610#include <netinet/in.h>
23611#endif
23612
23613int
23614main ()
23615{
23616static struct sockaddr_in6 ac_aggr;
23617if (sizeof ac_aggr.sin6_scope_id)
23618return 0;
23619 ;
23620 return 0;
23621}
23622_ACEOF
23623rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023624if { (ac_try="$ac_compile"
23625case "(($ac_try" in
23626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23627 *) ac_try_echo=$ac_try;;
23628esac
23629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23630 (eval "$ac_compile") 2>conftest.er1
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023631 ac_status=$?
23632 grep -v '^ *+' conftest.er1 >conftest.err
23633 rm -f conftest.er1
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23638 { (case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641esac
23642eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23643 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023648 { (case "(($ac_try" in
23649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23650 *) ac_try_echo=$ac_try;;
23651esac
23652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23653 (eval "$ac_try") 2>&5
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=yes
23658else
23659 echo "$as_me: failed program was:" >&5
23660sed 's/^/| /' conftest.$ac_ext >&5
23661
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023662 ac_cv_member_struct_sockaddr_in6_sin6_scope_id=no
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023663fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023664
Jeremy White0ebeb532006-06-20 13:18:41 +020023665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023666fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023667
Jeremy White0ebeb532006-06-20 13:18:41 +020023668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023669fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023670{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&5
23671echo "${ECHO_T}$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" >&6; }
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030023672if test $ac_cv_member_struct_sockaddr_in6_sin6_scope_id = yes; then
23673
23674cat >>confdefs.h <<_ACEOF
23675#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
23676_ACEOF
23677
23678
23679fi
23680
23681
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023682{ echo "$as_me:$LINENO: checking for ns_msg._msg_ptr" >&5
23683echo $ECHO_N "checking for ns_msg._msg_ptr... $ECHO_C" >&6; }
23684if test "${ac_cv_member_ns_msg__msg_ptr+set}" = set; then
23685 echo $ECHO_N "(cached) $ECHO_C" >&6
23686else
23687 cat >conftest.$ac_ext <<_ACEOF
23688/* confdefs.h. */
23689_ACEOF
23690cat confdefs.h >>conftest.$ac_ext
23691cat >>conftest.$ac_ext <<_ACEOF
23692/* end confdefs.h. */
23693#ifdef HAVE_SYS_TYPES_H
23694#include <sys/types.h>
23695#endif
23696#ifdef HAVE_NETINET_IN_H
23697# include <netinet/in.h>
23698#endif
23699#ifdef HAVE_ARPA_NAMESER_H
23700# include <arpa/nameser.h>
23701#endif
23702
23703int
23704main ()
23705{
23706static ns_msg ac_aggr;
23707if (ac_aggr._msg_ptr)
23708return 0;
23709 ;
23710 return 0;
23711}
23712_ACEOF
23713rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023714if { (ac_try="$ac_compile"
23715case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23718esac
23719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023721 ac_status=$?
23722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23731esac
23732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023738 { (case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23741esac
23742eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23743 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023744 ac_status=$?
23745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23746 (exit $ac_status); }; }; then
23747 ac_cv_member_ns_msg__msg_ptr=yes
23748else
23749 echo "$as_me: failed program was:" >&5
23750sed 's/^/| /' conftest.$ac_ext >&5
23751
23752 cat >conftest.$ac_ext <<_ACEOF
23753/* confdefs.h. */
23754_ACEOF
23755cat confdefs.h >>conftest.$ac_ext
23756cat >>conftest.$ac_ext <<_ACEOF
23757/* end confdefs.h. */
23758#ifdef HAVE_SYS_TYPES_H
23759#include <sys/types.h>
23760#endif
23761#ifdef HAVE_NETINET_IN_H
23762# include <netinet/in.h>
23763#endif
23764#ifdef HAVE_ARPA_NAMESER_H
23765# include <arpa/nameser.h>
23766#endif
23767
23768int
23769main ()
23770{
23771static ns_msg ac_aggr;
23772if (sizeof ac_aggr._msg_ptr)
23773return 0;
23774 ;
23775 return 0;
23776}
23777_ACEOF
23778rm -f conftest.$ac_objext
Jeremy White0ebeb532006-06-20 13:18:41 +020023779if { (ac_try="$ac_compile"
23780case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783esac
23784eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023786 ac_status=$?
23787 grep -v '^ *+' conftest.er1 >conftest.err
23788 rm -f conftest.er1
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23791 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23793 { (case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23796esac
23797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023799 ac_status=$?
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; } &&
23802 { ac_try='test -s conftest.$ac_objext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023803 { (case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23806esac
23807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_try") 2>&5
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; }; then
23812 ac_cv_member_ns_msg__msg_ptr=yes
23813else
23814 echo "$as_me: failed program was:" >&5
23815sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 ac_cv_member_ns_msg__msg_ptr=no
23818fi
23819
Jeremy White0ebeb532006-06-20 13:18:41 +020023820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023821fi
23822
Jeremy White0ebeb532006-06-20 13:18:41 +020023823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard788e30f2006-05-31 14:43:21 +020023824fi
23825{ echo "$as_me:$LINENO: result: $ac_cv_member_ns_msg__msg_ptr" >&5
23826echo "${ECHO_T}$ac_cv_member_ns_msg__msg_ptr" >&6; }
23827if test $ac_cv_member_ns_msg__msg_ptr = yes; then
23828
23829cat >>confdefs.h <<_ACEOF
23830#define HAVE_NS_MSG__MSG_PTR 1
23831_ACEOF
23832
23833
23834fi
23835
23836
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023837{ echo "$as_me:$LINENO: checking for timezone variable" >&5
23838echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023839if test "${ac_cv_have_timezone+set}" = set; then
23840 echo $ECHO_N "(cached) $ECHO_C" >&6
23841else
23842 cat >conftest.$ac_ext <<_ACEOF
23843/* confdefs.h. */
23844_ACEOF
23845cat confdefs.h >>conftest.$ac_ext
23846cat >>conftest.$ac_ext <<_ACEOF
23847/* end confdefs.h. */
23848#include <time.h>
23849int
23850main ()
23851{
23852timezone;
23853 ;
23854 return 0;
23855}
23856_ACEOF
23857rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020023858if { (ac_try="$ac_link"
23859case "(($ac_try" in
23860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861 *) ac_try_echo=$ac_try;;
23862esac
23863eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000023865 ac_status=$?
23866 grep -v '^ *+' conftest.er1 >conftest.err
23867 rm -f conftest.er1
23868 cat conftest.err >&5
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23872 { (case "(($ac_try" in
23873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23874 *) ac_try_echo=$ac_try;;
23875esac
23876eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23877 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; } &&
23881 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023882 { (case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23885esac
23886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023888 ac_status=$?
23889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23890 (exit $ac_status); }; }; then
23891 ac_cv_have_timezone="yes"
23892else
23893 echo "$as_me: failed program was:" >&5
23894sed 's/^/| /' conftest.$ac_ext >&5
23895
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023896 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000023897fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023898
Jeremy White0ebeb532006-06-20 13:18:41 +020023899rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000023900 conftest$ac_exeext conftest.$ac_ext
23901fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023902{ echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
23903echo "${ECHO_T}$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023904if test "$ac_cv_have_timezone" = "yes"
23905then
23906
23907cat >>confdefs.h <<\_ACEOF
23908#define HAVE_TIMEZONE 1
23909_ACEOF
23910
23911fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023912{ echo "$as_me:$LINENO: checking for daylight variable" >&5
23913echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023914if test "${ac_cv_have_daylight+set}" = set; then
23915 echo $ECHO_N "(cached) $ECHO_C" >&6
23916else
23917 cat >conftest.$ac_ext <<_ACEOF
23918/* confdefs.h. */
23919_ACEOF
23920cat confdefs.h >>conftest.$ac_ext
23921cat >>conftest.$ac_ext <<_ACEOF
23922/* end confdefs.h. */
23923#include <time.h>
23924int
23925main ()
23926{
23927daylight;
23928 ;
23929 return 0;
23930}
23931_ACEOF
23932rm -f conftest.$ac_objext conftest$ac_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +020023933if { (ac_try="$ac_link"
23934case "(($ac_try" in
23935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936 *) ac_try_echo=$ac_try;;
23937esac
23938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23939 (eval "$ac_link") 2>conftest.er1
Phil Krylov6618b032005-05-24 11:52:46 +000023940 ac_status=$?
23941 grep -v '^ *+' conftest.er1 >conftest.err
23942 rm -f conftest.er1
23943 cat conftest.err >&5
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020023946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23947 { (case "(($ac_try" in
23948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23950esac
23951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023953 ac_status=$?
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); }; } &&
23956 { ac_try='test -s conftest$ac_exeext'
Jeremy White0ebeb532006-06-20 13:18:41 +020023957 { (case "(($ac_try" in
23958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23959 *) ac_try_echo=$ac_try;;
23960esac
23961eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23962 (eval "$ac_try") 2>&5
Phil Krylov6618b032005-05-24 11:52:46 +000023963 ac_status=$?
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; }; then
23966 ac_cv_have_daylight="yes"
23967else
23968 echo "$as_me: failed program was:" >&5
23969sed 's/^/| /' conftest.$ac_ext >&5
23970
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023971 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000023972fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023973
Jeremy White0ebeb532006-06-20 13:18:41 +020023974rm -f core conftest.err conftest.$ac_objext \
Phil Krylov6618b032005-05-24 11:52:46 +000023975 conftest$ac_exeext conftest.$ac_ext
23976fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023977{ echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
23978echo "${ECHO_T}$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000023979if test "$ac_cv_have_daylight" = "yes"
23980then
23981
23982cat >>confdefs.h <<\_ACEOF
23983#define HAVE_DAYLIGHT 1
23984_ACEOF
23985
23986fi
23987
Alexandre Julliarddaa28862002-04-11 21:54:01 +000023988
Alexandre Julliardfc01b722002-05-12 03:16:39 +000023989case $host_cpu in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020023990 *i[3456789]86*) { echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
23991echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000023992if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000023993 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000023994else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000023995 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000023996/* confdefs.h. */
23997_ACEOF
23998cat confdefs.h >>conftest.$ac_ext
23999cat >>conftest.$ac_ext <<_ACEOF
24000/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024001#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024002yes
24003#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024004_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024006 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024007 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024008else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024009 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024010fi
24011rm -f conftest*
24012
24013fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024014{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
24015echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024016if test $ac_cv_cpp_def___i386__ = yes; then
24017 CFLAGS="$CFLAGS -D__i386__"
24018 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000024019fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024020 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024021 *x86_64*) { echo "$as_me:$LINENO: checking whether we need to define __x86_64__" >&5
24022echo $ECHO_N "checking whether we need to define __x86_64__... $ECHO_C" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024023if test "${ac_cv_cpp_def___x86_64__+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24025else
24026 cat >conftest.$ac_ext <<_ACEOF
24027/* confdefs.h. */
24028_ACEOF
24029cat confdefs.h >>conftest.$ac_ext
24030cat >>conftest.$ac_ext <<_ACEOF
24031/* end confdefs.h. */
24032#ifndef __x86_64__
24033yes
24034#endif
24035_ACEOF
24036if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24037 $EGREP "yes" >/dev/null 2>&1; then
24038 ac_cv_cpp_def___x86_64__=yes
24039else
24040 ac_cv_cpp_def___x86_64__=no
24041fi
24042rm -f conftest*
24043
24044fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024045{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___x86_64__" >&5
24046echo "${ECHO_T}$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024047if test $ac_cv_cpp_def___x86_64__ = yes; then
24048 CFLAGS="$CFLAGS -D__x86_64__"
24049 LINTFLAGS="$LINTFLAGS -D__x86_64__"
24050fi
Alexandre Julliard58c64192006-07-10 13:05:20 +020024051
24052 { echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
24053echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
24054if test "${ac_cv_cpp_def__WIN64+set}" = set; then
24055 echo $ECHO_N "(cached) $ECHO_C" >&6
24056else
24057 cat >conftest.$ac_ext <<_ACEOF
24058/* confdefs.h. */
24059_ACEOF
24060cat confdefs.h >>conftest.$ac_ext
24061cat >>conftest.$ac_ext <<_ACEOF
24062/* end confdefs.h. */
24063#ifndef _WIN64
24064yes
24065#endif
24066_ACEOF
24067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24068 $EGREP "yes" >/dev/null 2>&1; then
24069 ac_cv_cpp_def__WIN64=yes
24070else
24071 ac_cv_cpp_def__WIN64=no
24072fi
24073rm -f conftest*
24074
24075fi
24076{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
24077echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
24078if test $ac_cv_cpp_def__WIN64 = yes; then
24079 CFLAGS="$CFLAGS -D_WIN64"
24080 LINTFLAGS="$LINTFLAGS -D_WIN64"
24081fi
Alexandre Julliarde3be5642005-09-09 09:30:02 +000024082 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024083 *alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
24084echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024085if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000024086 echo $ECHO_N "(cached) $ECHO_C" >&6
24087else
24088 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000024094#ifndef __ALPHA__
24095yes
24096#endif
24097_ACEOF
24098if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24099 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024100 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000024101else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024102 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000024103fi
24104rm -f conftest*
24105
24106fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024107{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
24108echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024109if test $ac_cv_cpp_def___ALPHA__ = yes; then
24110 CFLAGS="$CFLAGS -D__ALPHA__"
24111 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000024112fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024113 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024114 *sparc*) { echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
24115echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024116if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024117 echo $ECHO_N "(cached) $ECHO_C" >&6
24118else
24119 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024120/* confdefs.h. */
24121_ACEOF
24122cat confdefs.h >>conftest.$ac_ext
24123cat >>conftest.$ac_ext <<_ACEOF
24124/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024125#ifndef __sparc__
24126yes
24127#endif
24128_ACEOF
24129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024130 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024131 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024132else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024133 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024134fi
24135rm -f conftest*
24136
24137fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024138{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
24139echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024140if test $ac_cv_cpp_def___sparc__ = yes; then
24141 CFLAGS="$CFLAGS -D__sparc__"
24142 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024143fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024144 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024145 *powerpc*) { echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
24146echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024147if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
24148 echo $ECHO_N "(cached) $ECHO_C" >&6
24149else
24150 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024151/* confdefs.h. */
24152_ACEOF
24153cat confdefs.h >>conftest.$ac_ext
24154cat >>conftest.$ac_ext <<_ACEOF
24155/* end confdefs.h. */
24156#ifndef __powerpc__
24157yes
24158#endif
24159_ACEOF
24160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24161 $EGREP "yes" >/dev/null 2>&1; then
24162 ac_cv_cpp_def___powerpc__=yes
24163else
24164 ac_cv_cpp_def___powerpc__=no
24165fi
24166rm -f conftest*
24167
24168fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024169{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
24170echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6; }
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000024171if test $ac_cv_cpp_def___powerpc__ = yes; then
24172 CFLAGS="$CFLAGS -D__powerpc__"
24173 LINTFLAGS="$LINTFLAGS -D__powerpc__"
24174fi
24175 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000024176esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024177
24178case $host_vendor in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024179 *sun*) { echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
24180echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024181if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024182 echo $ECHO_N "(cached) $ECHO_C" >&6
24183else
24184 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024185/* confdefs.h. */
24186_ACEOF
24187cat confdefs.h >>conftest.$ac_ext
24188cat >>conftest.$ac_ext <<_ACEOF
24189/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024190#ifndef __sun__
24191yes
24192#endif
24193_ACEOF
24194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024195 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000024196 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024197else
Alexandre Julliard05783b52002-12-11 00:21:55 +000024198 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024199fi
24200rm -f conftest*
24201
24202fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024203{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
24204echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard05783b52002-12-11 00:21:55 +000024205if test $ac_cv_cpp_def___sun__ = yes; then
24206 CFLAGS="$CFLAGS -D__sun__"
24207 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024208fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000024209 ;;
24210esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000024211
24212
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024213
24214
24215
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024216ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024217
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024218ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000024219
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024220ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024221
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024222ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024223
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024224ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024225
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024226ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024227
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000024228
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000024229MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024230
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024231
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000024232MAKE_DLL_RULES=dlls/Makedll.rules
24233
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024234
Alexandre Julliard633b12d2005-08-25 12:14:13 +000024235MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
24236
24237
Alexandre Julliardedeee892002-08-09 01:22:40 +000024238MAKE_TEST_RULES=dlls/Maketest.rules
24239
24240
Alexandre Julliard626f4252000-11-10 23:35:20 +000024241MAKE_PROG_RULES=programs/Makeprog.rules
24242
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024243
Alexandre Julliardfdfc24c2006-08-05 21:17:11 +020024244ac_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/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/inseng/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lz32/Makefile dlls/lz32/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mciavi32/Makefile dlls/mcicda/Makefile dlls/mciseq/Makefile dlls/mciwave/Makefile dlls/midimap/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/mprapi/Makefile dlls/msacm32.drv/Makefile dlls/msacm32/Makefile dlls/msacm32/tests/Makefile dlls/msadp32.acm/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/msftedit/Makefile dlls/msg711.acm/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys.ocx/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvfw32/Makefile dlls/msvidc32/Makefile dlls/mswsock/Makefile dlls/msxml3/Makefile dlls/msxml3/tests/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/ntdsapi/Makefile dlls/objsel/Makefile dlls/odbc32/Makefile dlls/odbccp32/Makefile dlls/ole32/Makefile dlls/ole32/tests/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli32/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr32/Makefile dlls/opengl32/Makefile dlls/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/query/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/riched20/tests/Makefile dlls/riched32/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/sane.ds/Makefile dlls/secur32/Makefile dlls/secur32/tests/Makefile dlls/security/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/setupapi/tests/Makefile dlls/sfc/Makefile dlls/shdocvw/Makefile dlls/shdocvw/tests/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/spoolss/Makefile dlls/stdole2.tlb/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/twain_32/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/userenv/Makefile dlls/usp10/Makefile dlls/usp10/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/uxtheme/tests/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/w32skrnl/Makefile dlls/winecrt0/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/winemp3.acm/Makefile dlls/wineps.drv/Makefile dlls/winex11.drv/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/tests/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winecoreaudio/Makefile dlls/winmm/wineesd/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls32/Makefile dlls/winspool.drv/Makefile dlls/winspool.drv/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wnaspi32/Makefile dlls/wow32/Makefile dlls/ws2_32/Makefile dlls/ws2_32/tests/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/eject/Makefile programs/expand/Makefile programs/explorer/Makefile programs/hh/Makefile programs/icinfo/Makefile programs/iexplore/Makefile programs/msiexec/Makefile programs/notepad/Makefile programs/oleview/Makefile programs/progman/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/taskmgr/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winebrowser/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/Makefile programs/winetest/Makefile programs/winevdm/Makefile programs/winhelp/Makefile programs/winver/Makefile programs/wordpad/Makefile server/Makefile tools/Makefile tools/widl/Makefile tools/winapi/Makefile tools/winebuild/Makefile tools/winedump/Makefile tools/winegcc/Makefile tools/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024245
Alexandre Julliard626f4252000-11-10 23:35:20 +000024246
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024247cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024248# This file is a shell script that caches the results of configure
24249# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024250# scripts and configure runs, see configure's option --config-cache.
24251# It is not useful on other systems. If it contains results you don't
24252# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024253#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024254# config.status only pays attention to the cache file if you give it
24255# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024256#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024257# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024258# loading this file, other *unset* `ac_cv_foo' will be assigned the
24259# following values.
24260
24261_ACEOF
24262
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000024263# The following way of writing the cache mishandles newlines in values,
24264# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024265# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024266# Ultrix sh set writes to stderr and can't be redirected directly,
24267# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024268(
24269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24270 eval ac_val=\$$ac_var
24271 case $ac_val in #(
24272 *${as_nl}*)
24273 case $ac_var in #(
24274 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24275echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24276 esac
24277 case $ac_var in #(
24278 _ | IFS | as_nl) ;; #(
24279 *) $as_unset $ac_var ;;
24280 esac ;;
24281 esac
24282 done
24283
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024284 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24286 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024287 # `set' does not quote correctly, so add quotes (double-quote
24288 # substitution turns \\\\ into \\, and sed turns \\ into \).
24289 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000024290 "s/'/'\\\\''/g;
24291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024292 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024293 *)
24294 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024296 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024297 esac |
24298 sort
24299) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024300 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024301 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024302 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024303 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24305 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24307 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020024308if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24309 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024310 test "x$cache_file" != "x/dev/null" &&
24311 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24312echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024313 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024314 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024315 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24316echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024317 fi
24318fi
24319rm -f confcache
24320
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024321test "x$prefix" = xNONE && prefix=$ac_default_prefix
24322# Let make expand exec_prefix.
24323test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24324
Alexandre Julliard18f92e71996-07-17 20:02:21 +000024325DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024326
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024327ac_libobjs=
24328ac_ltlibobjs=
24329for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24330 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24332 ac_i=`echo "$ac_i" | sed "$ac_script"`
24333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24334 # will be set to the directory where LIBOBJS objects are built.
24335 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24336 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024337done
24338LIBOBJS=$ac_libobjs
24339
24340LTLIBOBJS=$ac_ltlibobjs
24341
24342
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024343
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024344: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024345ac_clean_files_save=$ac_clean_files
24346ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024347{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024348echo "$as_me: creating $CONFIG_STATUS" >&6;}
24349cat >$CONFIG_STATUS <<_ACEOF
24350#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024351# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024352# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024353# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024354# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024355
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024356debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024357ac_cs_recheck=false
24358ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024359SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024360_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024362cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024363## --------------------- ##
24364## M4sh Initialization. ##
24365## --------------------- ##
24366
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024367# Be Bourne compatible
24368if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24369 emulate sh
24370 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024371 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24372 # is contrary to our usage. Disable this feature.
24373 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024374 setopt NO_GLOB_SUBST
24375else
24376 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024377fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024378BIN_SH=xpg4; export BIN_SH # for Tru64
Alexandre Julliard875927f2004-01-02 01:55:29 +000024379DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024380
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024381
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024382# PATH needs CR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024383# Avoid depending upon Character Ranges.
24384as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24385as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24386as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24387as_cr_digits='0123456789'
24388as_cr_alnum=$as_cr_Letters$as_cr_digits
24389
24390# The user is always right.
24391if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024392 echo "#! /bin/sh" >conf$$.sh
24393 echo "exit 0" >>conf$$.sh
24394 chmod +x conf$$.sh
24395 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024396 PATH_SEPARATOR=';'
24397 else
24398 PATH_SEPARATOR=:
24399 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024400 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024401fi
24402
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024403# Support unset when possible.
24404if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24405 as_unset=unset
24406else
24407 as_unset=false
24408fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024409
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024410
24411# IFS
24412# We need space, tab and new line, in precisely that order. Quoting is
24413# there to prevent editors from complaining about space-tab.
24414# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24415# splitting by setting IFS to empty value.)
24416as_nl='
24417'
24418IFS=" "" $as_nl"
24419
24420# Find who we are. Look in the path if we contain no directory separator.
24421case $0 in
24422 *[\\/]* ) as_myself=$0 ;;
24423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024424for as_dir in $PATH
24425do
24426 IFS=$as_save_IFS
24427 test -z "$as_dir" && as_dir=.
24428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24429done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024430IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024431
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024432 ;;
24433esac
24434# We did not find ourselves, most probably we were run as `sh COMMAND'
24435# in which case we are not to be found in the path.
24436if test "x$as_myself" = x; then
24437 as_myself=$0
24438fi
24439if test ! -f "$as_myself"; then
24440 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24441 { (exit 1); exit 1; }
24442fi
24443
24444# Work around bugs in pre-3.0 UWIN ksh.
24445for as_var in ENV MAIL MAILPATH
24446do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24447done
24448PS1='$ '
24449PS2='> '
24450PS4='+ '
24451
24452# NLS nuisances.
24453for as_var in \
24454 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24455 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24456 LC_TELEPHONE LC_TIME
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024457do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024458 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24459 eval $as_var=C; export $as_var
24460 else
24461 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24462 fi
24463done
24464
24465# Required to use basename.
24466if expr a : '\(a\)' >/dev/null 2>&1 &&
24467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24468 as_expr=expr
24469else
24470 as_expr=false
24471fi
24472
24473if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24474 as_basename=basename
24475else
24476 as_basename=false
24477fi
24478
24479
24480# Name of the executable.
24481as_me=`$as_basename -- "$0" ||
24482$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24483 X"$0" : 'X\(//\)$' \| \
24484 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24485echo X/"$0" |
24486 sed '/^.*\/\([^/][^/]*\)\/*$/{
24487 s//\1/
24488 q
24489 }
24490 /^X\/\(\/\/\)$/{
24491 s//\1/
24492 q
24493 }
24494 /^X\/\(\/\).*/{
24495 s//\1/
24496 q
24497 }
24498 s/.*/./; q'`
24499
24500# CDPATH.
24501$as_unset CDPATH
24502
24503
24504
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024505 as_lineno_1=$LINENO
24506 as_lineno_2=$LINENO
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024507 test "x$as_lineno_1" != "x$as_lineno_2" &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024508 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024509
24510 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24511 # uniformly replaced by the line number. The first 'sed' inserts a
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024512 # line-number line after each line using $LINENO; the second 'sed'
24513 # does the real work. The second script uses 'N' to pair each
24514 # line-number line with the line containing $LINENO, and appends
24515 # trailing '-' during substitution so that $LINENO is not a special
24516 # case at line end.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024517 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024518 # scripts with optimization help from Paolo Bonzini. Blame Lee
24519 # E. McMahon (1931-1989) for sed's syntax. :-)
24520 sed -n '
24521 p
24522 /[$]LINENO/=
24523 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024524 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024525 s/[$]LINENO.*/&-/
24526 t lineno
24527 b
24528 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024529 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024530 :loop
24531 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024532 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024533 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024534 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024535 chmod +x "$as_me.lineno" ||
24536 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024537 { (exit 1); exit 1; }; }
24538
24539 # Don't try to exec as it changes $[0], causing all sort of problems
24540 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024541 # original and so on. Autoconf is especially sensitive to this).
24542 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024543 # Exit status is that of the last command.
24544 exit
24545}
24546
24547
Jeremy White0ebeb532006-06-20 13:18:41 +020024548if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024549 as_dirname=dirname
24550else
24551 as_dirname=false
24552fi
24553
24554ECHO_C= ECHO_N= ECHO_T=
24555case `echo -n x` in
24556-n*)
24557 case `echo 'x\c'` in
24558 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24559 *) ECHO_C='\c';;
24560 esac;;
24561*)
24562 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024563esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024564
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024565if expr a : '\(a\)' >/dev/null 2>&1 &&
24566 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024567 as_expr=expr
24568else
24569 as_expr=false
24570fi
24571
24572rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024573if test -d conf$$.dir; then
24574 rm -f conf$$.dir/conf$$.file
24575else
24576 rm -f conf$$.dir
24577 mkdir conf$$.dir
24578fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024579echo >conf$$.file
24580if ln -s conf$$.file conf$$ 2>/dev/null; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024581 as_ln_s='ln -s'
24582 # ... but there are two gotchas:
24583 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24584 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24585 # In both cases, we have to default to `cp -p'.
24586 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024587 as_ln_s='cp -p'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024588elif ln conf$$.file conf$$ 2>/dev/null; then
24589 as_ln_s=ln
24590else
24591 as_ln_s='cp -p'
24592fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024593rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24594rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024595
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024596if mkdir -p . 2>/dev/null; then
24597 as_mkdir_p=:
24598else
Alexandre Julliard875927f2004-01-02 01:55:29 +000024599 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024600 as_mkdir_p=false
24601fi
24602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024603# Find out whether ``test -x'' works. Don't use a zero-byte file, as
24604# systems may use methods other than mode bits to determine executability.
24605cat >conf$$.file <<_ASEOF
24606#! /bin/sh
24607exit 0
24608_ASEOF
24609chmod +x conf$$.file
24610if test -x conf$$.file >/dev/null 2>&1; then
24611 as_executable_p="test -x"
24612else
24613 as_executable_p=:
24614fi
24615rm -f conf$$.file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024616
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024617# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024618as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024619
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024620# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000024621as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024622
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024623
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024624exec 6>&1
24625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024626# Save the log message, to keep $[0] and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024627# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024628# values after options handling.
24629ac_log="
Alexandre Julliardf9cd7142006-07-27 16:55:50 +020024630This file was extended by Wine $as_me 0.9.18, which was
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024631generated by GNU Autoconf 2.60a. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024632
24633 CONFIG_FILES = $CONFIG_FILES
24634 CONFIG_HEADERS = $CONFIG_HEADERS
24635 CONFIG_LINKS = $CONFIG_LINKS
24636 CONFIG_COMMANDS = $CONFIG_COMMANDS
24637 $ $0 $@
24638
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024639on `(hostname || uname -n) 2>/dev/null | sed 1q`
24640"
24641
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024642_ACEOF
24643
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024644cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024645# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024646config_files="$ac_config_files"
24647config_headers="$ac_config_headers"
24648config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024649
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024650_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024651
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024652cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024653ac_cs_usage="\
24654\`$as_me' instantiates files from templates according to the
24655current configuration.
24656
24657Usage: $0 [OPTIONS] [FILE]...
24658
24659 -h, --help print this help, then exit
24660 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024661 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024662 -d, --debug don't remove temporary files
24663 --recheck update $as_me by reconfiguring in the same conditions
24664 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024665 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024666 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000024667 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024668
24669Configuration files:
24670$config_files
24671
24672Configuration headers:
24673$config_headers
24674
24675Configuration commands:
24676$config_commands
24677
24678Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000024679
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024680_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024681cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024682ac_cs_version="\\
Alexandre Julliardf9cd7142006-07-27 16:55:50 +020024683Wine config.status 0.9.18
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020024684configured by $0, generated by GNU Autoconf 2.60a,
Jeremy White0ebeb532006-06-20 13:18:41 +020024685 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024686
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024687Copyright (C) 2006 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024688This config.status script is free software; the Free Software Foundation
24689gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024690
24691ac_pwd='$ac_pwd'
24692srcdir='$srcdir'
24693INSTALL='$INSTALL'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024694_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024695
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024696cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024697# If no file are specified by the user, then we need to provide default
24698# value. By we need to know if files were specified by the user.
24699ac_need_defaults=:
24700while test $# != 0
24701do
24702 case $1 in
24703 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024706 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024707 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024708 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024709 ac_option=$1
24710 ac_optarg=$2
24711 ac_shift=shift
24712 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024713 esac
24714
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024715 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024716 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024717 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24718 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024719 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24720 echo "$ac_cs_version"; exit ;;
24721 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024722 debug=: ;;
24723 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024724 $ac_shift
24725 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024726 ac_need_defaults=false;;
24727 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000024728 $ac_shift
24729 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024730 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024731 --he | --h)
24732 # Conflict between --help and --header
24733 { echo "$as_me: error: ambiguous option: $1
24734Try \`$0 --help' for more information." >&2
24735 { (exit 1); exit 1; }; };;
24736 --help | --hel | -h )
24737 echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024738 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24739 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24740 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000024741
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024742 # This is an error.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024743 -*) { echo "$as_me: error: unrecognized option: $1
24744Try \`$0 --help' for more information." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024745 { (exit 1); exit 1; }; } ;;
24746
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024747 *) ac_config_targets="$ac_config_targets $1"
24748 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024749
24750 esac
24751 shift
24752done
24753
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024754ac_configure_extra_args=
24755
24756if $ac_cs_silent; then
24757 exec 6>/dev/null
24758 ac_configure_extra_args="$ac_configure_extra_args --silent"
24759fi
24760
24761_ACEOF
24762cat >>$CONFIG_STATUS <<_ACEOF
24763if \$ac_cs_recheck; then
Jeremy White0ebeb532006-06-20 13:18:41 +020024764 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 +020024765 CONFIG_SHELL=$SHELL
24766 export CONFIG_SHELL
Jeremy White0ebeb532006-06-20 13:18:41 +020024767 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000024768fi
24769
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024770_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024771cat >>$CONFIG_STATUS <<\_ACEOF
24772exec 5>>config.log
24773{
24774 echo
24775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24776## Running $as_me. ##
24777_ASBOX
24778 echo "$ac_log"
24779} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024781_ACEOF
24782cat >>$CONFIG_STATUS <<_ACEOF
24783_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024784
24785cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024786
24787# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000024788for ac_config_target in $ac_config_targets
24789do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024790 case $ac_config_target in
24791 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
24792 "dlls/gdi/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
24793 "dlls/gdi/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
24794 "dlls/kernel/messages") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
24795 "dlls/user/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
24796 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
24797 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
24798 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
24799 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
24800 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
24801 "dlls/Maketest.rules") CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024802 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
24803 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24804 "dlls/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
24805 "dlls/activeds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
24806 "dlls/advapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
24807 "dlls/advapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
24808 "dlls/advpack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
24809 "dlls/advpack/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
24810 "dlls/amstream/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
24811 "dlls/atl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
24812 "dlls/avicap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
24813 "dlls/avifil32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
24814 "dlls/cabinet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
24815 "dlls/cabinet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cabinet/tests/Makefile" ;;
24816 "dlls/capi2032/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
24817 "dlls/cards/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
24818 "dlls/cfgmgr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
24819 "dlls/comcat/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Aric Stewart9c3b12b2006-07-13 14:16:59 -050024820 "dlls/comcat/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comcat/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024821 "dlls/comctl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
24822 "dlls/comctl32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
24823 "dlls/comdlg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/Makefile" ;;
Detlef Riekenberg955fe0d2006-07-03 22:55:53 +020024824 "dlls/comdlg32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/comdlg32/tests/Makefile" ;;
Detlef Riekenberg5640b562006-06-20 06:12:36 +020024825 "dlls/compstui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/compstui/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024826 "dlls/crtdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
24827 "dlls/crypt32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
24828 "dlls/crypt32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
24829 "dlls/cryptdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Maarten Lankhorstd2ee3872006-06-28 16:51:41 +020024830 "dlls/cryptnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/cryptnet/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024831 "dlls/ctl3d32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ctl3d32/Makefile" ;;
24832 "dlls/d3d8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
24833 "dlls/d3d8/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d8/tests/Makefile" ;;
24834 "dlls/d3d9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
24835 "dlls/d3d9/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3d9/tests/Makefile" ;;
24836 "dlls/d3dim/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
24837 "dlls/d3drm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
24838 "dlls/d3dx8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
24839 "dlls/d3dxof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
24840 "dlls/dbghelp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
24841 "dlls/dciman32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
24842 "dlls/ddraw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
24843 "dlls/ddraw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
24844 "dlls/devenum/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
24845 "dlls/dinput/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
24846 "dlls/dinput/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
24847 "dlls/dinput8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
24848 "dlls/dmband/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
24849 "dlls/dmcompos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
24850 "dlls/dmime/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
24851 "dlls/dmloader/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
24852 "dlls/dmscript/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
24853 "dlls/dmstyle/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
24854 "dlls/dmsynth/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
24855 "dlls/dmusic/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
24856 "dlls/dmusic32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
24857 "dlls/dnsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/Makefile" ;;
24858 "dlls/dnsapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dnsapi/tests/Makefile" ;;
24859 "dlls/dplay/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
24860 "dlls/dplayx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
24861 "dlls/dpnet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
24862 "dlls/dpnhpast/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
24863 "dlls/dsound/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
24864 "dlls/dsound/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
24865 "dlls/dswave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
24866 "dlls/dxdiagn/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
24867 "dlls/dxerr8/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
24868 "dlls/dxerr9/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
24869 "dlls/dxguid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
24870 "dlls/gdi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
24871 "dlls/gdi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
24872 "dlls/glu32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
24873 "dlls/glut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
24874 "dlls/gphoto2.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/gphoto2.ds/Makefile" ;;
24875 "dlls/hhctrl.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Mike McCormackb732e9b2006-06-06 19:26:24 +090024876 "dlls/hlink/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/Makefile" ;;
Mike McCormacka430db92006-08-02 02:19:15 +090024877 "dlls/hlink/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/hlink/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024878 "dlls/iccvid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
24879 "dlls/icmp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
24880 "dlls/ifsmgr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
24881 "dlls/imaadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imaadp32.acm/Makefile" ;;
24882 "dlls/imagehlp/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
24883 "dlls/imm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Mike McCormack4d3877b2006-07-11 11:13:18 +090024884 "dlls/infosoft/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/infosoft/Makefile" ;;
24885 "dlls/inseng/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/inseng/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024886 "dlls/iphlpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
24887 "dlls/iphlpapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
24888 "dlls/itss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
24889 "dlls/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
24890 "dlls/kernel/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
24891 "dlls/lz32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/Makefile" ;;
24892 "dlls/lz32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/lz32/tests/Makefile" ;;
24893 "dlls/mapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
24894 "dlls/mapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
24895 "dlls/mciavi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciavi32/Makefile" ;;
24896 "dlls/mcicda/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mcicda/Makefile" ;;
24897 "dlls/mciseq/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciseq/Makefile" ;;
24898 "dlls/mciwave/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mciwave/Makefile" ;;
24899 "dlls/midimap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/midimap/Makefile" ;;
24900 "dlls/mlang/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
24901 "dlls/mlang/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
24902 "dlls/mmdevldr.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
24903 "dlls/monodebg.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
24904 "dlls/mpr/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
24905 "dlls/mprapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mprapi/Makefile" ;;
24906 "dlls/msacm32.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32.drv/Makefile" ;;
24907 "dlls/msacm32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/Makefile" ;;
24908 "dlls/msacm32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msacm32/tests/Makefile" ;;
24909 "dlls/msadp32.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msadp32.acm/Makefile" ;;
24910 "dlls/mscms/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
24911 "dlls/mscms/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
24912 "dlls/msdmo/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
24913 "dlls/msftedit/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msftedit/Makefile" ;;
24914 "dlls/msg711.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msg711.acm/Makefile" ;;
24915 "dlls/mshtml/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
24916 "dlls/mshtml/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
24917 "dlls/msi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
24918 "dlls/msi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
24919 "dlls/msimg32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
24920 "dlls/msisys.ocx/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msisys.ocx/Makefile" ;;
24921 "dlls/msnet32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
24922 "dlls/msrle32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
24923 "dlls/msvcrt/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
24924 "dlls/msvcrt/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
24925 "dlls/msvcrt20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
24926 "dlls/msvcrt40/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
24927 "dlls/msvcrtd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
24928 "dlls/msvcrtd/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
24929 "dlls/msvfw32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvfw32/Makefile" ;;
24930 "dlls/msvidc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
24931 "dlls/mswsock/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
24932 "dlls/msxml3/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/Makefile" ;;
24933 "dlls/msxml3/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/msxml3/tests/Makefile" ;;
24934 "dlls/netapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
24935 "dlls/netapi32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
24936 "dlls/newdev/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
24937 "dlls/ntdll/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
24938 "dlls/ntdll/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
24939 "dlls/ntdsapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ntdsapi/Makefile" ;;
24940 "dlls/objsel/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/objsel/Makefile" ;;
24941 "dlls/odbc32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
24942 "dlls/odbccp32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
24943 "dlls/ole32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
24944 "dlls/ole32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
24945 "dlls/oleacc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
24946 "dlls/oleaut32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
24947 "dlls/oleaut32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
24948 "dlls/olecli32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olecli32/Makefile" ;;
24949 "dlls/oledlg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
24950 "dlls/olepro32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
24951 "dlls/olesvr32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/olesvr32/Makefile" ;;
24952 "dlls/opengl32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
24953 "dlls/powrprof/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
24954 "dlls/psapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
24955 "dlls/psapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
24956 "dlls/qcap/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
24957 "dlls/quartz/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
24958 "dlls/quartz/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Mike McCormackdefbc492006-07-07 18:21:36 +090024959 "dlls/query/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/query/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020024960 "dlls/rasapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
24961 "dlls/riched20/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
24962 "dlls/riched20/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched20/tests/Makefile" ;;
24963 "dlls/riched32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/riched32/Makefile" ;;
24964 "dlls/rpcrt4/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
24965 "dlls/rpcrt4/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
24966 "dlls/rsabase/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
24967 "dlls/rsabase/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
24968 "dlls/rsaenh/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
24969 "dlls/rsaenh/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
24970 "dlls/sane.ds/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sane.ds/Makefile" ;;
24971 "dlls/secur32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
24972 "dlls/secur32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/secur32/tests/Makefile" ;;
24973 "dlls/security/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/security/Makefile" ;;
24974 "dlls/sensapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
24975 "dlls/serialui/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
24976 "dlls/setupapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
24977 "dlls/setupapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/setupapi/tests/Makefile" ;;
24978 "dlls/sfc/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sfc/Makefile" ;;
24979 "dlls/shdocvw/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
24980 "dlls/shdocvw/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/tests/Makefile" ;;
24981 "dlls/shell32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
24982 "dlls/shell32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
24983 "dlls/shfolder/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
24984 "dlls/shlwapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
24985 "dlls/shlwapi/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
24986 "dlls/snmpapi/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
24987 "dlls/spoolss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/spoolss/Makefile" ;;
24988 "dlls/stdole2.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole2.tlb/Makefile" ;;
24989 "dlls/stdole32.tlb/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
24990 "dlls/sti/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
24991 "dlls/strmiids/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
24992 "dlls/tapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
24993 "dlls/twain_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/twain_32/Makefile" ;;
24994 "dlls/unicows/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
24995 "dlls/url/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
24996 "dlls/urlmon/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
24997 "dlls/urlmon/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
24998 "dlls/user/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
24999 "dlls/user/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Mike McCormacka6ea0f62006-06-05 14:01:10 +090025000 "dlls/userenv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/userenv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025001 "dlls/usp10/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/Makefile" ;;
25002 "dlls/usp10/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/usp10/tests/Makefile" ;;
25003 "dlls/uuid/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
25004 "dlls/uxtheme/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Paul Vriens569a4522006-06-13 14:16:58 +020025005 "dlls/uxtheme/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/tests/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025006 "dlls/vdhcp.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
25007 "dlls/vdmdbg/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
25008 "dlls/version/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
25009 "dlls/version/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
25010 "dlls/vmm.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
25011 "dlls/vnbt.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
25012 "dlls/vnetbios.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
25013 "dlls/vtdapi.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
25014 "dlls/vwin32.vxd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
25015 "dlls/w32skrnl/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/w32skrnl/Makefile" ;;
25016 "dlls/winecrt0/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winecrt0/Makefile" ;;
25017 "dlls/wined3d/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
25018 "dlls/winedos/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
25019 "dlls/winemp3.acm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winemp3.acm/Makefile" ;;
25020 "dlls/wineps.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wineps.drv/Makefile" ;;
Alexandre Julliardbdb4fab2006-06-16 09:57:50 +020025021 "dlls/winex11.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winex11.drv/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025022 "dlls/wininet/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
25023 "dlls/wininet/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
25024 "dlls/winmm/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
25025 "dlls/winmm/joystick/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
25026 "dlls/winmm/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
25027 "dlls/winmm/winealsa/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
25028 "dlls/winmm/winearts/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
25029 "dlls/winmm/wineaudioio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025030 "dlls/winmm/winecoreaudio/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winecoreaudio/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025031 "dlls/winmm/wineesd/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineesd/Makefile" ;;
25032 "dlls/winmm/winejack/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
25033 "dlls/winmm/winenas/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
25034 "dlls/winmm/wineoss/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
25035 "dlls/winnls32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winnls32/Makefile" ;;
25036 "dlls/winspool.drv/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/Makefile" ;;
25037 "dlls/winspool.drv/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/winspool.drv/tests/Makefile" ;;
25038 "dlls/wintab32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
25039 "dlls/wintrust/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
25040 "dlls/wldap32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
25041 "dlls/wnaspi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wnaspi32/Makefile" ;;
25042 "dlls/wow32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
25043 "dlls/ws2_32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/Makefile" ;;
25044 "dlls/ws2_32/tests/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/ws2_32/tests/Makefile" ;;
25045 "dlls/wsock32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
25046 "dlls/wtsapi32/Makefile") CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025047 "documentation/Makefile") CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
25048 "fonts/Makefile") CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
25049 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25050 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
25051 "libs/port/Makefile") CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025052 "libs/wine/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
25053 "libs/wpp/Makefile") CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
25054 "loader/Makefile") CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
25055 "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
25056 "programs/clock/Makefile") CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
25057 "programs/cmdlgtst/Makefile") CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
25058 "programs/control/Makefile") CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
25059 "programs/eject/Makefile") CONFIG_FILES="$CONFIG_FILES programs/eject/Makefile" ;;
25060 "programs/expand/Makefile") CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
25061 "programs/explorer/Makefile") CONFIG_FILES="$CONFIG_FILES programs/explorer/Makefile" ;;
25062 "programs/hh/Makefile") CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
25063 "programs/icinfo/Makefile") CONFIG_FILES="$CONFIG_FILES programs/icinfo/Makefile" ;;
25064 "programs/iexplore/Makefile") CONFIG_FILES="$CONFIG_FILES programs/iexplore/Makefile" ;;
25065 "programs/msiexec/Makefile") CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
25066 "programs/notepad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Piotr Caban68f590c2006-06-14 19:50:28 +020025067 "programs/oleview/Makefile") CONFIG_FILES="$CONFIG_FILES programs/oleview/Makefile" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025068 "programs/progman/Makefile") CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
25069 "programs/regedit/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
25070 "programs/regsvr32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
25071 "programs/rpcss/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
25072 "programs/rundll32/Makefile") CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
25073 "programs/start/Makefile") CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
25074 "programs/taskmgr/Makefile") CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
25075 "programs/uninstaller/Makefile") CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
25076 "programs/view/Makefile") CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
25077 "programs/wcmd/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
25078 "programs/wineboot/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
25079 "programs/winebrowser/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
25080 "programs/winecfg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
25081 "programs/wineconsole/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
25082 "programs/winedbg/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
25083 "programs/winefile/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
25084 "programs/winemenubuilder/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
25085 "programs/winemine/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
25086 "programs/winepath/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
25087 "programs/winetest/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
25088 "programs/winevdm/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
25089 "programs/winhelp/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
25090 "programs/winver/Makefile") CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
25091 "programs/wordpad/Makefile") CONFIG_FILES="$CONFIG_FILES programs/wordpad/Makefile" ;;
25092 "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
25093 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25094 "tools/widl/Makefile") CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
25095 "tools/winapi/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
25096 "tools/winebuild/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
25097 "tools/winedump/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
25098 "tools/winegcc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
25099 "tools/wmc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
25100 "tools/wrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
25101
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025102 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025103echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25104 { (exit 1); exit 1; }; };;
25105 esac
25106done
25107
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025108
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025109# If the user did not use the arguments to specify the items to instantiate,
25110# then the envvar interface is used. Set only those that are not.
25111# We use the long form for the default assignment because of an extremely
25112# bizarre bug on SunOS 4.1.3.
25113if $ac_need_defaults; then
25114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25117fi
25118
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025119# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025120# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025121# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025122# Hook for its removal unless debugging.
25123# Note that there is a small window in which the directory will not be cleaned:
25124# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025125$debug ||
25126{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025127 tmp=
25128 trap 'exit_status=$?
25129 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25130' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025131 trap '{ (exit 1); exit 1; }' 1 2 13 15
25132}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025133# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025134
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025135{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025136 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025137 test -n "$tmp" && test -d "$tmp"
25138} ||
25139{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025140 tmp=./conf$$-$RANDOM
25141 (umask 077 && mkdir "$tmp")
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025142} ||
25143{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025144 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025145 { (exit 1); exit 1; }
25146}
25147
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025148#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025149# Set up the sed scripts for CONFIG_FILES section.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025150#
25151
25152# No need to generate the scripts if there are no CONFIG_FILES.
25153# This happens for instance when ./config.status config.h
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025154if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025155
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025156_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025157
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025158# Create sed commands to just substitute file output variables.
25159
25160# Remaining file output variables are in a fragment that also has non-file
25161# output varibles.
25162
25163
25164
25165ac_delim='%!_!# '
25166for ac_last_try in false false false false false :; do
25167 cat >conf$$subs.sed <<_ACEOF
25168SHELL!$SHELL$ac_delim
25169PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25170PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25171PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25172PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25173PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25174PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25175exec_prefix!$exec_prefix$ac_delim
25176prefix!$prefix$ac_delim
25177program_transform_name!$program_transform_name$ac_delim
25178bindir!$bindir$ac_delim
25179sbindir!$sbindir$ac_delim
25180libexecdir!$libexecdir$ac_delim
25181datarootdir!$datarootdir$ac_delim
25182datadir!$datadir$ac_delim
25183sysconfdir!$sysconfdir$ac_delim
25184sharedstatedir!$sharedstatedir$ac_delim
25185localstatedir!$localstatedir$ac_delim
25186includedir!$includedir$ac_delim
25187oldincludedir!$oldincludedir$ac_delim
25188docdir!$docdir$ac_delim
25189infodir!$infodir$ac_delim
25190htmldir!$htmldir$ac_delim
25191dvidir!$dvidir$ac_delim
25192pdfdir!$pdfdir$ac_delim
25193psdir!$psdir$ac_delim
25194libdir!$libdir$ac_delim
25195localedir!$localedir$ac_delim
25196mandir!$mandir$ac_delim
25197DEFS!$DEFS$ac_delim
25198ECHO_C!$ECHO_C$ac_delim
25199ECHO_N!$ECHO_N$ac_delim
25200ECHO_T!$ECHO_T$ac_delim
25201LIBS!$LIBS$ac_delim
25202build_alias!$build_alias$ac_delim
25203host_alias!$host_alias$ac_delim
25204target_alias!$target_alias$ac_delim
25205build!$build$ac_delim
25206build_cpu!$build_cpu$ac_delim
25207build_vendor!$build_vendor$ac_delim
25208build_os!$build_os$ac_delim
25209host!$host$ac_delim
25210host_cpu!$host_cpu$ac_delim
25211host_vendor!$host_vendor$ac_delim
25212host_os!$host_os$ac_delim
25213WIN16_FILES!$WIN16_FILES$ac_delim
25214WIN16_INSTALL!$WIN16_INSTALL$ac_delim
25215SET_MAKE!$SET_MAKE$ac_delim
25216CC!$CC$ac_delim
25217CFLAGS!$CFLAGS$ac_delim
25218LDFLAGS!$LDFLAGS$ac_delim
25219CPPFLAGS!$CPPFLAGS$ac_delim
25220ac_ct_CC!$ac_ct_CC$ac_delim
25221EXEEXT!$EXEEXT$ac_delim
25222OBJEXT!$OBJEXT$ac_delim
25223CXX!$CXX$ac_delim
25224CXXFLAGS!$CXXFLAGS$ac_delim
25225ac_ct_CXX!$ac_ct_CXX$ac_delim
25226CPPBIN!$CPPBIN$ac_delim
25227TOOLSDIR!$TOOLSDIR$ac_delim
25228XMKMF!$XMKMF$ac_delim
25229CPP!$CPP$ac_delim
25230X_CFLAGS!$X_CFLAGS$ac_delim
25231X_PRE_LIBS!$X_PRE_LIBS$ac_delim
25232X_LIBS!$X_LIBS$ac_delim
25233X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
25234LEX!$LEX$ac_delim
25235LEXLIB!$LEXLIB$ac_delim
25236LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
25237XLEX!$XLEX$ac_delim
25238BISON!$BISON$ac_delim
25239AS!$AS$ac_delim
25240ac_ct_AS!$ac_ct_AS$ac_delim
25241LD!$LD$ac_delim
25242AR!$AR$ac_delim
25243RANLIB!$RANLIB$ac_delim
25244STRIP!$STRIP$ac_delim
25245WINDRES!$WINDRES$ac_delim
25246LN_S!$LN_S$ac_delim
Alexandre Julliardfdfc24c2006-08-05 21:17:11 +020025247LN!$LN$ac_delim
25248GREP!$GREP$ac_delim
25249EGREP!$EGREP$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025250_ACEOF
25251
Alexandre Julliardfdfc24c2006-08-05 21:17:11 +020025252 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 82; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025253 break
25254 elif $ac_last_try; then
25255 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25256echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25257 { (exit 1); exit 1; }; }
25258 else
25259 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025260 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025261done
25262
Jeremy White0ebeb532006-06-20 13:18:41 +020025263ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25264if test -n "$ac_eof"; then
25265 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25266 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025267fi
25268
25269cat >>$CONFIG_STATUS <<_ACEOF
25270cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25271/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25272/^[ ]*@MAKE_RULES@[ ]*$/{
25273r $MAKE_RULES
25274d
25275}
25276/^[ ]*@MAKE_DLL_RULES@[ ]*$/{
25277r $MAKE_DLL_RULES
25278d
25279}
25280/^[ ]*@MAKE_IMPLIB_RULES@[ ]*$/{
25281r $MAKE_IMPLIB_RULES
25282d
25283}
25284/^[ ]*@MAKE_TEST_RULES@[ ]*$/{
25285r $MAKE_TEST_RULES
25286d
25287}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025288/^[ ]*@MAKE_PROG_RULES@[ ]*$/{
25289r $MAKE_PROG_RULES
25290d
25291}
25292_ACEOF
25293sed '
25294s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25295s/^/s,@/; s/!/@,|#_!!_#|/
25296:n
25297t n
25298s/'"$ac_delim"'$/,g/; t
25299s/$/\\/; p
25300N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25301' >>$CONFIG_STATUS <conf$$subs.sed
25302rm -f conf$$subs.sed
25303cat >>$CONFIG_STATUS <<_ACEOF
25304CEOF$ac_eof
25305_ACEOF
25306
25307
25308ac_delim='%!_!# '
25309for ac_last_try in false false false false false :; do
25310 cat >conf$$subs.sed <<_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025311LDCONFIG!$LDCONFIG$ac_delim
25312INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25313INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25314INSTALL_DATA!$INSTALL_DATA$ac_delim
25315LINT!$LINT$ac_delim
25316LINTFLAGS!$LINTFLAGS$ac_delim
25317FONTFORGE!$FONTFORGE$ac_delim
25318PKG_CONFIG!$PKG_CONFIG$ac_delim
25319PRELINK!$PRELINK$ac_delim
25320LIBPTHREAD!$LIBPTHREAD$ac_delim
25321XLIB!$XLIB$ac_delim
25322XFILES!$XFILES$ac_delim
25323OPENGLFILES!$OPENGLFILES$ac_delim
25324GLU32FILES!$GLU32FILES$ac_delim
25325OPENGL_LIBS!$OPENGL_LIBS$ac_delim
25326GLUT_LIBS!$GLUT_LIBS$ac_delim
25327GLUT32FILES!$GLUT32FILES$ac_delim
25328NASLIBS!$NASLIBS$ac_delim
25329XML2LIBS!$XML2LIBS$ac_delim
25330XML2INCL!$XML2INCL$ac_delim
25331XSLTLIBS!$XSLTLIBS$ac_delim
25332XSLTINCL!$XSLTINCL$ac_delim
25333HALINCL!$HALINCL$ac_delim
25334CURSESLIBS!$CURSESLIBS$ac_delim
25335sane_devel!$sane_devel$ac_delim
25336SANELIBS!$SANELIBS$ac_delim
25337SANEINCL!$SANEINCL$ac_delim
25338gphoto2_devel!$gphoto2_devel$ac_delim
25339gphoto2port_devel!$gphoto2port_devel$ac_delim
25340GPHOTO2LIBS!$GPHOTO2LIBS$ac_delim
25341GPHOTO2INCL!$GPHOTO2INCL$ac_delim
25342ICULIBS!$ICULIBS$ac_delim
25343RESOLVLIBS!$RESOLVLIBS$ac_delim
25344LCMSLIBS!$LCMSLIBS$ac_delim
25345LDAPLIBS!$LDAPLIBS$ac_delim
25346FREETYPELIBS!$FREETYPELIBS$ac_delim
25347FREETYPEINCL!$FREETYPEINCL$ac_delim
25348ft_devel!$ft_devel$ac_delim
25349ft_devel2!$ft_devel2$ac_delim
25350FONTSSUBDIRS!$FONTSSUBDIRS$ac_delim
25351ARTSCCONFIG!$ARTSCCONFIG$ac_delim
25352ARTSLIBS!$ARTSLIBS$ac_delim
25353ARTSINCL!$ARTSINCL$ac_delim
25354ESDCONFIG!$ESDCONFIG$ac_delim
25355ESDLIBS!$ESDLIBS$ac_delim
25356ESDINCL!$ESDINCL$ac_delim
25357ALSALIBS!$ALSALIBS$ac_delim
25358AUDIOIOLIBS!$AUDIOIOLIBS$ac_delim
25359EXTRACFLAGS!$EXTRACFLAGS$ac_delim
25360BUILTINFLAG!$BUILTINFLAG$ac_delim
25361DLLEXT!$DLLEXT$ac_delim
25362DLLFLAGS!$DLLFLAGS$ac_delim
25363DLLIBS!$DLLIBS$ac_delim
25364LDSHARED!$LDSHARED$ac_delim
25365LDDLLFLAGS!$LDDLLFLAGS$ac_delim
25366LIBEXT!$LIBEXT$ac_delim
25367IMPLIBEXT!$IMPLIBEXT$ac_delim
25368DLLTOOL!$DLLTOOL$ac_delim
25369DLLWRAP!$DLLWRAP$ac_delim
25370LDEXECFLAGS!$LDEXECFLAGS$ac_delim
25371LDEXERPATH!$LDEXERPATH$ac_delim
25372LDDLLRPATH!$LDDLLRPATH$ac_delim
25373COREFOUNDATIONLIB!$COREFOUNDATIONLIB$ac_delim
25374IOKITLIB!$IOKITLIB$ac_delim
Emmanuel Maillard144a5352006-05-28 22:46:23 +020025375COREAUDIO!$COREAUDIO$ac_delim
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025376CROSSTEST!$CROSSTEST$ac_delim
25377CROSSCC!$CROSSCC$ac_delim
25378CROSSWINDRES!$CROSSWINDRES$ac_delim
25379LDPATH!$LDPATH$ac_delim
25380CRTLIBS!$CRTLIBS$ac_delim
25381SOCKETLIBS!$SOCKETLIBS$ac_delim
25382MAIN_BINARY!$MAIN_BINARY$ac_delim
25383EXTRA_BINARIES!$EXTRA_BINARIES$ac_delim
25384LDD!$LDD$ac_delim
25385LIBOBJS!$LIBOBJS$ac_delim
25386LTLIBOBJS!$LTLIBOBJS$ac_delim
25387_ACEOF
25388
Alexandre Julliardfdfc24c2006-08-05 21:17:11 +020025389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025390 break
25391 elif $ac_last_try; then
25392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25393echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25394 { (exit 1); exit 1; }; }
25395 else
25396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25397 fi
25398done
25399
Jeremy White0ebeb532006-06-20 13:18:41 +020025400ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25401if test -n "$ac_eof"; then
25402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25403 ac_eof=`expr $ac_eof + 1`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025404fi
25405
25406cat >>$CONFIG_STATUS <<_ACEOF
25407cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25408/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25409_ACEOF
25410sed '
25411s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25412s/^/s,@/; s/!/@,|#_!!_#|/
25413:n
25414t n
25415s/'"$ac_delim"'$/,g/; t
25416s/$/\\/; p
25417N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25418' >>$CONFIG_STATUS <conf$$subs.sed
25419rm -f conf$$subs.sed
25420cat >>$CONFIG_STATUS <<_ACEOF
25421:end
25422s/|#_!!_#|//g
25423CEOF$ac_eof
25424_ACEOF
25425
25426
25427# VPATH may cause trouble with some makes, so we remove $(srcdir),
25428# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25429# trailing colons and then remove the whole line if VPATH becomes empty
25430# (actually we leave an empty line to preserve line numbers).
25431if test "x$srcdir" = x.; then
25432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25433s/:*\$(srcdir):*/:/
25434s/:*\${srcdir}:*/:/
25435s/:*@srcdir@:*/:/
25436s/^\([^=]*=[ ]*\):*/\1/
25437s/:*$//
25438s/^[^=]*=[ ]*$//
25439}'
25440fi
25441
25442cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025443fi # test -n "$CONFIG_FILES"
25444
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025445
25446for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25447do
25448 case $ac_tag in
25449 :[FHLC]) ac_mode=$ac_tag; continue;;
25450 esac
25451 case $ac_mode$ac_tag in
25452 :[FHL]*:*);;
25453 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25454echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25455 { (exit 1); exit 1; }; };;
25456 :[FH]-) ac_tag=-:-;;
25457 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25458 esac
25459 ac_save_IFS=$IFS
25460 IFS=:
25461 set x $ac_tag
25462 IFS=$ac_save_IFS
25463 shift
25464 ac_file=$1
25465 shift
25466
25467 case $ac_mode in
25468 :L) ac_source=$1;;
25469 :[FH])
25470 ac_file_inputs=
25471 for ac_f
25472 do
25473 case $ac_f in
25474 -) ac_f="$tmp/stdin";;
25475 *) # Look for the file first in the build tree, then in the source tree
25476 # (if the path is not absolute). The absolute path cannot be DOS-style,
25477 # because $ac_f cannot contain `:'.
25478 test -f "$ac_f" ||
25479 case $ac_f in
25480 [\\/$]*) false;;
25481 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25482 esac ||
25483 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25484echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25485 { (exit 1); exit 1; }; };;
25486 esac
25487 ac_file_inputs="$ac_file_inputs $ac_f"
25488 done
25489
25490 # Let's still pretend it is `configure' which instantiates (i.e., don't
25491 # use $as_me), people would be surprised to read:
25492 # /* config.h. Generated by config.status. */
25493 configure_input="Generated from "`IFS=:
25494 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25495 if test x"$ac_file" != x-; then
25496 configure_input="$ac_file. $configure_input"
25497 { echo "$as_me:$LINENO: creating $ac_file" >&5
25498echo "$as_me: creating $ac_file" >&6;}
25499 fi
25500
25501 case $ac_tag in
25502 *:-:* | *:-) cat >"$tmp/stdin";;
25503 esac
25504 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025505 esac
25506
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025507 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025509 X"$ac_file" : 'X\(//\)[^/]' \| \
25510 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025511 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025512echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25514 s//\1/
25515 q
25516 }
25517 /^X\(\/\/\)[^/].*/{
25518 s//\1/
25519 q
25520 }
25521 /^X\(\/\/\)$/{
25522 s//\1/
25523 q
25524 }
25525 /^X\(\/\).*/{
25526 s//\1/
25527 q
25528 }
25529 s/.*/./; q'`
25530 { as_dir="$ac_dir"
25531 case $as_dir in #(
25532 -*) as_dir=./$as_dir;;
25533 esac
25534 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025535 as_dirs=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025536 while :; do
25537 case $as_dir in #(
25538 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25539 *) as_qdir=$as_dir;;
25540 esac
25541 as_dirs="'$as_qdir' $as_dirs"
25542 as_dir=`$as_dirname -- "$as_dir" ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000025544 X"$as_dir" : 'X\(//\)[^/]' \| \
25545 X"$as_dir" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025547echo X"$as_dir" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25549 s//\1/
25550 q
25551 }
25552 /^X\(\/\/\)[^/].*/{
25553 s//\1/
25554 q
25555 }
25556 /^X\(\/\/\)$/{
25557 s//\1/
25558 q
25559 }
25560 /^X\(\/\).*/{
25561 s//\1/
25562 q
25563 }
25564 s/.*/./; q'`
25565 test -d "$as_dir" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025566 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025567 test -z "$as_dirs" || eval "mkdir $as_dirs"
25568 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25569echo "$as_me: error: cannot create directory $as_dir" >&2;}
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025570 { (exit 1); exit 1; }; }; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025571 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025573case "$ac_dir" in
25574.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25575*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025576 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025577 # A ".." for each directory in $ac_dir_suffix.
25578 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25579 case $ac_top_builddir_sub in
25580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25582 esac ;;
25583esac
25584ac_abs_top_builddir=$ac_pwd
25585ac_abs_builddir=$ac_pwd$ac_dir_suffix
25586# for backward compatibility:
25587ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025588
25589case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025590 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025591 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025592 ac_top_srcdir=$ac_top_builddir_sub
25593 ac_abs_top_srcdir=$ac_pwd ;;
25594 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025595 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025596 ac_top_srcdir=$srcdir
25597 ac_abs_top_srcdir=$srcdir ;;
25598 *) # Relative name.
25599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25600 ac_top_srcdir=$ac_top_build_prefix$srcdir
25601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025602esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025603ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000025604
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025605
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025606 case $ac_mode in
25607 :F)
25608 #
25609 # CONFIG_FILE
25610 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025611
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025612 case $INSTALL in
25613 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025614 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000025615 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025616_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025617
25618cat >>$CONFIG_STATUS <<\_ACEOF
25619# If the template does not know about datarootdir, expand it.
25620# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020025621ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025622
25623case `sed -n '/datarootdir/ {
25624 p
25625 q
25626}
25627/@datadir@/p
25628/@docdir@/p
25629/@infodir@/p
25630/@localedir@/p
25631/@mandir@/p
25632' $ac_file_inputs` in
Jeremy White0ebeb532006-06-20 13:18:41 +020025633*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025634*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25635 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25636echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25637_ACEOF
25638cat >>$CONFIG_STATUS <<_ACEOF
25639 ac_datarootdir_hack='
25640 s&@datadir@&$datadir&g
25641 s&@docdir@&$docdir&g
25642 s&@infodir@&$infodir&g
25643 s&@localedir@&$localedir&g
25644 s&@mandir@&$mandir&g
25645 s&\\\${datarootdir}&$datarootdir&g' ;;
25646esac
25647_ACEOF
25648
25649# Neutralize VPATH when `$srcdir' = `.'.
25650# Shell code in configure.ac might set extrasub.
25651# FIXME: do we really want to maintain this feature?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025652cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025653 sed "$ac_vpsub
25654$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025655_ACEOF
25656cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025657:t
25658/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025659s&@configure_input@&$configure_input&;t t
25660s&@top_builddir@&$ac_top_builddir_sub&;t t
25661s&@srcdir@&$ac_srcdir&;t t
25662s&@abs_srcdir@&$ac_abs_srcdir&;t t
25663s&@top_srcdir@&$ac_top_srcdir&;t t
25664s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25665s&@builddir@&$ac_builddir&;t t
25666s&@abs_builddir@&$ac_abs_builddir&;t t
25667s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25668s&@INSTALL@&$ac_INSTALL&;t t
25669$ac_datarootdir_hack
25670" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025671
Jeremy White0ebeb532006-06-20 13:18:41 +020025672test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25673 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020025674 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Jeremy White0ebeb532006-06-20 13:18:41 +020025675 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25676which seems to be undefined. Please make sure it is defined." >&5
25677echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25678which seems to be undefined. Please make sure it is defined." >&2;}
25679
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025680 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025681 case $ac_file in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025682 -) cat "$tmp/out"; rm -f "$tmp/out";;
25683 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025684 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025685 ;;
25686 :H)
25687 #
25688 # CONFIG_HEADER
25689 #
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025690_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025691
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025692# Transform confdefs.h into a sed script `conftest.defines', that
25693# substitutes the proper values into config.h.in to produce config.h.
25694rm -f conftest.defines conftest.tail
25695# First, append a space to every undef/define line, to ease matching.
25696echo 's/$/ /' >conftest.defines
25697# Then, protect against being on the right side of a sed subst, or in
25698# an unquoted here document, in config.status. If some macros were
25699# called several times there might be several #defines for the same
25700# symbol, which is useless. But do not sort them, since the last
25701# AC_DEFINE must be honored.
25702ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
Jeremy White0ebeb532006-06-20 13:18:41 +020025703# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25704# NAME is the cpp macro being defined, VALUE is the value it is being given.
25705# PARAMS is the parameter list in the macro definition--in most cases, it's
25706# just an empty string.
25707ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25708ac_dB='\\)[ (].*,\\1define\\2'
25709ac_dC=' '
25710ac_dD=' ,'
25711
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025712uniq confdefs.h |
25713 sed -n '
25714 t rset
25715 :rset
25716 s/^[ ]*#[ ]*define[ ][ ]*//
25717 t ok
25718 d
25719 :ok
25720 s/[\\&,]/\\&/g
Jeremy White0ebeb532006-06-20 13:18:41 +020025721 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25722 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025723 ' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025724
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025725# Remove the space that was appended to ease matching.
25726# Then replace #undef with comments. This is necessary, for
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025727# example, in the case of _POSIX_SOURCE, which is predefined and required
25728# on some systems where configure will not decide to define it.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025729# (The regexp can be short, since the line contains either #define or #undef.)
25730echo 's/ $//
25731s,^[ #]*u.*,/* & */,' >>conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025732
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025733# Break up conftest.defines:
Jeremy White0ebeb532006-06-20 13:18:41 +020025734ac_max_sed_lines=50
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025735
25736# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25737# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25738# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25739# et cetera.
25740ac_in='$ac_file_inputs'
25741ac_out='"$tmp/out1"'
25742ac_nxt='"$tmp/out2"'
25743
25744while :
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025745do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025746 # Write a here document:
Jeremy White0ebeb532006-06-20 13:18:41 +020025747 cat >>$CONFIG_STATUS <<_ACEOF
25748 # First, check the format of the line:
25749 cat >"\$tmp/defines.sed" <<\\CEOF
25750/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25751/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025752b
Jeremy White0ebeb532006-06-20 13:18:41 +020025753:def
25754_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025755 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025756 echo 'CEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025757 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25758 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25759 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25760 grep . conftest.tail >/dev/null || break
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025761 rm -f conftest.defines
25762 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025763done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025764rm -f conftest.defines conftest.tail
Alexandre Julliard18f92e71996-07-17 20:02:21 +000025765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025766echo "ac_result=$ac_in" >>$CONFIG_STATUS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025767cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025768 if test x"$ac_file" != x-; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025769 echo "/* $configure_input */" >"$tmp/config.h"
25770 cat "$ac_result" >>"$tmp/config.h"
25771 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025772 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025773echo "$as_me: $ac_file is unchanged" >&6;}
25774 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025775 rm -f $ac_file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025776 mv "$tmp/config.h" $ac_file
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025777 fi
25778 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025779 echo "/* $configure_input */"
25780 cat "$ac_result"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025781 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025782 rm -f "$tmp/out12"
25783 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025784
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025785 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25786echo "$as_me: executing $ac_file commands" >&6;}
25787 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025788 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025789
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020025790
25791 case $ac_file$ac_mode in
25792 "dlls/gdi/enhmfdrv":C) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
25793echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
25794 "dlls/gdi/mfdrv":C) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
25795echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
25796 "dlls/kernel/messages":C) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
25797echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
25798 "dlls/user/resources":C) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
25799echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
25800 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps.drv/data" >&5
25801echo "$as_me: creating dlls/wineps.drv/data" >&6;} && mkdir "dlls/wineps.drv/data") ;;
25802 "include/wine":C) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
25803echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
25804
25805 esac
25806done # for ac_tag
25807
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000025808
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025809{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025810_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025811chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025812ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025813
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025814
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025815# configure is writing to config.log, and then calls config.status.
25816# config.status does its own redirection, appending to config.log.
25817# Unfortunately, on DOS this fails, as config.log is still kept open
25818# by configure, so config.status won't be able to write to it; its
25819# output is simply discarded. So we exec the FD to /dev/null,
25820# effectively closing config.log, so it can be properly (re)opened and
25821# appended to by config.status. When coming back to configure, we
25822# need to make the FD available again.
25823if test "$no_create" != yes; then
25824 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025825 ac_config_status_args=
25826 test "$silent" = yes &&
25827 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025828 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000025829 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000025830 exec 5>>config.log
25831 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25832 # would make configure fail if this is the last instruction.
25833 $ac_cs_success || { (exit 1); exit 1; }
25834fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025835
Alexandre Julliarddaa28862002-04-11 21:54:01 +000025836
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025837if test "$have_x" = "no"
25838then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025839 echo >&2
25840 { echo "$as_me:$LINENO: WARNING: X development files not found. Wine will be built without" >&5
25841echo "$as_me: WARNING: X development files not found. Wine will be built without" >&2;}
25842 { echo "$as_me:$LINENO: WARNING: X support, which currently does not work, and probably" >&5
25843echo "$as_me: WARNING: X support, which currently does not work, and probably" >&2;}
25844 { echo "$as_me:$LINENO: WARNING: isn't what you want anyway. You will need to install devel" >&5
25845echo "$as_me: WARNING: isn't what you want anyway. You will need to install devel" >&2;}
25846 { echo "$as_me:$LINENO: WARNING: packages of Xlib/Xfree86 at the very least." >&5
25847echo "$as_me: WARNING: packages of Xlib/Xfree86 at the very least." >&2;}
Ove Kaaven8b4431f1999-01-23 13:59:11 +000025848fi
25849
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000025850if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000025851then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025852 echo >&2
25853 { echo "$as_me:$LINENO: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&5
25854echo "$as_me: WARNING: Old Mesa headers detected. Wine will be built without Direct3D" >&2;}
25855 { echo "$as_me:$LINENO: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&5
25856echo "$as_me: WARNING: support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)." >&2;}
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000025857fi
25858
Ian Pilcher563598d2001-05-16 20:56:05 +000025859if test "$wine_cv_msg_freetype" = "yes"
25860then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025861 echo >&2
25862 { echo "$as_me:$LINENO: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&5
25863echo "$as_me: WARNING: Your system appears to have the FreeType 2 runtime libraries" >&2;}
25864 { echo "$as_me:$LINENO: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&5
25865echo "$as_me: WARNING: installed, but 'freetype-config' is not in your PATH. Install" >&2;}
25866 { echo "$as_me:$LINENO: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&5
25867echo "$as_me: WARNING: the freetype-devel package (or its equivalent on your distribution)" >&2;}
25868 { echo "$as_me:$LINENO: WARNING: to enable Wine to use TrueType fonts." >&5
25869echo "$as_me: WARNING: to enable Wine to use TrueType fonts." >&2;}
Ian Pilcher563598d2001-05-16 20:56:05 +000025870fi
25871
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025872if test -z "$FONTSSUBDIRS"
Mike McCormack8f6aa412006-04-04 13:36:51 +090025873then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025874 echo >&2
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025875 if test "$FONTFORGE" = "false"
25876 then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025877 { echo "$as_me:$LINENO: WARNING: FontForge is missing." >&5
25878echo "$as_me: WARNING: FontForge is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025879 else
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025880 { echo "$as_me:$LINENO: WARNING: FreeType is missing." >&5
25881echo "$as_me: WARNING: FreeType is missing." >&2;}
Alexandre Julliardbaf3f5d2006-06-08 11:26:44 +020025882 fi
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025883 { echo "$as_me:$LINENO: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&5
25884echo "$as_me: WARNING: Fonts will not be built. Dialog text may be invisible or unaligned." >&2;}
Mike McCormack8f6aa412006-04-04 13:36:51 +090025885fi
25886
Alexandre Julliard82776022005-08-08 11:17:25 +000025887if test -z "$ALSALIBS" -a \
25888 -z "$ARTSC_LIBS" -a \
25889 -z "$AUDIOIOLIBS" -a \
25890 -z "$NASLIBS" -a \
25891 -z "$ESD_LIBS" -a \
25892 -z "$ac_cv_lib_soname_jack" -a \
25893 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
25894 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
25895 "$ac_cv_header_soundcard_h" != "yes"
Francois Gouget99d026f2005-03-19 17:08:18 +000025896then
Alexandre Julliardbb7fe682006-06-15 16:52:32 +020025897 echo >&2
25898 { echo "$as_me:$LINENO: WARNING: No sound system was found. Windows applications will be silent." >&5
25899echo "$as_me: WARNING: No sound system was found. Windows applications will be silent." >&2;}
25900 { echo "$as_me:$LINENO: WARNING: The currently supported sound systems are:" >&5
25901echo "$as_me: WARNING: The currently supported sound systems are:" >&2;}
25902 { echo "$as_me:$LINENO: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&5
25903echo "$as_me: WARNING: ALSA, ARTS, EsounD, AudioIO, Jack, NAS and OSS" >&2;}
Francois Gouget99d026f2005-03-19 17:08:18 +000025904fi
25905
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025906echo
Vincent Béron5606d102004-08-19 00:03:45 +000025907echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000025908echo
25909