blob: caad79e0ad59744e95299cb3d0299c773de01d75 [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 Julliard8c850a82011-07-22 19:32:43 +02003# Generated by GNU Autoconf 2.68 for Wine 1.3.25.
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 Julliardfa8c4f72009-12-28 11:43:02 +01007#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010011#
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022 emulate sh
23 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020027 setopt NO_GLOB_SUBST
28else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010034esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000035fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010036
37
Alexandre Julliardabf50482008-10-31 12:56:53 +010038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020062 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
Alexandre Julliarddaa28862002-04-11 21:54:01 +000076# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000083fi
84
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020094as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020095case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000098for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200104IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000105
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200115 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200116fi
117
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200135
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
Alexandre Julliard9797da42011-04-27 17:37:43 +0200220 # Preserve -v and -x to the replacement shell.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
Alexandre Julliard9797da42011-04-27 17:37:43 +0200225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: wine-devel@winehq.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200374# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200375as_fn_error ()
376{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200381 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200382 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200383 as_fn_exit $as_status
384} # as_fn_error
385
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200404
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +0100409$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200430
431
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000441 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000446 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000449 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200450 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000451 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200452 chmod +x "$as_me.lineno" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200463ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200464case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200465-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200466 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200471 esac;;
472*)
473 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000474esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +0100481 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200482fi
Alexandre Julliardabf50482008-10-31 12:56:53 +0100483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000495 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100496 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000497else
498 as_ln_s='cp -p'
499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000502
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000503if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200504 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000505else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000506 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000507 as_mkdir_p=false
508fi
509
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200512else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100521 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100522 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200523 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +0100524 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100525 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200530fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100531as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000532
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000533# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000535
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000536# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000538
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000539
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +0100540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000542
543# Name of the host.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000548#
549# Initializations.
550#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000551ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200552ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000553ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200554LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000555cross_compiling=no
556subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000557MFLAGS=
558MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000559
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000560# Identity of this package.
561PACKAGE_NAME='Wine'
562PACKAGE_TARNAME='wine'
Alexandre Julliard8c850a82011-07-22 19:32:43 +0200563PACKAGE_VERSION='1.3.25'
564PACKAGE_STRING='Wine 1.3.25'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000565PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200566PACKAGE_URL='http://www.winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000567
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568ac_unique_file="server/atom.c"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Phil Krylovf0ca5862006-11-05 23:03:46 +0300572#ifdef HAVE_SYS_TYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000573# include <sys/types.h>
574#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300575#ifdef HAVE_SYS_STAT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000576# include <sys/stat.h>
577#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300578#ifdef STDC_HEADERS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Phil Krylovf0ca5862006-11-05 23:03:46 +0300582# ifdef HAVE_STDLIB_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000583# include <stdlib.h>
584# endif
585#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300592#ifdef HAVE_STRINGS_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000593# include <strings.h>
594#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300595#ifdef HAVE_INTTYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596# include <inttypes.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200597#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300598#ifdef HAVE_STDINT_H
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200599# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000600#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300601#ifdef HAVE_UNISTD_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602# include <unistd.h>
603#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000604
Alexandre Julliardabf50482008-10-31 12:56:53 +0100605ac_subst_vars='LTLIBOBJS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200606LIBOBJS
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +0100607LINGUAS
Alexandre Julliard9b99cd12011-05-24 11:11:22 +0200608ALL_TEST_RESOURCES
Alexandre Julliardabf50482008-10-31 12:56:53 +0100609LDAPLIBS
610LIBPOLL
611LIBDL
612EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200613MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100614SOCKETLIBS
615CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200616TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100617LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200618UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100619BUILTINFLAG
620EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100621LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100622LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500623LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200624PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100625FONTCONFIGINCL
626CUPSINCL
Alexandre Julliardf60a0f52011-05-02 20:06:49 +0200627OSS4INCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100628ALSALIBS
Aric Stewart2914d652010-10-20 13:55:16 -0500629GSTREAMER_INCL
630GSTREAMER_LIBS
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100631LIBGETTEXTPO
Jacek Caban11ca05f2009-05-29 23:35:13 +0200632ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100633FREETYPEINCL
634FREETYPELIBS
635ft_devel
636LCMSLIBS
637RESOLVLIBS
638GPHOTO2INCL
639GPHOTO2LIBS
640gphoto2port_devel
641gphoto2_devel
642SANEINCL
643sane_devel
644GNUTLSINCL
645HALINCL
646XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100647XML2INCL
648XML2LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100649X_EXTRA_LIBS
650X_LIBS
651X_PRE_LIBS
652X_CFLAGS
653XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100654LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100655CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100656CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200657CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200658PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100659CARBONLIB
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +0100660QUICKTIMELIB
Alexandre Julliardfac67412010-12-03 14:16:55 +0100661LIBOPENCL
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100662FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100663COREAUDIO
Alexandre Julliard45db3482011-03-14 14:25:45 +0100664SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100665DISKARBITRATIONLIB
666LDEXECFLAGS
Ken Thomases21137cd2011-01-05 07:25:23 -0600667APPLICATIONSERVICESLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100668IOKITLIB
669COREFOUNDATIONLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100670DLLWRAP
671DLLTOOL
672LDD
673LDRPATH_LOCAL
674LDRPATH_INSTALL
675IMPLIBEXT
676LIBEXT
677LDDLLFLAGS
678LDSHARED
679DLLFLAGS
680DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100681CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100682OPENGL_LIBS
683XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500684MAINTAINER_MODE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100685ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100686CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100687RSVG
688PKG_CONFIG
689FONTFORGE
690LINTFLAGS
691LINT
692INSTALL_DATA
693INSTALL_SCRIPT
694INSTALL_PROGRAM
695LDCONFIG
696EGREP
697GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100698LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100699RANLIB
700ARFLAGS
701ac_ct_AR
702AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100703BISON
704FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100705TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200706WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100707TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100708CPPBIN
709ac_ct_CXX
710CXXFLAGS
711CXX
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200758PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200766ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100767MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200768MAKE_DLL_RULES
769MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200770MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100771ac_user_opts='
772enable_option_checking
773enable_win16
774enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100775enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100776enable_maintainer_mode
777with_alsa
Alexandre Julliardabf50482008-10-31 12:56:53 +0100778with_capi
779with_cms
780with_coreaudio
781with_cups
782with_curses
Alexandre Julliardabf50482008-10-31 12:56:53 +0100783with_fontconfig
784with_freetype
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100785with_gettextpo
Alexandre Julliardabf50482008-10-31 12:56:53 +0100786with_gphoto
787with_glu
788with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200789with_gsm
Aric Stewart2914d652010-10-20 13:55:16 -0500790with_gstreamer
Alexandre Julliardabf50482008-10-31 12:56:53 +0100791with_hal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100792with_jpeg
793with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500794with_mpg123
Chris Robinson862965f2009-08-25 03:26:35 -0700795with_openal
Peter Urbanec65c84d72010-12-02 23:41:48 +1100796with_opencl
Alexandre Julliardabf50482008-10-31 12:56:53 +0100797with_opengl
798with_openssl
799with_oss
800with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100801with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100802with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600803with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100804with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100805with_xcomposite
806with_xcursor
807with_xinerama
808with_xinput
Alexandre Julliard77e05ce2011-04-13 18:51:50 +0200809with_xinput2
Alexandre Julliardabf50482008-10-31 12:56:53 +0100810with_xml
811with_xrandr
812with_xrender
813with_xshape
814with_xshm
815with_xslt
816with_xxf86vm
Alexandre Julliardba6a41a2011-02-18 13:07:27 +0100817with_zlib
Alexandre Julliardabf50482008-10-31 12:56:53 +0100818with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200819with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200820enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100821with_x
822'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200823 ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100829LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200830CPPFLAGS
831CXX
832CXXFLAGS
833CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100834CPP
835XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200836
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000837
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000839ac_init_help=
840ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100841ac_unrecognized_opts=
842ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000843# The variables have the same names as the options, with
844# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000845cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000856verbose=
857x_includes=NONE
858x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200865# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000874includedir='${prefix}/include'
875oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000885
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000886ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200887ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000888for ac_option
889do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200892 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000893 ac_prev=
894 continue
895 fi
896
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200897 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200901 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000908
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000912 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000913
914 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000915 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000917 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000928
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200929 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000930 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000932 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000941 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000943 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200945 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950"enable_$ac_useropt"
951"*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000966
967 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000969 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200971 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000990 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001002
1003 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001005 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001006 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001007
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001019 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001024 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001029 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001036 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001043 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001044 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001048 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001053 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001054
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001060 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001074 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001075
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001079 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001086 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001093 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001110 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001130 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001141 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001142
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001146 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001151 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001152
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001159
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001160 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001161 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001163 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001170
1171 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001175 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001186
1187 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001189 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001191 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001212 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001220
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001223 ;;
1224
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001231 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001232 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001233 export $ac_envvar ;;
1234
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001235 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliard9797da42011-04-27 17:37:43 +02001240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001248 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001249fi
1250
Alexandre Julliardabf50482008-10-31 12:56:53 +01001251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001264do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001265 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001273 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001276 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001279
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001282# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001283build=$build_alias
1284host=$host_alias
1285target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001286
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001287# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296fi
1297
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001302
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001303
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001307 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001309 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001310
1311
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001315 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001339 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001340 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001341 srcdir=..
1342 fi
1343else
1344 ac_srcdir_defaulted=no
1345fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001346if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001349fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001353 pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001370
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001377 cat <<_ACEOF
Alexandre Julliard8c850a82011-07-22 19:32:43 +02001378\`configure' configures Wine 1.3.25 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001392 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001400 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001402 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001433 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434
1435X features:
1436 --x-includes=DIR X include files are in DIR
1437 --x-libraries=DIR X library files are in DIR
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443fi
1444
1445if test -n "$ac_init_help"; then
1446 case $ac_init_help in
Alexandre Julliard8c850a82011-07-22 19:32:43 +02001447 short | recursive ) echo "Configuration of Wine 1.3.25:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001448 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450
1451Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001452 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001455 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001456 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1457 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001458 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001459 --enable-maintainer-mode
1460 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001461 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001466 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001467 --without-capi do not use CAPI (ISDN support)
1468 --without-cms do not use CMS (color management support)
1469 --without-coreaudio do not use the CoreAudio sound support
1470 --without-cups do not use CUPS
1471 --without-curses do not use (n)curses
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001472 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001473 --without-freetype do not use the FreeType library
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01001474 --without-gettextpo do not use the GetTextPO library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001475 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001476 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001477 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001478 --without-gsm do not use libgsm (GSM 06.10 codec support)
Aric Stewart2914d652010-10-20 13:55:16 -05001479 --without-gstreamer do not use GStreamer (codecs support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001480 --without-hal do not use HAL (dynamic device support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001483 --without-mpg123 do not use the mpg123 library
Chris Robinson862965f2009-08-25 03:26:35 -07001484 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001485 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001486 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001487 --without-openssl do not use OpenSSL
1488 --without-oss do not use the OSS sound support
1489 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001490 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001491 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001492 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001493 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001494 --without-xcomposite do not use the Xcomposite extension
1495 --without-xcursor do not use the Xcursor extension
1496 --without-xinerama do not use Xinerama (multi-monitor support)
1497 --without-xinput do not use the Xinput extension
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02001498 --without-xinput2 do not use the Xinput 2 extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001505 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01001506 --without-zlib do not use Zlib (data compression)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001507 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001508 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001509 --with-x use the X Window System
1510
1511Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001516 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001518 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001521 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001522 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
Alexandre Julliard875927f2004-01-02 01:55:29 +00001527Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001528Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001529_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001530ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001539 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001545 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001556
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001557case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001558 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001559 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001563 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001575 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001579 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001580 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001581 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001585 done
1586fi
1587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001588test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001589if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001590 cat <<\_ACEOF
Alexandre Julliard8c850a82011-07-22 19:32:43 +02001591Wine configure 1.3.25
Alexandre Julliard9797da42011-04-27 17:37:43 +02001592generated by GNU Autoconf 2.68
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001593
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001594Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001597_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001598 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001600
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
1604
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1631 ac_retval=0
1632else
1633 $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001639 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001640
1641} # ac_fn_c_try_compile
1642
1643# ac_fn_cxx_try_compile LINENO
1644# ----------------------------
1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_cxx_try_compile ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001677 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001678
1679} # ac_fn_cxx_try_compile
1680
1681# ac_fn_c_try_link LINENO
1682# -----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_link ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001723 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001724
1725} # ac_fn_c_try_link
1726
1727# ac_fn_c_try_cpp LINENO
1728# ----------------------
1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_cpp ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001748 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753else
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001760 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001761
1762} # ac_fn_c_try_cpp
1763
1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767# the include files in INCLUDES and setting the cache variable VAR
1768# accordingly.
1769ac_fn_c_check_header_mongrel ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliard9797da42011-04-27 17:37:43 +02001772 if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001775if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001776 $as_echo_n "(cached) " >&6
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781else
1782 # Is the header compilable?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784$as_echo_n "checking $2 usability... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792else
1793 ac_header_compiler=no
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797$as_echo "$ac_header_compiler" >&6; }
1798
1799# Is the header present?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801$as_echo_n "checking $2 presence... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808else
1809 ac_header_preproc=no
1810fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001811rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813$as_echo "$ac_header_preproc" >&6; }
1814
1815# So? What about this header?
1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001834( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001835## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001836## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001837 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 ;;
1839esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001842if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001843 $as_echo_n "(cached) " >&6
1844else
1845 eval "$3=\$ac_header_compiler"
1846fi
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001852
1853} # ac_fn_c_check_header_mongrel
1854
1855# ac_fn_c_try_run LINENO
1856# ----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858# that executables *can* be run.
1859ac_fn_c_try_run ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001893 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001894
1895} # ac_fn_c_try_run
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001906if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001907 $as_echo_n "(cached) " >&6
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916else
1917 eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001936if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982else
1983 eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996# ----------------------------------------------------
1997# Tries to find if the field MEMBER exists in type AGGR, after including
1998# INCLUDES, setting cache variable VAR accordingly.
1999ac_fn_c_check_member ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002004if eval \${$4+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$5
2010int
2011main ()
2012{
2013static $2 ac_aggr;
2014if (ac_aggr.$3)
2015return 0;
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$4=yes"
2022else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (sizeof ac_aggr.$3)
2031return 0;
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038else
2039 eval "$4=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$4
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002049
2050} # ac_fn_c_check_member
2051
2052# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053# -------------------------------------------
2054# Tests whether TYPE exists after having included INCLUDES, setting cache
2055# variable VAR accordingly.
2056ac_fn_c_check_type ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002061if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002062 $as_echo_n "(cached) " >&6
2063else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071if (sizeof ($2))
2072 return 0;
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081int
2082main ()
2083{
2084if (sizeof (($2)))
2085 return 0;
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091
2092else
2093 eval "$3=yes"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002103
2104} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106This file contains any messages produced by compilers while
2107running configure, to aid debugging if configure makes a mistake.
2108
Alexandre Julliard8c850a82011-07-22 19:32:43 +02002109It was created by Wine $as_me 1.3.25, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +02002110generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111
2112 $ $0 $@
2113
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002114_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002115exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116{
2117cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002118## --------- ##
2119## Platform. ##
2120## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121
2122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130
2131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002139_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002140
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002146 $as_echo "PATH: $as_dir"
2147 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002148IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002149
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150} >&5
2151
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002152cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002154
2155## ----------- ##
2156## Core tests. ##
2157## ----------- ##
2158
2159_ACEOF
2160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002161
2162# Keep a trace of the command line.
2163# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002164# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002165# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002166# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002167ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002168ac_configure_args0=
2169ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002170ac_must_keep_next=false
2171for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002172do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002180 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002182 esac
2183 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002185 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002186 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002187 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002188 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002189 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002201 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002202 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002203 ;;
2204 esac
2205 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002206done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002207{ ac_configure_args0=; unset ac_configure_args0;}
2208{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002209
2210# When interrupted or exit'd, cleanup temporary files, and complete
2211# config.log. We remove comments because anyway the quotes in there
2212# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002213# WARNING: Use '\'' to represent an apostrophe within the trap.
2214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002215trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002217 {
2218 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002219
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002220 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002221## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002222## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002223 echo
2224 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002225(
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002237 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002238 esac ;;
2239 esac
2240 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002241 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002244 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002248 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002250 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002251 esac |
2252 sort
2253)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002254 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002255
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002256 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002257## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002258## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002259 echo
2260 for ac_var in $ac_subst_vars
2261 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002262 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002263 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002265 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002266 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002267 done | sort
2268 echo
2269
2270 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002271 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002272## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002273## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002274 echo
2275 for ac_var in $ac_subst_files
2276 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002277 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002278 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002280 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002281 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002282 done | sort
2283 echo
2284 fi
2285
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002286 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002287 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002288## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002289## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002290 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002291 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002297 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002304done
2305ac_signal=0
2306
2307# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002308rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002309
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002310$as_echo "/* confdefs.h */" > confdefs.h
2311
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002312# Predefined preprocessor variables.
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_NAME "$PACKAGE_NAME"
2316_ACEOF
2317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320_ACEOF
2321
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_VERSION "$PACKAGE_VERSION"
2324_ACEOF
2325
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_STRING "$PACKAGE_STRING"
2328_ACEOF
2329
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332_ACEOF
2333
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_URL "$PACKAGE_URL"
2336_ACEOF
2337
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002338
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002339# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002340# Prefer an explicitly selected file to automatically selected ones.
2341ac_site_file1=NONE
2342ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002343if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002350elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002353else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002356fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002357for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002358do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002359 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002362$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002363 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367as_fn_error $? "failed to load site script $ac_site_file
Alexandre Julliard9797da42011-04-27 17:37:43 +02002368See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002369 fi
2370done
2371
2372if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002377$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002378 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002381 esac
2382 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002383else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002385$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386 >$cache_file
2387fi
2388
2389# Check that the precious variables saved in the cache have kept the same
2390# value.
2391ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002392for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002397 case $ac_old_set,$ac_new_set in
2398 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002400$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002401 ac_cache_corrupted=: ;;
2402 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002404$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002414$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002417 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002418$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002422$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002424$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425 fi;;
2426 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002427 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002436 esac
2437 fi
2438done
2439if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002443$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002445fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002446## -------------------- ##
2447## Main body of script. ##
2448## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002449
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002450ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002451ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002455
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002456
2457
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002458ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002459
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002460ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002461for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif test -f "$ac_dir/install.sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 break
2470 elif test -f "$ac_dir/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2474 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002475done
2476if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002478fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487
Howard Abrams13277481999-07-10 13:16:29 +00002488
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002489
2490
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002491
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002492# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002493if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002494 enableval=$enable_win16;
2495fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002496
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002497# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002498if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002499 enableval=$enable_win64;
2500fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002501
Alexandre Julliard35078f42008-11-21 10:16:12 +01002502# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002503if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002504 enableval=$enable_tests;
2505fi
2506
Alexandre Julliard9d037222008-03-20 13:00:12 +01002507# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002508if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002509 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002510fi
2511
Alexandre Julliardb8074992002-11-21 21:51:24 +00002512
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002513
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002514# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002515if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002516 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2517fi
2518
2519
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002520# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002521if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002522 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2523fi
2524
2525
2526# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002527if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002528 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2529fi
2530
2531
2532# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002533if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002534 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2535fi
2536
2537
2538# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002539if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002540 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002541fi
2542
2543
2544# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002545if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002546 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2547fi
2548
2549
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002550# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002551if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002552 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2553fi
2554
2555
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002556# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002557if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002558 withval=$with_freetype;
2559fi
2560
2561
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002562# Check whether --with-gettextpo was given.
2563if test "${with_gettextpo+set}" = set; then :
2564 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2565fi
2566
2567
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002568# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002569if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002570 withval=$with_gphoto;
2571fi
2572
2573
Alexandre Julliardad798732008-05-01 13:29:02 +02002574# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002575if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002576 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2577fi
2578
2579
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002580# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002581if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002582 withval=$with_gnutls;
2583fi
2584
2585
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002586# Check whether --with-gsm was given.
2587if test "${with_gsm+set}" = set; then :
2588 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02002589fi
2590
2591
Aric Stewart2914d652010-10-20 13:55:16 -05002592# Check whether --with-gstreamer was given.
2593if test "${with_gstreamer+set}" = set; then :
2594 withval=$with_gstreamer;
2595fi
2596
2597
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002598# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002599if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002600 withval=$with_hal;
2601fi
2602
2603
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002604# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002605if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002606 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2607fi
2608
2609
2610# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002611if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002612 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2613fi
2614
2615
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002616# Check whether --with-mpg123 was given.
2617if test "${with_mpg123+set}" = set; then :
2618 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2619fi
2620
2621
Chris Robinson862965f2009-08-25 03:26:35 -07002622# Check whether --with-openal was given.
2623if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002624 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
Chris Robinson862965f2009-08-25 03:26:35 -07002625fi
2626
2627
Peter Urbanec65c84d72010-12-02 23:41:48 +11002628# Check whether --with-opencl was given.
2629if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002630 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
Peter Urbanec65c84d72010-12-02 23:41:48 +11002631fi
2632
2633
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002634# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002635if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002636 withval=$with_opengl;
2637fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002638
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002639
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002640# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002641if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002642 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2643fi
2644
2645
2646# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002647if test "${with_oss+set}" = set; then :
Alexandre Julliardf60a0f52011-05-02 20:06:49 +02002648 withval=$with_oss;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002649fi
2650
2651
2652# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002653if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002654 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2655fi
2656
2657
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002658# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002659if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002660 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2661fi
2662
2663
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002664# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002665if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002666 withval=$with_sane;
2667fi
2668
2669
Vincent Povirk73cd5692010-03-08 17:07:29 -06002670# Check whether --with-tiff was given.
2671if test "${with_tiff+set}" = set; then :
2672 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2673fi
2674
2675
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002676# Check whether --with-v4l was given.
2677if test "${with_v4l+set}" = set; then :
2678 withval=$with_v4l;
2679fi
2680
2681
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002682# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002683if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002684 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2685fi
2686
2687
2688# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002689if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002690 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2691fi
2692
2693
2694# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002695if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002696 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2697fi
2698
2699
2700# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002701if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002702 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2703fi
2704
2705
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02002706# Check whether --with-xinput2 was given.
2707if test "${with_xinput2+set}" = set; then :
2708 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2709fi
2710
2711
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002712# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002713if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002714 withval=$with_xml;
2715fi
2716
2717
2718# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002719if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002720 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2721fi
2722
2723
2724# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002725if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002726 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2727fi
2728
2729
2730# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002731if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002732 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2733fi
2734
2735
2736# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002737if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002738 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2739fi
2740
2741
2742# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002743if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002744 withval=$with_xslt;
2745fi
2746
2747
Francois Gougeta49beb42008-06-26 14:02:17 +02002748# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002749if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002750 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002751fi
2752
2753
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01002754# Check whether --with-zlib was given.
2755if test "${with_zlib+set}" = set; then :
2756 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2757fi
2758
2759
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002761# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002762if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002763 withval=$with_wine_tools;
2764fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002765
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002766
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002767# Check whether --with-wine64 was given.
2768if test "${with_wine64+set}" = set; then :
2769 withval=$with_wine64;
2770fi
2771
2772
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002773# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002776
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002778$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002779if ${ac_cv_build+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002780 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002781else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002782 ac_build_alias=$build_alias
2783test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002785test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002789
2790fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002792$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002793case $ac_cv_build in
2794*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002796esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002797build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002809
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002810
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002812$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002813if ${ac_cv_host+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002814 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002815else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
Jeremy White0ebeb532006-06-20 13:18:41 +02002819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002821fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002822
2823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002825$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002826case $ac_cv_host in
2827*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002828*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002829esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002830host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_host
2833shift
2834host_cpu=$1
2835host_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839host_os=$*
2840IFS=$ac_save_IFS
2841case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002842
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002843
Alexandre Julliard71440f32005-05-19 14:28:17 +00002844
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002845case "$srcdir" in
2846 .) ;;
2847 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002848 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002849You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002850 fi ;;
2851esac
2852
Alexandre Julliard71440f32005-05-19 14:28:17 +00002853
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002855$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856set x ${MAKE-make}
2857ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard9797da42011-04-27 17:37:43 +02002858if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002859 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002860else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002861 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002862SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002863all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002864 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002865_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002866# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002867case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868 *@@@%%%=?*=@@@%%%*)
2869 eval ac_cv_prog_make_${ac_make}_set=yes;;
2870 *)
2871 eval ac_cv_prog_make_${ac_make}_set=no;;
2872esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002873rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002874fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002875if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002877$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002878 SET_MAKE=
2879else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002881$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002882 SET_MAKE="MAKE=${MAKE-make}"
2883fi
2884
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002894$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002895if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002896 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002906 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002910 break 2
2911 fi
2912done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002913 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002914IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002915
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002916fi
2917fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002918CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002919if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002921$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002922else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002924$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925fi
2926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002927
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002928fi
2929if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002934$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002935if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002936 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002937else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002946 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002948 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002950 break 2
2951 fi
2952done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002953 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002954IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002961$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002962else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002964$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002965fi
2966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002974ac_tool_warned=yes ;;
2975esac
2976 CC=$ac_ct_CC
2977 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002978else
2979 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002980fi
2981
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002982if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002983 if test -n "$ac_tool_prefix"; then
2984 # 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 +00002985set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002987$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002988if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002989 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002990else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002999 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003001 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003003 break 2
3004 fi
3005done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003006 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003007IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003008
3009fi
3010fi
3011CC=$ac_cv_prog_CC
3012if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003014$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003015else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003017$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003018fi
3019
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003020
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003021 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003022fi
3023if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003027$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003028if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003029 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003030else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003034 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003040 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3045 fi
3046 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003048 break 2
3049 fi
3050done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003051 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003052IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003053
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003054if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003064 fi
3065fi
3066fi
3067fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003068CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003069if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003071$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003072else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003074$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003075fi
3076
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003077
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003078fi
3079if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003081 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003086$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003087if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003088 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003089else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003098 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003102 break 2
3103 fi
3104done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003105 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003106IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003107
Eric Pouech18ad24a2000-01-16 22:16:33 +00003108fi
3109fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003111if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003113$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003114else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003116$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003117fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003119
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003120 test -n "$CC" && break
3121 done
3122fi
3123if test -z "$CC"; then
3124 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003125 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003126do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003130$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003131if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003132 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003133else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003142 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003144 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003146 break 2
3147 fi
3148done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003149 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003150IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003151
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003157$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003158else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003160$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003161fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003163
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003164 test -n "$ac_ct_CC" && break
3165done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003166
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003174ac_tool_warned=yes ;;
3175esac
3176 CC=$ac_ct_CC
3177 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178fi
3179
3180fi
3181
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003182
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003185as_fn_error $? "no acceptable C compiler found in \$PATH
Alexandre Julliard9797da42011-04-27 17:37:43 +02003186See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187
3188# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003190set X $ac_compile
3191ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003192for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003202 if test -s conftest.err; then
3203 sed '10a\
3204... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003207 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003208 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003212
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003214/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003215
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
Jeremy White0ebeb532006-06-20 13:18:41 +02003236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243done
3244rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003245
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003246if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003253 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile. We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003262for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003263do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003264 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3283 * )
3284 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003285 esac
3286done
Jeremy White0ebeb532006-06-20 13:18:41 +02003287test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003288
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003289else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003290 ac_file=''
3291fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003292if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003300as_fn_error 77 "C compiler cannot create executables
Alexandre Julliard9797da42011-04-27 17:37:43 +02003301See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003302else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003305fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003310ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003311
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003313ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003315$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003316if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003323 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003324 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003340else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Alexandre Julliard9797da42011-04-27 17:37:43 +02003344See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003345fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003346rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003348$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003349
3350rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run. If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003401as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003402If you meant to cross compile, use \`--host'.
Alexandre Julliard9797da42011-04-27 17:37:43 +02003403See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003404 fi
3405 fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003413$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003414if ${ac_cv_objext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003415 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003418/* end confdefs.h. */
3419
3420int
3421main ()
3422{
3423
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003429if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003436 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447done
3448else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003449 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003450sed 's/^/| /' conftest.$ac_ext >&5
3451
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003454as_fn_error $? "cannot compute suffix of object files: cannot compile
Alexandre Julliard9797da42011-04-27 17:37:43 +02003455See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003457rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003458fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003460$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003465if ${ac_cv_c_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003466 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003469/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003476#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003477
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003478 ;
3479 return 0;
3480}
3481_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003482if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003483 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003484else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003485 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003486fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003488ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003489
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003490fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495else
3496 GCC=
3497fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003501$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003502if ${ac_cv_prog_cc_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003503 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003504else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003510/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003520if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003521 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003522else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003535if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003536
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003537else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003539 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003551if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003552 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003553fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003555fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003557fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003559 ac_c_werror_flag=$ac_save_c_werror_flag
3560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003562$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003563if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003564 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003565elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003567 CFLAGS="-g -O2"
3568 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003569 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003570 fi
3571else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3576 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003580if ${ac_cv_prog_cc_c89+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003581 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003582else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003583 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003584ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003586/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003587#include <stdarg.h>
3588#include <stdio.h>
3589#include <sys/types.h>
3590#include <sys/stat.h>
3591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592struct buf { int x; };
3593FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594static char *e (p, i)
3595 char **p;
3596 int i;
3597{
3598 return p[i];
3599}
3600static char *f (char * (*g) (char **, int), char **p, ...)
3601{
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3608}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003609
3610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003613 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003616 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003617int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621#define FOO(x) 'x'
3622int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003624int test (int i, double x);
3625struct s1 {int (*f) (int a);};
3626struct s2 {int (*f) (double a);};
3627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628int argc;
3629char **argv;
3630int
3631main ()
3632{
3633return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 ;
3635 return 0;
3636}
3637_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003638for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003640do
3641 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003642 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003643 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003644fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003645rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003646 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003647done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003648rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003649CC=$ac_save_CC
3650
3651fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003652# AC_CACHE_VAL
3653case "x$ac_cv_prog_cc_c89" in
3654 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003656$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003657 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003659$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003660 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003661 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003663$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003664esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003665if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003666
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003667fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003668
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003675ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003676ac_cpp='$CXXCPP $CPPFLAGS'
3677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003680if test -z "$CXX"; then
3681 if test -n "$CCC"; then
3682 CXX=$CCC
3683 else
3684 if test -n "$ac_tool_prefix"; then
3685 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 +00003686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003690$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003691if ${ac_cv_prog_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003692 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003693else
3694 if test -n "$CXX"; then
3695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3696else
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003702 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003706 break 2
3707 fi
3708done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003709 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003710IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003711
3712fi
3713fi
3714CXX=$ac_cv_prog_CXX
3715if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003717$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003718else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003720$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003721fi
3722
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003723
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003724 test -n "$CXX" && break
3725 done
3726fi
3727if test -z "$CXX"; then
3728 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003729 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 +00003730do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003734$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003735if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003736 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003737else
3738 if test -n "$ac_ct_CXX"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3740else
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003746 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003748 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003750 break 2
3751 fi
3752done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003753 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003754IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003755
3756fi
3757fi
3758ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3759if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003761$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003762else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003764$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003765fi
3766
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003767
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003768 test -n "$ac_ct_CXX" && break
3769done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003770
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003771 if test "x$ac_ct_CXX" = x; then
3772 CXX="g++"
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003778ac_tool_warned=yes ;;
3779esac
3780 CXX=$ac_ct_CXX
3781 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003782fi
3783
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003784 fi
3785fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003786# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003787$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003788set X $ac_compile
3789ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003790for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003792case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797$as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003799 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003800 if test -s conftest.err; then
3801 sed '10a\
3802... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003805 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003806 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003810
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003812$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003813if ${ac_cv_cxx_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003814 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003815else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822#ifndef __GNUC__
3823 choke me
3824#endif
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003830if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003831 ac_compiler_gnu=yes
3832else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003833 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003834fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003836ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3837
3838fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003840$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3841if test $ac_compiler_gnu = yes; then
3842 GXX=yes
3843else
3844 GXX=
3845fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003846ac_test_CXXFLAGS=${CXXFLAGS+set}
3847ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003849$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003850if ${ac_cv_prog_cxx_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003851 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003852else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3854 ac_cxx_werror_flag=yes
3855 ac_cv_prog_cxx_g=no
3856 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003868if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003869 ac_cv_prog_cxx_g=yes
3870else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003871 CXXFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003873/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003874
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003875int
3876main ()
3877{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003878
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003879 ;
3880 return 0;
3881}
3882_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003883if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003884
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003885else
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003887 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003889/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003890
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003891int
3892main ()
3893{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003894
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003895 ;
3896 return 0;
3897}
3898_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003899if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003900 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003901fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003903fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003905fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003910$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003911if test "$ac_test_CXXFLAGS" = set; then
3912 CXXFLAGS=$ac_save_CXXFLAGS
3913elif test $ac_cv_prog_cxx_g = yes; then
3914 if test "$GXX" = yes; then
3915 CXXFLAGS="-g -O2"
3916 else
3917 CXXFLAGS="-g"
3918 fi
3919else
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-O2"
3922 else
3923 CXXFLAGS=
3924 fi
3925fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003932if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3934set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003936$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003937if ${ac_cv_prog_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003938 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003939else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003940 if test -n "$CPPBIN"; then
3941 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003948 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003950 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003952 break 2
3953 fi
3954done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003955 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003956IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003957
3958fi
3959fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003960CPPBIN=$ac_cv_prog_CPPBIN
3961if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003963$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003964else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003966$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003967fi
3968
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003969
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003970fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003971if test -z "$ac_cv_prog_CPPBIN"; then
3972 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003973 # Extract the first word of "cpp", so it can be a program name with args.
3974set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003976$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003977if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003978 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003979else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003980 if test -n "$ac_ct_CPPBIN"; then
3981 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003988 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003990 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003992 break 2
3993 fi
3994done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003995 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003996IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003997
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003998fi
3999fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004000ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4001if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004003$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004004else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004006$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004007fi
4008
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004009 if test "x$ac_ct_CPPBIN" = x; then
4010 CPPBIN="cpp"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004016ac_tool_warned=yes ;;
4017esac
4018 CPPBIN=$ac_ct_CPPBIN
4019 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004020else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004021 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004022fi
4023
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004024
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004025cat >>confdefs.h <<_ACEOF
4026#define EXEEXT "$ac_exeext"
4027_ACEOF
4028
4029
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004030case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004031 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004032 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004033 then
4034 CC="$CC -m64"
4035 CXX="$CXX -m64"
4036 LD="${LD:-ld} -arch x86_64"
4037 AS="${AS:-as} -arch x86_64"
4038 host_cpu="x86_64"
4039 notice_platform="64-bit "
4040 TARGETFLAGS="-m64"
4041
4042 else
4043 CC="$CC -m32"
4044 CXX="$CXX -m32"
4045 LD="${LD:-ld} -arch i386"
4046 AS="${AS:-as} -arch i386"
4047 host_cpu="i386"
4048 notice_platform="32-bit "
4049 TARGETFLAGS="-m32"
4050
4051 enable_win16=${enable_win16:-yes}
4052 fi
4053 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004054 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004055 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004056 then
4057 CC="$CC -m32"
4058 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004060$as_echo_n "checking whether $CC works... " >&6; }
4061
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004073if ac_fn_c_try_link "$LINENO"; then :
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004075$as_echo "yes" >&6; }
4076else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004078$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004079 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004080fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004081rm -f core conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004083 LD="${LD:-ld} -m elf_i386"
4084 AS="${AS:-as} --32"
4085 host_cpu="i386"
4086 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004087 TARGETFLAGS="-m32"
4088
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004089 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004090 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004091 if test "x${GCC}" = "xyes"
4092 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004094$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004096/* end confdefs.h. */
4097#include <stdarg.h>
4098int
4099main ()
4100{
4101void func(__builtin_ms_va_list *args);
4102 ;
4103 return 0;
4104}
4105_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004106if ac_fn_c_try_compile "$LINENO"; then :
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004108$as_echo "yes" >&6; }
4109else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004111$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004112 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004113fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004116 TARGETFLAGS="-m64"
4117
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004118 fi
4119 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004120 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004121 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004122 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004123 ;;
4124 i[3456789]86*)
4125 enable_win16=${enable_win16:-yes}
4126 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004127esac
4128
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004129enable_win16=${enable_win16:-no}
Alexandre Julliard4422d222011-05-10 13:26:28 +02004130enable_win64=${enable_win64:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004131
Alexandre Julliard95081552010-02-09 19:08:17 +01004132enable_winetest=${enable_winetest:-$enable_tests}
4133
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004134if test -n "$with_wine64"
4135then
4136 if test "x$enable_win64" = "xyes"
4137 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004138 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004139--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4140 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004141 WOW64_DISABLE=\#
4142
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004143 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004144 enable_server=${enable_server:-no}
4145 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004146elif test "x$enable_win64" = "xyes"
4147then
4148 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004149fi
4150
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004152$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004153if ${wine_cv_toolsdir+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004154 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004155else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004156 wine_cv_toolsdir="$with_wine_tools"
4157 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004158 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004159 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004160 elif test -n "$with_wine64"; then
4161 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004162 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004163 fi
4164 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004165 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004166 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4167 case "$wine_cv_toolsdir" in
4168 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004169 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004170 esac
4171 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004172 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004173 fi
4174fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004176$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004177TOOLSDIR=$wine_cv_toolsdir
4178
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004179if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004180then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004181 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004182
4183fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004184
Alexandre Julliard40916272007-03-08 13:19:50 +01004185for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004186do
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004190$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004191if ${ac_cv_prog_FLEX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004192 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004193else
Alexandre Julliard40916272007-03-08 13:19:50 +01004194 if test -n "$FLEX"; then
4195 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004196else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004202 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard40916272007-03-08 13:19:50 +01004204 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004206 break 2
4207 fi
4208done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004209 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004210IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004212fi
4213fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004214FLEX=$ac_cv_prog_FLEX
4215if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004217$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004218else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004220$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004221fi
4222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004223
Alexandre Julliard40916272007-03-08 13:19:50 +01004224 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004225done
Alexandre Julliard40916272007-03-08 13:19:50 +01004226test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004227
Alexandre Julliard40916272007-03-08 13:19:50 +01004228if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004229then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004230 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004231fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4233$as_echo_n "checking whether flex is recent enough... " >&6; }
4234cat >conftest.l <<EOF
4235%top{
4236#include "prediluvian.h"
4237}
4238%%
4239EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004240if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004241then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243$as_echo "yes" >&6; }
4244else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004247 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
Michael Stefaniucce307332009-12-29 18:07:02 +01004248fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004249
Mike McCormackc068f672004-03-16 03:11:39 +00004250for ac_prog in bison
4251do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004255$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004256if ${ac_cv_prog_BISON+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004257 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004258else
4259 if test -n "$BISON"; then
4260 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004267 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormackc068f672004-03-16 03:11:39 +00004269 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004271 break 2
4272 fi
4273done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004274 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004275IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004276
4277fi
4278fi
4279BISON=$ac_cv_prog_BISON
4280if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004282$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004283else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004285$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004286fi
4287
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004288
Mike McCormackc068f672004-03-16 03:11:39 +00004289 test -n "$BISON" && break
4290done
4291test -n "$BISON" || BISON="none"
4292
4293if test "$BISON" = "none"
4294then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004295 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004296fi
4297
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004298if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004299 for ac_prog in ar gar
4300 do
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004304$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004305if ${ac_cv_prog_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004306 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004307else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004316 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004320 break 2
4321 fi
4322done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004323 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004324IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004325
4326fi
4327fi
4328AR=$ac_cv_prog_AR
4329if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004331$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004332else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004334$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004335fi
4336
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004337
Francois Gouget86bd0462008-06-26 14:05:57 +02004338 test -n "$AR" && break
4339 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004340fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004341if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004342 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004343 for ac_prog in ar gar
4344do
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004348$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004349if ${ac_cv_prog_ac_ct_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004350 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004351else
4352 if test -n "$ac_ct_AR"; then
4353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004360 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004362 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004364 break 2
4365 fi
4366done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004367 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004368IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004369
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004370fi
4371fi
4372ac_ct_AR=$ac_cv_prog_ac_ct_AR
4373if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004375$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004376else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004378$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004379fi
4380
Francois Gouget86bd0462008-06-26 14:05:57 +02004381
4382 test -n "$ac_ct_AR" && break
4383done
4384
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004385 if test "x$ac_ct_AR" = x; then
4386 AR="ar"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004392ac_tool_warned=yes ;;
4393esac
4394 AR=$ac_ct_AR
4395 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004396fi
4397
Rob Shearman0c694d72008-03-04 15:53:41 +00004398ARFLAGS=rc
4399
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004400if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004404$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004405if ${ac_cv_prog_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004406 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004407else
4408 if test -n "$RANLIB"; then
4409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004416 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004420 break 2
4421 fi
4422done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004423 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004424IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004425
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004426fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004427fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004428RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004429if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004431$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004432else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004434$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004435fi
4436
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004437
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004438fi
4439if test -z "$ac_cv_prog_RANLIB"; then
4440 ac_ct_RANLIB=$RANLIB
4441 # Extract the first word of "ranlib", so it can be a program name with args.
4442set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004444$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004445if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004446 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004447else
4448 if test -n "$ac_ct_RANLIB"; then
4449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004456 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004458 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004460 break 2
4461 fi
4462done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004463 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004464IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004466fi
4467fi
4468ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004471$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004472else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004474$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004475fi
4476
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004477 if test "x$ac_ct_RANLIB" = x; then
4478 RANLIB=":"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004484ac_tool_warned=yes ;;
4485esac
4486 RANLIB=$ac_ct_RANLIB
4487 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004488else
4489 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004490fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004491
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004493$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004494LN_S=$as_ln_s
4495if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004497$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004498else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004500$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004501fi
4502
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004504$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004505if ${ac_cv_path_GREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004506 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004507else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004508 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004509 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004516 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4520# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004521 # Check for GNU $ac_path_GREP
4522case `"$ac_path_GREP" --version 2>&1` in
4523*GNU*)
4524 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525*)
4526 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004527 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004528 while :
4529 do
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004533 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004536 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_GREP="$ac_path_GREP"
4540 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004541 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4544 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004546esac
4547
Alexandre Julliardabf50482008-10-31 12:56:53 +01004548 $ac_path_GREP_found && break 3
4549 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004550 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004551 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004552IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004553 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004554 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004555 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004556else
4557 ac_cv_path_GREP=$GREP
4558fi
4559
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004562$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004563 GREP="$ac_cv_path_GREP"
4564
4565
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004567$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004568if ${ac_cv_path_EGREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004569 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004570else
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4573 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004574 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004575 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004582 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4586# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004587 # Check for GNU $ac_path_EGREP
4588case `"$ac_path_EGREP" --version 2>&1` in
4589*GNU*)
4590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591*)
4592 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004593 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004594 while :
4595 do
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004599 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004602 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_EGREP="$ac_path_EGREP"
4606 ac_path_EGREP_max=$ac_count
4607 fi
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004612esac
4613
Alexandre Julliardabf50482008-10-31 12:56:53 +01004614 $ac_path_EGREP_found && break 3
4615 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004616 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004617 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004618IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004619 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004620 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004621 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004622else
4623 ac_cv_path_EGREP=$EGREP
4624fi
4625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004626 fi
4627fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004629$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004630 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004631
4632
James Juranffe6b761999-06-12 08:21:57 +00004633# Extract the first word of "ldconfig", so it can be a program name with args.
4634set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004636$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004637if ${ac_cv_path_LDCONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004638 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004639else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004640 case $LDCONFIG in
4641 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004642 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4643 ;;
4644 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004646for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004650 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004652 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004654 break 2
4655 fi
4656done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004657 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004658IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004659
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004660 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004661 ;;
4662esac
4663fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004664LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004665if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004667$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004668else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004670$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004671fi
4672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004673
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004674# Find a good install program. We prefer a C program (faster),
4675# so one script is as good as another. But avoid the broken or
4676# incompatible versions:
4677# SysV /etc/install, /usr/sbin/install
4678# SunOS /usr/etc/install
4679# IRIX /sbin/install
4680# AIX /bin/install
4681# AmigaOS /C/install, which installs bootblocks on floppy discs
4682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004685# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004686# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004687# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004689$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004690if test -z "$INSTALL"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02004691if ${ac_cv_path_install+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004692 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004693else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004699 # Account for people who put trailing slashes in PATH elements.
4700case $as_dir/ in #((
4701 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004704 /usr/ucb/* ) ;;
4705 *)
4706 # OSF1 and SCO ODT 3.0 have their own names for install.
4707 # Don't use installbsd from OSF since it installs stuff as root
4708 # by default.
4709 for ac_prog in ginstall scoinst install; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004711 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00004712 if test $ac_prog = install &&
4713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4714 # AIX install. It has an incompatible calling convention.
4715 :
4716 elif test $ac_prog = install &&
4717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4718 # program-specific install script used by HP pwplus--don't use.
4719 :
4720 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004721 rm -rf conftest.one conftest.two conftest.dir
4722 echo one > conftest.one
4723 echo two > conftest.two
4724 mkdir conftest.dir
4725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4726 test -s conftest.one && test -s conftest.two &&
4727 test -s conftest.dir/conftest.one &&
4728 test -s conftest.dir/conftest.two
4729 then
4730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4731 break 3
4732 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004733 fi
4734 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004735 done
4736 done
4737 ;;
4738esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004739
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004740 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004741IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004742
Alexandre Julliardabf50482008-10-31 12:56:53 +01004743rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004744
4745fi
4746 if test "${ac_cv_path_install+set}" = set; then
4747 INSTALL=$ac_cv_path_install
4748 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004749 # As a last resort, use the slow shell script. Don't cache a
4750 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004751 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004752 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004753 INSTALL=$ac_install_sh
4754 fi
4755fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004757$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004758
4759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4760# It thinks the first close brace ends the variable substitution.
4761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4762
4763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4764
4765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4766
4767case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004768 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004769 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004770esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004771
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004772for ac_prog in lclint lint
4773do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004774 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004775set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004777$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004778if ${ac_cv_prog_LINT+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004779 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004780else
4781 if test -n "$LINT"; then
4782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4783else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004789 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004791 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004793 break 2
4794 fi
4795done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004796 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004797IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004798
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004799fi
4800fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004801LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004802if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004804$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004805else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004807$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004808fi
4809
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004810
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004811 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004812done
4813
4814if test "$LINT" = "lint"
4815then
4816 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4817 fi
4818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004819
4820
Huw Davies00acb5f2004-08-17 22:33:14 +00004821for ac_prog in fontforge
4822do
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004826$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004827if ${ac_cv_prog_FONTFORGE+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004828 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004829else
4830 if test -n "$FONTFORGE"; then
4831 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004838 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Huw Davies00acb5f2004-08-17 22:33:14 +00004840 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004842 break 2
4843 fi
4844done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004845 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004846IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004847
4848fi
4849fi
4850FONTFORGE=$ac_cv_prog_FONTFORGE
4851if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004853$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004854else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004856$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004857fi
4858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004859
Huw Davies00acb5f2004-08-17 22:33:14 +00004860 test -n "$FONTFORGE" && break
4861done
4862test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004863
Mike McCormack90c75bd2005-08-08 18:36:53 +00004864for ac_prog in pkg-config
4865do
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004869$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004870if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004871 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004872else
4873 if test -n "$PKG_CONFIG"; then
4874 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004881 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00004883 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004885 break 2
4886 fi
4887done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004888 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004889IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004890
4891fi
4892fi
4893PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4894if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004896$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004897else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004899$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004900fi
4901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004902
Mike McCormack90c75bd2005-08-08 18:36:53 +00004903 test -n "$PKG_CONFIG" && break
4904done
4905test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4906
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004907for ac_prog in rsvg
4908do
4909 # Extract the first word of "$ac_prog", so it can be a program name with args.
4910set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004912$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004913if ${ac_cv_prog_RSVG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004914 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004915else
4916 if test -n "$RSVG"; then
4917 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004924 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004928 break 2
4929 fi
4930done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004931 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004932IFS=$as_save_IFS
4933
4934fi
4935fi
4936RSVG=$ac_cv_prog_RSVG
4937if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004939$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004940else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004942$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004943fi
4944
4945
4946 test -n "$RSVG" && break
4947done
4948test -n "$RSVG" || RSVG="false"
4949
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004950for ac_prog in convert
4951do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953set dummy $ac_prog; ac_word=$2
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004956if ${ac_cv_prog_CONVERT+:} false; then :
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004957 $as_echo_n "(cached) " >&6
4958else
4959 if test -n "$CONVERT"; then
4960 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_CONVERT="$ac_prog"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973done
4974 done
4975IFS=$as_save_IFS
4976
4977fi
4978fi
4979CONVERT=$ac_cv_prog_CONVERT
4980if test -n "$CONVERT"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4982$as_echo "$CONVERT" >&6; }
4983else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989 test -n "$CONVERT" && break
4990done
4991test -n "$CONVERT" || CONVERT="false"
4992
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004993for ac_prog in icotool
4994do
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004998$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004999if ${ac_cv_prog_ICOTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005000 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005001else
5002 if test -n "$ICOTOOL"; then
5003 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005010 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005014 break 2
5015 fi
5016done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005017 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005018IFS=$as_save_IFS
5019
5020fi
5021fi
5022ICOTOOL=$ac_cv_prog_ICOTOOL
5023if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005025$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005026else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005028$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005029fi
5030
5031
5032 test -n "$ICOTOOL" && break
5033done
5034test -n "$ICOTOOL" || ICOTOOL="false"
5035
5036
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005037if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005038then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005039 MAINTAINER_MODE=\#
5040
5041else
Alexandre Julliard9797da42011-04-27 17:37:43 +02005042 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5043 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005044
5045 if test "$CONVERT" = false
5046 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005047 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5050$as_echo_n "checking for recent enough imagemagick... " >&6; }
5051 convert_version=`convert --version | head -n1`
5052 if test "x$convert_version" != "x"
5053 then
5054 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5055 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5056 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5057 then
5058 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005059 fi
5060 fi
5061 if test "$CONVERT" = false
5062 then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5064$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005065 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5068$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5069 fi
5070 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005071
5072 if test "$ICOTOOL" = false
5073 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005074 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5077$as_echo_n "checking for recent enough icotool... " >&6; }
5078 icotool_version=`icotool --version | head -n1`
5079 if test "x$icotool_version" != "x"
5080 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005081 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5082 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005083 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5084 then
5085 ICOTOOL=false
5086 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5087 fi
5088 fi
5089 if test "$ICOTOOL" = false
5090 then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5092$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005093 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5096$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5097 fi
5098 fi
5099
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005100fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005101
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005102
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005104$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005105if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005106 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005107else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005108 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005109LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005111/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005112
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005113/* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005116#ifdef __cplusplus
5117extern "C"
5118#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005119char i386_set_ldt ();
5120int
5121main ()
5122{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005123return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005124 ;
5125 return 0;
5126}
5127_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005128if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005129 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005130else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005131 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005132fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005133rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005135LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005136fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005138$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005139if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005140 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005141#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005142_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005143
5144 LIBS="-li386 $LIBS"
5145
Alexandre Julliard02e90081998-01-04 17:49:09 +00005146fi
5147
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005149$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005150if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005151 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005152else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005154LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005156/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005157
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005158/* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005161#ifdef __cplusplus
5162extern "C"
5163#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005164char _oss_ioctl ();
5165int
5166main ()
5167{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005168return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005169 ;
5170 return 0;
5171}
5172_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005173if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005174 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005175else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005176 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005177fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005178rm -f core conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005180LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005181fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005183$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005184if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005185 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005186#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005187_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005188
5189 LIBS="-lossaudio $LIBS"
5190
Todd Vierlingecc76691998-12-15 17:49:02 +00005191fi
5192
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005193
Alexandre Julliard82776022005-08-08 11:17:25 +00005194XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005195
Huw Daviese82dfab2004-08-04 19:10:26 +00005196OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005197
Rein Klazes7ff12562004-11-09 20:16:35 +00005198
Alexandre Julliard82776022005-08-08 11:17:25 +00005199
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005200# Check whether --enable-largefile was given.
5201if test "${enable_largefile+set}" = set; then :
5202 enableval=$enable_largefile;
5203fi
5204
5205if test "$enable_largefile" != no; then
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5208$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005209if ${ac_cv_sys_largefile_CC+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005210 $as_echo_n "(cached) " >&6
5211else
5212 ac_cv_sys_largefile_CC=no
5213 if test "$GCC" != yes; then
5214 ac_save_CC=$CC
5215 while :; do
5216 # IRIX 6.2 and later do not support large files by default,
5217 # so use the C compiler's -n32 option if that helps.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h. */
5220#include <sys/types.h>
5221 /* Check that off_t can represent 2**63 - 1 correctly.
5222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5223 since some C++ compilers masquerading as C compilers
5224 incorrectly reject 9223372036854775807. */
5225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5227 && LARGE_OFF_T % 2147483647 == 1)
5228 ? 1 : -1];
5229int
5230main ()
5231{
5232
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 break
5239fi
5240rm -f core conftest.err conftest.$ac_objext
5241 CC="$CC -n32"
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_sys_largefile_CC=' -n32'; break
5244fi
5245rm -f core conftest.err conftest.$ac_objext
5246 break
5247 done
5248 CC=$ac_save_CC
5249 rm -f conftest.$ac_ext
5250 fi
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5253$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5254 if test "$ac_cv_sys_largefile_CC" != no; then
5255 CC=$CC$ac_cv_sys_largefile_CC
5256 fi
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5259$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005260if ${ac_cv_sys_file_offset_bits+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005261 $as_echo_n "(cached) " >&6
5262else
5263 while :; do
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h. */
5266#include <sys/types.h>
5267 /* Check that off_t can represent 2**63 - 1 correctly.
5268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5269 since some C++ compilers masquerading as C compilers
5270 incorrectly reject 9223372036854775807. */
5271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5273 && LARGE_OFF_T % 2147483647 == 1)
5274 ? 1 : -1];
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_sys_file_offset_bits=no; break
5285fi
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289#define _FILE_OFFSET_BITS 64
5290#include <sys/types.h>
5291 /* Check that off_t can represent 2**63 - 1 correctly.
5292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5293 since some C++ compilers masquerading as C compilers
5294 incorrectly reject 9223372036854775807. */
5295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5297 && LARGE_OFF_T % 2147483647 == 1)
5298 ? 1 : -1];
5299int
5300main ()
5301{
5302
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_sys_file_offset_bits=64; break
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_sys_file_offset_bits=unknown
5312 break
5313done
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5316$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5317case $ac_cv_sys_file_offset_bits in #(
5318 no | unknown) ;;
5319 *)
5320cat >>confdefs.h <<_ACEOF
5321#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5322_ACEOF
5323;;
5324esac
5325rm -rf conftest*
5326 if test $ac_cv_sys_file_offset_bits = unknown; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5328$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005329if ${ac_cv_sys_large_files+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005330 $as_echo_n "(cached) " >&6
5331else
5332 while :; do
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335#include <sys/types.h>
5336 /* Check that off_t can represent 2**63 - 1 correctly.
5337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5338 since some C++ compilers masquerading as C compilers
5339 incorrectly reject 9223372036854775807. */
5340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5342 && LARGE_OFF_T % 2147483647 == 1)
5343 ? 1 : -1];
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_sys_large_files=no; break
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358#define _LARGE_FILES 1
5359#include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5367 ? 1 : -1];
5368int
5369main ()
5370{
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_sys_large_files=1; break
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cv_sys_large_files=unknown
5381 break
5382done
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5385$as_echo "$ac_cv_sys_large_files" >&6; }
5386case $ac_cv_sys_large_files in #(
5387 no | unknown) ;;
5388 *)
5389cat >>confdefs.h <<_ACEOF
5390#define _LARGE_FILES $ac_cv_sys_large_files
5391_ACEOF
5392;;
5393esac
5394rm -rf conftest*
5395 fi
5396fi
5397
5398
Alexandre Julliard40664c02009-02-11 20:40:58 +01005399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005405$as_echo_n "checking how to run the C preprocessor... " >&6; }
5406# On Suns, sometimes $CPP names a directory.
5407if test -n "$CPP" && test -d "$CPP"; then
5408 CPP=
5409fi
5410if test -z "$CPP"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02005411 if ${ac_cv_prog_CPP+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005412 $as_echo_n "(cached) " >&6
5413else
5414 # Double quotes because CPP needs to be expanded
5415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5416 do
5417 ac_preproc_ok=false
5418for ac_c_preproc_warn_flag in '' yes
5419do
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005427/* end confdefs.h. */
5428#ifdef __STDC__
5429# include <limits.h>
5430#else
5431# include <assert.h>
5432#endif
5433 Syntax error
5434_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005435if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005436
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005437else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005438 # Broken: fails on valid input.
5439continue
5440fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005441rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005442
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005446/* end confdefs.h. */
5447#include <ac_nonexistent.h>
5448_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005449if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005450 # Broken: success on invalid input.
5451continue
5452else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005453 # Passes both tests.
5454ac_preproc_ok=:
5455break
5456fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005457rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005458
5459done
5460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005461rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005462if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005463 break
5464fi
5465
5466 done
5467 ac_cv_prog_CPP=$CPP
5468
5469fi
5470 CPP=$ac_cv_prog_CPP
5471else
5472 ac_cv_prog_CPP=$CPP
5473fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005475$as_echo "$CPP" >&6; }
5476ac_preproc_ok=false
5477for ac_c_preproc_warn_flag in '' yes
5478do
5479 # Use a header file that comes with gcc, so configuring glibc
5480 # with a fresh cross-compiler works.
5481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 # <limits.h> exists even on freestanding compilers.
5483 # On the NeXT, cc -E runs the code through the compiler's parser,
5484 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005486/* end confdefs.h. */
5487#ifdef __STDC__
5488# include <limits.h>
5489#else
5490# include <assert.h>
5491#endif
5492 Syntax error
5493_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005494if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005495
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005496else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005497 # Broken: fails on valid input.
5498continue
5499fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005500rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005501
5502 # OK, works on sane cases. Now check whether nonexistent headers
5503 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005505/* end confdefs.h. */
5506#include <ac_nonexistent.h>
5507_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005508if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005509 # Broken: success on invalid input.
5510continue
5511else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005512 # Passes both tests.
5513ac_preproc_ok=:
5514break
5515fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005516rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005517
5518done
5519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005520rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005521if $ac_preproc_ok; then :
5522
Alexandre Julliard40664c02009-02-11 20:40:58 +01005523else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005526as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Alexandre Julliard9797da42011-04-27 17:37:43 +02005527See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005528fi
5529
5530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
5536
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005538$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005539if ${ac_cv_header_stdc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005540 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005543/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005544#include <stdlib.h>
5545#include <stdarg.h>
5546#include <string.h>
5547#include <float.h>
5548
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005556_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005557if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005558 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005559else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005560 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005561fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005563
5564if test $ac_cv_header_stdc = yes; then
5565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005567/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005568#include <string.h>
5569
5570_ACEOF
5571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005572 $EGREP "memchr" >/dev/null 2>&1; then :
5573
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005574else
5575 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005576fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005577rm -f conftest*
5578
5579fi
5580
5581if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005584/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005585#include <stdlib.h>
5586
5587_ACEOF
5588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005589 $EGREP "free" >/dev/null 2>&1; then :
5590
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005591else
5592 ac_cv_header_stdc=no
5593fi
5594rm -f conftest*
5595
5596fi
5597
5598if test $ac_cv_header_stdc = yes; then
5599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005600 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005601 :
5602else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005604/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005605#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005606#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005607#if ((' ' & 0x0FF) == 0x020)
5608# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5609# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005611# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005612 (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005615# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5616#endif
5617
5618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5619int
5620main ()
5621{
5622 int i;
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005625 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005626 return 2;
5627 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005628}
5629_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005630if ac_fn_c_try_run "$LINENO"; then :
5631
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005632else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005633 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005634fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5636 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005637fi
5638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005639fi
5640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005642$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005643if test $ac_cv_header_stdc = yes; then
5644
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005645$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646
5647fi
5648
5649# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005651 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005652do :
5653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5655"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005657 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005659_ACEOF
5660
5661fi
5662
5663done
5664
5665
Rein Klazes7ff12562004-11-09 20:16:35 +00005666for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005667 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005668 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005669 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005670 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005671 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005672 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005673 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005674 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005675 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005676 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005677 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005678 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005679 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005680 QuickTime/ImageCompression.h \
Ken Thomases25ed6872011-03-13 18:58:44 -05005681 Security/Security.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005682 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005683 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005684 arpa/inet.h \
5685 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005686 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005687 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005688 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005689 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005690 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005691 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005692 elf.h \
5693 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005694 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005695 fontconfig/fontconfig.h \
5696 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005697 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005698 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005699 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005700 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005701 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005702 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005703 io.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005704 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005705 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005706 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005707 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005708 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005709 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005710 link.h \
5711 linux/cdrom.h \
5712 linux/compiler.h \
5713 linux/hdreg.h \
5714 linux/input.h \
5715 linux/ioctl.h \
5716 linux/joystick.h \
5717 linux/major.h \
5718 linux/param.h \
5719 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005720 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005721 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005722 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005723 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005724 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005725 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005726 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005727 machine/limits.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005728 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005729 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005730 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005731 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005732 netdb.h \
5733 netinet/in.h \
5734 netinet/in_systm.h \
5735 netinet/tcp.h \
5736 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005737 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005738 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005739 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005740 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005741 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005742 process.h \
5743 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005744 pwd.h \
5745 regex.h \
5746 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005747 scsi/scsi.h \
5748 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005749 scsi/sg.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005750 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005751 stdint.h \
5752 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005753 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005754 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005755 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005756 sys/cdio.h \
5757 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005758 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005759 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005760 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005761 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005762 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005763 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005764 sys/ioctl.h \
5765 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005766 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005767 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005768 sys/mman.h \
5769 sys/modem.h \
5770 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005771 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005772 sys/param.h \
5773 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005774 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005775 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005776 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005777 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005778 sys/scsiio.h \
5779 sys/shm.h \
5780 sys/signal.h \
5781 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005782 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005783 sys/sockio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005784 sys/statvfs.h \
5785 sys/strtio.h \
5786 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005787 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005788 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005789 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005790 sys/times.h \
5791 sys/uio.h \
5792 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005793 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005794 sys/vm86.h \
5795 sys/wait.h \
5796 syscall.h \
5797 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005798 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005799 unistd.h \
5800 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005801 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005802 valgrind/valgrind.h \
5803 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005804
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005805do :
5806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005809 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005811_ACEOF
5812
5813fi
5814
5815done
5816
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005818$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005819if ${ac_cv_header_stat_broken+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005820 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005821else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005823/* end confdefs.h. */
5824#include <sys/types.h>
5825#include <sys/stat.h>
5826
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005827#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005828extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005829#endif
5830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005831#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005832extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005833#endif
5834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005835#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005836extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005837#endif
5838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005839#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005840extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005841#endif
5842
5843_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005844if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005845 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005846else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005847 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005848fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005850fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005852$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005853if test $ac_cv_header_stat_broken = yes; then
5854
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005855$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005856
5857fi
5858
5859
5860
Austin English51094be2008-12-27 14:53:53 -06005861for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005862do :
5863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5864ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005865 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005866 # include <sys/param.h>
5867 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005868"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005870 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005872_ACEOF
5873
5874fi
5875
5876done
5877
5878
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005879for ac_header in \
5880 netinet/ip.h \
5881 net/if.h \
5882 net/if_arp.h \
5883 net/if_dl.h \
5884 net/if_types.h \
5885 net/route.h \
5886 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005887 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005888 netinet/in_pcb.h \
5889 netinet/ip_icmp.h \
5890 netinet/ip_var.h \
5891 netinet/udp.h \
5892 netipx/ipx.h \
5893
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005894do :
5895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5896ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005897 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005898 # include <sys/socket.h>
5899 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005900 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05005901 # include <sys/socketvar.h>
5902 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06005903 #ifdef HAVE_NET_ROUTE_H
5904 # include <net/route.h>
5905 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005906 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05005907 # include <netinet/in.h>
5908 #endif
Austin English03173932009-01-23 13:29:42 -06005909 #ifdef HAVE_NETINET_IN_SYSTM_H
5910 # include <netinet/in_systm.h>
5911 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01005912 #ifdef HAVE_NET_IF_H
5913 # include <net/if.h>
5914 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005915 #ifdef HAVE_NETINET_IP_H
5916 # include <netinet/ip.h>
5917 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005918"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005920 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005922_ACEOF
5923
5924fi
5925
5926done
5927
Mark Adams25696352007-07-10 23:39:21 -04005928
Austin English03173932009-01-23 13:29:42 -06005929for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005930do :
5931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05005933 #ifdef HAVE_ALIAS_H
5934 # include <alias.h>
5935 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005936 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04005937 # include <sys/socket.h>
5938 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005939 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04005940 # include <sys/socketvar.h>
5941 #endif
Austin English53d3c462009-01-26 23:47:49 -06005942 #ifdef HAVE_SYS_TIMEOUT_H
5943 # include <sys/timeout.h>
5944 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005945 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04005946 # include <netinet/in.h>
5947 #endif
Austin English03173932009-01-23 13:29:42 -06005948 #ifdef HAVE_NETINET_IN_SYSTM_H
5949 # include <netinet/in_systm.h>
5950 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005951 #ifdef HAVE_NETINET_IP_H
5952 # include <netinet/ip.h>
5953 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05005954 #ifdef HAVE_NETINET_IP_VAR_H
5955 # include <netinet/ip_var.h>
5956 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05005957 #ifdef HAVE_NETINET_IP_ICMP_H
5958 # include <netinet/ip_icmp.h>
5959 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05005960 #ifdef HAVE_NETINET_UDP_H
5961 # include <netinet/udp.h>
5962 #endif
Mark Adams25696352007-07-10 23:39:21 -04005963 #ifdef HAVE_NETINET_TCP_H
5964 # include <netinet/tcp.h>
5965 #endif
Austin English03173932009-01-23 13:29:42 -06005966 #ifdef HAVE_NETINET_TCP_TIMER_H
5967 #include <netinet/tcp_timer.h>
5968 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005969"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04005971 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04005973_ACEOF
5974
5975fi
5976
5977done
5978
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005979
Juan Lang0ce420d2009-08-12 09:14:16 -07005980for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005981do :
Juan Lang0ce420d2009-08-12 09:14:16 -07005982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02005984 #ifdef HAVE_ASM_TYPES_H
5985 # include <asm/types.h>
5986 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005987 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02005988 # include <sys/socket.h>
5989 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01005990 #ifdef HAVE_LINUX_TYPES_H
5991 # include <linux/types.h>
5992 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005993"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02005995 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07005996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02005997_ACEOF
5998
5999fi
6000
6001done
6002
6003
Austin English2d7ccb32009-06-13 18:01:24 -05006004for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006005do :
6006 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
Austin English2d7ccb32009-06-13 18:01:24 -05006007 # include <stdbool.h>
6008 #endif
6009 #ifdef HAVE_STDINT_H
6010 # include <stdint.h>
6011 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006012"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006013if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006014 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006015#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006016_ACEOF
6017
6018fi
6019
6020done
6021
6022
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006023for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006024do :
6025 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006026 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006027 # include <sys/socket.h>
6028 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006029 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006030 # include <netinet/in.h>
6031 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006032 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006033 # include <arpa/nameser.h>
6034 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006035"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006036if test "x$ac_cv_header_resolv_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006037 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006038#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006039_ACEOF
6040
6041fi
6042
6043done
6044
6045
Juan Lange3c0e302010-03-11 18:36:46 -08006046for ac_header in ifaddrs.h
6047do :
6048 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6049"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006050if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Juan Lange3c0e302010-03-11 18:36:46 -08006051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_IFADDRS_H 1
6053_ACEOF
6054
6055fi
6056
6057done
6058
6059
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006060for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006061do :
6062 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6063"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006064if test "x$ac_cv_header_ucontext_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006065 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006066#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006067_ACEOF
6068
6069fi
6070
6071done
6072
6073
Tijl Coosemans60833da2007-08-08 00:25:24 +02006074for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006075do :
6076 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006077#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006078#include <ucontext.h>
6079#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006080"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006081if test "x$ac_cv_header_sys_thr_h" = xyes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006082 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006083#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006084_ACEOF
6085
6086fi
6087
6088done
6089
6090
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006091for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006092do :
6093 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006094#include <pthread.h>
6095#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006096"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006097if test "x$ac_cv_header_pthread_np_h" = xyes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006098 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006099#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006100_ACEOF
6101
6102fi
6103
6104done
6105
6106
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006107for ac_header in linux/videodev.h linux/videodev2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006108do :
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006111#include <sys/time.h>
6112#endif
6113#include <sys/types.h>
6114#ifdef HAVE_ASM_TYPES_H
6115#include <asm/types.h>
6116#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006117"
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006119 cat >>confdefs.h <<_ACEOF
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006121_ACEOF
6122
6123fi
6124
6125done
6126
6127
Alexandre Julliardb079add2006-02-24 11:46:17 +01006128for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006129do :
6130 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6131"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006132if test "x$ac_cv_header_linux_capi_h" = xyes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006133 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006134#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006135_ACEOF
6136
6137fi
6138
6139done
6140
6141
6142
Alexandre Julliarda3097622007-07-02 17:27:48 +02006143DLLEXT=""
6144
6145DLLFLAGS="-D_REENTRANT"
6146
6147LDSHARED=""
6148
6149LDDLLFLAGS=""
6150
6151LIBEXT="so"
6152
6153IMPLIBEXT="def"
6154
6155LDRPATH_INSTALL=""
6156
6157LDRPATH_LOCAL=""
6158
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006159STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006160# Extract the first word of "ldd", so it can be a program name with args.
6161set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006163$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006164if ${ac_cv_path_LDD+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006165 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006166else
6167 case $LDD in
6168 [\\/]* | ?:[\\/]*)
6169 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6170 ;;
6171 *)
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173as_dummy="/sbin:/usr/sbin:$PATH"
6174for as_dir in $as_dummy
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006178 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006182 break 2
6183 fi
6184done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006185 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006186IFS=$as_save_IFS
6187
6188 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6189 ;;
6190esac
6191fi
6192LDD=$ac_cv_path_LDD
6193if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006195$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006196else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006198$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006199fi
6200
6201
6202
6203case $host_os in
6204 cygwin*|mingw32*)
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006209$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006210if ${ac_cv_prog_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006211 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006212else
6213 if test -n "$DLLTOOL"; then
6214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006221 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006225 break 2
6226 fi
6227done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006228 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006229IFS=$as_save_IFS
6230
6231fi
6232fi
6233DLLTOOL=$ac_cv_prog_DLLTOOL
6234if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006236$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006237else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006239$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006240fi
6241
6242
6243fi
6244if test -z "$ac_cv_prog_DLLTOOL"; then
6245 ac_ct_DLLTOOL=$DLLTOOL
6246 # Extract the first word of "dlltool", so it can be a program name with args.
6247set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006249$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006250if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006251 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006252else
6253 if test -n "$ac_ct_DLLTOOL"; then
6254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006261 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006265 break 2
6266 fi
6267done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006268 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6274if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006276$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006277else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006279$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006280fi
6281
6282 if test "x$ac_ct_DLLTOOL" = x; then
6283 DLLTOOL="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006289ac_tool_warned=yes ;;
6290esac
6291 DLLTOOL=$ac_ct_DLLTOOL
6292 fi
6293else
6294 DLLTOOL="$ac_cv_prog_DLLTOOL"
6295fi
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006301$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006302if ${ac_cv_prog_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006303 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006304else
6305 if test -n "$DLLWRAP"; then
6306 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006313 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006317 break 2
6318 fi
6319done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006320 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006321IFS=$as_save_IFS
6322
6323fi
6324fi
6325DLLWRAP=$ac_cv_prog_DLLWRAP
6326if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006328$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006329else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006331$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006332fi
6333
6334
6335fi
6336if test -z "$ac_cv_prog_DLLWRAP"; then
6337 ac_ct_DLLWRAP=$DLLWRAP
6338 # Extract the first word of "dllwrap", so it can be a program name with args.
6339set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006341$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006342if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006343 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006344else
6345 if test -n "$ac_ct_DLLWRAP"; then
6346 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006353 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006357 break 2
6358 fi
6359done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006360 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006361IFS=$as_save_IFS
6362
6363fi
6364fi
6365ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6366if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006368$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006369else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006371$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006372fi
6373
6374 if test "x$ac_ct_DLLWRAP" = x; then
6375 DLLWRAP="false"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006381ac_tool_warned=yes ;;
6382esac
6383 DLLWRAP=$ac_ct_DLLWRAP
6384 fi
6385else
6386 DLLWRAP="$ac_cv_prog_DLLWRAP"
6387fi
6388
Alexandre Julliarda3097622007-07-02 17:27:48 +02006389 if test "$DLLWRAP" = "false"; then
6390 LIBEXT="a"
6391 else
6392 LIBEXT="dll"
6393 fi
6394 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006395 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006396 enable_iphlpapi=${enable_iphlpapi:-no}
6397 enable_kernel32=${enable_kernel32:-no}
6398 enable_msvcrt=${enable_msvcrt:-no}
6399 enable_ntdll=${enable_ntdll:-no}
6400 enable_ws2_32=${enable_ws2_32:-no}
6401 enable_loader=${enable_loader:-no}
6402 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006403 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006404 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006405 ;;
6406 darwin*|macosx*)
6407 DLLEXT=".so"
6408 LIBEXT="dylib"
6409 DLLFLAGS="$DLLFLAGS -fPIC"
6410 LDDLLFLAGS="-bundle -multiply_defined suppress"
6411 LIBWINE_LDFLAGS="-multiply_defined suppress"
6412 LDSHARED="\$(CC) -dynamiclib"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006413 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
Alexandre Julliard45db3482011-03-14 14:25:45 +01006414 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006415
6416 IOKITLIB="-framework IOKit -framework CoreFoundation"
6417
Ken Thomases21137cd2011-01-05 07:25:23 -06006418 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6419
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006420 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006421
6422 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6423 then
6424 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6425
6426 fi
Alexandre Julliard45db3482011-03-14 14:25:45 +01006427 if test "$ac_cv_header_Security_Security_h" = "yes"
6428 then
6429 SECURITYLIB="-framework Security -framework CoreFoundation"
6430
6431 with_gnutls=${with_gnutls:-no}
6432 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006433 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6434 then
Charles Davis459d9422011-01-29 16:45:53 -07006435 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6436 then
6437 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006438
Charles Davis459d9422011-01-29 16:45:53 -07006439 else
6440 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6441
6442 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006443 ac_save_LIBS="$LIBS"
6444 LIBS="$LIBS $COREAUDIO"
6445 for ac_func in AUGraphAddNode
6446do :
6447 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006448if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
Charles Davisb149d7b2011-01-29 16:45:54 -07006449 cat >>confdefs.h <<_ACEOF
6450#define HAVE_AUGRAPHADDNODE 1
6451_ACEOF
6452
6453fi
6454done
6455
6456 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006457 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006458 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6459 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006460 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006461
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006462
6463cat >>confdefs.h <<_ACEOF
6464#define HAVE_OPENAL 1
6465_ACEOF
6466
6467 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006468 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006469 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6470 then
6471 LIBOPENCL="-framework OpenCL"
6472
6473 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6474 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006475 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6476 then
6477 ac_save_LIBS="$LIBS"
6478 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006479 for ac_func in IOHIDManagerCreate
6480do :
6481 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006482if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006483 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006484#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006485_ACEOF
6486
6487fi
6488done
6489
6490 LIBS="$ac_save_LIBS"
6491 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006492 case $host_cpu in
6493 *powerpc*)
6494 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6495 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006496 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6497 then
6498 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6499
6500 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6501 else
6502 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6503 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006504 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6505 then
6506 CARBONLIB="-framework Carbon"
6507
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006508 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006509 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006510 if test "x$enable_win16" = "xyes"
6511 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006513$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006514 if test "$cross_compiling" = yes; then :
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006516$as_echo "cross-compiling, assuming yes" >&6; }
6517else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006519/* end confdefs.h. */
6520asm(".text\n"
6521 "bad:\tnop;nop\n"
6522 "good:\tnop;nop\n\t"
6523 ".globl _testfunc\n"
6524 "_testfunc:\tcallw good");
6525 extern void testfunc();
6526int
6527main ()
6528{
6529unsigned short *p = (unsigned short *)testfunc;
6530 return p[0] != 0xe866 || p[1] != 0xfffa
6531 ;
6532 return 0;
6533}
6534_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006535if ac_fn_c_try_run "$LINENO"; then :
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006537$as_echo "yes" >&6; }
6538else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006540$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006541 as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006542fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6544 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006545fi
6546
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006547 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006548 ;;
6549 *)
6550 DLLFLAGS="$DLLFLAGS -fPIC"
6551 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006553$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006554if ${ac_cv_c_dll_gnuelf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006555 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006556else
6557 ac_wine_try_cflags_saved=$CFLAGS
6558CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006561void myfunc() {}
6562_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006563if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006564 ac_cv_c_dll_gnuelf="yes"
6565else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006566 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006567fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006568rm -f core conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006570CFLAGS=$ac_wine_try_cflags_saved
6571fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006573$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006574 if test "$ac_cv_c_dll_gnuelf" = "yes"
6575 then
6576 LDSHARED="\$(CC) -shared"
6577 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006579$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006580if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006581 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006582else
6583 ac_wine_try_cflags_saved=$CFLAGS
6584CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006586/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006587int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006588_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006589if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006590 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6591else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006592 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006593fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006594rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006596CFLAGS=$ac_wine_try_cflags_saved
6597fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006599$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006600if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006601 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6602else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006604$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006605if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006606 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006607else
6608 ac_wine_try_cflags_saved=$CFLAGS
6609CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006610cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006611/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006612int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006613_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006614if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006615 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6616else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006617 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006618fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006619rm -f core conftest.err conftest.$ac_objext \
6620 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006621CFLAGS=$ac_wine_try_cflags_saved
6622fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006624$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006625if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006626 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6627fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006628fi
6629
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006631$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006632if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006633 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006634else
6635 ac_wine_try_cflags_saved=$CFLAGS
6636CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006638/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006639int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006640_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006641if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006642 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6643else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006644 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006645fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006646rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006648CFLAGS=$ac_wine_try_cflags_saved
6649fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006651$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006652if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006653 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6654fi
6655
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006657$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006658if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006659 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006660else
6661 ac_wine_try_cflags_saved=$CFLAGS
6662CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006664/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006665int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006666_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006667if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006668 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6669else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006670 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006671fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006672rm -f core conftest.err conftest.$ac_objext \
6673 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006674CFLAGS=$ac_wine_try_cflags_saved
6675fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006677$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006678if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006679 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6680fi
6681
Alexandre Julliarda3097622007-07-02 17:27:48 +02006682 echo '{ global: *; };' >conftest.map
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006683 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006685$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006686if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006687 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006688else
6689 ac_wine_try_cflags_saved=$CFLAGS
6690CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006692/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006693int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006694_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006696 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006697else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006698 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006700rm -f core conftest.err conftest.$ac_objext \
6701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006702CFLAGS=$ac_wine_try_cflags_saved
6703fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006704eval ac_res=\$$as_ac_var
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6706$as_echo "$ac_res" >&6; }
6707if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006708 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6709fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710 rm -f conftest.map
6711
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006713$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006714if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006715 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716else
6717 ac_wine_try_cflags_saved=$CFLAGS
6718CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006720/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006721int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006722_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006723if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006724 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6725else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006726 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006727fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006730CFLAGS=$ac_wine_try_cflags_saved
6731fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006733$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006734if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006735 LDEXECFLAGS="-Wl,--export-dynamic"
6736
6737fi
6738
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006739 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006741$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006742if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006743 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006744else
6745 ac_wine_try_cflags_saved=$CFLAGS
6746CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006748/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006749int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006750_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006751if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006752 eval "$as_ac_var=yes"
6753else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006754 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006755fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006756rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006758CFLAGS=$ac_wine_try_cflags_saved
6759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006760eval ac_res=\$$as_ac_var
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006762$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006763if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006764 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006765 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006766else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006767 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006769$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006770if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006771 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006772else
6773 ac_wine_try_cflags_saved=$CFLAGS
6774CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006776/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006777int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006778_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006779if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006780 eval "$as_ac_var=yes"
6781else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006782 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006784rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006786CFLAGS=$ac_wine_try_cflags_saved
6787fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006788eval ac_res=\$$as_ac_var
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006790$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006791if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006793 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006794fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006795fi
6796
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006798$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006799if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006800 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006801else
6802 ac_wine_try_cflags_saved=$CFLAGS
6803CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006805/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006806int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006807_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006808if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006809 ac_cv_cflags__Wl___enable_new_dtags=yes
6810else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006811 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006812fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006813rm -f core conftest.err conftest.$ac_objext \
6814 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006815CFLAGS=$ac_wine_try_cflags_saved
6816fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006818$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006819if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006820 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6821fi
6822
Alexandre Julliarda3097622007-07-02 17:27:48 +02006823 case $host_cpu in
6824 *i[3456789]86* | x86_64)
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006825 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006827$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006828if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006829 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006830else
6831 ac_wine_try_cflags_saved=$CFLAGS
6832CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006834/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006835int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006836_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006837if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006838 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006839else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006840 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006841fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006842rm -f core conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006844CFLAGS=$ac_wine_try_cflags_saved
6845fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006846eval ac_res=\$$as_ac_var
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6848$as_echo "$ac_res" >&6; }
6849if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006850 case $host_os in
6851 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6852 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6853 esac
6854
Alexandre Julliarda3097622007-07-02 17:27:48 +02006855fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006856 # Extract the first word of "prelink", so it can be a program name with args.
6857set dummy prelink; ac_word=$2
6858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006860if ${ac_cv_path_PRELINK+:} false; then :
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006861 $as_echo_n "(cached) " >&6
6862else
6863 case $PRELINK in
6864 [\\/]* | ?:[\\/]*)
6865 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6866 ;;
6867 *)
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869for as_dir in /sbin /usr/sbin $PATH
6870do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879done
6880 done
6881IFS=$as_save_IFS
6882
6883 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6884 ;;
6885esac
6886fi
6887PRELINK=$ac_cv_path_PRELINK
6888if test -n "$PRELINK"; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6890$as_echo "$PRELINK" >&6; }
6891else
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893$as_echo "no" >&6; }
6894fi
6895
6896
6897 if test "x$PRELINK" = xfalse
6898 then
6899 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6900 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006901 ;;
6902 esac
6903
6904 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006906$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006907if ${ac_cv_c_dll_unixware+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006908 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006909else
6910 ac_wine_try_cflags_saved=$CFLAGS
6911CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006914void myfunc() {}
6915_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006916if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006917 ac_cv_c_dll_unixware="yes"
6918else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006919 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006920fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006921rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006923CFLAGS=$ac_wine_try_cflags_saved
6924fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006926$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006927 if test "$ac_cv_c_dll_unixware" = "yes"
6928 then
6929 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6930 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6931
6932 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006934$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006935if ${ac_cv_c_dll_hpux+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006936 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006937else
6938 ac_wine_try_cflags_saved=$CFLAGS
6939CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006942void myfunc() {}
6943_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006944if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006945 ac_cv_c_dll_hpux="yes"
6946else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006947 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006949rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006951CFLAGS=$ac_wine_try_cflags_saved
6952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006954$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006955 if test "$ac_cv_c_dll_hpux" = "yes"
6956 then
6957 LIBEXT="sl"
6958 DLLEXT=".sl"
6959 LDDLLFLAGS="-shared -fPIC"
6960 LDSHARED="\$(CC) -shared"
6961 fi
6962 fi
6963 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006964 ;;
6965esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006966
Aric Stewarteefe6f62010-12-03 07:33:08 -06006967enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006968enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006969
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006970if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006971 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006972It is currently not possible to build Wine without shared library
6973(.so) support to allow transparent switch between .so and .dll files.
6974If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006975" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006976fi
6977
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02006978CROSSTEST_DISABLE=\#
6979
6980if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006981then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01006982 case "$host_cpu" in
6983 i[3456789]86*)
Jacek Caban0b6bfad2010-12-21 18:08:38 +01006984 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
Alexandre Julliarda91fb212009-12-07 15:36:09 +01006985 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05006986 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
Alexandre Julliarda91fb212009-12-07 15:36:09 +01006987 *)
6988 ac_prefix_list="" ;;
6989esac
6990for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02006991do
6992 # Extract the first word of "$ac_prog", so it can be a program name with args.
6993set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006995$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006996if ${ac_cv_prog_CROSSCC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006997 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006998else
6999 if test -n "$CROSSCC"; then
7000 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005 IFS=$as_save_IFS
7006 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007007 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7009 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007011 break 2
7012 fi
7013done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007014 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007015IFS=$as_save_IFS
7016
7017fi
7018fi
7019CROSSCC=$ac_cv_prog_CROSSCC
7020if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007022$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007023else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007025$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007026fi
7027
7028
7029 test -n "$CROSSCC" && break
7030done
7031test -n "$CROSSCC" || CROSSCC="false"
7032
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007033 if test "$CROSSCC" != "false"
7034 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007035 ac_save_CC="$CC"
7036 CC="$CROSSCC"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7038$as_echo_n "checking whether $CROSSCC works... " >&6; }
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007041
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007042int
7043main ()
7044{
7045
7046 ;
7047 return 0;
7048}
7049_ACEOF
7050if ac_fn_c_try_compile "$LINENO"; then :
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7052$as_echo "yes" >&6; }
7053 set x $CROSSCC
7054 shift
7055 target=""
7056 while test $# -ge 1
7057 do
7058 case "$1" in
7059 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7060 esac
7061 shift
7062 done
7063 if test -n "$target"
7064 then
7065 CROSSTEST_DISABLE=""
7066 CROSSTARGET="$target"
7067
7068 fi
7069else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071$as_echo "no" >&6; }
7072fi
7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7074 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007075 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007076fi
7077
7078
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007079if test "$ac_cv_header_pthread_h" = "yes"
7080then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007082$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007083if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007084 $as_echo_n "(cached) " >&6
7085else
7086 ac_check_lib_save_LIBS=$LIBS
7087LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007089/* end confdefs.h. */
7090
7091/* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7094#ifdef __cplusplus
7095extern "C"
7096#endif
7097char pthread_create ();
7098int
7099main ()
7100{
7101return pthread_create ();
7102 ;
7103 return 0;
7104}
7105_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007106if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007107 ac_cv_lib_pthread_pthread_create=yes
7108else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007109 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007110fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007111rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007113LIBS=$ac_check_lib_save_LIBS
7114fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007116$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007117if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007118 LIBPTHREAD="-lpthread"
7119
7120fi
7121
7122fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007123if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007124 case "x$with_pthread" in
7125 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007126 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007127Wine cannot support threads without libpthread.
Alexandre Julliard9797da42011-04-27 17:37:43 +02007128Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007129esac
7130fi
7131
7132
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007134$as_echo_n "checking for X... " >&6; }
7135
7136
7137# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007138if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007139 withval=$with_x;
7140fi
7141
7142# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7143if test "x$with_x" = xno; then
7144 # The user explicitly disabled X.
7145 have_x=disabled
7146else
7147 case $x_includes,$x_libraries in #(
Alexandre Julliard9797da42011-04-27 17:37:43 +02007148 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7149 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007150 $as_echo_n "(cached) " >&6
7151else
7152 # One or both of the vars are not set, and there is no cached value.
7153ac_x_includes=no ac_x_libraries=no
7154rm -f -r conftest.dir
7155if mkdir conftest.dir; then
7156 cd conftest.dir
7157 cat >Imakefile <<'_ACEOF'
7158incroot:
7159 @echo incroot='${INCROOT}'
7160usrlibdir:
7161 @echo usrlibdir='${USRLIBDIR}'
7162libdir:
7163 @echo libdir='${LIBDIR}'
7164_ACEOF
7165 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007166 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007167 for ac_var in incroot usrlibdir libdir; do
7168 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7169 done
7170 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7171 for ac_extension in a so sl dylib la dll; do
7172 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7173 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7174 ac_im_usrlibdir=$ac_im_libdir; break
7175 fi
7176 done
7177 # Screen out bogus values from the imake configuration. They are
7178 # bogus both because they are the default anyway, and because
7179 # using them would break gcc on systems where it needs fixed includes.
7180 case $ac_im_incroot in
7181 /usr/include) ac_x_includes= ;;
7182 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7183 esac
7184 case $ac_im_usrlibdir in
7185 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7186 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7187 esac
7188 fi
7189 cd ..
7190 rm -f -r conftest.dir
7191fi
7192
7193# Standard set of common directories for X headers.
7194# Check X11 before X11Rn because it is often a symlink to the current release.
7195ac_x_header_dirs='
7196/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007197/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007198/usr/X11R6/include
7199/usr/X11R5/include
7200/usr/X11R4/include
7201
7202/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007203/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007204/usr/include/X11R6
7205/usr/include/X11R5
7206/usr/include/X11R4
7207
7208/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007209/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007210/usr/local/X11R6/include
7211/usr/local/X11R5/include
7212/usr/local/X11R4/include
7213
7214/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007215/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007216/usr/local/include/X11R6
7217/usr/local/include/X11R5
7218/usr/local/include/X11R4
7219
7220/usr/X386/include
7221/usr/x386/include
7222/usr/XFree86/include/X11
7223
7224/usr/include
7225/usr/local/include
7226/usr/unsupported/include
7227/usr/athena/include
7228/usr/local/x11r5/include
7229/usr/lpp/Xamples/include
7230
7231/usr/openwin/include
7232/usr/openwin/share/include'
7233
7234if test "$ac_x_includes" = no; then
7235 # Guess where to find include files, by looking for Xlib.h.
7236 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007238/* end confdefs.h. */
7239#include <X11/Xlib.h>
7240_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007241if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007242 # We can compile using X headers with no special include directory.
7243ac_x_includes=
7244else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007245 for ac_dir in $ac_x_header_dirs; do
7246 if test -r "$ac_dir/X11/Xlib.h"; then
7247 ac_x_includes=$ac_dir
7248 break
7249 fi
7250done
7251fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007252rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007253fi # $ac_x_includes = no
7254
7255if test "$ac_x_libraries" = no; then
7256 # Check for the libraries.
7257 # See if we find them without any special options.
7258 # Don't add to $LIBS permanently.
7259 ac_save_LIBS=$LIBS
7260 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007262/* end confdefs.h. */
7263#include <X11/Xlib.h>
7264int
7265main ()
7266{
7267XrmInitialize ()
7268 ;
7269 return 0;
7270}
7271_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007272if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007273 LIBS=$ac_save_LIBS
7274# We can link X programs with no special library path.
7275ac_x_libraries=
7276else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007277 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007278for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7279do
7280 # Don't even attempt the hair of trying to link an X program!
7281 for ac_extension in a so sl dylib la dll; do
7282 if test -r "$ac_dir/libX11.$ac_extension"; then
7283 ac_x_libraries=$ac_dir
7284 break 2
7285 fi
7286 done
7287done
7288fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007289rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007291fi # $ac_x_libraries = no
7292
7293case $ac_x_includes,$ac_x_libraries in #(
7294 no,* | *,no | *\'*)
7295 # Didn't find X, or a directory has "'" in its name.
7296 ac_cv_have_x="have_x=no";; #(
7297 *)
7298 # Record where we found X for the cache.
7299 ac_cv_have_x="have_x=yes\
7300 ac_x_includes='$ac_x_includes'\
7301 ac_x_libraries='$ac_x_libraries'"
7302esac
7303fi
7304;; #(
7305 *) have_x=yes;;
7306 esac
7307 eval "$ac_cv_have_x"
7308fi # $with_x != no
7309
7310if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007312$as_echo "$have_x" >&6; }
7313 no_x=yes
7314else
7315 # If each of the values was on the command line, it overrides each guess.
7316 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7317 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7318 # Update the cache value to reflect the command line values.
7319 ac_cv_have_x="have_x=yes\
7320 ac_x_includes='$x_includes'\
7321 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007323$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7324fi
7325
7326if test "$no_x" = yes; then
7327 # Not all programs may use this symbol, but it does not hurt to define it.
7328
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007329$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007330
7331 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7332else
7333 if test -n "$x_includes"; then
7334 X_CFLAGS="$X_CFLAGS -I$x_includes"
7335 fi
7336
7337 # It would also be nice to do this for all -L options, not just this one.
7338 if test -n "$x_libraries"; then
7339 X_LIBS="$X_LIBS -L$x_libraries"
7340 # For Solaris; some versions of Sun CC require a space after -R and
7341 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007343$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7344 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7345 ac_xsave_c_werror_flag=$ac_c_werror_flag
7346 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007348/* end confdefs.h. */
7349
7350int
7351main ()
7352{
7353
7354 ;
7355 return 0;
7356}
7357_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007358if ac_fn_c_try_link "$LINENO"; then :
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007360$as_echo "no" >&6; }
7361 X_LIBS="$X_LIBS -R$x_libraries"
7362else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007363 LIBS="$ac_xsave_LIBS -R $x_libraries"
7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007365/* end confdefs.h. */
7366
7367int
7368main ()
7369{
7370
7371 ;
7372 return 0;
7373}
7374_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007375if ac_fn_c_try_link "$LINENO"; then :
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007377$as_echo "yes" >&6; }
7378 X_LIBS="$X_LIBS -R $x_libraries"
7379else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007381$as_echo "neither works" >&6; }
7382fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007383rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007385fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007386rm -f core conftest.err conftest.$ac_objext \
7387 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007388 ac_c_werror_flag=$ac_xsave_c_werror_flag
7389 LIBS=$ac_xsave_LIBS
7390 fi
7391
7392 # Check for system-dependent libraries X programs must link with.
7393 # Do this before checking for the system-independent R6 libraries
7394 # (-lICE), since we may need -lsocket or whatever for X linking.
7395
7396 if test "$ISC" = yes; then
7397 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7398 else
7399 # Martyn Johnson says this is needed for Ultrix, if the X
7400 # libraries were built with DECnet support. And Karl Berry says
7401 # the Alpha needs dnet_stub (dnet does not exist).
7402 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007404/* end confdefs.h. */
7405
7406/* Override any GCC internal prototype to avoid an error.
7407 Use char because int might match the return type of a GCC
7408 builtin and then its argument prototype would still apply. */
7409#ifdef __cplusplus
7410extern "C"
7411#endif
7412char XOpenDisplay ();
7413int
7414main ()
7415{
7416return XOpenDisplay ();
7417 ;
7418 return 0;
7419}
7420_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007421if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007422
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007423else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007425$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007426if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007427 $as_echo_n "(cached) " >&6
7428else
7429 ac_check_lib_save_LIBS=$LIBS
7430LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007432/* end confdefs.h. */
7433
7434/* Override any GCC internal prototype to avoid an error.
7435 Use char because int might match the return type of a GCC
7436 builtin and then its argument prototype would still apply. */
7437#ifdef __cplusplus
7438extern "C"
7439#endif
7440char dnet_ntoa ();
7441int
7442main ()
7443{
7444return dnet_ntoa ();
7445 ;
7446 return 0;
7447}
7448_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007449if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007450 ac_cv_lib_dnet_dnet_ntoa=yes
7451else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007452 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007453fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007454rm -f core conftest.err conftest.$ac_objext \
7455 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007456LIBS=$ac_check_lib_save_LIBS
7457fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007459$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007460if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007461 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7462fi
7463
7464 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007466$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007467if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007468 $as_echo_n "(cached) " >&6
7469else
7470 ac_check_lib_save_LIBS=$LIBS
7471LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007473/* end confdefs.h. */
7474
7475/* Override any GCC internal prototype to avoid an error.
7476 Use char because int might match the return type of a GCC
7477 builtin and then its argument prototype would still apply. */
7478#ifdef __cplusplus
7479extern "C"
7480#endif
7481char dnet_ntoa ();
7482int
7483main ()
7484{
7485return dnet_ntoa ();
7486 ;
7487 return 0;
7488}
7489_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007490if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007491 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7492else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007493 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007494fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007495rm -f core conftest.err conftest.$ac_objext \
7496 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007497LIBS=$ac_check_lib_save_LIBS
7498fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007500$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007501if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007502 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7503fi
7504
7505 fi
7506fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007507rm -f core conftest.err conftest.$ac_objext \
7508 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007509 LIBS="$ac_xsave_LIBS"
7510
7511 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7512 # to get the SysV transport functions.
7513 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7514 # needs -lnsl.
7515 # The nsl library prevents programs from opening the X display
7516 # on Irix 5.2, according to T.E. Dickey.
7517 # The functions gethostbyname, getservbyname, and inet_addr are
7518 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007519 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007520if test "x$ac_cv_func_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007521
Alexandre Julliard40664c02009-02-11 20:40:58 +01007522fi
7523
Alexandre Julliard40664c02009-02-11 20:40:58 +01007524 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007526$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007527if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007528 $as_echo_n "(cached) " >&6
7529else
7530 ac_check_lib_save_LIBS=$LIBS
7531LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007533/* end confdefs.h. */
7534
7535/* Override any GCC internal prototype to avoid an error.
7536 Use char because int might match the return type of a GCC
7537 builtin and then its argument prototype would still apply. */
7538#ifdef __cplusplus
7539extern "C"
7540#endif
7541char gethostbyname ();
7542int
7543main ()
7544{
7545return gethostbyname ();
7546 ;
7547 return 0;
7548}
7549_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007550if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007551 ac_cv_lib_nsl_gethostbyname=yes
7552else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007553 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007554fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007555rm -f core conftest.err conftest.$ac_objext \
7556 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007557LIBS=$ac_check_lib_save_LIBS
7558fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007560$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007561if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007562 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7563fi
7564
7565 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007567$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007568if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007569 $as_echo_n "(cached) " >&6
7570else
7571 ac_check_lib_save_LIBS=$LIBS
7572LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007573cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007574/* end confdefs.h. */
7575
7576/* Override any GCC internal prototype to avoid an error.
7577 Use char because int might match the return type of a GCC
7578 builtin and then its argument prototype would still apply. */
7579#ifdef __cplusplus
7580extern "C"
7581#endif
7582char gethostbyname ();
7583int
7584main ()
7585{
7586return gethostbyname ();
7587 ;
7588 return 0;
7589}
7590_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007591if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007592 ac_cv_lib_bsd_gethostbyname=yes
7593else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007594 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007595fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007596rm -f core conftest.err conftest.$ac_objext \
7597 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007598LIBS=$ac_check_lib_save_LIBS
7599fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007601$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007602if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7604fi
7605
7606 fi
7607 fi
7608
7609 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7610 # socket/setsockopt and other routines are undefined under SCO ODT
7611 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7612 # on later versions), says Simon Leinen: it contains gethostby*
7613 # variants that don't use the name server (or something). -lsocket
7614 # must be given before -lnsl if both are needed. We assume that
7615 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007616 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007617if test "x$ac_cv_func_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007618
Alexandre Julliard40664c02009-02-11 20:40:58 +01007619fi
7620
Alexandre Julliard40664c02009-02-11 20:40:58 +01007621 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007623$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007624if ${ac_cv_lib_socket_connect+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007625 $as_echo_n "(cached) " >&6
7626else
7627 ac_check_lib_save_LIBS=$LIBS
7628LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007630/* end confdefs.h. */
7631
7632/* Override any GCC internal prototype to avoid an error.
7633 Use char because int might match the return type of a GCC
7634 builtin and then its argument prototype would still apply. */
7635#ifdef __cplusplus
7636extern "C"
7637#endif
7638char connect ();
7639int
7640main ()
7641{
7642return connect ();
7643 ;
7644 return 0;
7645}
7646_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007647if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007648 ac_cv_lib_socket_connect=yes
7649else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007650 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007651fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007652rm -f core conftest.err conftest.$ac_objext \
7653 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007654LIBS=$ac_check_lib_save_LIBS
7655fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007657$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007658if test "x$ac_cv_lib_socket_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007659 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7660fi
7661
7662 fi
7663
7664 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007665 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007666if test "x$ac_cv_func_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007667
Alexandre Julliard40664c02009-02-11 20:40:58 +01007668fi
7669
Alexandre Julliard40664c02009-02-11 20:40:58 +01007670 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007672$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007673if ${ac_cv_lib_posix_remove+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007674 $as_echo_n "(cached) " >&6
7675else
7676 ac_check_lib_save_LIBS=$LIBS
7677LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007679/* end confdefs.h. */
7680
7681/* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7684#ifdef __cplusplus
7685extern "C"
7686#endif
7687char remove ();
7688int
7689main ()
7690{
7691return remove ();
7692 ;
7693 return 0;
7694}
7695_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007696if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007697 ac_cv_lib_posix_remove=yes
7698else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007699 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007700fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007701rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007703LIBS=$ac_check_lib_save_LIBS
7704fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007706$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007707if test "x$ac_cv_lib_posix_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007708 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7709fi
7710
7711 fi
7712
7713 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007714 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007715if test "x$ac_cv_func_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007716
Alexandre Julliard40664c02009-02-11 20:40:58 +01007717fi
7718
Alexandre Julliard40664c02009-02-11 20:40:58 +01007719 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007721$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007722if ${ac_cv_lib_ipc_shmat+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007723 $as_echo_n "(cached) " >&6
7724else
7725 ac_check_lib_save_LIBS=$LIBS
7726LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007728/* end confdefs.h. */
7729
7730/* Override any GCC internal prototype to avoid an error.
7731 Use char because int might match the return type of a GCC
7732 builtin and then its argument prototype would still apply. */
7733#ifdef __cplusplus
7734extern "C"
7735#endif
7736char shmat ();
7737int
7738main ()
7739{
7740return shmat ();
7741 ;
7742 return 0;
7743}
7744_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007745if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007746 ac_cv_lib_ipc_shmat=yes
7747else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007748 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007749fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007750rm -f core conftest.err conftest.$ac_objext \
7751 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007752LIBS=$ac_check_lib_save_LIBS
7753fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007755$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007756if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007757 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7758fi
7759
7760 fi
7761 fi
7762
7763 # Check for libraries that X11R6 Xt/Xaw programs need.
7764 ac_save_LDFLAGS=$LDFLAGS
7765 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7766 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7767 # check for ICE first), but we must link in the order -lSM -lICE or
7768 # we get undefined symbols. So assume we have SM if we have ICE.
7769 # These have to be linked with before -lX11, unlike the other
7770 # libraries we check for below, so use a different variable.
7771 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007773$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007774if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007775 $as_echo_n "(cached) " >&6
7776else
7777 ac_check_lib_save_LIBS=$LIBS
7778LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007779cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007780/* end confdefs.h. */
7781
7782/* Override any GCC internal prototype to avoid an error.
7783 Use char because int might match the return type of a GCC
7784 builtin and then its argument prototype would still apply. */
7785#ifdef __cplusplus
7786extern "C"
7787#endif
7788char IceConnectionNumber ();
7789int
7790main ()
7791{
7792return IceConnectionNumber ();
7793 ;
7794 return 0;
7795}
7796_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007797if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007798 ac_cv_lib_ICE_IceConnectionNumber=yes
7799else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007800 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007801fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007802rm -f core conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007804LIBS=$ac_check_lib_save_LIBS
7805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007807$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007808if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007809 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7810fi
7811
7812 LDFLAGS=$ac_save_LDFLAGS
7813
7814fi
7815
7816
Rein Klazes7ff12562004-11-09 20:16:35 +00007817if test "$have_x" = "yes"
7818then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007819 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007820 ac_save_CPPFLAGS="$CPPFLAGS"
7821 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7822
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007824$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007825if ${ac_cv_lib_soname_X11+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007826 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007827else
7828 ac_check_soname_save_LIBS=$LIBS
7829LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007831/* end confdefs.h. */
7832
7833/* Override any GCC internal prototype to avoid an error.
7834 Use char because int might match the return type of a GCC
7835 builtin and then its argument prototype would still apply. */
7836#ifdef __cplusplus
7837extern "C"
7838#endif
7839char XCreateWindow ();
7840int
7841main ()
7842{
7843return XCreateWindow ();
7844 ;
7845 return 0;
7846}
7847_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007848if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007849 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007850 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliarda8518542007-07-09 22:43:45 +02007851 dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep "libX11\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7852 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7853 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007854fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007855rm -f core conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007857 LIBS=$ac_check_soname_save_LIBS
7858fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007859if test "x$ac_cv_lib_soname_X11" = "x"; then :
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007861$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007862
7863else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007865$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007866
7867cat >>confdefs.h <<_ACEOF
7868#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7869_ACEOF
7870
7871
7872fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007874$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007875if ${ac_cv_lib_soname_Xext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007876 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007877else
7878 ac_check_soname_save_LIBS=$LIBS
7879LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007881/* end confdefs.h. */
7882
7883/* Override any GCC internal prototype to avoid an error.
7884 Use char because int might match the return type of a GCC
7885 builtin and then its argument prototype would still apply. */
7886#ifdef __cplusplus
7887extern "C"
7888#endif
7889char XextCreateExtension ();
7890int
7891main ()
7892{
7893return XextCreateExtension ();
7894 ;
7895 return 0;
7896}
7897_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007898if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007899 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007900 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliarda8518542007-07-09 22:43:45 +02007901 dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep "libXext\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7902 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7903 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007904fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007905rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007907 LIBS=$ac_check_soname_save_LIBS
7908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007909if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007911$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007912
7913else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007915$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007916
7917cat >>confdefs.h <<_ACEOF
7918#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7919_ACEOF
7920
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007921 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007922fi
7923
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007924 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007925 X11/XKBlib.h \
7926 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007927 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007928 X11/extensions/shape.h \
7929 X11/extensions/XInput.h \
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02007930 X11/extensions/XInput2.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007931 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007932 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007933 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007934 X11/extensions/Xrandr.h \
7935 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007936 X11/extensions/xf86vmode.h \
7937 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007938do :
7939 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7940ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007941# include <X11/Xlib.h>
7942#endif
7943#ifdef HAVE_X11_XUTIL_H
7944# include <X11/Xutil.h>
7945#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007946"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007947if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007948 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007949#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007950_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007951
7952fi
7953
7954done
7955
7956
7957 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7958 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007960$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007961if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007962 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007963else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007964 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007965LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007967/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007968
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007969/* Override any GCC internal prototype to avoid an error.
7970 Use char because int might match the return type of a GCC
7971 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007972#ifdef __cplusplus
7973extern "C"
7974#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007975char XkbQueryExtension ();
7976int
7977main ()
7978{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007979return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980 ;
7981 return 0;
7982}
7983_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007984if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007985 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007986else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007987 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007988fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007989rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007991LIBS=$ac_check_lib_save_LIBS
7992fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007994$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007995if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00007996
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007997$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007998
Patrik Stridvall24110281999-02-04 10:09:54 +00007999fi
8000
Alexandre Julliard255b4862003-10-15 04:09:55 +00008001 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008002
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008003 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8004 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008006$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008007if ${ac_cv_lib_soname_Xcursor+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008008 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008009else
8010 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008011LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008013/* end confdefs.h. */
8014
8015/* Override any GCC internal prototype to avoid an error.
8016 Use char because int might match the return type of a GCC
8017 builtin and then its argument prototype would still apply. */
8018#ifdef __cplusplus
8019extern "C"
8020#endif
8021char XcursorImageLoadCursor ();
8022int
8023main ()
8024{
8025return XcursorImageLoadCursor ();
8026 ;
8027 return 0;
8028}
8029_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008030if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008031 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008032 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008033 dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8034 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8035 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008036fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008037rm -f core conftest.err conftest.$ac_objext \
8038 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008039 LIBS=$ac_check_soname_save_LIBS
8040fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008041if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008043$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008044
8045else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008047$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008048
8049cat >>confdefs.h <<_ACEOF
8050#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8051_ACEOF
8052
8053
8054fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008055 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008056 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008057 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008058 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008059 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008060 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008061This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008062esac
8063fi
8064
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008065 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8066 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008068$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008069if ${ac_cv_lib_soname_Xi+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008070 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008071else
8072 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008073LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008075/* end confdefs.h. */
8076
8077/* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8080#ifdef __cplusplus
8081extern "C"
8082#endif
8083char XOpenDevice ();
8084int
8085main ()
8086{
8087return XOpenDevice ();
8088 ;
8089 return 0;
8090}
8091_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008092if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008093 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008094 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008095 dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep "libXi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8096 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8097 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008099rm -f core conftest.err conftest.$ac_objext \
8100 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008101 LIBS=$ac_check_soname_save_LIBS
8102fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008103if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008105$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008106
8107else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008109$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008110
8111cat >>confdefs.h <<_ACEOF
8112#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8113_ACEOF
8114
8115
8116fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008117 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008118 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008119 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008120 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008121 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008122 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008123This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008124esac
8125fi
8126
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008127 if test "x$ac_cv_lib_soname_Xi" != x
8128 then
8129 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8130 case "x$with_xinput2" in
8131 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8132 xno) ;;
8133 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008134This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008135esac
8136fi
8137 fi
8138
Alexandre Julliard255b4862003-10-15 04:09:55 +00008139 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8140 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008142$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008143if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008144 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008145else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008146 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008147LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008149/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008150
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008151/* Override any GCC internal prototype to avoid an error.
8152 Use char because int might match the return type of a GCC
8153 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008154#ifdef __cplusplus
8155extern "C"
8156#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008157char XShmQueryExtension ();
8158int
8159main ()
8160{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008161return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008162 ;
8163 return 0;
8164}
8165_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008166if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008167 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008168else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008169 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008170fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008171rm -f core conftest.err conftest.$ac_objext \
8172 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008173LIBS=$ac_check_lib_save_LIBS
8174fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008176$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008177if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008178
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008179$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008180
Francois Jacques5b6879c2000-07-28 23:04:54 +00008181fi
8182
Alexandre Julliard255b4862003-10-15 04:09:55 +00008183 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008184 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008185 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008186 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008187 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008188 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008189This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008190esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008191fi
8192
Alexandre Julliard255b4862003-10-15 04:09:55 +00008193 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8194 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008196$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008197if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008198 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008199else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008200 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008201LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008203/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008204
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008205/* Override any GCC internal prototype to avoid an error.
8206 Use char because int might match the return type of a GCC
8207 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008208#ifdef __cplusplus
8209extern "C"
8210#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008211char XShapeQueryExtension ();
8212int
8213main ()
8214{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008215return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008216 ;
8217 return 0;
8218}
8219_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008220if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008221 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008222else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008223 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008224fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008225rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008227LIBS=$ac_check_lib_save_LIBS
8228fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008230$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008231if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008232
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008233$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008234
Ove Kaavenc90fb252001-01-02 22:39:14 +00008235fi
8236
Alexandre Julliard255b4862003-10-15 04:09:55 +00008237 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008238 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008239 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008240 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008241 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008242 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008243This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008244esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008245fi
8246
André Hentschel7b285a42009-09-19 19:08:09 +02008247 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
Alexandre Julliard255b4862003-10-15 04:09:55 +00008248 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008250$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008251if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008252 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008253else
Francois Gougeta49beb42008-06-26 14:02:17 +02008254 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008255LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008257/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008258
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008259/* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008262#ifdef __cplusplus
8263extern "C"
8264#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008265char XF86VidModeQueryExtension ();
8266int
8267main ()
8268{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008269return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008270 ;
8271 return 0;
8272}
8273_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008274if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008275 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008276 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gougeta49beb42008-06-26 14:02:17 +02008277 dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8278 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8279 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008280fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008281rm -f core conftest.err conftest.$ac_objext \
8282 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008283 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008284fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008285if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008287$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008288
Francois Gougeta49beb42008-06-26 14:02:17 +02008289else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008291$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008292
8293cat >>confdefs.h <<_ACEOF
8294#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008295_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008296
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008297
Patrik Stridvall24110281999-02-04 10:09:54 +00008298fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008299 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008300 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008301 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008302 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008303 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008304 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008305This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008306esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008307fi
8308
Alexandre Julliarda8518542007-07-09 22:43:45 +02008309 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
Alexandre Julliard629639e2007-07-04 12:47:57 +02008310 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008312$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008313if ${ac_cv_lib_soname_Xrender+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008314 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008315else
8316 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008317LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008319/* end confdefs.h. */
8320
8321/* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8324#ifdef __cplusplus
8325extern "C"
8326#endif
8327char XRenderQueryExtension ();
8328int
8329main ()
8330{
8331return XRenderQueryExtension ();
8332 ;
8333 return 0;
8334}
8335_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008336if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008337 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008338 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard629639e2007-07-04 12:47:57 +02008339 dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep "libXrender\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8340 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8341 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008342fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008343rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008345 LIBS=$ac_check_soname_save_LIBS
8346fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008347if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008349$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008350
8351else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008353$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008354
8355cat >>confdefs.h <<_ACEOF
8356#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8357_ACEOF
8358
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008360$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008361if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008362 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008363else
8364 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008365LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008367/* end confdefs.h. */
8368
8369/* Override any GCC internal prototype to avoid an error.
8370 Use char because int might match the return type of a GCC
8371 builtin and then its argument prototype would still apply. */
8372#ifdef __cplusplus
8373extern "C"
8374#endif
8375char XRenderSetPictureTransform ();
8376int
8377main ()
8378{
8379return XRenderSetPictureTransform ();
8380 ;
8381 return 0;
8382}
8383_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008384if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008385 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8386else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008387 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008388fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008389rm -f core conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008391LIBS=$ac_check_lib_save_LIBS
8392fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008394$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008395if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008396
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008397$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008398
8399fi
8400
8401fi
8402
Alexandre Julliard629639e2007-07-04 12:47:57 +02008403 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008404 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008405 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008406 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008407 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008408 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008409This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008410esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008411fi
8412
Alexandre Julliard629639e2007-07-04 12:47:57 +02008413 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
Alexandre Julliard255b4862003-10-15 04:09:55 +00008414 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008416/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008417#include <X11/Xlib.h>
8418#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008419int
8420main ()
8421{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008422static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008423 ;
8424 return 0;
8425}
8426_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008427if ac_fn_c_try_compile "$LINENO"; then :
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008429$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008430if ${ac_cv_lib_soname_Xrandr+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008431 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008432else
8433 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008434LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008436/* end confdefs.h. */
8437
8438/* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8441#ifdef __cplusplus
8442extern "C"
8443#endif
8444char XRRQueryExtension ();
8445int
8446main ()
8447{
8448return XRRQueryExtension ();
8449 ;
8450 return 0;
8451}
8452_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008453if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008454 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008455 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008456 dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep "libXrandr\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8457 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8458 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008459fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008460rm -f core conftest.err conftest.$ac_objext \
8461 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008462 LIBS=$ac_check_soname_save_LIBS
8463fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008464if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008466$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008467
8468else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008470$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008471
8472cat >>confdefs.h <<_ACEOF
8473#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8474_ACEOF
8475
8476
8477fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008478fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008480 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008481 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008482 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008483 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008484 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008485 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008486This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008487esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008488fi
8489
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008490 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8491 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008493/* end confdefs.h. */
8494#include <X11/Xlib.h>
8495#include <X11/extensions/Xinerama.h>
8496int
8497main ()
8498{
8499static typeof(XineramaQueryScreens) * func;
8500 ;
8501 return 0;
8502}
8503_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008504if ac_fn_c_try_compile "$LINENO"; then :
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008506$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008507if ${ac_cv_lib_soname_Xinerama+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008508 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008509else
8510 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008511LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008513/* end confdefs.h. */
8514
8515/* Override any GCC internal prototype to avoid an error.
8516 Use char because int might match the return type of a GCC
8517 builtin and then its argument prototype would still apply. */
8518#ifdef __cplusplus
8519extern "C"
8520#endif
8521char XineramaQueryScreens ();
8522int
8523main ()
8524{
8525return XineramaQueryScreens ();
8526 ;
8527 return 0;
8528}
8529_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008530if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008531 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008532 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008533 dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8534 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8535 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008536fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008537rm -f core conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008539 LIBS=$ac_check_soname_save_LIBS
8540fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008541if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008543$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008544
8545else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008547$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008548
8549cat >>confdefs.h <<_ACEOF
8550#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8551_ACEOF
8552
8553
8554fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008555fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008558 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008559 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008560 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008561 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008562 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008563This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008564esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008565fi
8566
Chris Robinson42584652007-09-22 18:19:08 -07008567 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8568 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008570$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008571if ${ac_cv_lib_soname_Xcomposite+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008572 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008573else
8574 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008575LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008577/* end confdefs.h. */
8578
8579/* Override any GCC internal prototype to avoid an error.
8580 Use char because int might match the return type of a GCC
8581 builtin and then its argument prototype would still apply. */
8582#ifdef __cplusplus
8583extern "C"
8584#endif
8585char XCompositeRedirectWindow ();
8586int
8587main ()
8588{
8589return XCompositeRedirectWindow ();
8590 ;
8591 return 0;
8592}
8593_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008594if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008595 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008596 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Chris Robinson42584652007-09-22 18:19:08 -07008597 dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8598 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8599 esac
Chris Robinson42584652007-09-22 18:19:08 -07008600fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008601rm -f core conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008603 LIBS=$ac_check_soname_save_LIBS
8604fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008605if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008607$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008608
8609else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008611$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008612
8613cat >>confdefs.h <<_ACEOF
8614#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8615_ACEOF
8616
8617
8618fi
Chris Robinson42584652007-09-22 18:19:08 -07008619 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008620 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008621 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008622 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008623 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008624 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008625This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008626esac
Chris Robinson42584652007-09-22 18:19:08 -07008627fi
8628
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008629 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008630#include <X11/Xlib.h>
8631#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008632"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008633if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008634
8635cat >>confdefs.h <<_ACEOF
8636#define HAVE_XICCALLBACK_CALLBACK 1
8637_ACEOF
8638
8639
8640fi
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008641ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8642#include <X11/Xlib.h>
8643#endif
8644"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008645if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008646
8647cat >>confdefs.h <<_ACEOF
8648#define HAVE_XEVENT_XCOOKIE 1
8649_ACEOF
8650
8651
8652fi
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008653
8654
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008655
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008656 opengl_msg=""
8657 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008658 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008659 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8660do :
8661 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8662ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008663# include <GL/glx.h>
8664#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008665"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008666if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008667 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008668#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008669_ACEOF
8670
8671fi
8672
8673done
8674
Alexandre Julliard73482142005-08-03 19:21:04 +00008675 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8676 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008678$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008679if ${wine_cv_opengl_header_version_OK+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008680 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008681else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008683/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008684#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008685int
8686main ()
8687{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008688GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008689 ;
8690 return 0;
8691}
8692_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008693if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008694 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008695else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008696 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008697fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008701$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008702
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008703 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008704 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008706$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008707if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008708 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008709else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008710 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008711LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008713/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008714
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008715/* Override any GCC internal prototype to avoid an error.
8716 Use char because int might match the return type of a GCC
8717 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008718#ifdef __cplusplus
8719extern "C"
8720#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008721char glXCreateContext ();
8722int
8723main ()
8724{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008725return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008726 ;
8727 return 0;
8728}
8729_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008730if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008731 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008732 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard31353e12007-07-04 12:44:12 +02008733 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8734 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8735 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008737rm -f core conftest.err conftest.$ac_objext \
8738 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008739 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008740fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008741if test "x$ac_cv_lib_soname_GL" = "x"; then :
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008743$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008745$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008746if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008747 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008748else
8749 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008750LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008752/* end confdefs.h. */
8753
8754/* Override any GCC internal prototype to avoid an error.
8755 Use char because int might match the return type of a GCC
8756 builtin and then its argument prototype would still apply. */
8757#ifdef __cplusplus
8758extern "C"
8759#endif
8760char glXCreateContext ();
8761int
8762main ()
8763{
8764return glXCreateContext ();
8765 ;
8766 return 0;
8767}
8768_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008769if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008770 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008771 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gougetd701ee22007-12-18 10:17:20 +01008772 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8773 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8774 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008775fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008776rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008778 LIBS=$ac_check_soname_save_LIBS
8779fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008780if test "x$ac_cv_lib_soname_GL" = "x"; then :
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008782$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008783 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008784 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008785 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008786This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008787 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008788 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008789 fi
8790else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008792$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008793
8794cat >>confdefs.h <<_ACEOF
8795#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8796_ACEOF
8797
8798 OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"
Francois Gougetd701ee22007-12-18 10:17:20 +01008799
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008800$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008801
8802fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008803else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008805$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008806
8807cat >>confdefs.h <<_ACEOF
8808#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8809_ACEOF
8810
8811 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008812
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008813$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008814
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008815fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008816 if test "$ac_cv_header_GL_glu_h" = "yes"
8817 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008819$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008820if ${ac_cv_lib_soname_GLU+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008821 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008822else
Alexandre Julliardad798732008-05-01 13:29:02 +02008823 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008824LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008826/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008827
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008828/* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008831#ifdef __cplusplus
8832extern "C"
8833#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008834char gluLookAt ();
8835int
8836main ()
8837{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008838return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008839 ;
8840 return 0;
8841}
8842_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008843if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008844 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008845 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008846 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8847 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8848 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008849fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008850rm -f core conftest.err conftest.$ac_objext \
8851 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008852 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008853fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008854if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008856$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008857
Alexandre Julliardad798732008-05-01 13:29:02 +02008858else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008860$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008861
8862cat >>confdefs.h <<_ACEOF
8863#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8864_ACEOF
8865
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008866
Alexandre Julliardad798732008-05-01 13:29:02 +02008867fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008868 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008869 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008870 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008871 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008872 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008873 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008874This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008875esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008876fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008877 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008878 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008879 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008880 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008881 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008882 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008883 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8884 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8885 else
8886 enable_opengl32=${enable_opengl32:-no}
8887 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008888 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008889 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008890 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008891 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008892OpenGL and Direct3D won't be supported." ;;
8893 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008894 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008895OpenGL and Direct3D won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008896This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008897esac
8898fi
8899
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008900 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00008901else
8902 XLIB=""
8903 X_CFLAGS=""
8904 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008905 enable_winex11_drv=${enable_winex11_drv:-no}
8906 enable_opengl32=${enable_opengl32:-no}
8907 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00008908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008909if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008910 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008911 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008912 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02008913without X support, which probably isn't what you want. You will need
8914to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008915Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008916esac
8917fi
8918
Adam Martinson2eb2f712010-12-28 12:46:09 -06008919if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11008920then
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
8922$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008923if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11008924 $as_echo_n "(cached) " >&6
8925else
8926 ac_check_lib_save_LIBS=$LIBS
8927LIBS="-lOpenCL $LIBS"
8928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929/* end confdefs.h. */
8930
8931/* Override any GCC internal prototype to avoid an error.
8932 Use char because int might match the return type of a GCC
8933 builtin and then its argument prototype would still apply. */
8934#ifdef __cplusplus
8935extern "C"
8936#endif
8937char clGetPlatformInfo ();
8938int
8939main ()
8940{
8941return clGetPlatformInfo ();
8942 ;
8943 return 0;
8944}
8945_ACEOF
8946if ac_fn_c_try_link "$LINENO"; then :
8947 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
8948else
8949 ac_cv_lib_OpenCL_clGetPlatformInfo=no
8950fi
8951rm -f core conftest.err conftest.$ac_objext \
8952 conftest$ac_exeext conftest.$ac_ext
8953LIBS=$ac_check_lib_save_LIBS
8954fi
8955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
8956$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008957if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11008958 LIBOPENCL="-lOpenCL"
8959
8960fi
8961
8962fi
8963if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
8964 case "x$with_opencl" in
8965 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
8966 xno) ;;
8967 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008968This is an error since --with-opencl was requested." "$LINENO" 5 ;;
Peter Urbanec65c84d72010-12-02 23:41:48 +11008969esac
8970fi
8971test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
8972
Alexandre Julliard902da691995-11-05 14:39:02 +00008973
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00008974XML2LIBS=""
8975
8976XML2INCL=""
8977
Mike McCormackf3719a82005-09-03 09:39:38 +00008978XSLTINCL=""
8979
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008980if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00008981then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008982 ac_save_CPPFLAGS="$CPPFLAGS"
8983 if test "$PKG_CONFIG" != "false"
8984 then
8985 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8986 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8987 else
8988 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8989 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8990 fi
8991 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06008992 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008993do :
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06008994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8995ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00008997 cat >>confdefs.h <<_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06008998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00008999_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009000
9001fi
9002
9003done
9004
9005 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9006 then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009008$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009009if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009010 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009011else
9012 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009013LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009015/* end confdefs.h. */
9016
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009017/* Override any GCC internal prototype to avoid an error.
9018 Use char because int might match the return type of a GCC
9019 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009020#ifdef __cplusplus
9021extern "C"
9022#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009023char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009024int
9025main ()
9026{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009027return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009028 ;
9029 return 0;
9030}
9031_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009032if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009033 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009034else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009035 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009036fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009037rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009039LIBS=$ac_check_lib_save_LIBS
9040fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009042$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009043if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009044
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009045$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009046
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009047 XML2LIBS="$ac_xml_libs"
9048 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009049fi
9050
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009052$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009053if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009054 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009055else
9056 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009057LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009059/* end confdefs.h. */
9060
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009061/* Override any GCC internal prototype to avoid an error.
9062 Use char because int might match the return type of a GCC
9063 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009064#ifdef __cplusplus
9065extern "C"
9066#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009067char xmlReadMemory ();
9068int
9069main ()
9070{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009071return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009072 ;
9073 return 0;
9074}
9075_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009076if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009077 ac_cv_lib_xml2_xmlReadMemory=yes
9078else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009079 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009080fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009081rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009083LIBS=$ac_check_lib_save_LIBS
9084fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009086$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009087if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009088
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009089$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009090
9091fi
9092
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009094$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009095if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009096 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009097else
9098 ac_check_lib_save_LIBS=$LIBS
9099LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009101/* end confdefs.h. */
9102
9103/* Override any GCC internal prototype to avoid an error.
9104 Use char because int might match the return type of a GCC
9105 builtin and then its argument prototype would still apply. */
9106#ifdef __cplusplus
9107extern "C"
9108#endif
9109char xmlNewDocPI ();
9110int
9111main ()
9112{
9113return xmlNewDocPI ();
9114 ;
9115 return 0;
9116}
9117_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009118if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009119 ac_cv_lib_xml2_xmlNewDocPI=yes
9120else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009121 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009122fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009123rm -f core conftest.err conftest.$ac_objext \
9124 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009125LIBS=$ac_check_lib_save_LIBS
9126fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009128$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009129if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009130
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009131$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009132
9133fi
9134
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
Adam Martinson6ee22312010-11-22 20:54:54 -06009136$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009137if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009138 $as_echo_n "(cached) " >&6
9139else
9140 ac_check_lib_save_LIBS=$LIBS
9141LIBS="-lxml2 $ac_xml_libs $LIBS"
9142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143/* end confdefs.h. */
9144
9145/* Override any GCC internal prototype to avoid an error.
9146 Use char because int might match the return type of a GCC
9147 builtin and then its argument prototype would still apply. */
9148#ifdef __cplusplus
9149extern "C"
9150#endif
9151char xmlSchemaSetParserStructuredErrors ();
9152int
9153main ()
9154{
9155return xmlSchemaSetParserStructuredErrors ();
9156 ;
9157 return 0;
9158}
9159_ACEOF
9160if ac_fn_c_try_link "$LINENO"; then :
9161 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9162else
9163 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9164fi
9165rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9167LIBS=$ac_check_lib_save_LIBS
9168fi
9169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9170$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009171if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009172
9173$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9174
9175fi
9176
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009178$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009179if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009180 $as_echo_n "(cached) " >&6
9181else
9182 ac_check_lib_save_LIBS=$LIBS
9183LIBS="-lxml2 $ac_xml_libs $LIBS"
9184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185/* end confdefs.h. */
9186
9187/* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9190#ifdef __cplusplus
9191extern "C"
9192#endif
9193char xmlSchemaSetValidStructuredErrors ();
9194int
9195main ()
9196{
9197return xmlSchemaSetValidStructuredErrors ();
9198 ;
9199 return 0;
9200}
9201_ACEOF
9202if ac_fn_c_try_link "$LINENO"; then :
9203 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9204else
9205 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9206fi
9207rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209LIBS=$ac_check_lib_save_LIBS
9210fi
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9212$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009213if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009214
9215$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9216
9217fi
9218
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
Adam Martinson82f73c82010-11-11 15:16:24 -06009220$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009221if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009222 $as_echo_n "(cached) " >&6
9223else
9224 ac_check_lib_save_LIBS=$LIBS
9225LIBS="-lxml2 $ac_xml_libs $LIBS"
9226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227/* end confdefs.h. */
9228
9229/* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9232#ifdef __cplusplus
9233extern "C"
9234#endif
9235char xmlFirstElementChild ();
9236int
9237main ()
9238{
9239return xmlFirstElementChild ();
9240 ;
9241 return 0;
9242}
9243_ACEOF
9244if ac_fn_c_try_link "$LINENO"; then :
9245 ac_cv_lib_xml2_xmlFirstElementChild=yes
9246else
9247 ac_cv_lib_xml2_xmlFirstElementChild=no
9248fi
9249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9251LIBS=$ac_check_lib_save_LIBS
9252fi
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9254$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009255if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009256
9257$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9258
9259fi
9260
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009261 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
Adam Martinson9408b492010-11-02 17:20:08 -05009262"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009263if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
Adam Martinson9408b492010-11-02 17:20:08 -05009264
9265$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9266
9267fi
9268
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009269 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009270 CPPFLAGS="$ac_save_CPPFLAGS"
9271fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009272if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009273 case "x$with_xml" in
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009274 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009275 xno) ;;
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009276 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009277This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009278esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009279fi
9280
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009281if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009282then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009283 if test "$PKG_CONFIG" != "false"
9284 then
9285 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9286 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9287 else
9288 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9289 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9290 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009291 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009292 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009293 for ac_header in libxslt/pattern.h libxslt/transform.h
9294do :
9295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9296ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009297# include <libxslt/pattern.h>
9298#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009299"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009300if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009301 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009302#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009303_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009304
9305fi
9306
9307done
9308
9309 CPPFLAGS="$ac_save_CPPFLAGS"
9310 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9311 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009313$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009314if ${ac_cv_lib_soname_xslt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009315 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009316else
Francois Gouget3d384f12008-11-17 19:29:32 +01009317 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009318LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009320/* end confdefs.h. */
9321
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009322/* Override any GCC internal prototype to avoid an error.
9323 Use char because int might match the return type of a GCC
9324 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009325#ifdef __cplusplus
9326extern "C"
9327#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009328char xsltCompilePattern ();
9329int
9330main ()
9331{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009332return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009333 ;
9334 return 0;
9335}
9336_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009337if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009338 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009339 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gouget3d384f12008-11-17 19:29:32 +01009340 dylib) ac_cv_lib_soname_xslt=`otool -L conftest$ac_exeext | grep "libxslt\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libxslt\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9341 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9342 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009343fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009344rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009346 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009347fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009348if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009350$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009351
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009352else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009354$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009355
Francois Gouget3d384f12008-11-17 19:29:32 +01009356cat >>confdefs.h <<_ACEOF
9357#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009358_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009359
Francois Gouget3d384f12008-11-17 19:29:32 +01009360 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009361fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009362 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009363fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009364if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009365 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009366 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009367 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009368 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009369This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009370esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009371fi
9372
Alexandre Julliard00068982006-04-18 16:47:53 +02009373HALINCL=""
9374
Francois Gouget295a0cd2009-01-09 20:22:22 +01009375if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009376then
9377 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009378 if test "$PKG_CONFIG" != "false"
9379 then
9380 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9381 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9382 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9383 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009384 for ac_header in dbus/dbus.h hal/libhal.h
9385do :
9386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9387ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009388if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009389 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009390#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009391_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009392
9393fi
9394
9395done
9396
9397 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9398 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009400$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009401if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009402 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009403else
9404 ac_check_lib_save_LIBS=$LIBS
9405LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009407/* end confdefs.h. */
9408
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009409/* Override any GCC internal prototype to avoid an error.
9410 Use char because int might match the return type of a GCC
9411 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009412#ifdef __cplusplus
9413extern "C"
9414#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009415char dbus_connection_close ();
9416int
9417main ()
9418{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009419return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009420 ;
9421 return 0;
9422}
9423_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009424if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009425 ac_cv_lib_dbus_1_dbus_connection_close=yes
9426else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009427 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009428fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009429rm -f core conftest.err conftest.$ac_objext \
9430 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009431LIBS=$ac_check_lib_save_LIBS
9432fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009434$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009435if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009437$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009438if ${ac_cv_lib_soname_hal+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009439 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009440else
9441 ac_check_soname_save_LIBS=$LIBS
9442LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009444/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009445
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009446/* Override any GCC internal prototype to avoid an error.
9447 Use char because int might match the return type of a GCC
9448 builtin and then its argument prototype would still apply. */
9449#ifdef __cplusplus
9450extern "C"
9451#endif
9452char libhal_ctx_new ();
9453int
9454main ()
9455{
9456return libhal_ctx_new ();
9457 ;
9458 return 0;
9459}
9460_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009461if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009462 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009463 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009464 dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep "libhal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9465 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9466 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009467fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009468rm -f core conftest.err conftest.$ac_objext \
9469 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009470 LIBS=$ac_check_soname_save_LIBS
9471fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009472if test "x$ac_cv_lib_soname_hal" = "x"; then :
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009474$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009475
9476else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009478$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009479
9480cat >>confdefs.h <<_ACEOF
9481#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009482_ACEOF
9483
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009484 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009485fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009486fi
9487
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009488 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009489 CPPFLAGS="$ac_save_CPPFLAGS"
9490fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009491if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009492 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009493 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009494 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009495 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009496This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009497esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009498fi
9499
Francois Gouget295a0cd2009-01-09 20:22:22 +01009500if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009501then
9502 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009503 if test "$PKG_CONFIG" != "false"
9504 then
9505 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9506 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9507 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9508 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009509 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009510if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009512/* end confdefs.h. */
9513#include <gnutls/gnutls.h>
9514int
9515main ()
9516{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009517typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009518 ;
9519 return 0;
9520}
9521_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009522if ac_fn_c_try_compile "$LINENO"; then :
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009524$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009525if ${ac_cv_lib_soname_gnutls+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009526 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009527else
9528 ac_check_soname_save_LIBS=$LIBS
9529LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009531/* end confdefs.h. */
9532
9533/* Override any GCC internal prototype to avoid an error.
9534 Use char because int might match the return type of a GCC
9535 builtin and then its argument prototype would still apply. */
9536#ifdef __cplusplus
9537extern "C"
9538#endif
9539char gnutls_global_init ();
9540int
9541main ()
9542{
9543return gnutls_global_init ();
9544 ;
9545 return 0;
9546}
9547_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009548if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009549 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009550 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009551 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9552 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9553 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009554fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009555rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009557 LIBS=$ac_check_soname_save_LIBS
9558fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009559if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009561$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009562
9563else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009565$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009566
9567cat >>confdefs.h <<_ACEOF
9568#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9569_ACEOF
9570
9571 GNUTLSINCL="$ac_gnutls_cflags"
9572
9573fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009574fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009576fi
9577
9578
9579 CPPFLAGS="$ac_save_CPPFLAGS"
9580fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009581if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009582 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009583 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009584 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009585 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009586This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009587esac
9588fi
9589
Alexandre Julliard48957682001-12-26 23:08:31 +00009590CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009591if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009592then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009594$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009595if ${ac_cv_lib_soname_ncurses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009596 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009597else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009598 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009599LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009601/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009602
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009603/* Override any GCC internal prototype to avoid an error.
9604 Use char because int might match the return type of a GCC
9605 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009606#ifdef __cplusplus
9607extern "C"
9608#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009609char waddch ();
9610int
9611main ()
9612{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009613return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009614 ;
9615 return 0;
9616}
9617_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009618if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009619 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009620 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd0783772007-07-02 17:28:50 +02009621 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9622 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9623 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009624fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009625rm -f core conftest.err conftest.$ac_objext \
9626 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009627 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009628fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009629if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009631$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009632
9633else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009635$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009636
9637cat >>confdefs.h <<_ACEOF
9638#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9639_ACEOF
9640
9641 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009642fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009643elif test "$ac_cv_header_curses_h" = "yes"
9644then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009646$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009647if ${ac_cv_lib_soname_curses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009648 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009649else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009650 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009651LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009653/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009654
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009655/* Override any GCC internal prototype to avoid an error.
9656 Use char because int might match the return type of a GCC
9657 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009658#ifdef __cplusplus
9659extern "C"
9660#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009661char waddch ();
9662int
9663main ()
9664{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009665return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009666 ;
9667 return 0;
9668}
9669_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009670if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009671 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009672 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd0783772007-07-02 17:28:50 +02009673 dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9674 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9675 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009676fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009677rm -f core conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009679 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009680fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009681if test "x$ac_cv_lib_soname_curses" = "x"; then :
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009683$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009684
9685else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009687$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009688
9689cat >>confdefs.h <<_ACEOF
9690#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9691_ACEOF
9692
9693 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009694fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009695fi
9696ac_save_LIBS="$LIBS"
9697LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009698for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009699do :
9700 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009701if test "x$ac_cv_func_mousemask" = xyes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009702 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009703#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009704_ACEOF
9705
9706fi
9707done
9708
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009709LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009710if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009711 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009712 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009713 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009714 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009715This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009716esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009717fi
9718
Francois Gouget3fe5d802009-01-14 14:16:06 +01009719if test "x$with_sane" != "xno"
9720then
9721 ac_save_CPPFLAGS="$CPPFLAGS"
9722 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009723set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009725$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009726if ${ac_cv_prog_sane_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009727 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009728else
9729 if test -n "$sane_devel"; then
9730 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9731else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9733for as_dir in $PATH
9734do
9735 IFS=$as_save_IFS
9736 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009737 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009739 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009741 break 2
9742 fi
9743done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009744 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009745IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009746
9747 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9748fi
9749fi
9750sane_devel=$ac_cv_prog_sane_devel
9751if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009753$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009754else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009756$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009757fi
9758
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009759
Francois Gouget3fe5d802009-01-14 14:16:06 +01009760 if test "$sane_devel" != "no"
9761 then
9762 ac_sane_incl="`$sane_devel --cflags`"
9763 ac_sane_libs="`$sane_devel --ldflags`"
9764 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9765 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009766 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009767if test "x$ac_cv_header_sane_sane_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009769$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009770if ${ac_cv_lib_soname_sane+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009771 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009772else
9773 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009774LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009776/* end confdefs.h. */
9777
9778/* Override any GCC internal prototype to avoid an error.
9779 Use char because int might match the return type of a GCC
9780 builtin and then its argument prototype would still apply. */
9781#ifdef __cplusplus
9782extern "C"
9783#endif
9784char sane_init ();
9785int
9786main ()
9787{
9788return sane_init ();
9789 ;
9790 return 0;
9791}
9792_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009793if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009794 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009795 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009796 dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9797 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9798 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009799fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009800rm -f core conftest.err conftest.$ac_objext \
9801 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009802 LIBS=$ac_check_soname_save_LIBS
9803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009804if test "x$ac_cv_lib_soname_sane" = "x"; then :
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009806$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009807
9808else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009810$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009811
9812cat >>confdefs.h <<_ACEOF
9813#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9814_ACEOF
9815
9816 SANEINCL="$ac_sane_incl"
9817
9818fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009819fi
9820
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009821
Shi Quan He6b0720f2002-03-21 02:58:39 +00009822 CPPFLAGS="$ac_save_CPPFLAGS"
9823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009824if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009825 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009826 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009827 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009828 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009829This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009830esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009831fi
9832
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009833if test "x$with_v4l" != "xno"
9834then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9836$as_echo_n "checking for -lv4l1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009837if ${ac_cv_lib_soname_v4l1+:} false; then :
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009838 $as_echo_n "(cached) " >&6
9839else
9840 ac_check_soname_save_LIBS=$LIBS
9841LIBS="-lv4l1 $LIBS"
9842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843/* end confdefs.h. */
9844
9845/* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
9848#ifdef __cplusplus
9849extern "C"
9850#endif
9851char v4l1_open ();
9852int
9853main ()
9854{
9855return v4l1_open ();
9856 ;
9857 return 0;
9858}
9859_ACEOF
9860if ac_fn_c_try_link "$LINENO"; then :
9861 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009862 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009863 dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9864 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9865 esac
9866fi
9867rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
9869 LIBS=$ac_check_soname_save_LIBS
9870fi
9871if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9873$as_echo "not found" >&6; }
9874
9875else
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9877$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9878
9879cat >>confdefs.h <<_ACEOF
9880#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9881_ACEOF
9882
9883
9884fi
9885fi
9886if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9887 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009888 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009889 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009890 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009891This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009892esac
9893fi
9894
Francois Gouget3fe5d802009-01-14 14:16:06 +01009895if test "x$with_gphoto" != "xno"
9896then
9897 ac_save_CPPFLAGS="$CPPFLAGS"
9898 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009899set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009901$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009902if ${ac_cv_prog_gphoto2_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009903 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009904else
9905 if test -n "$gphoto2_devel"; then
9906 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9907else
9908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9909for as_dir in $PATH
9910do
9911 IFS=$as_save_IFS
9912 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009913 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009915 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009917 break 2
9918 fi
9919done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009920 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009921IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009922
9923 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9924fi
9925fi
9926gphoto2_devel=$ac_cv_prog_gphoto2_devel
9927if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009929$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009930else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009932$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009933fi
9934
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009935
Francois Gouget3fe5d802009-01-14 14:16:06 +01009936 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009937set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009939$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009940if ${ac_cv_prog_gphoto2port_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009941 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009942else
9943 if test -n "$gphoto2port_devel"; then
9944 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9945else
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009951 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009953 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009955 break 2
9956 fi
9957done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009958 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009959IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009960
9961 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9962fi
9963fi
9964gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9965if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009967$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009968else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009970$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009971fi
9972
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009973
Francois Gouget3fe5d802009-01-14 14:16:06 +01009974 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9975 then
9976 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9977 ac_gphoto2_libs=""
9978 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9979 do
9980 case "$i" in
9981 -L/usr/lib|-L/usr/lib64) ;;
9982 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9983 esac
9984 done
9985 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9986 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +09009987 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009988 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009989if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009991$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009992if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009993 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009994else
9995 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +02009996LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009997cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009998/* end confdefs.h. */
9999
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010000/* Override any GCC internal prototype to avoid an error.
10001 Use char because int might match the return type of a GCC
10002 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010003#ifdef __cplusplus
10004extern "C"
10005#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010006char gp_camera_new ();
10007int
10008main ()
10009{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010010return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010011 ;
10012 return 0;
10013}
10014_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010015if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010016 ac_cv_lib_gphoto2_gp_camera_new=yes
10017else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010018 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010019fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010020rm -f core conftest.err conftest.$ac_objext \
10021 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010022LIBS=$ac_check_lib_save_LIBS
10023fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010025$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010026if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010027
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010028$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010029
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010030 GPHOTO2LIBS="$ac_gphoto2_libs"
10031
10032 GPHOTO2INCL="$ac_gphoto2_incl"
10033
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010034fi
10035
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010036fi
10037
10038
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010039 CPPFLAGS="$ac_save_CPPFLAGS"
10040fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010041if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010042 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010043 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010044 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010045 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010046This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010047esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010048fi
10049
10050
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010051if test "$ac_cv_header_resolv_h" = "yes"
10052then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010053 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010054 for lib in '' -lresolv
10055 do
10056 LIBS="$lib $ac_save_LIBS"
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010058/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010059#ifdef HAVE_NETINET_IN_H
10060#include <netinet/in.h>
10061#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010062#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010063int
10064main ()
10065{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010066res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010067 ;
10068 return 0;
10069}
10070_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010071if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010072
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010073$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010074
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010075 RESOLVLIBS="$lib"
10076
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010077fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010078rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010080 if test "${RESOLVLIBS+set}" = set; then
10081 break
10082 fi
10083 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010084 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010085fi
10086
Hans Leidekkerd3447022005-07-15 10:09:43 +000010087LCMSLIBS=""
10088
10089if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10090then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010092$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010093if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010094 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010095else
10096 ac_check_lib_save_LIBS=$LIBS
10097LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010099/* end confdefs.h. */
10100
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010101/* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010104#ifdef __cplusplus
10105extern "C"
10106#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010107char cmsOpenProfileFromFile ();
10108int
10109main ()
10110{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010111return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010112 ;
10113 return 0;
10114}
10115_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010116if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010117 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10118else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010119 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010120fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010121rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010123LIBS=$ac_check_lib_save_LIBS
10124fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010126$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010127if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010128
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010129$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010130
10131 LCMSLIBS="-llcms"
10132fi
10133
10134fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010135if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010136 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010137 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010138 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010139 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010140This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010141esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010142fi
10143
Francois Gouget3fe5d802009-01-14 14:16:06 +010010144if test "x$with_freetype" != "xno"
10145then
10146 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010147do
10148 # Extract the first word of "$ac_prog", so it can be a program name with args.
10149set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010151$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010152if ${ac_cv_prog_ft_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010153 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010154else
10155 if test -n "$ft_devel"; then
10156 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10157else
10158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159for as_dir in $PATH
10160do
10161 IFS=$as_save_IFS
10162 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010163 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010165 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010167 break 2
10168 fi
10169done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010170 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010171IFS=$as_save_IFS
10172
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010173fi
10174fi
10175ft_devel=$ac_cv_prog_ft_devel
10176if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010178$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010179else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010181$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010182fi
10183
10184
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010185 test -n "$ft_devel" && break
10186done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010187test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010188
Francois Gouget3fe5d802009-01-14 14:16:06 +010010189 if test "$ft_devel" != "no"
10190 then
10191 ac_freetype_incl=`$ft_devel --cflags`
10192 ac_freetype_libs=`$ft_devel --libs`
10193 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010194 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010196$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010197if ${ac_cv_lib_soname_freetype+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010198 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010199else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010200 ac_check_soname_save_LIBS=$LIBS
10201LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010203/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010204
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010205/* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010208#ifdef __cplusplus
10209extern "C"
10210#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010211char FT_Init_FreeType ();
10212int
10213main ()
10214{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010215return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010216 ;
10217 return 0;
10218}
10219_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010220if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010221 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010222 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010223 dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep "libfreetype\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10224 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10225 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010226fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010227rm -f core conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010229 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010230fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010231if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010233$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010234 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010235else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010237$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010238
10239cat >>confdefs.h <<_ACEOF
10240#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10241_ACEOF
10242
10243 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010244fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010245 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010246 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010247 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010248 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010249 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010250 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010251 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010252 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010253 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010254 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010255 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010256 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010257 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010258 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010259 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010260 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010261do :
10262 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10263ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010264 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010265 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010266"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010268 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010270_ACEOF
10271
10272fi
10273
Ian Pilcher40432fe2001-06-06 21:05:23 +000010274done
10275
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010277/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010278#include <ft2build.h>
10279 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010280_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010281if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010282
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010283$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010284
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010285 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010286else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010287 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010288fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010289rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010290 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10291"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010292if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010293
10294cat >>confdefs.h <<_ACEOF
10295#define HAVE_FT_TRUETYPEENGINETYPE 1
10296_ACEOF
10297
10298
10299fi
10300
Huw Davies35bca772006-04-12 12:14:27 +010010301 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010302 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010303 for ac_func in FT_Load_Sfnt_Table
10304do :
10305 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010306if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010307 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010308#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010309_ACEOF
10310
10311fi
10312done
10313
10314 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010315 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010316 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010317 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010318
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010319$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010320
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010321 FREETYPELIBS="$ac_freetype_libs"
10322
10323 FREETYPEINCL="$ac_freetype_incl"
10324
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010325 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010326 fi
10327fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010328if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010329 case "x$with_freetype" in
10330 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010331 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010332Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010333esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010334fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010335test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010336
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010338$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010339if ${ac_cv_c_ppdev+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010340 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010341else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010343/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010344#ifdef HAVE_SYS_IOCTL_H
10345# include <sys/ioctl.h>
10346#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010347#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010348int
10349main ()
10350{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010351ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010352 ;
10353 return 0;
10354}
10355_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010356if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010357 ac_cv_c_ppdev="yes"
10358else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010359 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010360fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010362fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010364$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010365if test "$ac_cv_c_ppdev" = "yes"
10366then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010367
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010368$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010369
10370fi
10371
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010372ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010373LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010374for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010375 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010376 pthread_getattr_np \
10377 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010378 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010379do :
10380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10381ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010382if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010383 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010384#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010385_ACEOF
10386
10387fi
10388done
10389
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010390LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010391
Jacek Caban11ca05f2009-05-29 23:35:13 +020010392if test "$ac_cv_header_zlib_h" = "yes"
10393then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010395$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010396if ${ac_cv_lib_z_inflate+:} false; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010397 $as_echo_n "(cached) " >&6
10398else
10399 ac_check_lib_save_LIBS=$LIBS
10400LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010402/* end confdefs.h. */
10403
10404/* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10407#ifdef __cplusplus
10408extern "C"
10409#endif
10410char inflate ();
10411int
10412main ()
10413{
10414return inflate ();
10415 ;
10416 return 0;
10417}
10418_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010419if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010420 ac_cv_lib_z_inflate=yes
10421else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010422 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010423fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010424rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010426LIBS=$ac_check_lib_save_LIBS
10427fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010429$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010430if test "x$ac_cv_lib_z_inflate" = xyes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010431
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010432$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010433
10434 ZLIB="-lz"
10435
10436fi
10437
10438fi
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010439if test "x$ZLIB" = "x"; then :
10440 case "x$with_zlib" in
10441 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10442 xno) ;;
10443 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010444This is an error since --with-zlib was requested." "$LINENO" 5 ;;
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010445esac
10446fi
Jacek Caban11ca05f2009-05-29 23:35:13 +020010447
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010448if test "x$enable_tools" != xno
10449then
10450 if test "$ac_cv_header_gettext_po_h" = "yes"
10451 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10453$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010454if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010455 $as_echo_n "(cached) " >&6
10456else
10457 ac_check_lib_save_LIBS=$LIBS
10458LIBS="-lgettextpo $LIBS"
10459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10460/* end confdefs.h. */
10461
10462/* Override any GCC internal prototype to avoid an error.
10463 Use char because int might match the return type of a GCC
10464 builtin and then its argument prototype would still apply. */
10465#ifdef __cplusplus
10466extern "C"
10467#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010468char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010469int
10470main ()
10471{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010472return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010473 ;
10474 return 0;
10475}
10476_ACEOF
10477if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010478 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010479else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010480 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010481fi
10482rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484LIBS=$ac_check_lib_save_LIBS
10485fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10487$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010488if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010489
10490$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10491
10492 LIBGETTEXTPO="-lgettextpo"
10493
10494fi
10495
10496 fi
10497 if test "x$LIBGETTEXTPO" = "x"; then :
10498 case "x$with_gettextpo" in
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010499 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010500 xno) ;;
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010501 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010502This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010503esac
10504fi
10505fi
10506
Aric Stewart2914d652010-10-20 13:55:16 -050010507if test "x$with_gstreamer" != "xno"
10508then
10509 ac_save_CPPFLAGS="$CPPFLAGS"
10510 if test "$PKG_CONFIG" != "false"; then
10511 ac_gst_incl=""
10512 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10513 do
10514 case "$i" in
10515 -I*) ac_gst_incl="$ac_gst_incl $i";;
10516 esac
10517 done
10518 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10519 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010520 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010521if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010522 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010523if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10525$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010526if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010527 $as_echo_n "(cached) " >&6
10528else
10529 ac_check_lib_save_LIBS=$LIBS
10530LIBS="-lgstreamer-0.10 $LIBS"
10531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532/* end confdefs.h. */
10533
10534/* Override any GCC internal prototype to avoid an error.
10535 Use char because int might match the return type of a GCC
10536 builtin and then its argument prototype would still apply. */
10537#ifdef __cplusplus
10538extern "C"
10539#endif
10540char gst_pad_get_caps_reffed ();
10541int
10542main ()
10543{
10544return gst_pad_get_caps_reffed ();
10545 ;
10546 return 0;
10547}
10548_ACEOF
10549if ac_fn_c_try_link "$LINENO"; then :
10550 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10551else
10552 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10553fi
10554rm -f core conftest.err conftest.$ac_objext \
10555 conftest$ac_exeext conftest.$ac_ext
10556LIBS=$ac_check_lib_save_LIBS
10557fi
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10559$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010560if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10562$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010563if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010564 $as_echo_n "(cached) " >&6
10565else
10566 ac_check_lib_save_LIBS=$LIBS
10567LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10569/* end confdefs.h. */
10570
10571/* Override any GCC internal prototype to avoid an error.
10572 Use char because int might match the return type of a GCC
10573 builtin and then its argument prototype would still apply. */
10574#ifdef __cplusplus
10575extern "C"
10576#endif
10577char gst_app_buffer_new ();
10578int
10579main ()
10580{
10581return gst_app_buffer_new ();
10582 ;
10583 return 0;
10584}
10585_ACEOF
10586if ac_fn_c_try_link "$LINENO"; then :
10587 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10588else
10589 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10590fi
10591rm -f core conftest.err conftest.$ac_objext \
10592 conftest$ac_exeext conftest.$ac_ext
10593LIBS=$ac_check_lib_save_LIBS
10594fi
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10596$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010597if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010598 GSTREAMER_LIBS="$ac_gst_libs"
10599
Andrew Nguyende417972010-10-29 00:26:04 -050010600 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010601
10602fi
10603
10604fi
10605
Andrew Nguyende417972010-10-29 00:26:04 -050010606fi
10607
10608
10609fi
10610
Aric Stewart2914d652010-10-20 13:55:16 -050010611
10612 fi
10613 CPPFLAGS="$ac_save_CPPFLAGS"
10614fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010615if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010616 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010617 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010618 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010619 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Alexandre Julliard9797da42011-04-27 17:37:43 +020010620This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010621esac
10622fi
10623test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10624
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010625ALSALIBS=""
10626
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010627if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010628then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10630$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010631if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010632 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010633else
10634 ac_check_lib_save_LIBS=$LIBS
10635LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010637/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010638
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010639/* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010642#ifdef __cplusplus
10643extern "C"
10644#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010645char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010646int
10647main ()
10648{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010649return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010650 ;
10651 return 0;
10652}
10653_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010654if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010655 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010656else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010657 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010658fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010659rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010661LIBS=$ac_check_lib_save_LIBS
10662fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10664$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010665if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010667/* end confdefs.h. */
10668#ifdef HAVE_ALSA_ASOUNDLIB_H
10669#include <alsa/asoundlib.h>
10670#elif defined(HAVE_SYS_ASOUNDLIB_H)
10671#include <sys/asoundlib.h>
10672#endif
10673int
10674main ()
10675{
Austin English8521ebe2011-06-13 21:26:40 -070010676snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010677 ;
10678 return 0;
10679}
10680_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010681if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard255cc212011-03-28 22:07:26 +020010682 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010683fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010685fi
10686
10687fi
10688
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010689if test "x$with_oss" != xno
Andrew Eikumbe332322011-04-27 09:12:36 -050010690then
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010691 ac_save_CPPFLAGS="$CPPFLAGS"
10692 if test -f /etc/oss.conf
10693 then
10694 . /etc/oss.conf
10695 fi
10696 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10697 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10698 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10699if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10700 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
Andrew Eikumbe332322011-04-27 09:12:36 -050010701"
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010702if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
Andrew Eikumbe332322011-04-27 09:12:36 -050010703
10704cat >>confdefs.h <<_ACEOF
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010705#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
Andrew Eikumbe332322011-04-27 09:12:36 -050010706_ACEOF
10707
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010708OSS4INCL="$ac_oss_incl"
Andrew Eikumbe332322011-04-27 09:12:36 -050010709
10710fi
10711
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010712fi
10713
10714
10715 CPPFLAGS="$ac_save_CPPFLAGS"
10716 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
Andrew Eikumbe332322011-04-27 09:12:36 -050010717 then
10718 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10719 fi
10720fi
10721
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010722
Alexandre Julliard73482142005-08-03 19:21:04 +000010723if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10724then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010726$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010727if ${ac_cv_lib_soname_capi20+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010728 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010729else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010730 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010731LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010733/* end confdefs.h. */
10734
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010735/* Override any GCC internal prototype to avoid an error.
10736 Use char because int might match the return type of a GCC
10737 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010738#ifdef __cplusplus
10739extern "C"
10740#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010741char capi20_register ();
10742int
10743main ()
10744{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010745return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010746 ;
10747 return 0;
10748}
10749_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010750if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010751 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010752 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010753 dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep "libcapi20\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10754 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10755 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010756fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010757rm -f core conftest.err conftest.$ac_objext \
10758 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010759 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010760fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010761if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010763$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010764
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010765else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010767$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010768
10769cat >>confdefs.h <<_ACEOF
10770#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010771_ACEOF
10772
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010773
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010774fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010775fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010776if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010777 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010778 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010779 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010780 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010781This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010782esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010783fi
10784
Francois Gouget289ea332008-07-24 16:09:07 +020010785CUPSINCL=""
10786
10787if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010788then
Francois Gouget289ea332008-07-24 16:09:07 +020010789 ac_save_CPPFLAGS="$CPPFLAGS"
10790 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010791 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010792 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010793 for ac_header in cups/cups.h
10794do :
10795 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010796if test "x$ac_cv_header_cups_cups_h" = xyes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010797 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010798#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010799_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010801$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010802if ${ac_cv_lib_soname_cups+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010803 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010804else
10805 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010806LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010808/* end confdefs.h. */
10809
10810/* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10813#ifdef __cplusplus
10814extern "C"
10815#endif
10816char cupsGetDefault ();
10817int
10818main ()
10819{
10820return cupsGetDefault ();
10821 ;
10822 return 0;
10823}
10824_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010825if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010826 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010827 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard702d3552007-07-02 17:30:44 +020010828 dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep "libcups\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10829 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10830 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010831fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010832rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010834 LIBS=$ac_check_soname_save_LIBS
10835fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010836if test "x$ac_cv_lib_soname_cups" = "x"; then :
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010838$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010839
10840else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010842$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010843
10844cat >>confdefs.h <<_ACEOF
10845#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10846_ACEOF
10847
Francois Gouget289ea332008-07-24 16:09:07 +020010848 CUPSINCL="$ac_cups_cflags"
10849fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010850fi
10851
Francois Gouget289ea332008-07-24 16:09:07 +020010852done
10853
10854 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010855fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010856if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010857 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010858 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010859 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010860 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010861This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010862esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010863fi
10864
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010865if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10866then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010868$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010869if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010870 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010871else
10872 ac_check_soname_save_LIBS=$LIBS
10873LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010875/* end confdefs.h. */
10876
10877/* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10880#ifdef __cplusplus
10881extern "C"
10882#endif
10883char FcInit ();
10884int
10885main ()
10886{
10887return FcInit ();
10888 ;
10889 return 0;
10890}
10891_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010892if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010893 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010894 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010895 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10896 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10897 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010898fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010899rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010901 LIBS=$ac_check_soname_save_LIBS
10902fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010903if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010905$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010906
10907else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010909$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010910
10911cat >>confdefs.h <<_ACEOF
10912#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10913_ACEOF
10914
10915
10916fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010917elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020010918then
10919 ac_save_CPPFLAGS="$CPPFLAGS"
10920 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10921 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010922 for ac_header in fontconfig/fontconfig.h
10923do :
10924 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010925if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010926 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010927#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020010928_ACEOF
10929
10930fi
10931
10932done
10933
10934 CPPFLAGS="$ac_save_CPPFLAGS"
10935 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10936 then
10937 FONTCONFIGINCL="$X_CFLAGS"
10938
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010940$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010941if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010942 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020010943else
10944 ac_check_soname_save_LIBS=$LIBS
10945LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010947/* end confdefs.h. */
10948
10949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952#ifdef __cplusplus
10953extern "C"
10954#endif
10955char FcInit ();
10956int
10957main ()
10958{
10959return FcInit ();
10960 ;
10961 return 0;
10962}
10963_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010964if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010965 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010966 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard5c076732007-10-17 17:04:01 +020010967 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10968 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10969 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020010970fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010971rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010973 LIBS=$ac_check_soname_save_LIBS
10974fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010975if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010977$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010978
10979else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010981$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010982
10983cat >>confdefs.h <<_ACEOF
10984#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10985_ACEOF
10986
10987
10988fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020010989 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010990fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010991if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010992 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010993 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010994 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010995 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010996This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010997esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020010998fi
10999
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011000if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11001then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011003$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011004if ${ac_cv_lib_soname_ssl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011005 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011006else
11007 ac_check_soname_save_LIBS=$LIBS
11008LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011010/* end confdefs.h. */
11011
11012/* Override any GCC internal prototype to avoid an error.
11013 Use char because int might match the return type of a GCC
11014 builtin and then its argument prototype would still apply. */
11015#ifdef __cplusplus
11016extern "C"
11017#endif
11018char SSL_library_init ();
11019int
11020main ()
11021{
11022return SSL_library_init ();
11023 ;
11024 return 0;
11025}
11026_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011027if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011028 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011029 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011030 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11031 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11032 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011033fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011034rm -f core conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011036 LIBS=$ac_check_soname_save_LIBS
11037fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011038if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011040$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011041
11042else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011044$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011045
11046cat >>confdefs.h <<_ACEOF
11047#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11048_ACEOF
11049
11050
11051fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011053$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011054if ${ac_cv_lib_soname_crypto+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011055 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011056else
11057 ac_check_soname_save_LIBS=$LIBS
11058LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011060/* end confdefs.h. */
11061
11062/* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11065#ifdef __cplusplus
11066extern "C"
11067#endif
11068char BIO_new_socket ();
11069int
11070main ()
11071{
11072return BIO_new_socket ();
11073 ;
11074 return 0;
11075}
11076_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011077if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011078 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011079 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011080 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11081 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11082 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011083fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011084rm -f core conftest.err conftest.$ac_objext \
11085 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011086 LIBS=$ac_check_soname_save_LIBS
11087fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011088if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011090$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011091
11092else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011094$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011095
11096cat >>confdefs.h <<_ACEOF
11097#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11098_ACEOF
11099
11100
11101fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011102fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011103if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011104 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011105 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011106 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011107 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011108This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011109esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011110fi
11111
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011112if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011113then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011115$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011116if ${ac_cv_lib_soname_gsm+:} false; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011117 $as_echo_n "(cached) " >&6
11118else
11119 ac_check_soname_save_LIBS=$LIBS
11120LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011122/* end confdefs.h. */
11123
11124/* Override any GCC internal prototype to avoid an error.
11125 Use char because int might match the return type of a GCC
11126 builtin and then its argument prototype would still apply. */
11127#ifdef __cplusplus
11128extern "C"
11129#endif
11130char gsm_create ();
11131int
11132main ()
11133{
11134return gsm_create ();
11135 ;
11136 return 0;
11137}
11138_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011139if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011140 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011141 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011142 dylib) ac_cv_lib_soname_gsm=`otool -L conftest$ac_exeext | grep "libgsm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgsm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11143 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11144 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011145fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011146rm -f core conftest.err conftest.$ac_objext \
11147 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011148 LIBS=$ac_check_soname_save_LIBS
11149fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011150if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011152$as_echo "not found" >&6; }
11153
11154else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011156$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11157
11158cat >>confdefs.h <<_ACEOF
11159#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11160_ACEOF
11161
11162
11163fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011164fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011165if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011166 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011167 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011168 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011169 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011170This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011171esac
11172fi
11173
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011174if test "$ac_cv_header_jpeglib_h" = "yes"
11175then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011177$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011178if ${ac_cv_lib_soname_jpeg+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011179 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011180else
11181 ac_check_soname_save_LIBS=$LIBS
11182LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011184/* end confdefs.h. */
11185
11186/* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11189#ifdef __cplusplus
11190extern "C"
11191#endif
11192char jpeg_start_decompress ();
11193int
11194main ()
11195{
11196return jpeg_start_decompress ();
11197 ;
11198 return 0;
11199}
11200_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011201if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011202 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011203 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011204 dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep "libjpeg\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11205 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11206 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011207fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011208rm -f core conftest.err conftest.$ac_objext \
11209 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011210 LIBS=$ac_check_soname_save_LIBS
11211fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011212if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011214$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011215
11216else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011218$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011219
11220cat >>confdefs.h <<_ACEOF
11221#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11222_ACEOF
11223
11224
11225fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011226fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011227if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011228 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011229 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011230 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011231 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011232This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011233esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011234fi
11235
Alexandre Julliard00302152007-07-02 19:54:00 +020011236if test "$ac_cv_header_png_h" = "yes"
11237then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011239$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011240if ${ac_cv_lib_soname_png+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011241 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011242else
11243 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011244LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011246/* end confdefs.h. */
11247
11248/* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251#ifdef __cplusplus
11252extern "C"
11253#endif
11254char png_create_read_struct ();
11255int
11256main ()
11257{
11258return png_create_read_struct ();
11259 ;
11260 return 0;
11261}
11262_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011263if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011264 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011265 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard00302152007-07-02 19:54:00 +020011266 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11267 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11268 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011269fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011270rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011272 LIBS=$ac_check_soname_save_LIBS
11273fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011274if test "x$ac_cv_lib_soname_png" = "x"; then :
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011276$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011277
11278else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011280$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011281
11282cat >>confdefs.h <<_ACEOF
11283#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11284_ACEOF
11285
11286
11287fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11289$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011290if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011291 $as_echo_n "(cached) " >&6
11292else
11293 ac_check_lib_save_LIBS=$LIBS
11294LIBS="-lpng -lm -lz $LIBS"
11295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296/* end confdefs.h. */
11297
11298/* Override any GCC internal prototype to avoid an error.
11299 Use char because int might match the return type of a GCC
11300 builtin and then its argument prototype would still apply. */
11301#ifdef __cplusplus
11302extern "C"
11303#endif
11304char png_set_expand_gray_1_2_4_to_8 ();
11305int
11306main ()
11307{
11308return png_set_expand_gray_1_2_4_to_8 ();
11309 ;
11310 return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11315else
11316 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11317fi
11318rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320LIBS=$ac_check_lib_save_LIBS
11321fi
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11323$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011324if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011325
11326$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11327
11328
11329fi
11330
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011331elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11332then
11333 ac_save_CPPFLAGS="$CPPFLAGS"
11334 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11335 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011336 for ac_header in png.h
11337do :
11338 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011339if test "x$ac_cv_header_png_h" = xyes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011340 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011341#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011342_ACEOF
11343
11344fi
11345
11346done
11347
11348 CPPFLAGS="$ac_save_CPPFLAGS"
11349 if test "$ac_cv_header_png_h" = "yes"
11350 then
11351 PNGINCL="$X_CFLAGS"
11352
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011354$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011355if ${ac_cv_lib_soname_png+:} false; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011356 $as_echo_n "(cached) " >&6
11357else
11358 ac_check_soname_save_LIBS=$LIBS
11359LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011361/* end confdefs.h. */
11362
11363/* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11366#ifdef __cplusplus
11367extern "C"
11368#endif
11369char png_create_read_struct ();
11370int
11371main ()
11372{
11373return png_create_read_struct ();
11374 ;
11375 return 0;
11376}
11377_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011378if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011379 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011380 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011381 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11382 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11383 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011384fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011385rm -f core conftest.err conftest.$ac_objext \
11386 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011387 LIBS=$ac_check_soname_save_LIBS
11388fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011389if test "x$ac_cv_lib_soname_png" = "x"; then :
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011391$as_echo "not found" >&6; }
11392
11393else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011395$as_echo "$ac_cv_lib_soname_png" >&6; }
11396
11397cat >>confdefs.h <<_ACEOF
11398#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11399_ACEOF
11400
11401
11402fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11404$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011405if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011406 $as_echo_n "(cached) " >&6
11407else
11408 ac_check_lib_save_LIBS=$LIBS
11409LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411/* end confdefs.h. */
11412
11413/* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416#ifdef __cplusplus
11417extern "C"
11418#endif
11419char png_set_expand_gray_1_2_4_to_8 ();
11420int
11421main ()
11422{
11423return png_set_expand_gray_1_2_4_to_8 ();
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428if ac_fn_c_try_link "$LINENO"; then :
11429 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11430else
11431 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11432fi
11433rm -f core conftest.err conftest.$ac_objext \
11434 conftest$ac_exeext conftest.$ac_ext
11435LIBS=$ac_check_lib_save_LIBS
11436fi
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11438$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011439if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011440 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11441
11442fi
11443
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011444 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011445fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011446if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011447 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011448 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011449 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011450 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011451This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011452esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011453fi
11454
Vincent Povirk73cd5692010-03-08 17:07:29 -060011455if test "$ac_cv_header_tiffio_h" = "yes"
11456then
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11458$as_echo_n "checking for -ltiff... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011459if ${ac_cv_lib_soname_tiff+:} false; then :
Vincent Povirk73cd5692010-03-08 17:07:29 -060011460 $as_echo_n "(cached) " >&6
11461else
11462 ac_check_soname_save_LIBS=$LIBS
11463LIBS="-ltiff $LIBS"
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465/* end confdefs.h. */
11466
11467/* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11470#ifdef __cplusplus
11471extern "C"
11472#endif
11473char TIFFClientOpen ();
11474int
11475main ()
11476{
11477return TIFFClientOpen ();
11478 ;
11479 return 0;
11480}
11481_ACEOF
11482if ac_fn_c_try_link "$LINENO"; then :
11483 case "$LIBEXT" in
11484 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11485 dylib) ac_cv_lib_soname_tiff=`otool -L conftest$ac_exeext | grep "libtiff\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libtiff\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11486 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11487 esac
11488fi
11489rm -f core conftest.err conftest.$ac_objext \
11490 conftest$ac_exeext conftest.$ac_ext
11491 LIBS=$ac_check_soname_save_LIBS
11492fi
11493if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11495$as_echo "not found" >&6; }
11496
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11499$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11500
11501cat >>confdefs.h <<_ACEOF
11502#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11503_ACEOF
11504
11505
11506fi
11507fi
11508if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11509 case "x$with_tiff" in
11510 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11511 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011512 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011513This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011514esac
11515fi
11516
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011517if test "$ac_cv_header_mpg123_h" = "yes"
11518then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11520$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011521if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011522 $as_echo_n "(cached) " >&6
11523else
11524 ac_check_lib_save_LIBS=$LIBS
11525LIBS="-lmpg123 $LIBS"
11526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11527/* end confdefs.h. */
11528
11529/* Override any GCC internal prototype to avoid an error.
11530 Use char because int might match the return type of a GCC
11531 builtin and then its argument prototype would still apply. */
11532#ifdef __cplusplus
11533extern "C"
11534#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011535char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011536int
11537main ()
11538{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011539return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011540 ;
11541 return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011545 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011546else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011547 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011548fi
11549rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551LIBS=$ac_check_lib_save_LIBS
11552fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11554$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011555if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011556 LIBMPG123="-lmpg123"
11557
11558fi
11559
11560fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011561if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011562 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011563 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011564 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011565 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011566This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011567esac
11568fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011569test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011570
Chris Robinson862965f2009-08-25 03:26:35 -070011571if test "$ac_cv_header_AL_al_h" = "yes"
11572then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11574$as_echo_n "checking for -lopenal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011575if ${ac_cv_lib_soname_openal+:} false; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011576 $as_echo_n "(cached) " >&6
11577else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011578 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011579LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011581/* end confdefs.h. */
11582
11583/* Override any GCC internal prototype to avoid an error.
11584 Use char because int might match the return type of a GCC
11585 builtin and then its argument prototype would still apply. */
11586#ifdef __cplusplus
11587extern "C"
11588#endif
11589char alGetSource3i ();
11590int
11591main ()
11592{
11593return alGetSource3i ();
11594 ;
11595 return 0;
11596}
11597_ACEOF
11598if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011599 case "$LIBEXT" in
11600 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11601 dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11602 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11603 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011604fi
11605rm -f core conftest.err conftest.$ac_objext \
11606 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011607 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011608fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011609if test "x$ac_cv_lib_soname_openal" = "x"; then :
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11611$as_echo "not found" >&6; }
11612
11613else
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11615$as_echo "$ac_cv_lib_soname_openal" >&6; }
11616
11617cat >>confdefs.h <<_ACEOF
11618#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11619_ACEOF
11620
11621 LIBOPENAL="-lopenal"
11622
11623 ac_cv_lib_openal=yes
11624
11625cat >>confdefs.h <<_ACEOF
11626#define HAVE_OPENAL 1
11627_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011628
11629fi
Chris Robinson862965f2009-08-25 03:26:35 -070011630fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011631if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011632 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011633 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011634 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011635 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011636This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011637esac
11638fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011639test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011640
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011641if test "$ac_cv_header_kstat_h" = "yes"
11642then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011644$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011645if ${ac_cv_lib_kstat_kstat_open+:} false; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011646 $as_echo_n "(cached) " >&6
11647else
11648 ac_check_lib_save_LIBS=$LIBS
11649LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011651/* end confdefs.h. */
11652
11653/* Override any GCC internal prototype to avoid an error.
11654 Use char because int might match the return type of a GCC
11655 builtin and then its argument prototype would still apply. */
11656#ifdef __cplusplus
11657extern "C"
11658#endif
11659char kstat_open ();
11660int
11661main ()
11662{
11663return kstat_open ();
11664 ;
11665 return 0;
11666}
11667_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011668if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011669 ac_cv_lib_kstat_kstat_open=yes
11670else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011671 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011672fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011673rm -f core conftest.err conftest.$ac_objext \
11674 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011675LIBS=$ac_check_lib_save_LIBS
11676fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011678$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011679if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011680
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011681$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011682
11683 LIBKSTAT="-lkstat"
11684
11685fi
11686
11687fi
11688
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011690$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011691if ${ac_cv_lib_soname_odbc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011692 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011693else
11694 ac_check_soname_save_LIBS=$LIBS
11695LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011697/* end confdefs.h. */
11698
11699/* Override any GCC internal prototype to avoid an error.
11700 Use char because int might match the return type of a GCC
11701 builtin and then its argument prototype would still apply. */
11702#ifdef __cplusplus
11703extern "C"
11704#endif
11705char SQLConnect ();
11706int
11707main ()
11708{
11709return SQLConnect ();
11710 ;
11711 return 0;
11712}
11713_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011714if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011715 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011716 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011717 dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11718 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11719 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011720fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011721rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011723 LIBS=$ac_check_soname_save_LIBS
11724fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011725if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011727$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011728 cat >>confdefs.h <<_ACEOF
11729#define SONAME_LIBODBC "libodbc.$LIBEXT"
11730_ACEOF
11731
11732else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011734$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011735
11736cat >>confdefs.h <<_ACEOF
11737#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11738_ACEOF
11739
11740
11741fi
11742
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011743test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11744test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011745test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011746test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11747
Austin Englisheb17b8c2011-07-23 23:05:04 -050011748if test "x$ALSALIBS$COREAUDIO" = "x" -a \
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011749 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
Andrew Eikum55f9ac82011-07-13 14:20:47 -050011750 "x$with_alsa$with_coreaudio$with_oss" != xnonono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011751then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011752 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011753fi
11754
11755
Alexandre Julliardfc094232003-04-14 21:46:41 +000011756EXTRACFLAGS=""
11757
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011758if test "x${GCC}" = "xyes"
11759then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011760 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011761
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011763$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011764if ${ac_cv_c_gcc_strength_bug+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011765 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011766else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011767 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011768 ac_cv_c_gcc_strength_bug="yes"
11769else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011771/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011772int L[4] = {0,1,2,3};
11773int
11774main ()
11775{
11776static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011777 unsigned int B = 3;
11778 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011779 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011780 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11781 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011782 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011783 ;
11784 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011785}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011786_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011787if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011788 ac_cv_c_gcc_strength_bug="no"
11789else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011790 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011791fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011792rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11793 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011794fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011795
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011796fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011798$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011799 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11800 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011801 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011802 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011803
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011805$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011806if ${ac_cv_cflags__fno_builtin+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011807 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011808else
11809 ac_wine_try_cflags_saved=$CFLAGS
11810CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011812/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011813int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011814_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011815if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011816 ac_cv_cflags__fno_builtin=yes
11817else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011818 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011819fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011820rm -f core conftest.err conftest.$ac_objext \
11821 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011822CFLAGS=$ac_wine_try_cflags_saved
11823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011825$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011826if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011827 BUILTINFLAG="-fno-builtin"
11828
11829fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011831$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011832if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011833 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011834else
11835 ac_wine_try_cflags_saved=$CFLAGS
11836CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011838/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011839int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011840_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011841if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011842 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011843else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011844 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011845fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011846rm -f core conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011848CFLAGS=$ac_wine_try_cflags_saved
11849fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011851$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011852if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011853 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11854fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011856$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011857if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011858 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011859else
11860 ac_wine_try_cflags_saved=$CFLAGS
11861CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011863/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011864int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011865_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011866if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011867 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011868else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011869 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011871rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011873CFLAGS=$ac_wine_try_cflags_saved
11874fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011876$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011877if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011878 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11879fi
Gerald Pfeifer8213f542011-05-08 02:53:23 +020011880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11881$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11882if ${ac_cv_cflags__Wempty_body+:} false; then :
11883 $as_echo_n "(cached) " >&6
11884else
11885 ac_wine_try_cflags_saved=$CFLAGS
11886CFLAGS="$CFLAGS -Wempty-body"
11887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11888/* end confdefs.h. */
11889int main(int argc, char **argv) { return 0; }
11890_ACEOF
11891if ac_fn_c_try_link "$LINENO"; then :
11892 ac_cv_cflags__Wempty_body=yes
11893else
11894 ac_cv_cflags__Wempty_body=no
11895fi
11896rm -f core conftest.err conftest.$ac_objext \
11897 conftest$ac_exeext conftest.$ac_ext
11898CFLAGS=$ac_wine_try_cflags_saved
11899fi
11900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
11901$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
11902if test $ac_cv_cflags__Wempty_body = yes; then :
11903 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
11904fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020011905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11906$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011907if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
Alexandre Julliard295806f2009-10-07 13:46:06 +020011908 $as_echo_n "(cached) " >&6
11909else
11910 ac_wine_try_cflags_saved=$CFLAGS
11911CFLAGS="$CFLAGS -Wstrict-prototypes"
11912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011914int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020011915_ACEOF
11916if ac_fn_c_try_link "$LINENO"; then :
11917 ac_cv_cflags__Wstrict_prototypes=yes
11918else
11919 ac_cv_cflags__Wstrict_prototypes=no
11920fi
11921rm -f core conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923CFLAGS=$ac_wine_try_cflags_saved
11924fi
11925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11926$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11927if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11928 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11929fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011931$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011932if ${ac_cv_cflags__Wtype_limits+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011933 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011934else
11935 ac_wine_try_cflags_saved=$CFLAGS
11936CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011938/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011939int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011940_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011941if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011942 ac_cv_cflags__Wtype_limits=yes
11943else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011944 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011945fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011946rm -f core conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011948CFLAGS=$ac_wine_try_cflags_saved
11949fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011951$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011952if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011953 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11954fi
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020011955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
11956$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011957if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020011958 $as_echo_n "(cached) " >&6
11959else
11960 ac_wine_try_cflags_saved=$CFLAGS
11961CFLAGS="$CFLAGS -Wunused-but-set-parameter"
11962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963/* end confdefs.h. */
11964int main(int argc, char **argv) { return 0; }
11965_ACEOF
11966if ac_fn_c_try_link "$LINENO"; then :
11967 ac_cv_cflags__Wunused_but_set_parameter=yes
11968else
11969 ac_cv_cflags__Wunused_but_set_parameter=no
11970fi
11971rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11973CFLAGS=$ac_wine_try_cflags_saved
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
11976$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
11977if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
11978 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
11979fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010011980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11981$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011982if ${ac_cv_cflags__Wwrite_strings+:} false; then :
Gerald Pfeifereae58292010-01-02 15:13:43 +010011983 $as_echo_n "(cached) " >&6
11984else
11985 ac_wine_try_cflags_saved=$CFLAGS
11986CFLAGS="$CFLAGS -Wwrite-strings"
11987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011989int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010011990_ACEOF
11991if ac_fn_c_try_link "$LINENO"; then :
11992 ac_cv_cflags__Wwrite_strings=yes
11993else
11994 ac_cv_cflags__Wwrite_strings=no
11995fi
11996rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998CFLAGS=$ac_wine_try_cflags_saved
11999fi
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12001$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12002if test $ac_cv_cflags__Wwrite_strings = yes; then :
12003 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12004fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012005
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012006 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012007 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12009$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012010if ${ac_cv_c_string_h_warnings+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012011 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012012else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012014/* end confdefs.h. */
12015#include <string.h>
12016int
12017main ()
12018{
12019
12020 ;
12021 return 0;
12022}
12023_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012024if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012025 ac_cv_c_string_h_warnings=no
12026else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012027 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012028fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012030fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012032$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012033 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012034 if test "$ac_cv_c_string_h_warnings" = "no"
12035 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012036 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012037 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012038
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012039 saved_CFLAGS="$CFLAGS"
12040 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12042$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012043if ${ac_cv_c_logicalop_noisy+:} false; then :
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012044 $as_echo_n "(cached) " >&6
12045else
12046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047/* end confdefs.h. */
12048#include <string.h>
12049int
12050main ()
12051{
12052char*f(const char *h,char n) {return strchr(h,n);}
12053 ;
12054 return 0;
12055}
12056_ACEOF
12057if ac_fn_c_try_compile "$LINENO"; then :
12058 ac_cv_c_logicalop_noisy=no
12059else
12060 ac_cv_c_logicalop_noisy=yes
12061fi
12062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063fi
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12065$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12066 CFLAGS="$saved_CFLAGS"
12067 if test "$ac_cv_c_logicalop_noisy" = "no"
12068 then
12069 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12070 fi
12071
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012072 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012073 then
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12075$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012076if ${ac_cv_cflags__Werror+:} false; then :
Alexandre Julliard12753c52009-10-02 14:39:49 +020012077 $as_echo_n "(cached) " >&6
12078else
12079 ac_wine_try_cflags_saved=$CFLAGS
12080CFLAGS="$CFLAGS -Werror"
12081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12082/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012083int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012084_ACEOF
12085if ac_fn_c_try_link "$LINENO"; then :
12086 ac_cv_cflags__Werror=yes
12087else
12088 ac_cv_cflags__Werror=no
12089fi
12090rm -f core conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092CFLAGS=$ac_wine_try_cflags_saved
12093fi
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12095$as_echo "$ac_cv_cflags__Werror" >&6; }
12096if test $ac_cv_cflags__Werror = yes; then :
12097 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12098fi
12099 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012100
12101 saved_CFLAGS="$CFLAGS"
12102 CFLAGS="$CFLAGS -Werror"
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12104$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012105if ${ac_cv_have_ms_hook_prologue+:} false; then :
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012106 $as_echo_n "(cached) " >&6
12107else
12108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
12110int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12111int
12112main ()
12113{
12114
12115 ;
12116 return 0;
12117}
12118_ACEOF
12119if ac_fn_c_try_compile "$LINENO"; then :
12120 ac_cv_have_ms_hook_prologue="yes"
12121else
12122 ac_cv_have_ms_hook_prologue="no"
12123fi
12124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12125fi
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12127$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12128 CFLAGS="$saved_CFLAGS"
12129 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12130 then
12131
12132$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12133
12134 else
12135 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12136
12137 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012138fi
12139
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012140
Alexandre Julliard105793b2010-10-22 17:13:57 +020012141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12142$as_echo_n "checking for the need to disable Fortify... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012143if ${ac_cv_c_fortify_enabled+:} false; then :
Alexandre Julliard105793b2010-10-22 17:13:57 +020012144 $as_echo_n "(cached) " >&6
12145else
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147/* end confdefs.h. */
12148#include <string.h>
12149int
12150main ()
12151{
12152#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12153#error Fortify enabled
12154#endif
12155 ;
12156 return 0;
12157}
12158_ACEOF
12159if ac_fn_c_try_compile "$LINENO"; then :
12160 ac_cv_c_fortify_enabled=no
12161else
12162 ac_cv_c_fortify_enabled=yes
12163fi
12164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165fi
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12167$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12168if test "$ac_cv_c_fortify_enabled" = yes
12169then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012170 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012171fi
12172
12173
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012175$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012176if ${ac_cv_c_extern_prefix+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012177 $as_echo_n "(cached) " >&6
12178else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012180/* end confdefs.h. */
12181extern int ac_test;
12182int
12183main ()
12184{
12185asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12186 ;
12187 return 0;
12188}
12189_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012190if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012191 ac_cv_c_extern_prefix="yes"
12192else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012193 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012194fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012195rm -f core conftest.err conftest.$ac_objext \
12196 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012197fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012199$as_echo "$ac_cv_c_extern_prefix" >&6; }
12200
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012201case $host_cpu in
12202 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012204$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012205if ${ac_cv_c_stdcall_suffix+:} false; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012206 $as_echo_n "(cached) " >&6
12207else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012209/* end confdefs.h. */
12210#ifndef _MSC_VER
12211#define __stdcall __attribute__((__stdcall__))
12212#endif
12213int __stdcall ac_test(int i) { return i; }
12214int
12215main ()
12216{
12217asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12218 ;
12219 return 0;
12220}
12221_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012222if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012223 ac_cv_c_stdcall_suffix="yes"
12224else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012225 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012226fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012227rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012229fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012231$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12232 *) ac_cv_c_stdcall_suffix="no" ;;
12233esac
12234
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012235
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012236if test "$ac_cv_c_extern_prefix" = "yes"
12237then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012238 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012239
12240 asm_name_prefix="_"
12241else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012242 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012243
12244 asm_name_prefix=""
12245fi
12246
12247
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012248if test "$ac_cv_c_stdcall_suffix" = "yes"
12249then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012250 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012251
12252else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012253 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012254
12255fi
12256
12257
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012259$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012260if ${ac_cv_asm_func_def+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012261 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012262else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012264/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012265
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012266int
12267main ()
12268{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012269asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012270 ;
12271 return 0;
12272}
12273_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012274if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012275 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012276else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012278/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012279
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012280int
12281main ()
12282{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012283asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012284 ;
12285 return 0;
12286}
12287_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012288if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012289 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012290else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012292/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012293
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012294int
12295main ()
12296{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012297asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012298 ;
12299 return 0;
12300}
12301_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012302if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012303 ac_cv_asm_func_def=".type 2"
12304else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012305 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012306fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012307rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012309fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012310rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012312fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012313rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012315fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012317$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012318
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012319
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012320case "$ac_cv_asm_func_def" in
12321 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012322 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012323
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012324 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012325 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012326 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012327
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012328 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012329 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012330 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012331
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012332 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012333 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012334 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012335
12336 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012337esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012338
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012340$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012341if ${ac_cv_c_asm_outside_funcs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012342 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012343else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012345/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012346asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012347int
12348main ()
12349{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012350
12351 ;
12352 return 0;
12353}
12354_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012355if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012356 ac_cv_c_asm_outside_funcs="yes"
12357else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012358 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012359fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012363$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12364
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012366$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012367if ${ac_cv_c_dot_previous+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012368 $as_echo_n "(cached) " >&6
12369else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012371/* end confdefs.h. */
12372
12373int
12374main ()
12375{
12376asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012377 ;
12378 return 0;
12379}
12380_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012381if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012382 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012383else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012384 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012385fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012386rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012388fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012390$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012391
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012393$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012394if ${ac_cv_c_cfi_support+:} false; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012395 $as_echo_n "(cached) " >&6
12396else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012398/* end confdefs.h. */
12399asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12400int
12401main ()
12402{
12403
12404 ;
12405 return 0;
12406}
12407_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012408if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012409 ac_cv_c_cfi_support="yes"
12410else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012411 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012412fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012416$as_echo "$ac_cv_c_cfi_support" >&6; }
12417
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012418asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012419asm_func_trailer=""
12420if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012421then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012422 asm_func_trailer="\\n\\t.previous"
12423fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012424if test "$ac_cv_c_cfi_support" = "yes"
12425then
12426 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12427 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012428
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012429$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012430
Alexandre Julliard6c142382010-04-11 12:47:30 +020012431 UNWINDFLAGS=-fasynchronous-unwind-tables
12432
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012433else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012434 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012435
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012436fi
12437
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012438asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12439
12440
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012441if test "$ac_cv_c_asm_outside_funcs" = "yes"
12442then
12443 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012444#define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012445_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012446
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012447else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012448 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012449#define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012450_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012451
12452fi
12453
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012454$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012455
12456
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012457$as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012458
12459
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012460
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012461LDPATH=""
12462
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012463case $build_os in
12464 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012465 TOOLSEXT=".exe"
12466
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012467 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012468 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012469 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012470 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012471 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012472 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012473 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012474esac
12475
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012476case $host_os in
12477 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012478 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012479
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012480 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012481
12482 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012483esac
12484
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012485MAIN_BINARY="wine"
12486
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012487test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012488
Alexandre Julliard0a086202010-12-16 16:54:15 +010012489case $host_os in
12490 linux*)
12491 case $host_cpu in
12492 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12493 ;;
12494 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012495 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012496 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012497 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012498esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012499
12500
Alexandre Julliard95251a72009-02-16 12:46:58 +010012501ac_save_CFLAGS="$CFLAGS"
12502CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012503for ac_func in \
Stefan Dösingera7741522011-05-24 21:05:28 +020012504 _finite \
12505 _isnan \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012506 _pclose \
12507 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012508 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012509 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012510 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012511 _stricmp \
12512 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012513 _strtoi64 \
12514 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012515 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012516 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012517 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012518 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012519 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012520 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012521 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012522 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012523 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012524 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012525 fstatfs \
12526 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012527 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012528 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012529 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012530 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012531 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012532 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012533 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012534 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012535 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012536 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012537 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012538 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012539 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012540 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012541 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012542 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012543 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012544 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012545 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012546 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012547 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012548 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012549 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012550 readlink \
Jeremy White08c0f692004-10-09 02:26:29 +000012551 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012552 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012553 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012554 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012555 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012556 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012557 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012558 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012559 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012560 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012561 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012562 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012563 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012564 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012565 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012566 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012567 strtoll \
12568 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012569 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012570 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012571 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012572 timegm \
12573 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012574 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012575 wait4 \
12576 waitpid \
12577
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012578do :
12579 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12580ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012581if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012582 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012583#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012584_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012585
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012586fi
12587done
12588
Alexandre Julliard95251a72009-02-16 12:46:58 +010012589CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012590
Alexandre Julliarde533e972006-08-15 12:11:30 +020012591if test "$ac_cv_func_dlopen" = no
12592then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012594$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012595if ${ac_cv_lib_dl_dlopen+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012596 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012597else
12598 ac_check_lib_save_LIBS=$LIBS
12599LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012601/* end confdefs.h. */
12602
12603/* Override any GCC internal prototype to avoid an error.
12604 Use char because int might match the return type of a GCC
12605 builtin and then its argument prototype would still apply. */
12606#ifdef __cplusplus
12607extern "C"
12608#endif
12609char dlopen ();
12610int
12611main ()
12612{
12613return dlopen ();
12614 ;
12615 return 0;
12616}
12617_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012618if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012619 ac_cv_lib_dl_dlopen=yes
12620else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012621 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012622fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012623rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012625LIBS=$ac_check_lib_save_LIBS
12626fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012628$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012629if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012630 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012631 LIBDL="-ldl"
12632
12633fi
12634
12635fi
12636ac_wine_check_funcs_save_LIBS="$LIBS"
12637LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012638for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012639do :
12640 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012641if test "x$ac_cv_func_dladdr" = xyes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012642 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012643#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012644_ACEOF
12645
12646fi
12647done
12648
12649LIBS="$ac_wine_check_funcs_save_LIBS"
12650
Alexandre Julliard10892602006-08-15 11:41:59 +020012651if test "$ac_cv_func_poll" = no
12652then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012654$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012655if ${ac_cv_lib_poll_poll+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012656 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012657else
12658 ac_check_lib_save_LIBS=$LIBS
12659LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012661/* end confdefs.h. */
12662
12663/* 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. */
12666#ifdef __cplusplus
12667extern "C"
12668#endif
12669char poll ();
12670int
12671main ()
12672{
12673return poll ();
12674 ;
12675 return 0;
12676}
12677_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012678if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012679 ac_cv_lib_poll_poll=yes
12680else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012681 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012682fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012683rm -f core conftest.err conftest.$ac_objext \
12684 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012685LIBS=$ac_check_lib_save_LIBS
12686fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012688$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012689if test "x$ac_cv_lib_poll_poll" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012690 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012691 LIBPOLL="-lpoll"
12692
12693fi
12694
12695fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012696
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012698$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012699if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012700 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012701else
Alexandre Julliard28710412007-04-23 16:31:58 +020012702 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012704/* end confdefs.h. */
12705
12706/* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
12709#ifdef __cplusplus
12710extern "C"
12711#endif
12712char gethostbyname ();
12713int
12714main ()
12715{
12716return gethostbyname ();
12717 ;
12718 return 0;
12719}
12720_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012721for ac_lib in '' nsl; do
12722 if test -z "$ac_lib"; then
12723 ac_res="none required"
12724 else
12725 ac_res=-l$ac_lib
12726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12727 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012728 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012729 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012730fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012731rm -f core conftest.err conftest.$ac_objext \
12732 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012733 if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012734 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012735fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012736done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012737if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012738
Alexandre Julliard28710412007-04-23 16:31:58 +020012739else
12740 ac_cv_search_gethostbyname=no
12741fi
12742rm conftest.$ac_ext
12743LIBS=$ac_func_search_save_LIBS
12744fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012746$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012747ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012748if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012750
12751fi
12752
Alexandre Julliarde533e972006-08-15 12:11:30 +020012753
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012755$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012756if ${ac_cv_search_connect+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012757 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012758else
Alexandre Julliard28710412007-04-23 16:31:58 +020012759 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012761/* end confdefs.h. */
12762
12763/* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12766#ifdef __cplusplus
12767extern "C"
12768#endif
12769char connect ();
12770int
12771main ()
12772{
12773return connect ();
12774 ;
12775 return 0;
12776}
12777_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012778for ac_lib in '' socket; do
12779 if test -z "$ac_lib"; then
12780 ac_res="none required"
12781 else
12782 ac_res=-l$ac_lib
12783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12784 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012785 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012786 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012787fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012788rm -f core conftest.err conftest.$ac_objext \
12789 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012790 if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012791 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012792fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012793done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012794if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012795
Alexandre Julliard28710412007-04-23 16:31:58 +020012796else
12797 ac_cv_search_connect=no
12798fi
12799rm conftest.$ac_ext
12800LIBS=$ac_func_search_save_LIBS
12801fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012803$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012804ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012805if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012807
12808fi
12809
Alexandre Julliarde533e972006-08-15 12:11:30 +020012810
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012812$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012813if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012814 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012815else
Alexandre Julliard28710412007-04-23 16:31:58 +020012816 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012818/* end confdefs.h. */
12819
12820/* Override any GCC internal prototype to avoid an error.
12821 Use char because int might match the return type of a GCC
12822 builtin and then its argument prototype would still apply. */
12823#ifdef __cplusplus
12824extern "C"
12825#endif
12826char inet_aton ();
12827int
12828main ()
12829{
12830return inet_aton ();
12831 ;
12832 return 0;
12833}
12834_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012835for ac_lib in '' resolv; do
12836 if test -z "$ac_lib"; then
12837 ac_res="none required"
12838 else
12839 ac_res=-l$ac_lib
12840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12841 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012842 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012843 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012844fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012845rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012847 if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012848 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012849fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012850done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012851if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012852
Alexandre Julliard28710412007-04-23 16:31:58 +020012853else
12854 ac_cv_search_inet_aton=no
12855fi
12856rm conftest.$ac_ext
12857LIBS=$ac_func_search_save_LIBS
12858fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012860$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012861ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012862if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012864
12865fi
12866
Alexandre Julliarde533e972006-08-15 12:11:30 +020012867
Ben Taylor41c59962007-04-23 13:41:42 +000012868for ac_func in \
12869 getaddrinfo \
12870 getnameinfo \
12871 getnetbyname \
12872 getprotobyname \
12873 getprotobynumber \
12874 getservbyport \
12875 inet_network \
Austin English06566912009-03-28 00:13:09 -050012876 inet_ntop \
12877 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000012878 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010012879 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000012880
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012881do :
12882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12883ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012884if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000012885 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012886#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000012887_ACEOF
12888
12889fi
12890done
12891
12892
Francois Gougetbcba2702008-07-10 12:36:06 +020012893LDAPLIBS=""
12894
12895if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12896then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012897 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12898"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012899if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012901$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012902if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012903 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012904else
12905 ac_check_lib_save_LIBS=$LIBS
12906LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012908/* end confdefs.h. */
12909
12910/* Override any GCC internal prototype to avoid an error.
12911 Use char because int might match the return type of a GCC
12912 builtin and then its argument prototype would still apply. */
12913#ifdef __cplusplus
12914extern "C"
12915#endif
12916char ldap_initialize ();
12917int
12918main ()
12919{
12920return ldap_initialize ();
12921 ;
12922 return 0;
12923}
12924_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012925if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012926 ac_cv_lib_ldap_r_ldap_initialize=yes
12927else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012928 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012929fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012930rm -f core conftest.err conftest.$ac_objext \
12931 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012932LIBS=$ac_check_lib_save_LIBS
12933fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012935$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012936if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012938$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012939if ${ac_cv_lib_lber_ber_init+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012940 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012941else
12942 ac_check_lib_save_LIBS=$LIBS
12943LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012944cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012945/* end confdefs.h. */
12946
12947/* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12950#ifdef __cplusplus
12951extern "C"
12952#endif
12953char ber_init ();
12954int
12955main ()
12956{
12957return ber_init ();
12958 ;
12959 return 0;
12960}
12961_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012962if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012963 ac_cv_lib_lber_ber_init=yes
12964else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012965 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012966fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012967rm -f core conftest.err conftest.$ac_objext \
12968 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012969LIBS=$ac_check_lib_save_LIBS
12970fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012972$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012973if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012974
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012975$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020012976
12977 LDAPLIBS="-lldap_r -llber"
12978fi
12979
12980fi
12981
12982fi
12983
12984 ac_wine_check_funcs_save_LIBS="$LIBS"
12985LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020012986for ac_func in \
12987 ldap_count_references \
12988 ldap_first_reference \
12989 ldap_next_reference \
12990 ldap_parse_reference \
12991 ldap_parse_sort_control \
12992 ldap_parse_sortresponse_control \
12993 ldap_parse_vlv_control \
12994 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012995do :
12996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12997ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012998if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012999 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013000#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013001_ACEOF
13002
13003fi
13004done
13005
13006LIBS="$ac_wine_check_funcs_save_LIBS"
13007fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013008if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013009 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013010 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013011 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013012 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020013013This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013014esac
13015fi
13016
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013018$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013019if ${wine_cv_one_arg_mkdir+:} false; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013020 $as_echo_n "(cached) " >&6
13021else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013023/* end confdefs.h. */
13024#include <sys/stat.h>
13025int
13026main ()
13027{
13028mkdir("foo");
13029 ;
13030 return 0;
13031}
13032_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013033if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013034 wine_cv_one_arg_mkdir=yes
13035else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013036 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013037fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013041$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13042if test "$wine_cv_one_arg_mkdir" = "yes"
13043then
13044
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013045$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013046
13047fi
13048
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13050$as_echo_n "checking for sched_setaffinity... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013051if ${wine_cv_have_sched_setaffinity+:} false; then :
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013052 $as_echo_n "(cached) " >&6
13053else
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055/* end confdefs.h. */
13056#define _GNU_SOURCE
13057#include <sched.h>
13058int
13059main ()
13060{
13061sched_setaffinity(0, 0, 0);
13062 ;
13063 return 0;
13064}
13065_ACEOF
13066if ac_fn_c_try_link "$LINENO"; then :
13067 wine_cv_have_sched_setaffinity=yes
13068else
13069 wine_cv_have_sched_setaffinity=no
13070fi
13071rm -f core conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073fi
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13075$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13076if test "$wine_cv_have_sched_setaffinity" = "yes"
13077then
13078
13079$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13080
13081fi
13082
Ben Taylor41c59962007-04-23 13:41:42 +000013083
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013085$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013086if ${ac_cv_c_const+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013087 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013088else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013090/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013091
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013092int
13093main ()
13094{
13095/* FIXME: Include the comments suggested by Paul. */
13096#ifndef __cplusplus
13097 /* Ultrix mips cc rejects this. */
13098 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030013099 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013100 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013101 char const *const *pcpcc;
13102 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013103 /* NEC SVR4.0.2 mips cc rejects this. */
13104 struct point {int x, y;};
13105 static struct point const zero = {0,0};
13106 /* AIX XL C 1.02.0.0 rejects this.
13107 It does not let you subtract one const X* pointer from another in
13108 an arm of an if-expression whose if-part is not a constant
13109 expression */
13110 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030013111 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013113 ++pcpcc;
13114 ppc = (char**) pcpcc;
13115 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013116 { /* SCO 3.2v4 cc rejects this. */
13117 char *t;
13118 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013119
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013120 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013121 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013122 }
13123 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13124 int x[] = {25, 17};
13125 const int *foo = &x[0];
13126 ++foo;
13127 }
13128 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13129 typedef const int *iptr;
13130 iptr p = 0;
13131 ++p;
13132 }
13133 { /* AIX XL C 1.02.0.0 rejects this saying
13134 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13135 struct s { int j; const int *ap[3]; };
13136 struct s *b; b->j = 5;
13137 }
13138 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13139 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013140 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013141 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030013142 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013143#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013144
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013145 ;
13146 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013147}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013148_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013149if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013150 ac_cv_c_const=yes
13151else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013152 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013153fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013155fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013157$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013158if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013159
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013160$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013161
13162fi
13163
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013165$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013166if ${ac_cv_c_inline+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013167 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013168else
13169 ac_cv_c_inline=no
13170for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013172/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013173#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013174typedef int foo_t;
13175static $ac_kw foo_t static_foo () {return 0; }
13176$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013177#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013178
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013179_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013180if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013181 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013182fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013184 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013185done
13186
13187fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013189$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013190
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013191case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013192 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013193 *)
13194 case $ac_cv_c_inline in
13195 no) ac_val=;;
13196 *) ac_val=$ac_cv_c_inline;;
13197 esac
13198 cat >>confdefs.h <<_ACEOF
13199#ifndef __cplusplus
13200#define inline $ac_val
13201#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013202_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013203 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013204esac
13205
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013206ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013207if test "x$ac_cv_type_mode_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013208
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013209cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013210#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013211_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013212
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013213
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013214fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013215ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013216if test "x$ac_cv_type_off_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013217
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013218cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013219#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013220_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013221
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013223fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013224ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013225if test "x$ac_cv_type_pid_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013226
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013227cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013228#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013229_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013230
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013231
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013232fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013233ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013234if test "x$ac_cv_type_size_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013235
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013236cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013237#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013238_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013239
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013240
13241fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013242ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013243if test "x$ac_cv_type_ssize_t" = xyes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013244
13245cat >>confdefs.h <<_ACEOF
13246#define HAVE_SSIZE_T 1
13247_ACEOF
13248
13249
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013250fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013251ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013252if test "x$ac_cv_type_long_long" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013253
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013254cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013255#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013256_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013257
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013258
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013259fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013260ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013261if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013262
13263cat >>confdefs.h <<_ACEOF
13264#define HAVE_FSBLKCNT_T 1
13265_ACEOF
13266
13267
13268fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013269ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013270if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013271
13272cat >>confdefs.h <<_ACEOF
13273#define HAVE_FSFILCNT_T 1
13274_ACEOF
13275
13276
13277fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013278
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013279ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013280#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013281"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013282if test "x$ac_cv_type_sigset_t" = xyes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013283
13284cat >>confdefs.h <<_ACEOF
13285#define HAVE_SIGSET_T 1
13286_ACEOF
13287
13288
13289fi
13290
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013291ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13292"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013293if test "x$ac_cv_type_request_sense" = xyes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013294
13295cat >>confdefs.h <<_ACEOF
13296#define HAVE_REQUEST_SENSE 1
13297_ACEOF
13298
13299
13300fi
13301
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013302
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013303ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013304#ifdef HAVE_SYS_SOCKET_H
13305#include <sys/socket.h>
13306#endif
13307#ifdef HAVE_SYS_SOCKETVAR_H
13308#include <sys/socketvar.h>
13309#endif
13310#ifdef HAVE_NET_ROUTE_H
13311#include <net/route.h>
13312#endif
13313#ifdef HAVE_NETINET_IN_H
13314#include <netinet/in.h>
13315#endif
13316#ifdef HAVE_NETINET_IN_SYSTM_H
13317#include <netinet/in_systm.h>
13318#endif
13319#ifdef HAVE_NETINET_IP_H
13320#include <netinet/ip.h>
13321#endif
13322#ifdef HAVE_NETINET_IN_PCB_H
13323#include <netinet/in_pcb.h>
13324#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013325"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013326if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
Austin English68f2db22009-01-29 08:28:37 -060013327
13328cat >>confdefs.h <<_ACEOF
13329#define HAVE_STRUCT_XINPGEN 1
13330_ACEOF
13331
13332
13333fi
13334
13335
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013336ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
Daniel Remenake491e8f2005-07-29 14:18:58 +000013337#include <linux/input.h>
13338#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013339"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013340if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013341
13342cat >>confdefs.h <<_ACEOF
13343#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13344_ACEOF
13345
13346
13347fi
13348
13349
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013351$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013352if ${wine_cv_have_sigaddset+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013353 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013354else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013356/* end confdefs.h. */
13357#include <signal.h>
13358int
13359main ()
13360{
13361sigset_t set; sigaddset(&set,SIGTERM);
13362 ;
13363 return 0;
13364}
13365_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013366if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013367 wine_cv_have_sigaddset=yes
13368else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013369 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013370fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013371rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013373fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013375$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013376if test "$wine_cv_have_sigaddset" = "yes"
13377then
13378
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013379$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013380
13381fi
13382
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013383
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013385$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013386if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013387 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013388else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013390/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013391#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013392int
13393main ()
13394{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013395
Ken Thomases20d9bad2007-10-19 16:18:51 -050013396 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013397 struct hostent he;
13398 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013399 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013400 int bufsize=0;
Austin English8521ebe2011-06-13 21:26:40 -070013401 int errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013402 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013403 int addrlen=0;
13404 int addrtype=0;
Austin English8521ebe2011-06-13 21:26:40 -070013405 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13406 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013407
13408 ;
13409 return 0;
13410}
13411_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013412if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013413 wine_cv_linux_gethostbyname_r_6=yes
13414else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013415 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013416
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013417fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013418rm -f core conftest.err conftest.$ac_objext \
13419 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013420
13421fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013423$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013424 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13425 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013426
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013427$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013428
13429 fi
13430
Marcus Meissner028e9a11999-08-04 15:07:56 +000013431if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013432then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013434$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013435if ${wine_cv_linux_joystick_22_api+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013436 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013437else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013439/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013440
Marcus Meissner028e9a11999-08-04 15:07:56 +000013441 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013442 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013443 #include <linux/joystick.h>
13444
13445 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013446 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13447 #error "no 2.2 header"
13448 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013449
13450int
13451main ()
13452{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013453/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013454 ;
13455 return 0;
13456}
13457_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013458if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013459 wine_cv_linux_joystick_22_api=yes
13460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013461 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013462fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013464
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013465fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013467$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013468 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013469 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013470
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013471$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013472
13473 fi
13474fi
13475
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013476
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013477ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013478#ifdef HAVE_SYS_PARAM_H
13479# include <sys/param.h>
13480#endif
Robert Millan55b74482006-02-06 21:53:27 +010013481#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013482# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013483#endif
13484#ifdef HAVE_SYS_VFS_H
13485# include <sys/vfs.h>
13486#endif
13487#ifdef HAVE_SYS_STATFS_H
13488# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013489#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013490"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013491if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013492
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013493cat >>confdefs.h <<_ACEOF
13494#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013495_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013496
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013497
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013498fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013499ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013500#ifdef HAVE_SYS_PARAM_H
13501# include <sys/param.h>
13502#endif
Robert Millan55b74482006-02-06 21:53:27 +010013503#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013504# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013505#endif
13506#ifdef HAVE_SYS_VFS_H
13507# include <sys/vfs.h>
13508#endif
13509#ifdef HAVE_SYS_STATFS_H
13510# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013511#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013512"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013513if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013514
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013515cat >>confdefs.h <<_ACEOF
13516#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013517_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013518
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013519
Patrik Stridvall09da9662001-07-08 22:30:50 +000013520fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013521ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013522#ifdef HAVE_SYS_PARAM_H
13523# include <sys/param.h>
13524#endif
Robert Millan55b74482006-02-06 21:53:27 +010013525#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013526# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013527#endif
13528#ifdef HAVE_SYS_VFS_H
13529# include <sys/vfs.h>
13530#endif
13531#ifdef HAVE_SYS_STATFS_H
13532# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013533#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013534"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013535if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013536
13537cat >>confdefs.h <<_ACEOF
13538#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13539_ACEOF
13540
13541
13542fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013543ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013544#ifdef HAVE_SYS_PARAM_H
13545# include <sys/param.h>
13546#endif
Robert Millan55b74482006-02-06 21:53:27 +010013547#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013548# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013549#endif
13550#ifdef HAVE_SYS_VFS_H
13551# include <sys/vfs.h>
13552#endif
13553#ifdef HAVE_SYS_STATFS_H
13554# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013555#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013556"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013557if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013558
13559cat >>confdefs.h <<_ACEOF
13560#define HAVE_STRUCT_STATFS_F_FFREE 1
13561_ACEOF
13562
13563
13564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013565ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013566#ifdef HAVE_SYS_PARAM_H
13567# include <sys/param.h>
13568#endif
Robert Millan55b74482006-02-06 21:53:27 +010013569#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013570# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013571#endif
13572#ifdef HAVE_SYS_VFS_H
13573# include <sys/vfs.h>
13574#endif
13575#ifdef HAVE_SYS_STATFS_H
13576# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013577#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013578"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013579if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013580
13581cat >>confdefs.h <<_ACEOF
13582#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13583_ACEOF
13584
13585
13586fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013587ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013588#ifdef HAVE_SYS_PARAM_H
13589# include <sys/param.h>
13590#endif
Robert Millan55b74482006-02-06 21:53:27 +010013591#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013592# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013593#endif
13594#ifdef HAVE_SYS_VFS_H
13595# include <sys/vfs.h>
13596#endif
13597#ifdef HAVE_SYS_STATFS_H
13598# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013599#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013600"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013601if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013602
13603cat >>confdefs.h <<_ACEOF
13604#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13605_ACEOF
13606
13607
13608fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013609
13610
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013611ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013612#include <sys/statvfs.h>
13613#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013614"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013615if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013616
13617cat >>confdefs.h <<_ACEOF
13618#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13619_ACEOF
13620
13621
13622fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013623
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013624
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013625ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013626#ifdef HAVE_SYS_SOCKET_H
13627# include <sys/socket.h>
13628#endif
13629#ifdef HAVE_SYS_UN_H
13630# include <sys/un.h>
13631#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013632"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013633if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013634
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013635cat >>confdefs.h <<_ACEOF
13636#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013637_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013638
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013639
13640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013641ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013642#ifdef HAVE_SYS_SOCKET_H
13643# include <sys/socket.h>
13644#endif
13645#ifdef HAVE_SYS_UN_H
13646# include <sys/un.h>
13647#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013648"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013649if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013650
13651cat >>confdefs.h <<_ACEOF
13652#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13653_ACEOF
13654
13655
13656fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013657ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013658#ifdef HAVE_SYS_SOCKET_H
13659# include <sys/socket.h>
13660#endif
13661#ifdef HAVE_SYS_UN_H
13662# include <sys/un.h>
13663#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013664"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013665if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013666
13667cat >>confdefs.h <<_ACEOF
13668#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13669_ACEOF
13670
13671
Juergen Lock2d33ab92000-02-13 16:03:29 +000013672fi
13673
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013674
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013675ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013676#ifdef HAVE_SCSI_SG_H
13677#include <scsi/sg.h>
13678#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013679"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013680if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013681
13682cat >>confdefs.h <<_ACEOF
13683#define HAVE_SCSIREQ_T_CMD 1
13684_ACEOF
13685
13686
13687fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013688ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013689#ifdef HAVE_SCSI_SG_H
13690#include <scsi/sg.h>
13691#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013692"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013693if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013694
13695cat >>confdefs.h <<_ACEOF
13696#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13697_ACEOF
13698
13699
13700fi
13701
13702
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013703ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13704"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013705if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013706
13707cat >>confdefs.h <<_ACEOF
13708#define HAVE_SIGINFO_T_SI_FD 1
13709_ACEOF
13710
13711
13712fi
13713
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013714
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013715ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013716#ifdef HAVE_SYS_MTIO_H
13717#include <sys/mtio.h>
13718#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013719"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013720if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013721
13722cat >>confdefs.h <<_ACEOF
13723#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13724_ACEOF
13725
13726
13727fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013728ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013729#ifdef HAVE_SYS_MTIO_H
13730#include <sys/mtio.h>
13731#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013732"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013733if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013734
13735cat >>confdefs.h <<_ACEOF
13736#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13737_ACEOF
13738
13739
13740fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013741ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013742#ifdef HAVE_SYS_MTIO_H
13743#include <sys/mtio.h>
13744#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013745"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013746if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013747
13748cat >>confdefs.h <<_ACEOF
13749#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13750_ACEOF
13751
13752
13753fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013754
13755
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013756ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013757#include <getopt.h>
13758#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013759"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013760if test "x$ac_cv_member_struct_option_name" = xyes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013761
13762cat >>confdefs.h <<_ACEOF
13763#define HAVE_STRUCT_OPTION_NAME 1
13764_ACEOF
13765
13766
13767fi
13768
13769
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013770ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013771if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013772
13773cat >>confdefs.h <<_ACEOF
13774#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13775_ACEOF
13776
13777
13778fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013779ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013780if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013781
13782cat >>confdefs.h <<_ACEOF
13783#define HAVE_STRUCT_STAT_ST_MTIM 1
13784_ACEOF
13785
13786
13787fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013788ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013789if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013790
13791cat >>confdefs.h <<_ACEOF
13792#define HAVE_STRUCT_STAT_ST_CTIM 1
13793_ACEOF
13794
13795
13796fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013797ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013798if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013799
13800cat >>confdefs.h <<_ACEOF
13801#define HAVE_STRUCT_STAT_ST_ATIM 1
13802_ACEOF
13803
13804
13805fi
Pavel Roskind6507192003-10-03 03:28:40 +000013806
13807
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013808ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef HAVE_SYS_TYPES_H
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013809#include <sys/types.h>
13810#endif
13811#ifdef HAVE_NETINET_IN_H
13812#include <netinet/in.h>
13813#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013814"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013815if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013816
13817cat >>confdefs.h <<_ACEOF
13818#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13819_ACEOF
13820
13821
13822fi
13823
13824
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013825ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013826#include <sys/types.h>
13827#endif
13828#ifdef HAVE_NETINET_IN_H
13829# include <netinet/in.h>
13830#endif
13831#ifdef HAVE_ARPA_NAMESER_H
13832# include <arpa/nameser.h>
13833#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013834"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013835if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013836
13837cat >>confdefs.h <<_ACEOF
13838#define HAVE_NS_MSG__MSG_PTR 1
13839_ACEOF
13840
13841
13842fi
13843
13844
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013845ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
Austin Englishac0252d2009-01-30 10:18:10 -060013846#include <sys/types.h>
13847#endif
13848#ifdef HAVE_ALIAS_H
13849#include <alias.h>
13850#endif
13851#ifdef HAVE_SYS_SOCKET_H
13852#include <sys/socket.h>
13853#endif
13854#ifdef HAVE_SYS_SOCKETVAR_H
13855#include <sys/socketvar.h>
13856#endif
13857#ifdef HAVE_SYS_TIMEOUT_H
13858#include <sys/timeout.h>
13859#endif
13860#ifdef HAVE_NETINET_IN_H
13861#include <netinet/in.h>
13862#endif
13863#ifdef HAVE_NETINET_IN_SYSTM_H
13864#include <netinet/in_systm.h>
13865#endif
13866#ifdef HAVE_NETINET_IP_H
13867#include <netinet/ip.h>
13868#endif
13869#ifdef HAVE_NETINET_IP_VAR_H
13870#include <netinet/ip_var.h>
13871#endif
13872#ifdef HAVE_NETINET_IP_ICMP_H
13873#include <netinet/ip_icmp.h>
13874#endif
13875#ifdef HAVE_NETINET_ICMP_VAR
13876#include <netinet/icmp_var.h>
13877#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013878"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013879if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013880
13881cat >>confdefs.h <<_ACEOF
13882#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13883_ACEOF
13884
13885
13886fi
13887
13888
Juan Lang984c3b22010-03-12 10:38:46 -080013889ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13890#include <sys/types.h>
13891#endif
13892#ifdef HAVE_NET_IF_H
13893# include <net/if.h>
13894#endif
13895"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013896if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
Juan Lang984c3b22010-03-12 10:38:46 -080013897
13898cat >>confdefs.h <<_ACEOF
13899#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13900_ACEOF
13901
13902
13903fi
13904
13905
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013907$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013908if ${ac_cv_have_timezone+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013909 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013910else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013912/* end confdefs.h. */
13913#include <time.h>
13914int
13915main ()
13916{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013917timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013918 ;
13919 return 0;
13920}
13921_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013922if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013923 ac_cv_have_timezone="yes"
13924else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013925 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013926fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013927rm -f core conftest.err conftest.$ac_objext \
13928 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013929fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013931$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013932if test "$ac_cv_have_timezone" = "yes"
13933then
13934
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013935$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013936
13937fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013939$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013940if ${ac_cv_have_daylight+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013941 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013942else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013944/* end confdefs.h. */
13945#include <time.h>
13946int
13947main ()
13948{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013949daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013950 ;
13951 return 0;
13952}
13953_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013954if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013955 ac_cv_have_daylight="yes"
13956else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013957 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013958fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013959rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013961fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013963$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013964if test "$ac_cv_have_daylight" = "yes"
13965then
13966
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013967$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013968
13969fi
13970
Natanael Copa3b11f792011-07-06 08:58:01 +000013971ac_save_LIBS="$LIBS"
13972LIBS="$LIBS -lm"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013974$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013975if ${ac_cv_have_isinf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013976 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020013977else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013979/* end confdefs.h. */
13980#include <math.h>
13981int
13982main ()
13983{
Austin English8521ebe2011-06-13 21:26:40 -070013984float f = 0.0; return isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020013985 ;
13986 return 0;
13987}
13988_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013989if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020013990 ac_cv_have_isinf="yes"
13991else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013992 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020013993fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013994rm -f core conftest.err conftest.$ac_objext \
13995 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013996fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013998$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020013999if test "$ac_cv_have_isinf" = "yes"
14000then
14001
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014002$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014003
14004fi
14005
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014007$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014008if ${ac_cv_have_isnan+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014009 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014010else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014012/* end confdefs.h. */
14013#include <math.h>
14014int
14015main ()
14016{
Austin English8521ebe2011-06-13 21:26:40 -070014017float f = 0.0; return isnan(f)
Jacek Caban1715dcb2008-10-14 16:06:49 -050014018 ;
14019 return 0;
14020}
14021_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014022if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014023 ac_cv_have_isnan="yes"
14024else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014025 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014026fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014027rm -f core conftest.err conftest.$ac_objext \
14028 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014029fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014031$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014032if test "$ac_cv_have_isnan" = "yes"
14033then
14034
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014035$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014036
14037fi
Natanael Copa3b11f792011-07-06 08:58:01 +000014038LIBS="$ac_save_LIBS"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014039
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014040
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014041case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014042 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014043$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014044if ${ac_cv_cpp_def___i386__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014045 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014046else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014048/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014049#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014050yes
14051#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014052_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014054 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014055 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014056else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014057 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014058fi
14059rm -f conftest*
14060
14061fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014063$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014064if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014065 CFLAGS="$CFLAGS -D__i386__"
14066 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014067fi ;;
14068 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014069$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014070if ${ac_cv_cpp_def___x86_64__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014071 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014072else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014074/* end confdefs.h. */
14075#ifndef __x86_64__
14076yes
14077#endif
14078_ACEOF
14079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014080 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014081 ac_cv_cpp_def___x86_64__=yes
14082else
14083 ac_cv_cpp_def___x86_64__=no
14084fi
14085rm -f conftest*
14086
14087fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014089$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014090if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014091 CFLAGS="$CFLAGS -D__x86_64__"
14092 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014093fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014094 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014095$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014096if ${ac_cv_cpp_def___sparc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014097 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014098else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014100/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014101#ifndef __sparc__
14102yes
14103#endif
14104_ACEOF
14105if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014106 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014107 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014108else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014109 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014110fi
14111rm -f conftest*
14112
14113fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014115$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014116if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014117 CFLAGS="$CFLAGS -D__sparc__"
14118 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014119fi ;;
14120 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014121$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014122if ${ac_cv_cpp_def___powerpc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014123 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014124else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014126/* end confdefs.h. */
14127#ifndef __powerpc__
14128yes
14129#endif
14130_ACEOF
14131if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014132 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014133 ac_cv_cpp_def___powerpc__=yes
14134else
14135 ac_cv_cpp_def___powerpc__=no
14136fi
14137rm -f conftest*
14138
14139fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014141$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014142if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014143 CFLAGS="$CFLAGS -D__powerpc__"
14144 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014145fi ;;
André Hentschel50ada0f2011-04-19 19:37:05 +020014146 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14147$as_echo_n "checking whether we need to define __arm__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014148if ${ac_cv_cpp_def___arm__+:} false; then :
André Hentschel50ada0f2011-04-19 19:37:05 +020014149 $as_echo_n "(cached) " >&6
14150else
14151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152/* end confdefs.h. */
14153#ifndef __arm__
14154yes
14155#endif
14156_ACEOF
14157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14158 $EGREP "yes" >/dev/null 2>&1; then :
14159 ac_cv_cpp_def___arm__=yes
14160else
14161 ac_cv_cpp_def___arm__=no
14162fi
14163rm -f conftest*
14164
14165fi
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14167$as_echo "$ac_cv_cpp_def___arm__" >&6; }
14168if test $ac_cv_cpp_def___arm__ = yes; then :
14169 CFLAGS="$CFLAGS -D__arm__"
14170 LINTFLAGS="$LINTFLAGS -D__arm__"
14171fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014172esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014173
14174case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014175 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014176$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014177if ${ac_cv_cpp_def___sun__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014178 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014179else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014181/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014182#ifndef __sun__
14183yes
14184#endif
14185_ACEOF
14186if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014187 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014188 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014189else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014190 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014191fi
14192rm -f conftest*
14193
14194fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014196$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014197if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014198 CFLAGS="$CFLAGS -D__sun__"
14199 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014200fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014201esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014202
14203
Alexandre Julliarda360e932008-08-20 16:02:37 +020014204
Alexandre Julliard7d831152010-03-20 15:07:45 +010014205
Alexandre Julliard6c142382010-04-11 12:47:30 +020014206
Alexandre Julliard7d831152010-03-20 15:07:45 +010014207ac_config_commands="$ac_config_commands include/stamp-h"
14208
Alexandre Julliard03642412010-03-20 15:24:22 +010014209
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014210ALL_MAKEFILE_DEPENDS="
14211# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014212
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014213.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014214.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014215all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014216Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014217 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014218
Alexandre Julliard367fd222011-01-04 17:05:21 +010014219ALL_POT_FILES=""
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014220ALL_TEST_RESOURCES=""
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014221
Alexandre Julliard49163da2008-08-25 12:02:27 +020014222
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014223wine_fn_append_file ()
14224{
14225 as_fn_append $1 " \\$as_nl $2"
14226}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014227
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014228wine_fn_append_rule ()
14229{
14230 as_fn_append $1 "$as_nl$2"
14231}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014232
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014233wine_fn_has_flag ()
14234{
14235 expr ",$2," : ".*,$1,.*" >/dev/null
14236}
14237
Alexandre Julliard943cd732010-03-25 21:52:56 +010014238wine_fn_all_dir_rules ()
14239{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014240 ac_dir=$1
14241 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014242 ac_makedep="\$(MAKEDEP)"
14243 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014244 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014245 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014246 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014247 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014248 case $2 in
14249 *.in) ac_input=$ac_input:$2 ;;
14250 *) ac_makedep="$2 $ac_makedep" ;;
14251 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014252
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014253 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014254 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014255"__clean__: $ac_dir/__clean__
14256.PHONY: $ac_dir/__clean__
14257$ac_dir/__clean__: $ac_dir/Makefile
14258 @cd $ac_dir && \$(MAKE) clean
14259 \$(RM) $ac_dir/Makefile
14260$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014261 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014262depend: $ac_dir/__depend__
14263.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014264$ac_dir/__depend__: $ac_makedep dummy
14265 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014266}
14267
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014268wine_fn_config_makefile ()
14269{
14270 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014271 ac_enable=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014272 ac_flags=$3
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014273 ac_rules=$4
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014274 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014275 return 0
14276fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014277
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014278 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014279 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014280"all: $ac_dir
14281.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014282$ac_dir: $ac_dir/Makefile dummy
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014283 @cd $ac_dir && \$(MAKE)"
14284
14285 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14286
14287 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014288".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14289$ac_dir/__install__:: $ac_dir
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014290 @cd $ac_dir && \$(MAKE) install
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014291$ac_dir/__uninstall__:: $ac_dir/Makefile
14292 @cd $ac_dir && \$(MAKE) uninstall
14293install:: $ac_dir/__install__
14294__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014295
14296 if wine_fn_has_flag install-lib $ac_flags
14297 then
14298 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014299".PHONY: $ac_dir/__install-lib__
14300$ac_dir/__install-lib__:: $ac_dir
14301 @cd $ac_dir && \$(MAKE) install-lib
14302install-lib:: $ac_dir/__install-lib__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014303 fi
14304
14305 if wine_fn_has_flag install-dev $ac_flags
14306 then
14307 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014308".PHONY: $ac_dir/__install-dev
14309$ac_dir/__install-dev__:: $ac_dir
14310 @cd $ac_dir && \$(MAKE) install-dev
14311install-dev:: $ac_dir/__install-dev__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014312 fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014313}
14314
14315wine_fn_config_lib ()
14316{
14317 ac_name=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014318 ac_flags=$2
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014319 ac_dir=dlls/$ac_name
Alexandre Julliardf64a6752011-07-09 17:58:47 +020014320 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14321
14322 if wine_fn_has_flag install-dev $ac_flags
14323 then :
14324 else
14325 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14326".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14327$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14328 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14329$ac_dir/__uninstall__::
14330 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14331install install-dev:: $ac_dir/__install__
14332__uninstall__: $ac_dir/__uninstall__"
14333 fi
14334
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014335 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14336 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014337}
14338
Alexandre Julliard50231942010-03-16 22:00:02 +010014339wine_fn_config_dll ()
14340{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014341 ac_name=$1
14342 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014343 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014344 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014345 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014346 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014347 ac_dll=$ac_name
Alexandre Julliard50231942010-03-16 22:00:02 +010014348 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014349 ac_implibflags=""
14350
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014351 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014352 *16) ac_implibflags=" -m16" ;;
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014353 *.*) ;;
14354 *) ac_dll=$ac_dll.dll ;;
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014355 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014356
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014357 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014358
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014359 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014360 test "$ac_enable" != enable_win16 || return 0
Alexandre Julliard28449912011-07-25 22:05:51 +020014361 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014362else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014363 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014364"$ac_dir: __builddeps__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014365manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014366 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014367
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014368 if wine_fn_has_flag install-lib $ac_flags
14369 then :
14370 else
14371 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14372".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14373install install-lib:: $ac_dir/__install-lib__
14374__uninstall__: $ac_dir/__uninstall__"
14375 if test -n "$DLLEXT"
14376 then
14377 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14378"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14379 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14380 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14381$ac_dir/__uninstall__::
14382 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14383 else
14384 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14385"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14386 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14387$ac_dir/__uninstall__::
14388 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14389 fi
14390 fi
14391
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014392 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014393 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014394 if wine_fn_has_flag mc $ac_flags
14395 then
14396 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14397 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14398"$ac_dir/msg.pot: $ac_dir"
14399 fi
14400 if wine_fn_has_flag po $ac_flags
14401 then
14402 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14403 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014404"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014405 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014406 fi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014407fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014408
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014409 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014410 then
14411 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014412"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014413$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014414$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14415 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14416$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14417 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014418.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14419$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14420 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14421$ac_dir/__uninstall__::
14422 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14423install install-dev:: $ac_dir/__install-dev__
14424__uninstall__: $ac_dir/__uninstall__"
14425
14426 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14427 then
14428 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14429"$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14430 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14431$ac_dir/__uninstall__::
14432 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14433 fi
14434
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014435 if test "x$CROSSTEST_DISABLE" = x
14436 then
14437 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14438"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014439$ac_file.cross.a: $ac_dir/Makefile dummy
14440 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014441 fi
14442
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014443 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014444 then
14445 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014446"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014447$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14448 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14449$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14450 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014451.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14452$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14453 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14454$ac_dir/__uninstall__::
14455 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14456install install-dev:: $ac_dir/__install-dev__
14457__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014458 if test "x$CROSSTEST_DISABLE" = x
14459 then
14460 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14461"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014462$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14463 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014464 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014465
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014466 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014467 then
14468 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014469"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014470dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014471 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014472clean::
14473 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014474 if test "x$CROSSTEST_DISABLE" = x
14475 then
14476 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14477"__builddeps__: dlls/lib$ac_implib.cross.a
14478dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014479 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014480 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014481 fi
14482 fi
14483}
14484
14485wine_fn_config_program ()
14486{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014487 ac_name=$1
14488 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014489 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014490 ac_flags=$3
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014491 ac_program=$ac_name
14492
14493 case $ac_name in
14494 *.*) ;;
14495 *) ac_program=$ac_program.exe ;;
14496 esac
14497
14498 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014499
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014500 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014501
14502else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014503 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014504"$ac_dir: __builddeps__"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014505
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014506 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014507 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014508 if wine_fn_has_flag mc $ac_flags
14509 then
14510 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14511 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14512"$ac_dir/msg.pot: $ac_dir"
14513 fi
14514 if wine_fn_has_flag po $ac_flags
14515 then
14516 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14517 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014518"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014519 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014520 fi
14521
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014522 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014523 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014524".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014525install install-lib:: $ac_dir/__install__
14526__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014527
14528 if test -n "$DLLEXT"
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014529 then
14530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014531"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14532 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14533 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14534$ac_dir/__uninstall__::
14535 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14536
14537 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14538 then
14539 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014540"$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014541 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014542$ac_dir/__uninstall__::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014543 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014544 fi
14545 else
14546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14547"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14548 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14549$ac_dir/__uninstall__::
14550 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014551 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014552fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014553}
14554
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014555wine_fn_config_test ()
14556{
14557 ac_dir=$1
14558 ac_name=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014559 ac_flags=$3
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014560 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014561 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014562
Alexandre Julliard9797da42011-04-27 17:37:43 +020014563 if test "x$enable_tests" = xno; then :
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014564
14565else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014567"all: $ac_dir
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014568.PHONY: $ac_dir
Alexandre Julliarddbbed382011-05-26 12:04:45 +020014569$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014570 @cd $ac_dir && \$(MAKE)
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014571programs/winetest: $ac_dir
Alexandre Julliarde4eff852011-05-22 13:15:03 +020014572check test: $ac_dir/__test__
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014573.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014574$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014575 @cd $ac_dir && \$(MAKE) test
14576testclean::
14577 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014578
14579 if test "x$CROSSTEST_DISABLE" = x
14580 then
14581 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14582"crosstest: $ac_dir/__crosstest__
14583.PHONY: $ac_dir/__crosstest__
14584$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14585 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014586 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014587fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014588}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014589
14590wine_fn_config_tool ()
14591{
14592 ac_dir=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014593 ac_flags=$2
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014594 if test "x$enable_tools" = xno; then :
14595 return 0
14596fi
14597
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014598 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014599
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014600 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14601 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014602 case $ac_dir in
14603 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14604 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014605}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014606
14607wine_fn_config_makerules ()
14608{
14609 ac_rules=$1
14610 ac_deps=$2
14611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14612"$ac_rules: $ac_rules.in $ac_deps config.status
14613 @./config.status $ac_rules
14614distclean::
14615 \$(RM) $ac_rules"
14616}
14617
14618wine_fn_config_symlink ()
14619{
14620 ac_link=$1
14621 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14622"$ac_link:
14623 @./config.status $ac_link
14624distclean::
14625 \$(RM) $ac_link"
14626}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014627
14628if test "x$CROSSTEST_DISABLE" != x
14629then
14630 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14631"crosstest:
14632 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14633fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014634ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14635wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014636ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014637test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014638if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014639ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014640test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014641fi
14642if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014643ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014644test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014645fi
14646if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014647ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014648test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014649fi
14650if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014651ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014652test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014653fi
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014654if test "x$enable_tools" != xno; then
Alexandre Julliard321d3882010-05-06 20:51:53 +020014655ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14656test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014657fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014658ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014659wine_fn_config_symlink wine
Alexandre Julliard4422d222011-05-10 13:26:28 +020014660if test "x$enable_win64" != xno; then
14661ac_config_links="$ac_config_links wine64:tools/winewrapper"
14662wine_fn_config_symlink wine64
14663fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014664
Huw Davies4cffb2d2011-04-01 15:27:48 +010014665ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14666
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014667ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014668
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014669ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014670
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014671ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014672
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014673ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014674
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014675ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014676
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014677ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014678
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014679
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014680wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014681MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014682ac_config_files="$ac_config_files Make.rules"
14683
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014684wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014685MAKE_TEST_RULES=Maketest.rules
14686ac_config_files="$ac_config_files Maketest.rules"
14687
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014688wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014689MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014690ac_config_files="$ac_config_files dlls/Makedll.rules"
14691
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014692wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014693MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014694ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14695
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014696wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014697MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014698ac_config_files="$ac_config_files programs/Makeprog.rules"
14699
Alexandre Julliarda360e932008-08-20 16:02:37 +020014700
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014701wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010014702wine_fn_config_dll aclui enable_aclui implib
14703wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014704wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014705wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010014706wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014707wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014708wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014709wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014710wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014711wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard902f10c2011-01-13 15:16:02 +010014712wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014713wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014714wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014715wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010014716wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014717wine_fn_config_dll avifil32 enable_avifil32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014718wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014719wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014720wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014721wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010014722wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014723wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014724wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014725wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014726wine_fn_config_dll capi2032 enable_capi2032 implib
14727wine_fn_config_dll cards enable_cards implib
14728wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14729wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014730wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014731wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014732wine_fn_config_dll comctl32 enable_comctl32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014733wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014734wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014735wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014736wine_fn_config_dll comm.drv16 enable_win16
14737wine_fn_config_dll commdlg.dll16 enable_win16
14738wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014739wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014740wine_fn_config_dll credui enable_credui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014741wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014742wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014743wine_fn_config_dll crypt32 enable_crypt32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014744wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010014745wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014746wine_fn_config_dll cryptdll enable_cryptdll implib
14747wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014748wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014749wine_fn_config_dll cryptui enable_cryptui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014750wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014751wine_fn_config_dll ctapi32 enable_ctapi32
14752wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014753wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014754wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014755wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014756wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014757wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014758wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014759wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014760wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014761wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014762wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014763wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014764wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014765wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014766wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014767wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014768wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014769wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014770wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014771wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014772wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014773wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014774wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014775wine_fn_config_dll d3dim enable_d3dim implib
14776wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014777wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050014778wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050014779wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050014780wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050014781wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050014782wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050014783wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050014784wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050014785wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050014786wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050014787wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050014788wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014789wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14790wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14791wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14792wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14793wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14794wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14795wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14796wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14797wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14798wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14799wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14800wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014801wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014802wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014803wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14804wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14805wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14806wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14807wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14808wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020014809wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010014810wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014811wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014812wine_fn_config_dll dbgeng enable_dbgeng implib
14813wine_fn_config_dll dbghelp enable_dbghelp implib
14814wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014815wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014816wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014817wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014818wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014819wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010014820wine_fn_config_dll devenum enable_devenum po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014821wine_fn_config_dll dinput enable_dinput implib,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014822wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014823wine_fn_config_dll dinput8 enable_dinput8 implib
Lucas Fialho Zawacki1fbf8572011-04-29 19:29:19 -030014824wine_fn_config_test dlls/dinput8/tests dinput8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014825wine_fn_config_dll dispdib.dll16 enable_win16
14826wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014827wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014828wine_fn_config_dll display.drv16 enable_win16
14829wine_fn_config_dll dmband enable_dmband
14830wine_fn_config_dll dmcompos enable_dmcompos
14831wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100014832wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014833wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014834wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014835wine_fn_config_dll dmscript enable_dmscript
14836wine_fn_config_dll dmstyle enable_dmstyle
14837wine_fn_config_dll dmsynth enable_dmsynth
14838wine_fn_config_dll dmusic enable_dmusic
Alexandre Julliard1858f432010-12-29 14:10:47 +010014839wine_fn_config_dll dmusic32 enable_dmusic32 implib
14840wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014841wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014842wine_fn_config_dll dplay enable_dplay implib
14843wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014844wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014845wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010014846wine_fn_config_dll dpnet enable_dpnet implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014847wine_fn_config_dll dpnhpast enable_dpnhpast
14848wine_fn_config_dll dpnlobby enable_dpnlobby
14849wine_fn_config_dll dpwsockx enable_dpwsockx
14850wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010014851wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014852wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014853wine_fn_config_dll dssenh enable_dssenh
14854wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010014855wine_fn_config_dll dwmapi enable_dwmapi implib
Andrew Nguyenf9c8e462011-04-03 20:55:32 -050014856wine_fn_config_dll dxdiagn enable_dxdiagn po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014857wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014858wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014859wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010014860wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014861wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014862wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020014863wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020014864wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014865wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020014866wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014867wine_fn_config_dll fltlib enable_fltlib
14868wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014869wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014870wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020014871wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020014872wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014873wine_fn_config_dll gdi.exe16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014874wine_fn_config_dll gdi32 enable_gdi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014875wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014876wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014877wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014878wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014879wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14880wine_fn_config_dll gpkcsp enable_gpkcsp
14881wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010014882wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014883wine_fn_config_dll hid enable_hid implib
14884wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014885wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014886wine_fn_config_dll hnetcfg enable_hnetcfg
14887wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010014888wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014889wine_fn_config_dll icmp enable_icmp
Jacek Caban02ceb942011-07-23 18:40:54 +020014890wine_fn_config_dll ieframe enable_ieframe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014891wine_fn_config_dll ifsmgr.vxd enable_win16
14892wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010014893wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014894wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014895wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014896wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014897wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014898wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014899wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010014900wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014901wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014902wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014903wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014904wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014905wine_fn_config_dll initpki enable_initpki
14906wine_fn_config_dll inkobj enable_inkobj
14907wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010014908wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014909wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014910wine_fn_config_dll itircl enable_itircl
14911wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014912wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010014913wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014914wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014915wine_fn_config_dll kernel32 enable_kernel32 implib,mc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014916wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014917wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014918wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050014919wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010014920wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010014921wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014922wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010014923wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014924wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014925wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014926wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014927wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014928wine_fn_config_dll mapi32 enable_mapi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014929wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014930wine_fn_config_dll mapistub enable_mapistub
14931wine_fn_config_dll mciavi32 enable_mciavi32
14932wine_fn_config_dll mcicda enable_mcicda
14933wine_fn_config_dll mciqtz32 enable_mciqtz32
14934wine_fn_config_dll mciseq enable_mciseq
14935wine_fn_config_dll mciwave enable_mciwave
14936wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010014937wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014938wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014939wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014940wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014941wine_fn_config_dll mmdevldr.vxd enable_win16
14942wine_fn_config_dll mmsystem.dll16 enable_win16
14943wine_fn_config_dll monodebg.vxd enable_win16
14944wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14945wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014946wine_fn_config_dll mpr enable_mpr implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014947wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014948wine_fn_config_dll msacm.dll16 enable_win16
14949wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard1858f432010-12-29 14:10:47 +010014950wine_fn_config_dll msacm32 enable_msacm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014951wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014952wine_fn_config_dll msadp32.acm enable_msadp32_acm
14953wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010014954wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014955wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014956wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020014957wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014958wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014959wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014960wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010014961wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014962wine_fn_config_dll msftedit enable_msftedit
14963wine_fn_config_dll msg711.acm enable_msg711_acm
14964wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14965wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014966wine_fn_config_dll mshtml enable_mshtml implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014967wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014968wine_fn_config_dll msi enable_msi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014969wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014970wine_fn_config_dll msimg32 enable_msimg32 implib
Hans Leidekker530e9472011-03-10 10:59:44 +010014971wine_fn_config_dll msimsg enable_msimsg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014972wine_fn_config_dll msimtf enable_msimtf
14973wine_fn_config_dll msisip enable_msisip
14974wine_fn_config_dll msisys.ocx enable_msisys_ocx
14975wine_fn_config_dll msnet32 enable_msnet32
David Hedberg21085ed2011-03-22 04:16:56 +010014976wine_fn_config_dll mspatcha enable_mspatcha
Alexandre Julliardad5605b2011-01-06 16:36:14 +010014977wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014978wine_fn_config_dll mssign32 enable_mssign32
14979wine_fn_config_dll mssip32 enable_mssip32
14980wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014981wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014982wine_fn_config_dll msvcirt enable_msvcirt
Austin Englishdfbf47b2011-04-05 12:47:46 -070014983wine_fn_config_dll msvcp100 enable_msvcp100
Alexandre Julliarda3172a52011-04-28 23:30:07 +020014984wine_fn_config_dll msvcp60 enable_msvcp60
Alexandre Julliard2f9c02e2011-05-03 11:09:58 +020014985wine_fn_config_dll msvcp70 enable_msvcp70
Alexandre Julliard4be20262011-05-02 17:32:22 +020014986wine_fn_config_dll msvcp71 enable_msvcp71
Piotr Caban71a49eb2010-08-23 16:36:24 +020014987wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020014988wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020014989wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020014990wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010014991wine_fn_config_dll msvcr70 enable_msvcr70 implib
14992wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010014993wine_fn_config_dll msvcr80 enable_msvcr80
14994wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010014995wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014996wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014997wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014998wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
14999wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15000wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015001wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015002wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015003wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015004wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015005wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015006wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015007wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015008wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015009wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015010wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015011wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015012wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015013wine_fn_config_dll nddeapi enable_nddeapi implib
15014wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015015wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015016wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015017wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015018wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015019wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015020wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015021wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015022wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015023wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015024wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015025wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015026wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015027wine_fn_config_dll odbc32 enable_odbc32 implib
15028wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015029wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015030wine_fn_config_dll ole2.dll16 enable_win16
15031wine_fn_config_dll ole2conv.dll16 enable_win16
15032wine_fn_config_dll ole2disp.dll16 enable_win16
15033wine_fn_config_dll ole2nls.dll16 enable_win16
15034wine_fn_config_dll ole2prox.dll16 enable_win16
15035wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015036wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015037wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015038wine_fn_config_dll oleacc enable_oleacc implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015039wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015040wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015041wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015042wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015043wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015044wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015045wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015046wine_fn_config_dll oledlg enable_oledlg implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015047wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015048wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015049wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015050wine_fn_config_dll olethk32 enable_olethk32
15051wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015052wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015053wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015054wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015055wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015056wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015057wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015058wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015059wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015060wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015061wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015062wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015063wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015064wine_fn_config_dll pstorec enable_pstorec
15065wine_fn_config_dll qcap enable_qcap
15066wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015067wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015068wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015069wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015070wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015071wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015072wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015073wine_fn_config_dll query enable_query
15074wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015075wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015076wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015077wine_fn_config_dll rasdlg enable_rasdlg implib
Austin Englishd8d77802011-05-21 20:17:07 -050015078wine_fn_config_dll regapi enable_regapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015079wine_fn_config_dll resutils enable_resutils implib
15080wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015081wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015082wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015083wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015084wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015085wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015086wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015087wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015088wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015089wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015090wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015091wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015092wine_fn_config_dll sane.ds enable_sane_ds po
Stefan Leichter81f3d682011-04-03 23:50:40 +020015093wine_fn_config_dll scarddlg enable_scarddlg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015094wine_fn_config_dll sccbase enable_sccbase
15095wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015096wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015097wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015098wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015099wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015100wine_fn_config_dll sensapi enable_sensapi implib
15101wine_fn_config_dll serialui enable_serialui implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015102wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015103wine_fn_config_dll setupapi enable_setupapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015104wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015105wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015106wine_fn_config_dll sfc enable_sfc implib
15107wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015108wine_fn_config_dll shdoclc enable_shdoclc po
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015109wine_fn_config_dll shdocvw enable_shdocvw implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015110wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015111wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015112wine_fn_config_dll shell32 enable_shell32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015113wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015114wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015115wine_fn_config_dll shlwapi enable_shlwapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015116wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015117wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015118wine_fn_config_dll slc enable_slc implib
15119wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015120wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015121wine_fn_config_dll softpub enable_softpub
15122wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015123wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015124wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015125wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15126wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015127wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015128wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015129wine_fn_config_dll storage.dll16 enable_win16
15130wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015131wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015132wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015133wine_fn_config_dll svrapi enable_svrapi
15134wine_fn_config_dll sxs enable_sxs
15135wine_fn_config_dll system.drv16 enable_win16
15136wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015137wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015138wine_fn_config_dll toolhelp.dll16 enable_win16
15139wine_fn_config_dll traffic enable_traffic
15140wine_fn_config_dll twain.dll16 enable_win16
15141wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015142wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015143wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015144wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015145wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015146wine_fn_config_dll url enable_url implib
15147wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015148wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015149wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015150wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015151wine_fn_config_dll user32 enable_user32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015152wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015153wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015154wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015155wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015156wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015157wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015158wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015159wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Jacek Cabanc35aa012011-06-21 16:14:04 +020015160wine_fn_config_dll vbscript enable_vbscript
Jacek Caban68c6f582011-07-19 13:46:50 +020015161wine_fn_config_test dlls/vbscript/tests vbscript_test
Austin Englishdd2159c2011-04-08 18:03:47 +000015162wine_fn_config_dll vcomp enable_vcomp
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015163wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015164wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015165wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015166wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015167wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015168wine_fn_config_dll vmm.vxd enable_win16
15169wine_fn_config_dll vnbt.vxd enable_win16
15170wine_fn_config_dll vnetbios.vxd enable_win16
15171wine_fn_config_dll vtdapi.vxd enable_win16
15172wine_fn_config_dll vwin32.vxd enable_win16
15173wine_fn_config_dll w32skrnl enable_win16
15174wine_fn_config_dll w32sys.dll16 enable_win16
15175wine_fn_config_dll wbemprox enable_wbemprox
Alexandre Julliard1858f432010-12-29 14:10:47 +010015176wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015177wine_fn_config_test dlls/wer/tests wer_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015178wine_fn_config_dll wiaservc enable_wiaservc
15179wine_fn_config_dll win32s16.dll16 enable_win16
15180wine_fn_config_dll win87em.dll16 enable_win16
15181wine_fn_config_dll winaspi.dll16 enable_win16
15182wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015183wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015184wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015185wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015186wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015187wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015188wine_fn_config_dll wined3d enable_wined3d implib
Aric Stewart2914d652010-10-20 13:55:16 -050015189wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015190wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15191wine_fn_config_dll winemapi enable_winemapi
15192wine_fn_config_dll winemp3.acm enable_winemp3_acm
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015193wine_fn_config_dll wineoss.drv enable_wineoss_drv
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015194wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015195wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015196wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015197wine_fn_config_dll winequartz.drv enable_winequartz_drv
15198wine_fn_config_dll winex11.drv enable_winex11_drv
15199wine_fn_config_dll wing.dll16 enable_win16
15200wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015201wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015202wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015203wine_fn_config_dll wininet enable_wininet implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015204wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015205wine_fn_config_dll winmm enable_winmm implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015206wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015207wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015208wine_fn_config_dll winnls32 enable_winnls32 implib
15209wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015210wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015211wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015212wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Austin English14067ac2011-05-21 20:14:37 -050015213wine_fn_config_dll winsta enable_winsta
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015214wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015215wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015216wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015217wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015218wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015219wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015220wine_fn_config_dll wldap32 enable_wldap32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015221wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015222wine_fn_config_dll wmi enable_wmi
15223wine_fn_config_dll wmiutils enable_wmiutils
Alexandre Julliard1858f432010-12-29 14:10:47 +010015224wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15225wine_fn_config_dll wow32 enable_win16 implib
15226wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015227wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015228wine_fn_config_dll wsock32 enable_wsock32 implib
15229wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015230wine_fn_config_dll wuapi enable_wuapi
15231wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015232wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015233wine_fn_config_dll xinput1_1 enable_xinput1_1
15234wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015235wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015236wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015237wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15238wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015239wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010015240wine_fn_config_makefile documentation enable_documentation
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015241wine_fn_config_makefile fonts enable_fonts install-lib
15242wine_fn_config_makefile include enable_include install-dev
Alexandre Julliard03642412010-03-20 15:24:22 +010015243wine_fn_config_makefile libs/port enable_libs_port
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015244wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
Alexandre Julliard03642412010-03-20 15:24:22 +010015245wine_fn_config_makefile libs/wpp enable_libs_wpp
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015246wine_fn_config_makefile loader enable_loader install-lib
Hans Leidekkerab789c62010-10-13 14:23:09 +020015247wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015248wine_fn_config_program attrib enable_attrib install
Alexandre Julliard30bdbed2011-02-02 22:44:47 +010015249wine_fn_config_program cabarc enable_cabarc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015250wine_fn_config_program cacls enable_cacls install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015251wine_fn_config_program clock enable_clock install,po
15252wine_fn_config_program cmd enable_cmd install,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015253wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015254wine_fn_config_program cmdlgtst enable_cmdlgtst
15255wine_fn_config_program control enable_control install
Andrew Nguyen4122cf22011-06-14 08:01:45 -050015256wine_fn_config_program dxdiag enable_dxdiag install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015257wine_fn_config_program eject enable_eject install
15258wine_fn_config_program expand enable_expand install
Jay Yangf2ac4862011-06-11 17:42:17 -040015259wine_fn_config_program explorer enable_explorer install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015260wine_fn_config_program extrac32 enable_extrac32 install
15261wine_fn_config_program hh enable_hh install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015262wine_fn_config_program hostname enable_hostname install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015263wine_fn_config_program icinfo enable_icinfo install
15264wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015265wine_fn_config_program ipconfig enable_ipconfig install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015266wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015267wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015268wine_fn_config_program mshta enable_mshta install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015269wine_fn_config_program msiexec enable_msiexec install,installbin
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015270wine_fn_config_program net enable_net install,po
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015271wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015272wine_fn_config_program ngen enable_ngen install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015273wine_fn_config_program notepad enable_notepad install,installbin,po
15274wine_fn_config_program oleview enable_oleview install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015275wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015276wine_fn_config_program plugplay enable_plugplay install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015277wine_fn_config_program progman enable_progman install,po
15278wine_fn_config_program reg enable_reg install,po
15279wine_fn_config_program regedit enable_regedit install,installbin,po
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015280wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015281wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015282wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015283wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015284wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015285wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015286wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015287wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015288wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015289wine_fn_config_program services enable_services install
15290wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015291wine_fn_config_program start enable_start install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015292wine_fn_config_program svchost enable_svchost install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015293wine_fn_config_program taskkill enable_taskkill install,po
15294wine_fn_config_program taskmgr enable_taskmgr install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015295wine_fn_config_program termsv enable_termsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015296wine_fn_config_program uninstaller enable_uninstaller install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015297wine_fn_config_program unlodctr enable_unlodctr install
Alexandre Julliard9d6489a2011-01-10 13:25:22 +010015298wine_fn_config_program view enable_view po
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015299wine_fn_config_program wineboot enable_wineboot install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015300wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015301wine_fn_config_program winecfg enable_winecfg install,installbin,po
15302wine_fn_config_program wineconsole enable_wineconsole install,installbin,po
15303wine_fn_config_program winedbg enable_winedbg install,installbin,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015304wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015305wine_fn_config_program winefile enable_winefile install,installbin,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015306wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015307wine_fn_config_program winemine enable_winemine install,installbin,po
Hans Leidekker13700722011-02-01 14:01:42 +010015308wine_fn_config_program winemsibuilder enable_winemsibuilder install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015309wine_fn_config_program winepath enable_winepath install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015310wine_fn_config_program winetest enable_winetest
15311wine_fn_config_program winevdm enable_win16 install
15312wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015313wine_fn_config_program winhlp32 enable_winhlp32 install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015314wine_fn_config_program winoldap.mod16 enable_win16 install
15315wine_fn_config_program winver enable_winver install
Louis Lenders4b281b22010-12-06 23:04:20 +010015316wine_fn_config_program wmic enable_wmic install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015317wine_fn_config_program wordpad enable_wordpad install,po
15318wine_fn_config_program write enable_write install,po
Jacek Caban16bad582010-07-27 15:51:18 +020015319wine_fn_config_program wscript enable_wscript install
Jacek Cabanf5eb15a2011-02-22 19:48:37 +010015320wine_fn_config_test programs/wscript/tests wscript.exe_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015321wine_fn_config_program xcopy enable_xcopy install,po
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015322wine_fn_config_makefile server enable_server install-lib
15323wine_fn_config_tool tools install-dev,install-lib
Alexandre Julliard49c31e32011-06-12 12:13:17 +020015324wine_fn_config_tool tools/widl install-dev
15325wine_fn_config_tool tools/winebuild install-dev
15326wine_fn_config_tool tools/winedump install-dev
15327wine_fn_config_tool tools/winegcc install-dev
15328wine_fn_config_tool tools/wmc install-dev
15329wine_fn_config_tool tools/wrc install-dev
Alexandre Julliard626f4252000-11-10 23:35:20 +000015330
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015331LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015332ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015333bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015334ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015335cs \
15336da \
15337de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015338el \
15339en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015340en_US \
15341eo \
15342es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015343fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015344fi \
15345fr \
15346he \
15347hi \
15348hu \
15349it \
15350ja \
15351ko \
15352lt \
15353ml \
15354nb_NO \
15355nl \
15356or \
15357pa \
15358pl \
15359pt_BR \
15360pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015361rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015362ro \
15363ru \
15364sk \
15365sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015366sr_RS@cyrillic \
15367sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015368sv \
15369te \
15370th \
15371tr \
15372uk \
15373wa \
15374zh_CN \
15375zh_TW"
15376
15377
15378
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015379ac_config_commands="$ac_config_commands Makefile"
15380
15381
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015382ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015383
15384
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015385
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015386if test "x$enable_maintainer_mode" = xyes
15387then
15388 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15389 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015390\$(srcdir)/include/config.h.in: include/stamp-h.in
15391\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15392 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard367fd222011-01-04 17:05:21 +010015393 @echo timestamp > \$@
15394
15395ALL_POT_FILES =$ALL_POT_FILES
15396all: \$(ALL_PO_FILES)
15397\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
Alexandre Julliard945ccf52011-01-27 15:09:55 +010015398 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015399\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15400 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015401fi
15402
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015403if test "x$enable_tools" != xno
15404then
15405 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15406clean:: __clean__
15407 \$(RM) tools/makedep\$(EXEEXT)"
15408fi
15409
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015410if test -n "$with_wine64"
15411then
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015412wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15413fonts server tools:
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015414 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015415$with_wine64/loader/wine:
15416 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015417$with_wine64/loader/wine-preloader:
15418 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015419clean::
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015420 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015421fi
15422
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015423cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015424# This file is a shell script that caches the results of configure
15425# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015426# scripts and configure runs, see configure's option --config-cache.
15427# It is not useful on other systems. If it contains results you don't
15428# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015429#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015430# config.status only pays attention to the cache file if you give it
15431# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015432#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015433# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015434# loading this file, other *unset* `ac_cv_foo' will be assigned the
15435# following values.
15436
15437_ACEOF
15438
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015439# The following way of writing the cache mishandles newlines in values,
15440# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015441# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015442# Ultrix sh set writes to stderr and can't be redirected directly,
15443# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015444(
15445 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15446 eval ac_val=\$$ac_var
15447 case $ac_val in #(
15448 *${as_nl}*)
15449 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015450 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015451$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015452 esac
15453 case $ac_var in #(
15454 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015455 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015456 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015457 esac ;;
15458 esac
15459 done
15460
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015461 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015462 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15463 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015464 # `set' does not quote correctly, so add quotes: double-quote
15465 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015466 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015467 "s/'/'\\\\''/g;
15468 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015469 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015470 *)
15471 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015472 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015473 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015474 esac |
15475 sort
15476) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015477 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015478 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015479 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015480 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015481 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15482 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015483 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15484 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015485if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15486 if test -w "$cache_file"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020015487 if test "x$cache_file" != "x/dev/null"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015488 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015489$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliard9797da42011-04-27 17:37:43 +020015490 if test ! -f "$cache_file" || test -h "$cache_file"; then
15491 cat confcache >"$cache_file"
15492 else
15493 case $cache_file in #(
15494 */* | ?:*)
15495 mv -f confcache "$cache_file"$$ &&
15496 mv -f "$cache_file"$$ "$cache_file" ;; #(
15497 *)
15498 mv -f confcache "$cache_file" ;;
15499 esac
15500 fi
15501 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015502 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015503 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015504$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015505 fi
15506fi
15507rm -f confcache
15508
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015509test "x$prefix" = xNONE && prefix=$ac_default_prefix
15510# Let make expand exec_prefix.
15511test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15512
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015513DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015514
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015515ac_libobjs=
15516ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015517U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015518for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15519 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015520 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015521 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015522 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15523 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015524 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15525 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015526done
15527LIBOBJS=$ac_libobjs
15528
15529LTLIBOBJS=$ac_ltlibobjs
15530
15531
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015532
Alexandre Julliard9797da42011-04-27 17:37:43 +020015533: "${CONFIG_STATUS=./config.status}"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015534ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015535ac_clean_files_save=$ac_clean_files
15536ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015537{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015538$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015539as_write_fail=0
15540cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015541#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015542# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015543# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015544# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015545# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015546
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015547debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015548ac_cs_recheck=false
15549ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015550
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015551SHELL=\${CONFIG_SHELL-$SHELL}
15552export SHELL
15553_ASEOF
15554cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15555## -------------------- ##
15556## M4sh Initialization. ##
15557## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015558
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015559# Be more Bourne compatible
15560DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015561if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015562 emulate sh
15563 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015564 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015565 # is contrary to our usage. Disable this feature.
15566 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015567 setopt NO_GLOB_SUBST
15568else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015569 case `(set -o) 2>/dev/null` in #(
15570 *posix*) :
15571 set -o posix ;; #(
15572 *) :
15573 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015574esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015575fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015576
15577
Alexandre Julliardabf50482008-10-31 12:56:53 +010015578as_nl='
15579'
15580export as_nl
15581# Printing a long string crashes Solaris 7 /usr/bin/printf.
15582as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15583as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15584as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015585# Prefer a ksh shell builtin over an external printf program on Solaris,
15586# but without wasting forks for bash or zsh.
15587if test -z "$BASH_VERSION$ZSH_VERSION" \
15588 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15589 as_echo='print -r --'
15590 as_echo_n='print -rn --'
15591elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015592 as_echo='printf %s\n'
15593 as_echo_n='printf %s'
15594else
15595 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15596 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15597 as_echo_n='/usr/ucb/echo -n'
15598 else
15599 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15600 as_echo_n_body='eval
15601 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015602 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015603 *"$as_nl"*)
15604 expr "X$arg" : "X\\(.*\\)$as_nl";
15605 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15606 esac;
15607 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15608 '
15609 export as_echo_n_body
15610 as_echo_n='sh -c $as_echo_n_body as_echo'
15611 fi
15612 export as_echo_body
15613 as_echo='sh -c $as_echo_body as_echo'
15614fi
15615
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015616# The user is always right.
15617if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015618 PATH_SEPARATOR=:
15619 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15620 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15621 PATH_SEPARATOR=';'
15622 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015623fi
15624
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015625
15626# IFS
15627# We need space, tab and new line, in precisely that order. Quoting is
15628# there to prevent editors from complaining about space-tab.
15629# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15630# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015631IFS=" "" $as_nl"
15632
15633# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020015634as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015635case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015636 *[\\/]* ) as_myself=$0 ;;
15637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015638for as_dir in $PATH
15639do
15640 IFS=$as_save_IFS
15641 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15643 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015644IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015645
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015646 ;;
15647esac
15648# We did not find ourselves, most probably we were run as `sh COMMAND'
15649# in which case we are not to be found in the path.
15650if test "x$as_myself" = x; then
15651 as_myself=$0
15652fi
15653if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015654 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015655 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015656fi
15657
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015658# Unset variables that we do not need and which cause bugs (e.g. in
15659# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15660# suppresses any "Segmentation fault" message there. '((' could
15661# trigger a bug in pdksh 5.2.14.
15662for as_var in BASH_ENV ENV MAIL MAILPATH
15663do eval test x\${$as_var+set} = xset \
15664 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015665done
15666PS1='$ '
15667PS2='> '
15668PS4='+ '
15669
15670# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015671LC_ALL=C
15672export LC_ALL
15673LANGUAGE=C
15674export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015675
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015676# CDPATH.
15677(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15678
15679
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015680# as_fn_error STATUS ERROR [LINENO LOG_FD]
15681# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015682# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15683# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015684# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015685as_fn_error ()
15686{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015687 as_status=$1; test $as_status -eq 0 && as_status=1
15688 if test "$4"; then
15689 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15690 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015691 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015692 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015693 as_fn_exit $as_status
15694} # as_fn_error
15695
15696
15697# as_fn_set_status STATUS
15698# -----------------------
15699# Set $? to STATUS, without forking.
15700as_fn_set_status ()
15701{
15702 return $1
15703} # as_fn_set_status
15704
15705# as_fn_exit STATUS
15706# -----------------
15707# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15708as_fn_exit ()
15709{
15710 set +e
15711 as_fn_set_status $1
15712 exit $1
15713} # as_fn_exit
15714
15715# as_fn_unset VAR
15716# ---------------
15717# Portably unset VAR.
15718as_fn_unset ()
15719{
15720 { eval $1=; unset $1;}
15721}
15722as_unset=as_fn_unset
15723# as_fn_append VAR VALUE
15724# ----------------------
15725# Append the text in VALUE to the end of the definition contained in VAR. Take
15726# advantage of any shell optimizations that allow amortized linear growth over
15727# repeated appends, instead of the typical quadratic growth present in naive
15728# implementations.
15729if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15730 eval 'as_fn_append ()
15731 {
15732 eval $1+=\$2
15733 }'
15734else
15735 as_fn_append ()
15736 {
15737 eval $1=\$$1\$2
15738 }
15739fi # as_fn_append
15740
15741# as_fn_arith ARG...
15742# ------------------
15743# Perform arithmetic evaluation on the ARGs, and store the result in the
15744# global $as_val. Take advantage of shells that can avoid forks. The arguments
15745# must be portable across $(()) and expr.
15746if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15747 eval 'as_fn_arith ()
15748 {
15749 as_val=$(( $* ))
15750 }'
15751else
15752 as_fn_arith ()
15753 {
15754 as_val=`expr "$@" || test $? -eq 1`
15755 }
15756fi # as_fn_arith
15757
15758
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015759if expr a : '\(a\)' >/dev/null 2>&1 &&
15760 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15761 as_expr=expr
15762else
15763 as_expr=false
15764fi
15765
15766if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15767 as_basename=basename
15768else
15769 as_basename=false
15770fi
15771
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015772if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15773 as_dirname=dirname
15774else
15775 as_dirname=false
15776fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015777
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015778as_me=`$as_basename -- "$0" ||
15779$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15780 X"$0" : 'X\(//\)$' \| \
15781 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015782$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015783 sed '/^.*\/\([^/][^/]*\)\/*$/{
15784 s//\1/
15785 q
15786 }
15787 /^X\/\(\/\/\)$/{
15788 s//\1/
15789 q
15790 }
15791 /^X\/\(\/\).*/{
15792 s//\1/
15793 q
15794 }
15795 s/.*/./; q'`
15796
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015797# Avoid depending upon Character Ranges.
15798as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15799as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15800as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15801as_cr_digits='0123456789'
15802as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015803
15804ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015805case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015806-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015807 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015808 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015809 xy) ECHO_C='\c';;
15810 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15811 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015812 esac;;
15813*)
15814 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015815esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015816
15817rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015818if test -d conf$$.dir; then
15819 rm -f conf$$.dir/conf$$.file
15820else
15821 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015822 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015823fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015824if (echo >conf$$.file) 2>/dev/null; then
15825 if ln -s conf$$.file conf$$ 2>/dev/null; then
15826 as_ln_s='ln -s'
15827 # ... but there are two gotchas:
15828 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15829 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15830 # In both cases, we have to default to `cp -p'.
15831 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15832 as_ln_s='cp -p'
15833 elif ln conf$$.file conf$$ 2>/dev/null; then
15834 as_ln_s=ln
15835 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015836 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015837 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015838else
15839 as_ln_s='cp -p'
15840fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015841rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15842rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015843
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015844
15845# as_fn_mkdir_p
15846# -------------
15847# Create "$as_dir" as a directory, including parents if necessary.
15848as_fn_mkdir_p ()
15849{
15850
15851 case $as_dir in #(
15852 -*) as_dir=./$as_dir;;
15853 esac
15854 test -d "$as_dir" || eval $as_mkdir_p || {
15855 as_dirs=
15856 while :; do
15857 case $as_dir in #(
15858 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15859 *) as_qdir=$as_dir;;
15860 esac
15861 as_dirs="'$as_qdir' $as_dirs"
15862 as_dir=`$as_dirname -- "$as_dir" ||
15863$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15864 X"$as_dir" : 'X\(//\)[^/]' \| \
15865 X"$as_dir" : 'X\(//\)$' \| \
15866 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15867$as_echo X"$as_dir" |
15868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15869 s//\1/
15870 q
15871 }
15872 /^X\(\/\/\)[^/].*/{
15873 s//\1/
15874 q
15875 }
15876 /^X\(\/\/\)$/{
15877 s//\1/
15878 q
15879 }
15880 /^X\(\/\).*/{
15881 s//\1/
15882 q
15883 }
15884 s/.*/./; q'`
15885 test -d "$as_dir" && break
15886 done
15887 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015888 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015889
15890
15891} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015892if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015893 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015894else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015895 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015896 as_mkdir_p=false
15897fi
15898
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015899if test -x / >/dev/null 2>&1; then
15900 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015901else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015902 if ls -dL / >/dev/null 2>&1; then
15903 as_ls_L_option=L
15904 else
15905 as_ls_L_option=
15906 fi
15907 as_test_x='
15908 eval sh -c '\''
15909 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015910 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015911 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015912 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015913 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015914 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015915 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015916 ???[sx]*):;;*)false;;esac;fi
15917 '\'' sh
15918 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015919fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015920as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015921
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015922# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015923as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015924
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015925# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015926as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015927
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015928
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015929exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015930## ----------------------------------- ##
15931## Main body of $CONFIG_STATUS script. ##
15932## ----------------------------------- ##
15933_ASEOF
15934test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015935
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15937# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015938# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015939# values after options handling.
15940ac_log="
Alexandre Julliard8c850a82011-07-22 19:32:43 +020015941This file was extended by Wine $as_me 1.3.25, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +020015942generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015943
15944 CONFIG_FILES = $CONFIG_FILES
15945 CONFIG_HEADERS = $CONFIG_HEADERS
15946 CONFIG_LINKS = $CONFIG_LINKS
15947 CONFIG_COMMANDS = $CONFIG_COMMANDS
15948 $ $0 $@
15949
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015950on `(hostname || uname -n) 2>/dev/null | sed 1q`
15951"
15952
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015953_ACEOF
15954
Alexandre Julliardabf50482008-10-31 12:56:53 +010015955case $ac_config_files in *"
15956"*) set x $ac_config_files; shift; ac_config_files=$*;;
15957esac
15958
15959case $ac_config_headers in *"
15960"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15961esac
15962
15963
15964cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015965# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015966config_files="$ac_config_files"
15967config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015968config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015969config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015970
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015971_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015972
Alexandre Julliardabf50482008-10-31 12:56:53 +010015973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015974ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015975\`$as_me' instantiates files and other configuration actions
15976from templates according to the current configuration. Unless the files
15977and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015978
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015979Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015980
15981 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020015982 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015983 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010015984 -q, --quiet, --silent
15985 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015986 -d, --debug don't remove temporary files
15987 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010015988 --file=FILE[:TEMPLATE]
15989 instantiate the configuration file FILE
15990 --header=FILE[:TEMPLATE]
15991 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015992
15993Configuration files:
15994$config_files
15995
15996Configuration headers:
15997$config_headers
15998
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015999Configuration links:
16000$config_links
16001
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016002Configuration commands:
16003$config_commands
16004
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016005Report bugs to <wine-devel@winehq.org>.
16006Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016007
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016008_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016010ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016011ac_cs_version="\\
Alexandre Julliard8c850a82011-07-22 19:32:43 +020016012Wine config.status 1.3.25
Alexandre Julliard9797da42011-04-27 17:37:43 +020016013configured by $0, generated by GNU Autoconf 2.68,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016014 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016015
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016016Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016017This config.status script is free software; the Free Software Foundation
16018gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016019
16020ac_pwd='$ac_pwd'
16021srcdir='$srcdir'
16022INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016023test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016024_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016025
Alexandre Julliardabf50482008-10-31 12:56:53 +010016026cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16027# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016028ac_need_defaults=:
16029while test $# != 0
16030do
16031 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016032 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016035 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016036 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016037 --*=)
16038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16039 ac_optarg=
16040 ac_shift=:
16041 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016042 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016043 ac_option=$1
16044 ac_optarg=$2
16045 ac_shift=shift
16046 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016047 esac
16048
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016049 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016050 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16052 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016054 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016055 --config | --confi | --conf | --con | --co | --c )
16056 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016057 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016058 debug=: ;;
16059 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016060 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016061 case $ac_optarg in
16062 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016063 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016064 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016065 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016066 ac_need_defaults=false;;
16067 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016068 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016069 case $ac_optarg in
16070 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16071 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016072 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016073 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016074 --he | --h)
16075 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016076 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016077Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016078 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016079 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16082 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016083
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016084 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016085 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016086Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016087
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016088 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016089 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016090
16091 esac
16092 shift
16093done
16094
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016095ac_configure_extra_args=
16096
16097if $ac_cs_silent; then
16098 exec 6>/dev/null
16099 ac_configure_extra_args="$ac_configure_extra_args --silent"
16100fi
16101
16102_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016104if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016105 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16106 shift
16107 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16108 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016109 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016110 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016111fi
16112
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016113_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016115exec 5>>config.log
16116{
16117 echo
16118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16119## Running $as_me. ##
16120_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016121 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016122} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016123
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016124_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016126#
16127# INIT-COMMANDS
16128#
16129wine_fn_output_makefile ()
16130{
16131 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16132$ALL_MAKEFILE_DEPENDS
16133_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016134 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016135}
16136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016137_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016138
Alexandre Julliardabf50482008-10-31 12:56:53 +010016139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016140
16141# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016142for ac_config_target in $ac_config_targets
16143do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016144 case $ac_config_target in
16145 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016146 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016147 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016148 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
Alexandre Julliardce122962010-02-03 13:13:16 +010016149 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16150 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16151 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16152 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016153 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016154 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard4422d222011-05-10 13:26:28 +020016155 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016156 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016157 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16158 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016159 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016160 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016161 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16162 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16163 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016164 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016165 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16166 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016167 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016168 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016169 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016170
Alexandre Julliard9797da42011-04-27 17:37:43 +020016171 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016172 esac
16173done
16174
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016175
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016176# If the user did not use the arguments to specify the items to instantiate,
16177# then the envvar interface is used. Set only those that are not.
16178# We use the long form for the default assignment because of an extremely
16179# bizarre bug on SunOS 4.1.3.
16180if $ac_need_defaults; then
16181 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16182 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016183 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16185fi
16186
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016187# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016188# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016189# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016190# Hook for its removal unless debugging.
16191# Note that there is a small window in which the directory will not be cleaned:
16192# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016193$debug ||
16194{
Alexandre Julliard9797da42011-04-27 17:37:43 +020016195 tmp= ac_tmp=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016196 trap 'exit_status=$?
Alexandre Julliard9797da42011-04-27 17:37:43 +020016197 : "${ac_tmp:=$tmp}"
16198 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016199' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016200 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016201}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016202# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016203
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016204{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016205 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016206 test -d "$tmp"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016207} ||
16208{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016209 tmp=./conf$$-$RANDOM
16210 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016211} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016212ac_tmp=$tmp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016213
Alexandre Julliardabf50482008-10-31 12:56:53 +010016214# Set up the scripts for CONFIG_FILES section.
16215# No need to generate them if there are no CONFIG_FILES.
16216# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016217if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218
Alexandre Julliardabf50482008-10-31 12:56:53 +010016219if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16220 ac_cs_awk_getline=:
16221 ac_cs_awk_pipe_init=
16222 ac_cs_awk_read_file='
16223 while ((getline aline < (F[key])) > 0)
16224 print(aline)
16225 close(F[key])'
16226 ac_cs_awk_pipe_fini=
16227else
16228 ac_cs_awk_getline=false
16229 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16230 ac_cs_awk_read_file='
16231 print "|#_!!_#|"
16232 print "cat " F[key] " &&"
16233 '$ac_cs_awk_pipe_init
16234 # The final `:' finishes the AND list.
16235 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16236fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016237ac_cr=`echo X | tr X '\015'`
16238# On cygwin, bash can eat \r inside `` if the user requested igncr.
16239# But we know of no other shell where ac_cr would be empty at this
16240# point, so we can use a bashism as a fallback.
16241if test "x$ac_cr" = x; then
16242 eval ac_cr=\$\'\\r\'
16243fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016244ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16245if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016246 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016247else
16248 ac_cs_awk_cr=$ac_cr
16249fi
16250
Alexandre Julliard9797da42011-04-27 17:37:43 +020016251echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016252_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016253
Alexandre Julliardabf50482008-10-31 12:56:53 +010016254# Create commands to substitute file output variables.
16255{
16256 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016257 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016258 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16259 echo "_ACAWK" &&
16260 echo "_ACEOF"
16261} >conf$$files.sh &&
16262. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016263 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016264rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016265
Alexandre Julliardabf50482008-10-31 12:56:53 +010016266{
16267 echo "cat >conf$$subs.awk <<_ACEOF" &&
16268 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16269 echo "_ACEOF"
16270} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016271 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16272ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016273ac_delim='%!_!# '
16274for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016275 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016276 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016277
Alexandre Julliardabf50482008-10-31 12:56:53 +010016278 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16279 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016280 break
16281 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016282 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016283 else
16284 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016285 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016286done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016287rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016288
Alexandre Julliardabf50482008-10-31 12:56:53 +010016289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard9797da42011-04-27 17:37:43 +020016290cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016291_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016292sed -n '
16293h
16294s/^/S["/; s/!.*/"]=/
16295p
16296g
16297s/^[^!]*!//
16298:repl
16299t repl
16300s/'"$ac_delim"'$//
16301t delim
16302:nl
16303h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016304s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016305t more1
16306s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16307p
16308n
16309b repl
16310:more1
16311s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16312p
16313g
16314s/.\{148\}//
16315t nl
16316:delim
16317h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016318s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016319t more2
16320s/["\\]/\\&/g; s/^/"/; s/$/"/
16321p
16322b
16323:more2
16324s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16325p
16326g
16327s/.\{148\}//
16328t delim
16329' <conf$$subs.awk | sed '
16330/^[^""]/{
16331 N
16332 s/\n//
16333}
16334' >>$CONFIG_STATUS || ac_write_fail=1
16335rm -f conf$$subs.awk
16336cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16337_ACAWK
Alexandre Julliard9797da42011-04-27 17:37:43 +020016338cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016339 for (key in S) S_is_set[key] = 1
16340 FS = ""
16341 \$ac_cs_awk_pipe_init
16342}
16343{
16344 line = $ 0
16345 nfields = split(line, field, "@")
16346 substed = 0
16347 len = length(field[1])
16348 for (i = 2; i < nfields; i++) {
16349 key = field[i]
16350 keylen = length(key)
16351 if (S_is_set[key]) {
16352 value = S[key]
16353 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16354 len += length(value) + length(field[++i])
16355 substed = 1
16356 } else
16357 len += 1 + keylen
16358 }
16359 if (nfields == 3 && !substed) {
16360 key = field[2]
16361 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16362 \$ac_cs_awk_read_file
16363 next
16364 }
16365 }
16366 print line
16367}
16368\$ac_cs_awk_pipe_fini
16369_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016370_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16372if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16373 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16374else
16375 cat
Alexandre Julliard9797da42011-04-27 17:37:43 +020016376fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016377 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016378_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016379
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016380# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16381# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016382# trailing colons and then remove the whole line if VPATH becomes empty
16383# (actually we leave an empty line to preserve line numbers).
16384if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016385 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16386h
16387s///
16388s/^/:/
16389s/[ ]*$/:/
16390s/:\$(srcdir):/:/g
16391s/:\${srcdir}:/:/g
16392s/:@srcdir@:/:/g
16393s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016394s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016395x
16396s/\(=[ ]*\).*/\1/
16397G
16398s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016399s/^[^=]*=[ ]*$//
16400}'
16401fi
16402
Alexandre Julliardabf50482008-10-31 12:56:53 +010016403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016404fi # test -n "$CONFIG_FILES"
16405
Alexandre Julliardabf50482008-10-31 12:56:53 +010016406# Set up the scripts for CONFIG_HEADERS section.
16407# No need to generate them if there are no CONFIG_HEADERS.
16408# This happens for instance with `./config.status Makefile'.
16409if test -n "$CONFIG_HEADERS"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016410cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016411BEGIN {
16412_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016413
Alexandre Julliardabf50482008-10-31 12:56:53 +010016414# Transform confdefs.h into an awk script `defines.awk', embedded as
16415# here-document in config.status, that substitutes the proper values into
16416# config.h.in to produce config.h.
16417
16418# Create a delimiter string that does not exist in confdefs.h, to ease
16419# handling of long lines.
16420ac_delim='%!_!# '
16421for ac_last_try in false false :; do
Alexandre Julliard9797da42011-04-27 17:37:43 +020016422 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16423 if test -z "$ac_tt"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016424 break
16425 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016426 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016427 else
16428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16429 fi
16430done
16431
16432# For the awk script, D is an array of macro values keyed by name,
16433# likewise P contains macro parameters if any. Preserve backslash
16434# newline sequences.
16435
16436ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16437sed -n '
16438s/.\{148\}/&'"$ac_delim"'/g
16439t rset
16440:rset
16441s/^[ ]*#[ ]*define[ ][ ]*/ /
16442t def
16443d
16444:def
16445s/\\$//
16446t bsnl
16447s/["\\]/\\&/g
16448s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16449D["\1"]=" \3"/p
16450s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16451d
16452:bsnl
16453s/["\\]/\\&/g
16454s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16455D["\1"]=" \3\\\\\\n"\\/p
16456t cont
16457s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16458t cont
16459d
16460:cont
16461n
16462s/.\{148\}/&'"$ac_delim"'/g
16463t clear
16464:clear
16465s/\\$//
16466t bsnlc
16467s/["\\]/\\&/g; s/^/"/; s/$/"/p
16468d
16469:bsnlc
16470s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16471b cont
16472' <confdefs.h | sed '
16473s/'"$ac_delim"'/"\\\
16474"/g' >>$CONFIG_STATUS || ac_write_fail=1
16475
16476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477 for (key in D) D_is_set[key] = 1
16478 FS = ""
16479}
16480/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16481 line = \$ 0
16482 split(line, arg, " ")
16483 if (arg[1] == "#") {
16484 defundef = arg[2]
16485 mac1 = arg[3]
16486 } else {
16487 defundef = substr(arg[1], 2)
16488 mac1 = arg[2]
16489 }
16490 split(mac1, mac2, "(") #)
16491 macro = mac2[1]
16492 prefix = substr(line, 1, index(line, defundef) - 1)
16493 if (D_is_set[macro]) {
16494 # Preserve the white space surrounding the "#".
16495 print prefix "define", macro P[macro] D[macro]
16496 next
16497 } else {
16498 # Replace #undef with comments. This is necessary, for example,
16499 # in the case of _POSIX_SOURCE, which is predefined and required
16500 # on some systems where configure will not decide to define it.
16501 if (defundef == "undef") {
16502 print "/*", prefix defundef, macro, "*/"
16503 next
16504 }
16505 }
16506}
16507{ print }
16508_ACAWK
16509_ACEOF
16510cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016511 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016512fi # test -n "$CONFIG_HEADERS"
16513
16514
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016515eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016516shift
16517for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016518do
16519 case $ac_tag in
16520 :[FHLC]) ac_mode=$ac_tag; continue;;
16521 esac
16522 case $ac_mode$ac_tag in
16523 :[FHL]*:*);;
Alexandre Julliard9797da42011-04-27 17:37:43 +020016524 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016525 :[FH]-) ac_tag=-:-;;
16526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16527 esac
16528 ac_save_IFS=$IFS
16529 IFS=:
16530 set x $ac_tag
16531 IFS=$ac_save_IFS
16532 shift
16533 ac_file=$1
16534 shift
16535
16536 case $ac_mode in
16537 :L) ac_source=$1;;
16538 :[FH])
16539 ac_file_inputs=
16540 for ac_f
16541 do
16542 case $ac_f in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016543 -) ac_f="$ac_tmp/stdin";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016544 *) # Look for the file first in the build tree, then in the source tree
16545 # (if the path is not absolute). The absolute path cannot be DOS-style,
16546 # because $ac_f cannot contain `:'.
16547 test -f "$ac_f" ||
16548 case $ac_f in
16549 [\\/$]*) false;;
16550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16551 esac ||
Alexandre Julliard9797da42011-04-27 17:37:43 +020016552 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016553 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016554 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016555 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016556 done
16557
16558 # Let's still pretend it is `configure' which instantiates (i.e., don't
16559 # use $as_me), people would be surprised to read:
16560 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016561 configure_input='Generated from '`
16562 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16563 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016564 if test x"$ac_file" != x-; then
16565 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016567$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016568 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016569 # Neutralize special characters interpreted by sed in replacement strings.
16570 case $configure_input in #(
16571 *\&* | *\|* | *\\* )
16572 ac_sed_conf_input=`$as_echo "$configure_input" |
16573 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16574 *) ac_sed_conf_input=$configure_input;;
16575 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016576
16577 case $ac_tag in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016578 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016580 esac
16581 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016582 esac
16583
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016584 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016585$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016586 X"$ac_file" : 'X\(//\)[^/]' \| \
16587 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016588 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016589$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16591 s//\1/
16592 q
16593 }
16594 /^X\(\/\/\)[^/].*/{
16595 s//\1/
16596 q
16597 }
16598 /^X\(\/\/\)$/{
16599 s//\1/
16600 q
16601 }
16602 /^X\(\/\).*/{
16603 s//\1/
16604 q
16605 }
16606 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016607 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016608 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016609
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016610case "$ac_dir" in
16611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16612*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016614 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016616 case $ac_top_builddir_sub in
16617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16619 esac ;;
16620esac
16621ac_abs_top_builddir=$ac_pwd
16622ac_abs_builddir=$ac_pwd$ac_dir_suffix
16623# for backward compatibility:
16624ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016625
16626case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016627 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016628 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016629 ac_top_srcdir=$ac_top_builddir_sub
16630 ac_abs_top_srcdir=$ac_pwd ;;
16631 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016632 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016633 ac_top_srcdir=$srcdir
16634 ac_abs_top_srcdir=$srcdir ;;
16635 *) # Relative name.
16636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16637 ac_top_srcdir=$ac_top_build_prefix$srcdir
16638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016639esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016641
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016642
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016643 case $ac_mode in
16644 :F)
16645 #
16646 # CONFIG_FILE
16647 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016648
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016649 case $INSTALL in
16650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016651 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016652 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016653_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016654
Alexandre Julliardabf50482008-10-31 12:56:53 +010016655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016656# If the template does not know about datarootdir, expand it.
16657# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016658ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016659ac_sed_dataroot='
16660/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016661 p
16662 q
16663}
16664/@datadir@/p
16665/@docdir@/p
16666/@infodir@/p
16667/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016668/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016669case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016670*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016671*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016673$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016674_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016675cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016676 ac_datarootdir_hack='
16677 s&@datadir@&$datadir&g
16678 s&@docdir@&$docdir&g
16679 s&@infodir@&$infodir&g
16680 s&@localedir@&$localedir&g
16681 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016682 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016683esac
16684_ACEOF
16685
16686# Neutralize VPATH when `$srcdir' = `.'.
16687# Shell code in configure.ac might set extrasub.
16688# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016689cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16690ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016691$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016692_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016694:t
16695/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016696s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016697s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016698s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016699s&@srcdir@&$ac_srcdir&;t t
16700s&@abs_srcdir@&$ac_abs_srcdir&;t t
16701s&@top_srcdir@&$ac_top_srcdir&;t t
16702s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16703s&@builddir@&$ac_builddir&;t t
16704s&@abs_builddir@&$ac_abs_builddir&;t t
16705s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16706s&@INSTALL@&$ac_INSTALL&;t t
16707$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016708"
16709eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16710if $ac_cs_awk_getline; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016711 $AWK -f "$ac_tmp/subs.awk"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016712else
Alexandre Julliard9797da42011-04-27 17:37:43 +020016713 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16714fi \
16715 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016716
Jeremy White0ebeb532006-06-20 13:18:41 +020016717test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016718 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16719 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16720 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016722which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016723$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016724which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020016725
Alexandre Julliard9797da42011-04-27 17:37:43 +020016726 rm -f "$ac_tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016727 case $ac_file in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016728 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16729 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016730 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016731 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016732 ;;
16733 :H)
16734 #
16735 # CONFIG_HEADER
16736 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016737 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016738 {
16739 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016740 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16741 } >"$ac_tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016743 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016744 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016745$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016746 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016747 rm -f "$ac_file"
Alexandre Julliard9797da42011-04-27 17:37:43 +020016748 mv "$ac_tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016750 fi
16751 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016752 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016753 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016754 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016755 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016756 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016757 :L)
16758 #
16759 # CONFIG_LINK
16760 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016761
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016762 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16763 :
16764 else
16765 # Prefer the file from the source tree if names are identical.
16766 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16767 ac_source=$srcdir/$ac_source
16768 fi
16769
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16771$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16772
16773 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016774 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016775 fi
16776 rm -f "$ac_file"
16777
16778 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016779 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016780 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16781 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16782 esac
16783 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16784 ln "$ac_source" "$ac_file" 2>/dev/null ||
16785 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016786 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016787 fi
16788 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016789 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016790$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016791 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016792 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016793
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016794
16795 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016796 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016797 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16798$as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016799 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16800$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16801 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16802$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16803 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16804$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16805 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16806$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16807 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16808$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16809 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16810$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016811 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016812
16813 esac
16814done # for ac_tag
16815
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016816
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016817as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016818_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016819ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016820
Alexandre Julliardabf50482008-10-31 12:56:53 +010016821test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016822 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016823
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016824
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016825# configure is writing to config.log, and then calls config.status.
16826# config.status does its own redirection, appending to config.log.
16827# Unfortunately, on DOS this fails, as config.log is still kept open
16828# by configure, so config.status won't be able to write to it; its
16829# output is simply discarded. So we exec the FD to /dev/null,
16830# effectively closing config.log, so it can be properly (re)opened and
16831# appended to by config.status. When coming back to configure, we
16832# need to make the FD available again.
16833if test "$no_create" != yes; then
16834 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016835 ac_config_status_args=
16836 test "$silent" = yes &&
16837 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016838 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016839 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016840 exec 5>>config.log
16841 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16842 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016843 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016844fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016845if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016847$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16848fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016849
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016850
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016851if test "$no_create" = "yes"
16852then
16853 exit 0
16854fi
16855
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016856ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016857if test "x$wine_notices != "x; then
16858 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016859 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016860 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016861 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016862 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016863 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016864$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016865 fi
16866 done
16867fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016868IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016869for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016870 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016871 if test -n "$msg"; then
16872 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016874$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016875 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016876done
16877IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016878
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016879echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016880$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016881" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016882